Browse Source

商户主页、代理主页右上角加注销登录按钮

master
yangrz 2 years ago
parent
commit
b8f3c58c6f
  1. 40
      agentApp/pages.json
  2. 15
      agentApp/pages/agent-index/index.vue
  3. 1
      agentApp/pages/cash/cash.vue
  4. 14
      agentApp/pages/merchant-index/index.vue
  5. 3
      agentApp/pages/merchant-withdrawal-management/merchant-withdrawal-management.vue
  6. BIN
      agentApp/static/iconfont/iconfont.ttf

40
agentApp/pages.json

@ -28,15 +28,25 @@
"style": {
"navigationBarTitleText": "代理主页",
"navigationBarBackgroundColor": "#1783FF",
"navigationBarTextStyle": "white"
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"buttons": [{
"text": "",
"fontSrc": "/static/iconfont/iconfont.ttf",
"fontSize": "23",
"float": "right"
}]
}
}
}
},
{
"path": "pages/cash/cash",
"style": {
"navigationBarTitleText": "代理提现",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black"
"navigationBarBackgroundColor": "#1783FF",
"navigationBarTextStyle": "white"
}
},
{
@ -51,8 +61,8 @@
"path": "pages/history/history",
"style": {
"navigationBarTitleText": "代理提现历史",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black"
"navigationBarBackgroundColor": "#1783FF",
"navigationBarTextStyle": "white"
}
},
{
@ -76,7 +86,17 @@
"style": {
"navigationBarTitleText": "商户主页",
"navigationBarBackgroundColor": "#F52F3E",
"navigationBarTextStyle": "white"
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"buttons": [{
"text": "",
"fontSrc": "/static/iconfont/iconfont.ttf",
"fontSize": "23",
"float": "right"
}]
}
}
}
},
{
@ -118,14 +138,18 @@
{
"path": "pages/merchant-withdrawal-management/merchant-withdrawal-management",
"style": {
"navigationBarTitleText": "",
"navigationBarTitleText": "商户提现",
"navigationBarBackgroundColor": "#F52F3E",
"navigationBarTextStyle": "white",
"enablePullDownRefresh": false
}
},
{
"path": "pages/merchant-withdrawal-history/merchant-withdrawal-history",
"style": {
"navigationBarTitleText": "",
"navigationBarTitleText": "商户提现历史",
"navigationBarBackgroundColor": "#F52F3E",
"navigationBarTextStyle": "white",
"enablePullDownRefresh": false
}
}

15
agentApp/pages/agent-index/index.vue

@ -118,6 +118,20 @@
url: '/pages/cash/cash'
});
}
},
onNavigationBarButtonTap(e) {
uni.showModal({
title: '提示',
content: '确认注销登录吗?',
success: function (res) {
if (res.confirm) {
uni.reLaunch({
url: "/pages/agent-login/index"
});
uni.removeStorageSync('agent_token');
}
}
});
}
}
</script>
@ -141,6 +155,7 @@
height: 60rpx;
line-height: 60rpx;
padding-left: 40rpx;
border-top-left-radius: 30rpx;
border-bottom-left-radius: 30rpx;
color: #fff;
font-size: 24rpx;

1
agentApp/pages/cash/cash.vue

@ -245,6 +245,7 @@
height: 60rpx;
line-height: 60rpx;
padding-left: 40rpx;
border-top-left-radius: 30rpx;
border-bottom-left-radius: 30rpx;
color: #fff;
font-size: 24rpx;

14
agentApp/pages/merchant-index/index.vue

@ -165,6 +165,20 @@
share_amount: function(order) {
return (parseFloat(order.merchant_income) + parseFloat(order.merchant_fee)).toFixed(2)
}
},
onNavigationBarButtonTap(e) {
uni.showModal({
title: '提示',
content: '确认注销登录吗?',
success: function (res) {
if (res.confirm) {
uni.reLaunch({
url: "/pages/merchant-login/index"
});
uni.removeStorageSync('merchant_token');
}
}
});
}
}
</script>

3
agentApp/pages/merchant-withdrawal-management/merchant-withdrawal-management.vue

@ -27,7 +27,7 @@
</view>
<div class="age-mnum">
<view class="mtext">
待入账0
待入账0.00
</view>
<view class="mline">
@ -244,6 +244,7 @@
height: 60rpx;
line-height: 60rpx;
padding-left: 40rpx;
border-top-left-radius: 30rpx;
border-bottom-left-radius: 30rpx;
color: #fff;
font-size: 24rpx;

BIN
agentApp/static/iconfont/iconfont.ttf

Loading…
Cancel
Save