Skip to content

Commit 408b431

Browse files
committed
增加用户资产、绑卡、提现流程
1 parent a26f914 commit 408b431

13 files changed

Lines changed: 796 additions & 158 deletions

File tree

App.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
globalData: {
66
h5Domain: 'https://flpt.jxsupplier.com',
77
goLogin: false,
8-
subDomain: 'jdjf0115',
9-
merchantId: '42151',
8+
subDomain: 'tz', // jdjf0115
9+
merchantId: '951', // 42151
1010
version: '0.0.2',
11-
sysconfigkeys: 'mallName,shopMod,share_profile'
11+
sysconfigkeys: 'mallName,shopMod,share_profile,recharge_amount_min'
1212
},
1313
onLaunch: function() {
1414
// https://www.yuque.com/apifm/nu0f75/cdqz1n
@@ -211,4 +211,7 @@
211211
.pt16 {
212212
padding-top: 16rpx !important;
213213
}
214+
.submit-btn {
215+
padding: 32rpx;
216+
}
214217
</style>

components/city-select/city-select.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@
177177
})
178178
})
179179
}
180-
console.log(this.areaCode);
181180
if(this.level == 3) {
182181
if (this.areaCode.length == 3) {
183182
await this.setProvince("", this.areaCode[0]);

pages.json

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,43 @@
116116
}
117117
},
118118
{
119-
"path" : "pages/my/balance",
119+
"path" : "pages/asset/balance",
120120
"style": {
121121
"navigationBarTitleText": "我的资产"
122122
}
123123
},
124+
{
125+
"path" : "pages/asset/cashlog",
126+
"style": {
127+
"navigationBarTitleText": "资金明细",
128+
"enablePullDownRefresh": true
129+
}
130+
},
131+
{
132+
"path" : "pages/asset/recharge",
133+
"style": {
134+
"navigationBarTitleText": "在线充值"
135+
}
136+
},
137+
{
138+
"path" : "pages/asset/bindCard",
139+
"style": {
140+
"navigationBarTitleText": "绑定提现银行卡"
141+
}
142+
},
143+
{
144+
"path" : "pages/asset/widthdraw",
145+
"style": {
146+
"navigationBarTitleText": "申请提现"
147+
}
148+
},
149+
{
150+
"path" : "pages/asset/withdrawlog",
151+
"style": {
152+
"navigationBarTitleText": "提现记录",
153+
"enablePullDownRefresh": true
154+
}
155+
},
124156
{
125157
"path" : "pages/score/index",
126158
"style": {

pages/address/addSite.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ export default {
7676
this.$refs.uForm.setRules(this.rules);
7777
},
7878
onLoad(e) {
79-
console.log(e);
8079
if(e.id) {
8180
this._addressDetail(e.id)
8281
}

pages/asset/balance.vue

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
<template>
2+
<view>
3+
<view class="asset">
4+
<view class='item'>
5+
<view>可用余额(元)</view>
6+
<view class="amount">{{balance}}</view>
7+
</view>
8+
<view class='item'>
9+
<view>冻结金额(元)</view>
10+
<view class="amount">{{freeze}}</view>
11+
</view>
12+
<view class='item right'>
13+
<view>累计消费(元)</view>
14+
<view class="amount">{{totleConsumed}}</view>
15+
</view>
16+
</view>
17+
<u-cell title="我要充值" isLink url="/pages/asset/recharge"></u-cell>
18+
<u-cell title="绑定银行卡" isLink url="/pages/asset/bindCard"></u-cell>
19+
<u-cell title="资金明细" isLink url="/pages/asset/cashlog"></u-cell>
20+
<u-cell title="我要提现" isLink url="/pages/asset/widthdraw"></u-cell>
21+
<u-cell title="提现记录" isLink url="/pages/asset/withdrawlog"></u-cell>
22+
</view>
23+
</template>
24+
25+
<script>
26+
export default {
27+
data() {
28+
return {
29+
balance: 0.00,
30+
freeze: 0.00,
31+
score: 0,
32+
score_sign_continuous: 0.00,
33+
tabs: [{
34+
name: '押金记录'
35+
},
36+
],
37+
current: 0,
38+
}
39+
},
40+
created() {
41+
42+
},
43+
mounted() {
44+
45+
},
46+
onReady() {
47+
48+
},
49+
onLoad(e) {
50+
this._userAmount()
51+
},
52+
onShow() {
53+
54+
},
55+
methods: {
56+
async _userAmount() {
57+
// https://www.yuque.com/apifm/nu0f75/wrqkcb
58+
const res = await this.$wxapi.userAmount(this.token)
59+
if (res.code == 0) {
60+
this.balance = res.data.balance.toFixed(2),
61+
this.freeze = res.data.freeze.toFixed(2),
62+
this.totleConsumed = res.data.totleConsumed.toFixed(2),
63+
this.score = res.data.score
64+
}
65+
},
66+
}
67+
}
68+
</script>
69+
<style scoped lang="scss">
70+
.asset {
71+
display: flex;
72+
padding-top: 50rpx;
73+
height: 150rpx;
74+
}
75+
76+
.asset .item {
77+
display: flex;
78+
flex-direction: column;
79+
width: 250rpx;
80+
text-align: center;
81+
font-size: 14px;
82+
line-height: 30px;
83+
.amount {
84+
color: #e64340;
85+
font-size: 36rpx;
86+
}
87+
}
88+
</style>

0 commit comments

Comments
 (0)