Browse Source

上传代码

master
前端-胡立永 4 months ago
parent
commit
ede484bb5d
2 changed files with 46 additions and 5 deletions
  1. +44
    -5
      pages_mine/mine/withdraw.vue
  2. +2
    -0
      pages_mine/mine/withdrawalRecord.vue

+ 44
- 5
pages_mine/mine/withdraw.vue View File

@ -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>

+ 2
- 0
pages_mine/mine/withdrawalRecord.vue View File

@ -71,9 +71,11 @@
success: (res) => { success: (res) => {
// res.err_msgok // res.err_msgok
console.log('success:', res); console.log('success:', res);
this.getData()
}, },
fail: (res) => { fail: (res) => {
console.log('fail:', res); console.log('fail:', res);
this.getData()
}, },
}); });
}, },


Loading…
Cancel
Save