Commit 2d85702d authored by 刘用法's avatar 刘用法

提现页面文案修改

parent 40f6c11e
......@@ -126,13 +126,13 @@
return ['settlement','statement']
}
},
onLoad() {
// 未登录,先跳转登录
if(!this.vuex_token) {
this.$u.route({url: 'pages/login/index'})
}
this.loadAssets()
this.loadStatement()
onShow() {
// 未登录,先跳转登录
if(!this.vuex_token) {
this.$u.route({url: 'pages/login/index'})
}
this.loadAssets()
this.loadStatement()
},
methods: {
// 提现
......
......@@ -3,15 +3,24 @@
<u-navbar back-icon-color="#333333" background="#F4F5F7" title="提现" titleColor="#333333" :border-bottom="false" title-bold>
</u-navbar>
<view class="withdraw-content">
<view class="withdraw-content-main">
<view class="amount-title">可提现金额</view>
<view class="amount-text"><text class="amount-symbol">¥</text>{{amount}}</view>
<u-button type="primary" shape="circle" :custom-style="buttonStyle" @click="handleClick">全部提现</u-button>
<view v-if="!submit">
<view class="withdraw-content-main">
<view class="amount-title">可提现金额</view>
<view class="amount-text"><text class="amount-symbol">¥</text>{{amount}}</view>
<u-button type="primary" shape="circle" :custom-style="buttonStyle" @click="handleClick">全部提现</u-button>
</view>
<view class="line-view"></view>
<view class="rule-title">提现规则说明</view>
<view class="rule-content">1.提现金额:提现金额是指已完工订单通过平台审核后且达到合同账期的订单费用之总和。</view>
<view class="rule-content">2.提现到账时间具体以银行结果为准</view>
</view>
<view class="line-view"></view>
<view class="rule-title">提现规则说明</view>
<view class="rule-content">1.提现金额:提现金额是指已完工订单通过平台审核后且达到合同账期的订单费用之总和。</view>
<view class="rule-content">2.提现到账时间具体以银行结果为准</view>
<view v-else class="submited-view">
<image class="success-image" :src="imageUrl"></image>
<view>您已提交提现申请</view>
<view class="submited-button">
<u-button type="primary" shape="circle" :custom-style="buttonStyle" @click="handleClickSure">我知道了</u-button>
</view>
</view>
</view>
</view>
</template>
......@@ -20,7 +29,8 @@
export default {
data() {
return {
amount: 0,
amount: 0,
submit: false
}
},
computed: {
......@@ -31,6 +41,9 @@
"font-size": "32rpx",
"font-weight": "bold",
};
},
imageUrl() {
return process.uniEnv.qn_base_url + 'chenggong.png'
},
},
onLoad() {
......@@ -42,7 +55,7 @@
if(self.amount) {
let res = await self.$u.api.workerApplyPay()
if(res && res.code == 200) {
self.$u.route({type: 'redirect', url: 'pages/mine/wallet/index'})
self.submit = true
} else {
self.$u.toast(res.message || '系统异常,提现失败!');
}
......@@ -54,7 +67,10 @@
if(res && res.code == 200) {
self.amount = res.data && res.data.canApplyAmount
}
},
},
handleClickSure() {
this.$u.route({type: 'back'})
}
}
}
</script>
......@@ -110,6 +126,22 @@
color: #666666;
margin-bottom: 20rpx;
line-height: 40rpx;
}
.submited-view {
text-align: center;
color: #2272FF;
font-size: 40rpx;
font-weight: bold;
.success-image {
width: 224rpx;
height: 224rpx;
margin-top: 80rpx;
}
}
.submited-button {
margin-top: 100rpx;
margin-bottom: 100rpx;
}
}
......
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 to comment