Commit b386e4bc by 施宇

Merge branch 'master' of http://119.23.72.7/shiyu/icsalesProgram

parents 8b22af06 06b473ba
...@@ -90,8 +90,6 @@ Page({ ...@@ -90,8 +90,6 @@ Page({
}); });
} }
} }
}, true, false, true); }, true, false, true);
......
...@@ -11,41 +11,57 @@ ...@@ -11,41 +11,57 @@
</view> </view>
<block wx:if="{{tabIndex == 1}}"> <block wx:if="{{tabIndex == 1}}">
<view class="content"> <view class="content">
<block wx:for="{{integralBillsList}}" wx:key="item"> <block wx:if="{{integralBillsList.length > 0}}">
<view class="list row verCenter bothSide boxsiz"> <block wx:for="{{integralBillsList}}" wx:key="item">
<view class="column"> <view class="list row verCenter bothSide boxsiz">
<text class="t1">{{item.name}}</text> <view class="column">
<text class="t2">{{item.add_time}}</text> <text class="t1">{{item.name}}</text>
</view> <text class="t2">{{item.add_time}}</text>
<view> </view>
<text class="t3">+</text> <view>
<text class="t4">¥{{item.amount}}</text> <text class="t3">+</text>
<text class="t4">¥{{item.amount}}</text>
</view>
</view> </view>
</block>
</block>
<block wx:else>
<view class="nodata">
<image src="/res/images/imgs/noxb.png" class="img"></image>
<view class="h3 bold">暂无收入明细数据</view>
</view> </view>
</block> </block>
</view> </view>
</block> </block>
<block wx:else> <block wx:else>
<view class="content"> <view class="content">
<block wx:for="{{userExchanges}}" wx:key="item"> <block wx:if="{{userExchanges.length > 0}}">
<view class="list row verCenter bothSide boxsiz"> <block wx:for="{{userExchanges}}" wx:key="item">
<view class="column"> <view class="list row verCenter bothSide boxsiz">
<text class="t1">{{item.type}}</text> <view class="column">
<text class="t2">{{item.add_time}}</text> <text class="t1">{{item.type}}</text>
</view> <text class="t2">{{item.add_time}}</text>
<view class="t6">{{item.mobile}}</view> </view>
<view class="column"> <view class="t6">{{item.mobile}}</view>
<text class="t5">¥{{item.amount}}</text> <view class="column">
<block wx:if="{{item.status == 1}}"> <text class="t5">¥{{item.amount}}</text>
<text class="t2">充值成功</text> <block wx:if="{{item.status == 1}}">
</block> <text class="t2">充值成功</text>
<block wx:elif="{{item.status == 0}}"> </block>
<text class="t2">审核中</text> <block wx:elif="{{item.status == 0}}">
</block> <text class="t2">审核中</text>
<block wx:else> </block>
<text class="t2s">充值失败</text> <block wx:else>
</block> <text class="t2s">充值失败</text>
</block>
</view>
</view> </view>
</block>
</block>
<block wx:else>
<view class="nodata">
<image src="/res/images/imgs/noxb.png" class="img"></image>
<view class="h3 bold">暂无兑换记录数据</view>
</view> </view>
</block> </block>
</view> </view>
......
...@@ -85,24 +85,24 @@ Page({ ...@@ -85,24 +85,24 @@ Page({
http.getData(apis.authLogout, 'POST', null, (res) => { http.getData(apis.authLogout, 'POST', null, (res) => {
if (res.errcode === 0) { if (res.errcode === 0) {
// wx.switchTab({
// url: '/pages/tab/home/home'
// });
wx.reLaunch({
url: '/pages/person/auth/index',
});
wx.removeStorageSync('access_token'); wx.removeStorageSync('access_token');
wx.removeStorageSync('user_id'); wx.removeStorageSync('user_id');
wx.removeStorageSync('myUsername'); wx.removeStorageSync('myUsername');
wx.removeStorageSync('myPassword'); wx.removeStorageSync('myPassword');
wx.removeStorageSync('auth'); wx.removeStorageSync('auth');
wx.reLaunch({
url: '/pages/person/auth/index',
});
} else { } else {
wx.showToast({ wx.showToast({
title: res.errmsg, title: res.errmsg,
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}); });
} }
}, false, true); }, false, true);
} else if (res.cancel) { } else if (res.cancel) {
......
...@@ -101,8 +101,8 @@ Page({ ...@@ -101,8 +101,8 @@ Page({
//认证管理 //认证管理
if (e.currentTarget.dataset.type == 'certification') { if (e.currentTarget.dataset.type == 'certification') {
if (e.currentTarget.dataset.status == null) { if (this.data.userInfo.auth_status == null) {
wx.navigateTo({ wx.navigateTo({
url: "/pages/person/certification/addcertification/index" url: "/pages/person/certification/addcertification/index"
...@@ -111,7 +111,7 @@ Page({ ...@@ -111,7 +111,7 @@ Page({
} else { } else {
wx.navigateTo({ wx.navigateTo({
url: "/pages/person/certification/addcertification/index" url: "/pages/person/certification/certificationmanage/index"
}); });
} }
...@@ -152,7 +152,7 @@ Page({ ...@@ -152,7 +152,7 @@ Page({
}) })
}, },
toSignin:function(){ toSignin: function () {
wx.navigateTo({ wx.navigateTo({
url: "/pages/list/signin/index" url: "/pages/list/signin/index"
}) })
......
...@@ -57,14 +57,14 @@ ...@@ -57,14 +57,14 @@
<text class="t2">{{userInfo.mobile}}</text> <text class="t2">{{userInfo.mobile}}</text>
</view> </view>
</view> </view>
<view class="boxsiz bar row bothSide verCenter" data-type="certification" data-status="{{userInfo.auth_status}}" bind:tap="toUrl"> <view class="boxsiz bar row bothSide verCenter" data-type="certification" bind:tap="toUrl">
<view> <view>
<text class="icon iconfont iconiconxiantiaoshouji19"></text> <text class="icon iconfont iconiconxiantiaoshouji19"></text>
<text class="t1">认证管理</text> <text class="t1">认证管理</text>
</view> </view>
<view> <view>
<block wx:if="{{userInfo.auth_status_val == null}}"> <block wx:if="{{userInfo.auth_status_val == null}}">
<text class="t2">{{userInfo.auth_status_val}}</text> <text class="t2">未认证</text>
</block> </block>
<block wx:else> <block wx:else>
<text class="t2">{{userInfo.auth_status_val}}</text> <text class="t2">{{userInfo.auth_status_val}}</text>
......
...@@ -114,6 +114,27 @@ ...@@ -114,6 +114,27 @@
"id": -1, "id": -1,
"name": "pages/person/exchange/index", "name": "pages/person/exchange/index",
"pathName": "pages/person/exchange/index", "pathName": "pages/person/exchange/index",
"query": "",
"scene": null
},
{
"id": -1,
"name": "pages/tab/home/home",
"pathName": "pages/tab/home/home",
"query": "",
"scene": null
},
{
"id": -1,
"name": "pages/person/setting/index",
"pathName": "pages/person/setting/index",
"query": "",
"scene": null
},
{
"id": -1,
"name": "pages/tab/me/me",
"pathName": "pages/tab/me/me",
"scene": null "scene": null
} }
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment