|
@@ -20,8 +20,8 @@
|
|
|
<!-- <text class="tit">¥</text> -->
|
|
|
<input class="input" type="number" v-model="withdrawal" placeholder="转入金额"
|
|
|
placeholder-class="placeholder" />
|
|
|
- <view class="buttom" v-if="type == 'yj'" @click="withdrawal = userInfo.brokerage_price*1" >全部转账</view>
|
|
|
- <view class="buttom" v-if="type == 'yue'" @click="withdrawal = userInfo.now_money*1" >全部转账</view>
|
|
|
+ <view class="buttom" v-if="type == 'yj'" @click="withdrawal = userInfo.brokerage_price*1">全部转账</view>
|
|
|
+ <view class="buttom" v-if="type == 'yue'" @click="withdrawal = userInfo.now_money*1">全部转账</view>
|
|
|
<!-- <view class="buttom" @click="withdrawal = userInfo.dynamic_integral" v-if="type== 2">全部转账</view> -->
|
|
|
</view>
|
|
|
</view>
|
|
@@ -104,18 +104,26 @@
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
- if(obj.phone == '') {
|
|
|
+ if (obj.withdrawal *1 < 0) {
|
|
|
+ obj.loding = false;
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '转账金额不要为负数'
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (obj.phone == '') {
|
|
|
return obj.$api.msg('请输入收款人手机号')
|
|
|
}
|
|
|
let data = {
|
|
|
phone: obj.phone, //编号
|
|
|
- price: obj.withdrawal ,//金额
|
|
|
+ price: obj.withdrawal, //金额
|
|
|
// type: obj.type
|
|
|
};
|
|
|
- if(obj.type == 'yj') {
|
|
|
+ if (obj.type == 'yj') {
|
|
|
jfzz(data)
|
|
|
.then(e => {
|
|
|
-
|
|
|
+
|
|
|
// 允许按钮点击
|
|
|
obj.loding = false;
|
|
|
// 初始化提现金额
|
|
@@ -134,10 +142,11 @@
|
|
|
console.log();
|
|
|
});
|
|
|
}
|
|
|
- if(obj.type == 'yue') {
|
|
|
+ if (obj.type == 'yue') {
|
|
|
+
|
|
|
yuezz(data)
|
|
|
.then(e => {
|
|
|
-
|
|
|
+
|
|
|
// 允许按钮点击
|
|
|
obj.loding = false;
|
|
|
// 初始化提现金额
|
|
@@ -155,8 +164,9 @@
|
|
|
obj.loding = false;
|
|
|
console.log();
|
|
|
});
|
|
|
+
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
boblack() {
|
|
|
uni.navigateBack({
|
|
@@ -379,4 +389,4 @@
|
|
|
color: #5771DF;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|