Commit 3427d691 by 梁建民

js

parent b0187041
...@@ -90,8 +90,6 @@ Page({ ...@@ -90,8 +90,6 @@ Page({
}); });
} }
} }
}, true, false, true); }, true, false, true);
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
</view> </view>
<block wx:if="{{tabIndex == 1}}"> <block wx:if="{{tabIndex == 1}}">
<view class="content"> <view class="content">
<block wx:if="{{integralBillsList.length > 0}}">
<block wx:for="{{integralBillsList}}" wx:key="item"> <block wx:for="{{integralBillsList}}" wx:key="item">
<view class="list row verCenter bothSide boxsiz"> <view class="list row verCenter bothSide boxsiz">
<view class="column"> <view class="column">
...@@ -23,10 +24,18 @@ ...@@ -23,10 +24,18 @@
</view> </view>
</view> </view>
</block> </block>
</block>
<block wx:else>
<view class="nodata">
<image src="/res/images/imgs/noxb.png" class="img"></image>
<view class="h3 bold">暂无收入明细数据</view>
</view>
</block>
</view> </view>
</block> </block>
<block wx:else> <block wx:else>
<view class="content"> <view class="content">
<block wx:if="{{userExchanges.length > 0}}">
<block wx:for="{{userExchanges}}" wx:key="item"> <block wx:for="{{userExchanges}}" wx:key="item">
<view class="list row verCenter bothSide boxsiz"> <view class="list row verCenter bothSide boxsiz">
<view class="column"> <view class="column">
...@@ -48,6 +57,13 @@ ...@@ -48,6 +57,13 @@
</view> </view>
</view> </view>
</block> </block>
</block>
<block wx:else>
<view class="nodata">
<image src="/res/images/imgs/noxb.png" class="img"></image>
<view class="h3 bold">暂无兑换记录数据</view>
</view>
</block>
</view> </view>
</block> </block>
<view class="btn" bind:tap="toUrl"> <view class="btn" bind:tap="toUrl">
......
...@@ -85,18 +85,18 @@ Page({ ...@@ -85,18 +85,18 @@ 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',
......
...@@ -114,6 +114,20 @@ ...@@ -114,6 +114,20 @@
"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",
"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