Commit 1d817303 authored by Damon's avatar Damon
parents 6d51fd75 155fde14
;
(function() {
let NODE_ENV = 'test'; // dev:开发环境 | test:测试环境
let NODE_ENV = 'test'; // dev:开发环境 | test:测试环境 | prod:生产环境
let ENV_VAR = null;
if (process.env.NODE_ENV === "development") {
if (NODE_ENV === 'dev') {
......
......@@ -278,7 +278,7 @@ var examJson = {
isComplete: false,
},
{
title: "交付规范",
title: "接单规范",
desc: "快速认证,是否具备接单操作能力",
condition: "随机5题,及格5题",
status: "",
......@@ -304,7 +304,7 @@ var examJson = {
questionTime: null,
},
{
title: "接单操作",
title: "接单规范",
desc: "快速认证,是否具备接单操作能力",
condition: "随机5题,及格5题",
status: "",
......
......@@ -65,7 +65,6 @@
},
refund() {
this.$u.route({
type: 'redirect',
url: "pages/mine/customer/index"
})
},
......
......@@ -126,7 +126,7 @@
return ['settlement','statement']
}
},
onLoad() {
onShow() {
// 未登录,先跳转登录
if(!this.vuex_token) {
this.$u.route({url: 'pages/login/index'})
......
......@@ -3,6 +3,7 @@
<u-navbar back-icon-color="#333333" background="#F4F5F7" title="提现" titleColor="#333333" :border-bottom="false" title-bold>
</u-navbar>
<view class="withdraw-content">
<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>
......@@ -13,6 +14,14 @@
<view class="rule-content">1.提现金额:提现金额是指已完工订单通过平台审核后且达到合同账期的订单费用之总和。</view>
<view class="rule-content">2.提现到账时间具体以银行结果为准</view>
</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>
......@@ -21,6 +30,7 @@
data() {
return {
amount: 0,
submit: false
}
},
computed: {
......@@ -32,6 +42,9 @@
"font-weight": "bold",
};
},
imageUrl() {
return process.uniEnv.qn_base_url + 'chenggong.png'
},
},
onLoad() {
this.loadAssets()
......@@ -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 || '系统异常,提现失败!');
}
......@@ -55,6 +68,9 @@
self.amount = res.data && res.data.canApplyAmount
}
},
handleClickSure() {
this.$u.route({type: 'back'})
}
}
}
</script>
......@@ -111,6 +127,22 @@
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