You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
2.1 KiB
100 lines
2.1 KiB
<template>
|
|
<view>
|
|
<uni-card title="提现" >
|
|
<view class="zhifubao">
|
|
<view>提现至支付宝账号:</view>
|
|
<view>
|
|
1313154664
|
|
</view>
|
|
</view>
|
|
<view class="input-flex">
|
|
<u-icon name="rmb" color="#999999" size="28"></u-icon>
|
|
<uni-easyinput type="digit" :clearable="false" v-model="balance" focus placeholder="请输入提现额度"></uni-easyinput>
|
|
</view>
|
|
<view class="yue-box">
|
|
<view class="yue">
|
|
可提现余额:
|
|
<text>{{canBalance}}</text>
|
|
</view>
|
|
<view class="quanbu" @click="onQuanbuClick">
|
|
全部提现
|
|
</view>
|
|
</view>
|
|
<view>
|
|
<u-button type="primary" :disabled="canSave" shape="circle" @click="onSubmit">提现</u-button>
|
|
</view>
|
|
</uni-card>
|
|
</view>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
name: "withdrawal",
|
|
onLoad(options) {
|
|
this.canBalance = options.balance
|
|
},
|
|
data() {
|
|
return {
|
|
balance:'',
|
|
canBalance:''
|
|
}
|
|
},
|
|
computed:{
|
|
canSave() {
|
|
if (!this.balance) return true
|
|
if (+this.balance > +this.canBalance) return true
|
|
return false
|
|
}
|
|
},
|
|
methods:{
|
|
onQuanbuClick() {
|
|
this.balance = this.canBalance
|
|
},
|
|
onSubmit() {
|
|
this.tui.request('/app/returnCommission/save', 'post', {
|
|
shopId:'002',
|
|
commission:200,
|
|
status:0
|
|
}, false, false, true).then((res) => {
|
|
if (res.code !== 200) return
|
|
uni.showToast({
|
|
title:'提交审核成功!',
|
|
icon:'none',
|
|
duration:2000,
|
|
complete() {
|
|
setTimeout(() => {
|
|
uni.reLaunch({
|
|
url:`/pages/rebate/rebate`
|
|
})
|
|
},2000)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
.zhifubao {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin: 50upx 0;
|
|
}
|
|
.input-flex {
|
|
display: flex;
|
|
margin: 50upx 0;
|
|
}
|
|
.yue-box {
|
|
display:flex;
|
|
font-size: 24upx;
|
|
.yue {
|
|
color: #c26f59;
|
|
margin-right: 20upx;
|
|
margin-bottom: 50upx;
|
|
}
|
|
.quanbu {
|
|
color: #657284;
|
|
}
|
|
}
|
|
</style>
|
|
|