Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsalesProgram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3427d691
authored
Sep 10, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
b0187041
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
36 deletions
pages/person/exchange/index.js
pages/person/exchange/index.wxml
pages/person/setting/index.js
project.config.json
pages/person/exchange/index.js
View file @
3427d691
...
...
@@ -90,8 +90,6 @@ Page({
});
}
}
},
true
,
false
,
true
);
...
...
pages/person/exchange/index.wxml
View file @
3427d691
...
...
@@ -11,41 +11,57 @@
</view>
<block wx:if="{{tabIndex == 1}}">
<view class="content">
<block wx:for="{{integralBillsList}}" wx:key="item">
<view class="list row verCenter bothSide boxsiz">
<view class="column">
<text class="t1">{{item.name}}</text>
<text class="t2">{{item.add_time}}</text>
</view>
<view>
<text class="t3">+</text>
<text class="t4">¥{{item.amount}}</text>
<block wx:if="{{integralBillsList.length > 0}}">
<block wx:for="{{integralBillsList}}" wx:key="item">
<view class="list row verCenter bothSide boxsiz">
<view class="column">
<text class="t1">{{item.name}}</text>
<text class="t2">{{item.add_time}}</text>
</view>
<view>
<text class="t3">+</text>
<text class="t4">¥{{item.amount}}</text>
</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>
</block>
</view>
</block>
<block wx:else>
<view class="content">
<block wx:for="{{userExchanges}}" wx:key="item">
<view class="list row verCenter bothSide boxsiz">
<view class="column">
<text class="t1">{{item.type}}</text>
<text class="t2">{{item.add_time}}</text>
</view>
<view class="t6">{{item.mobile}}</view>
<view class="column">
<text class="t5">¥{{item.amount}}</text>
<block wx:if="{{item.status == 1}}">
<text class="t2">充值成功</text>
</block>
<block wx:elif="{{item.status == 0}}">
<text class="t2">审核中</text>
</block>
<block wx:else>
<text class="t2s">充值失败</text>
</block>
<block wx:if="{{userExchanges.length > 0}}">
<block wx:for="{{userExchanges}}" wx:key="item">
<view class="list row verCenter bothSide boxsiz">
<view class="column">
<text class="t1">{{item.type}}</text>
<text class="t2">{{item.add_time}}</text>
</view>
<view class="t6">{{item.mobile}}</view>
<view class="column">
<text class="t5">¥{{item.amount}}</text>
<block wx:if="{{item.status == 1}}">
<text class="t2">充值成功</text>
</block>
<block wx:elif="{{item.status == 0}}">
<text class="t2">审核中</text>
</block>
<block wx:else>
<text class="t2s">充值失败</text>
</block>
</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>
</block>
</view>
...
...
pages/person/setting/index.js
View file @
3427d691
...
...
@@ -85,24 +85,24 @@ Page({
http
.
getData
(
apis
.
authLogout
,
'POST'
,
null
,
(
res
)
=>
{
if
(
res
.
errcode
===
0
)
{
// wx.switchTab({
// url: '/pages/tab/home/home'
// });
wx
.
reLaunch
({
url
:
'/pages/person/auth/index'
,
});
wx
.
removeStorageSync
(
'access_token'
);
wx
.
removeStorageSync
(
'user_id'
);
wx
.
removeStorageSync
(
'myUsername'
);
wx
.
removeStorageSync
(
'myPassword'
);
wx
.
removeStorageSync
(
'auth'
);
wx
.
reLaunch
({
url
:
'/pages/person/auth/index'
,
});
}
else
{
wx
.
showToast
({
title
:
res
.
errmsg
,
icon
:
'none'
,
duration
:
2000
});
}
},
false
,
true
);
}
else
if
(
res
.
cancel
)
{
...
...
project.config.json
View file @
3427d691
...
...
@@ -114,6 +114,20 @@
"id"
:
-1
,
"name"
:
"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
}
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment