|
@ -21,13 +21,28 @@ |
|
|
<view class="left">填写提现金额</view> |
|
|
<view class="left">填写提现金额</view> |
|
|
<view class="centerAndRight"> |
|
|
<view class="centerAndRight"> |
|
|
<view class="center"> |
|
|
<view class="center"> |
|
|
<uv-input placeholder="输入金额" v-model="withdrawMoney" type="number" border="none"></uv-input> |
|
|
|
|
|
|
|
|
<uv-input placeholder="输入金额" v-model="withdrawMoney" type="digit" border="none"></uv-input> |
|
|
</view> |
|
|
</view> |
|
|
<view class="right" @click="withdrawMoney = money.money">全部提现</view> |
|
|
<view class="right" @click="withdrawMoney = money.money">全部提现</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<view class="inputComponent"> |
|
|
|
|
|
<view class="left">请输入真实姓名</view> |
|
|
|
|
|
<view class="centerAndRight"> |
|
|
|
|
|
<view class="center"> |
|
|
|
|
|
<uv-input placeholder="请输入真实姓名" v-model="name" border="none"></uv-input> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="tips"> |
|
|
|
|
|
温馨提示:真实姓名将影响到提现是否成功,请认真对待 |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<span class="income-record" |
|
|
|
|
|
style="bottom: 220rpx;" |
|
|
|
|
|
@click="$utils.navigateTo('/pages_mine/mine/withdrawalRecord')">提现记录</span> |
|
|
|
|
|
|
|
|
<!--提现按钮--> |
|
|
<!--提现按钮--> |
|
|
<button @click="withdrawPage" class="bottomBtn"> |
|
|
<button @click="withdrawPage" class="bottomBtn"> |
|
@ -44,6 +59,7 @@ |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
withdrawMoney: "", |
|
|
withdrawMoney: "", |
|
|
|
|
|
name: "", |
|
|
money: {}, |
|
|
money: {}, |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
@ -62,9 +78,17 @@ |
|
|
|
|
|
|
|
|
// 提现 |
|
|
// 提现 |
|
|
withdrawPage() { |
|
|
withdrawPage() { |
|
|
this.$api('infoWithdraw', { |
|
|
|
|
|
money: this.withdrawMoney |
|
|
|
|
|
}, res => { |
|
|
|
|
|
|
|
|
let data = { |
|
|
|
|
|
money: this.withdrawMoney, |
|
|
|
|
|
name : this.name, |
|
|
|
|
|
} |
|
|
|
|
|
if(this.$utils.verificationAll(data, { |
|
|
|
|
|
money : '填写提现金额',// |
|
|
|
|
|
name : '请输入真实姓名',// |
|
|
|
|
|
})){ |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
this.$api('infoWithdraw', data, res => { |
|
|
if (res.code == 200) { |
|
|
if (res.code == 200) { |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url: '/pages_mine/mine/withdrawalRecord' |
|
|
url: '/pages_mine/mine/withdrawalRecord' |
|
@ -80,6 +104,10 @@ |
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
.withdraw { |
|
|
.withdraw { |
|
|
|
|
|
.tips{ |
|
|
|
|
|
color: #777; |
|
|
|
|
|
font-size: 28rpx; |
|
|
|
|
|
} |
|
|
.content { |
|
|
.content { |
|
|
.content-top { |
|
|
.content-top { |
|
|
display: flex; |
|
|
display: flex; |
|
@ -119,7 +147,7 @@ |
|
|
|
|
|
|
|
|
.inputComponent { |
|
|
.inputComponent { |
|
|
display: flex; |
|
|
display: flex; |
|
|
|
|
|
|
|
|
|
|
|
margin-bottom: 40rpx; |
|
|
//gap: 20rpx; |
|
|
//gap: 20rpx; |
|
|
//border: 1px solid red; |
|
|
//border: 1px solid red; |
|
|
|
|
|
|
|
@ -164,6 +192,17 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
.income-record { |
|
|
|
|
|
position: fixed; |
|
|
|
|
|
bottom: 160rpx; |
|
|
|
|
|
right: 40%; |
|
|
|
|
|
margin-bottom: 40rpx; |
|
|
|
|
|
background: $uni-linear-gradient-color; |
|
|
|
|
|
-webkit-background-clip: text; |
|
|
|
|
|
/*将设置的背景颜色限制在文字中*/ |
|
|
|
|
|
-webkit-text-fill-color: transparent; |
|
|
|
|
|
/*给文字设置成透明*/ |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |