|
@@ -1,27 +1,27 @@
|
|
<template>
|
|
<template>
|
|
<view :style="colorStyle">
|
|
<view :style="colorStyle">
|
|
<view class='cash-withdrawal'>
|
|
<view class='cash-withdrawal'>
|
|
- <!-- <view class='nav acea-row' v-if="navList.length>1">
|
|
|
|
|
|
+ <view class='nav acea-row' v-if="navList.length>1">
|
|
<view v-for="(item,index) in navList" :key="index" class='item fontcolor' @click="swichNav(item.id)">
|
|
<view v-for="(item,index) in navList" :key="index" class='item fontcolor' @click="swichNav(item.id)">
|
|
<view class='line bg-color' :class='currentTab==item.id ? "on":""'></view>
|
|
<view class='line bg-color' :class='currentTab==item.id ? "on":""'></view>
|
|
<view class='iconfont' :class='item.icon+" "+(currentTab==item.id ? "on":"")'></view>
|
|
<view class='iconfont' :class='item.icon+" "+(currentTab==item.id ? "on":"")'></view>
|
|
<view>{{item.name}}</view>
|
|
<view>{{item.name}}</view>
|
|
</view>
|
|
</view>
|
|
- </view> -->
|
|
|
|
|
|
+ </view>
|
|
<view class='wrapper'>
|
|
<view class='wrapper'>
|
|
<view :hidden='currentTab != 0' class='list'>
|
|
<view :hidden='currentTab != 0' class='list'>
|
|
<form @submit="subCash">
|
|
<form @submit="subCash">
|
|
- <!-- <view class='item acea-row row-between-wrapper'>
|
|
|
|
|
|
+ <view class='item acea-row row-between-wrapper'>
|
|
<view class='name'>持卡人</view>
|
|
<view class='name'>持卡人</view>
|
|
<view class='input'><input placeholder='请输入持卡人姓名' placeholder-class='placeholder'
|
|
<view class='input'><input placeholder='请输入持卡人姓名' placeholder-class='placeholder'
|
|
name="name" onKeypress="javascript:if(event.keyCode == 32)event.returnValue = false;"></input></view>
|
|
name="name" onKeypress="javascript:if(event.keyCode == 32)event.returnValue = false;"></input></view>
|
|
- </view> -->
|
|
|
|
- <!-- <view class='item acea-row row-between-wrapper'>
|
|
|
|
|
|
+ </view>
|
|
|
|
+ <view class='item acea-row row-between-wrapper'>
|
|
<view class='name'>卡号</view>
|
|
<view class='name'>卡号</view>
|
|
<view class='input'><input type='number' placeholder='请填写卡号' placeholder-class='placeholder'
|
|
<view class='input'><input type='number' placeholder='请填写卡号' placeholder-class='placeholder'
|
|
name="cardnum"></input></view>
|
|
name="cardnum"></input></view>
|
|
- </view> -->
|
|
|
|
- <!-- <view class='item acea-row row-between-wrapper'>
|
|
|
|
|
|
+ </view>
|
|
|
|
+ <view class='item acea-row row-between-wrapper'>
|
|
<view class='name'>银行</view>
|
|
<view class='name'>银行</view>
|
|
<view class='input'>
|
|
<view class='input'>
|
|
<picker @change="bindPickerChange" :value="index" :range="array">
|
|
<picker @change="bindPickerChange" :value="index" :range="array">
|
|
@@ -29,20 +29,32 @@
|
|
<text class='iconfont icon-qiepian38'></text>
|
|
<text class='iconfont icon-qiepian38'></text>
|
|
</picker>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
- </view> -->
|
|
|
|
|
|
+ </view>
|
|
|
|
+ <view class='item acea-row row-top row-between'>
|
|
|
|
+ <view class='name'>凭证</view>
|
|
|
|
+ <view class="input acea-row">
|
|
|
|
+ <view class="picEwm" v-if="qrcodeUrPZ">
|
|
|
|
+ <image :src="qrcodeUrPZ"></image>
|
|
|
|
+ <text class='iconfont icon-guanbi1 fontcolor' @click='DelPicP'></text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class='pictrue acea-row row-center-wrapper row-column' @click='uploadpic("Z")'
|
|
|
|
+ v-else>
|
|
|
|
+ <text class='iconfont icon-icon25201'></text>
|
|
|
|
+ <view>上传图片</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
<view class='item acea-row row-between-wrapper'>
|
|
<view class='item acea-row row-between-wrapper'>
|
|
<view class='name'>提现</view>
|
|
<view class='name'>提现</view>
|
|
- <view class='input'><input @input='inputNum' :maxlength="moneyMaxLeng"
|
|
|
|
- :placeholder='"最低提现金额:¥"+minPrice' placeholder-class='placeholder' name="money"
|
|
|
|
- type='digit'></input></view>
|
|
|
|
|
|
+ <view class='input'><input @input='inputNum' :maxlength="moneyMaxLeng" :placeholder='"最低提现金额:¥"+minPrice' placeholder-class='placeholder'
|
|
|
|
+ name="money" type='digit'></input></view>
|
|
</view>
|
|
</view>
|
|
<view class='tip'>
|
|
<view class='tip'>
|
|
当前可提现金额: <text
|
|
当前可提现金额: <text
|
|
class="price">¥{{userInfo.commissionCount}}</text>,冻结佣金:¥{{userInfo.broken_commission}}
|
|
class="price">¥{{userInfo.commissionCount}}</text>,冻结佣金:¥{{userInfo.broken_commission}}
|
|
</view>
|
|
</view>
|
|
<view class='tip'>
|
|
<view class='tip'>
|
|
- 提现手续费: <text class="price">{{withdraw_fee}}%</text>,实际到账:<text
|
|
|
|
- class="price">¥{{true_money}}</text>
|
|
|
|
|
|
+ 提现手续费: <text class="price">¥{{withdraw_fee}}</text>,实际到账:<text class="price">¥{{true_money}}</text>
|
|
</view>
|
|
</view>
|
|
<view class='tip'>
|
|
<view class='tip'>
|
|
说明: 每笔佣金的冻结期为{{userInfo.broken_day}}天,到期后可提现
|
|
说明: 每笔佣金的冻结期为{{userInfo.broken_day}}天,到期后可提现
|
|
@@ -55,15 +67,12 @@
|
|
<view class='item acea-row row-between-wrapper' v-if="extract_wechat_type == 0">
|
|
<view class='item acea-row row-between-wrapper' v-if="extract_wechat_type == 0">
|
|
<view class='name'>账号</view>
|
|
<view class='name'>账号</view>
|
|
<view class='input'><input placeholder='请填写您的微信账号' placeholder-class='placeholder'
|
|
<view class='input'><input placeholder='请填写您的微信账号' placeholder-class='placeholder'
|
|
- name="name"
|
|
|
|
- onKeypress="javascript:if(event.keyCode == 32)event.returnValue = false;"></input>
|
|
|
|
- </view>
|
|
|
|
|
|
+ name="name" onKeypress="javascript:if(event.keyCode == 32)event.returnValue = false;"></input></view>
|
|
</view>
|
|
</view>
|
|
<view class='item acea-row row-between-wrapper'>
|
|
<view class='item acea-row row-between-wrapper'>
|
|
<view class='name'>提现</view>
|
|
<view class='name'>提现</view>
|
|
- <view class='input'><input @input='inputNum' :maxlength="moneyMaxLeng"
|
|
|
|
- :placeholder='"最低提现金额:¥"+minPrice' placeholder-class='placeholder' name="money"
|
|
|
|
- type='digit'></input></view>
|
|
|
|
|
|
+ <view class='input'><input @input='inputNum' :maxlength="moneyMaxLeng" :placeholder='"最低提现金额:¥"+minPrice' placeholder-class='placeholder'
|
|
|
|
+ name="money" type='digit'></input></view>
|
|
</view>
|
|
</view>
|
|
<view class='item acea-row row-top row-between' v-if="extract_wechat_type == 0">
|
|
<view class='item acea-row row-top row-between' v-if="extract_wechat_type == 0">
|
|
<view class='name'>收款码</view>
|
|
<view class='name'>收款码</view>
|
|
@@ -84,8 +93,7 @@
|
|
class="price">¥{{userInfo.commissionCount}}</text>,冻结佣金:¥{{userInfo.broken_commission}}
|
|
class="price">¥{{userInfo.commissionCount}}</text>,冻结佣金:¥{{userInfo.broken_commission}}
|
|
</view>
|
|
</view>
|
|
<view class='tip'>
|
|
<view class='tip'>
|
|
- 提现手续费: <text class="price">{{withdraw_fee}}%</text>,实际到账:<text
|
|
|
|
- class="price">¥{{true_money}}</text>
|
|
|
|
|
|
+ 提现手续费: <text class="price">¥{{withdraw_fee}}</text>,实际到账:<text class="price">¥{{true_money}}</text>
|
|
</view>
|
|
</view>
|
|
<view class='tip'>
|
|
<view class='tip'>
|
|
说明: 每笔佣金的冻结期为{{userInfo.broken_day}}天,到期后可提现
|
|
说明: 每笔佣金的冻结期为{{userInfo.broken_day}}天,到期后可提现
|
|
@@ -98,15 +106,12 @@
|
|
<view class='item acea-row row-between-wrapper'>
|
|
<view class='item acea-row row-between-wrapper'>
|
|
<view class='name'>账号</view>
|
|
<view class='name'>账号</view>
|
|
<view class='input'><input placeholder='请填写您的支付宝账号' placeholder-class='placeholder'
|
|
<view class='input'><input placeholder='请填写您的支付宝账号' placeholder-class='placeholder'
|
|
- name="name"
|
|
|
|
- onKeypress="javascript:if(event.keyCode == 32)event.returnValue = false;"></input>
|
|
|
|
- </view>
|
|
|
|
|
|
+ name="name" onKeypress="javascript:if(event.keyCode == 32)event.returnValue = false;"></input></view>
|
|
</view>
|
|
</view>
|
|
<view class='item acea-row row-between-wrapper'>
|
|
<view class='item acea-row row-between-wrapper'>
|
|
<view class='name'>提现</view>
|
|
<view class='name'>提现</view>
|
|
- <view class='input'><input @input='inputNum' :maxlength="moneyMaxLeng"
|
|
|
|
- :placeholder='"最低提现金额:¥"+minPrice' placeholder-class='placeholder' name="money"
|
|
|
|
- type='digit'></input></view>
|
|
|
|
|
|
+ <view class='input'><input @input='inputNum' :maxlength="moneyMaxLeng" :placeholder='"最低提现金额:¥"+minPrice' placeholder-class='placeholder'
|
|
|
|
+ name="money" type='digit'></input></view>
|
|
</view>
|
|
</view>
|
|
<view class='item acea-row row-top row-between'>
|
|
<view class='item acea-row row-top row-between'>
|
|
<view class='name'>收款码</view>
|
|
<view class='name'>收款码</view>
|
|
@@ -127,8 +132,7 @@
|
|
class="price">¥{{userInfo.commissionCount}}</text>,冻结佣金:¥{{userInfo.broken_commission}}
|
|
class="price">¥{{userInfo.commissionCount}}</text>,冻结佣金:¥{{userInfo.broken_commission}}
|
|
</view>
|
|
</view>
|
|
<view class='tip'>
|
|
<view class='tip'>
|
|
- 提现手续费: <text class="price">{{withdraw_fee}}%</text>,实际到账:<text
|
|
|
|
- class="price">¥{{true_money}}</text>
|
|
|
|
|
|
+ 提现手续费: <text class="price">¥{{withdraw_fee}}</text>,实际到账:<text class="price">¥{{true_money}}</text>
|
|
</view>
|
|
</view>
|
|
<view class='tip'>
|
|
<view class='tip'>
|
|
说明: 每笔佣金的冻结期为{{userInfo.broken_day}}天,到期后可提现
|
|
说明: 每笔佣金的冻结期为{{userInfo.broken_day}}天,到期后可提现
|
|
@@ -145,9 +149,6 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
- import {
|
|
|
|
- bank_info
|
|
|
|
- } from '@/api/new.js';
|
|
|
|
import {
|
|
import {
|
|
extractCash,
|
|
extractCash,
|
|
extractBank,
|
|
extractBank,
|
|
@@ -156,13 +157,18 @@
|
|
import {
|
|
import {
|
|
toLogin
|
|
toLogin
|
|
} from '@/libs/login.js';
|
|
} from '@/libs/login.js';
|
|
|
|
+
|
|
|
|
+ import {
|
|
|
|
+ calculator,
|
|
|
|
+ } from '@/api/new.js';
|
|
|
|
+
|
|
import {
|
|
import {
|
|
mapGetters
|
|
mapGetters
|
|
} from "vuex";
|
|
} from "vuex";
|
|
import colors from '@/mixins/color.js';
|
|
import colors from '@/mixins/color.js';
|
|
export default {
|
|
export default {
|
|
components: {},
|
|
components: {},
|
|
- mixins: [colors],
|
|
|
|
|
|
+ mixins:[colors],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
navList: [],
|
|
navList: [],
|
|
@@ -176,12 +182,12 @@
|
|
isShowAuth: false, //是否隐藏授权
|
|
isShowAuth: false, //是否隐藏授权
|
|
qrcodeUrlW: "",
|
|
qrcodeUrlW: "",
|
|
qrcodeUrlZ: "",
|
|
qrcodeUrlZ: "",
|
|
|
|
+ qrcodeUrPZ: "",
|
|
prevent: true, //避免重复提交成功多次
|
|
prevent: true, //避免重复提交成功多次
|
|
moneyMaxLeng: 8,
|
|
moneyMaxLeng: 8,
|
|
withdraw_fee: '0',
|
|
withdraw_fee: '0',
|
|
true_money: 0,
|
|
true_money: 0,
|
|
- extract_wechat_type: 0,
|
|
|
|
- isAuth: false, //判断是否认证
|
|
|
|
|
|
+ extract_wechat_type:0
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: mapGetters(['isLogin']),
|
|
computed: mapGetters(['isLogin']),
|
|
@@ -205,47 +211,21 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
- if (this.isLogin) {
|
|
|
|
- this.bank_info();
|
|
|
|
- }
|
|
|
|
uni.removeStorageSync('form_type_cart');
|
|
uni.removeStorageSync('form_type_cart');
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- bank_info() {
|
|
|
|
- const that = this;
|
|
|
|
- bank_info().then((res) => {
|
|
|
|
- if (!res.data.bank_code) {
|
|
|
|
- that.isAuth = false;
|
|
|
|
- uni.showModal({
|
|
|
|
- title: '提示',
|
|
|
|
- content: '您还未认证请立即认证',
|
|
|
|
- confirmText: '立即认证',
|
|
|
|
- success: res => {
|
|
|
|
- if (res.confirm) {
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: './WAuth'
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- fail: () => {},
|
|
|
|
- complete: () => {}
|
|
|
|
- });
|
|
|
|
- return
|
|
|
|
- } else {
|
|
|
|
- that.isAuth = true;
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- inputNum: function(e) {
|
|
|
|
|
|
+ inputNum: async function(e) {
|
|
let val = e.detail.value;
|
|
let val = e.detail.value;
|
|
let dot = val.indexOf('.');
|
|
let dot = val.indexOf('.');
|
|
- if (dot > -1) {
|
|
|
|
- this.moneyMaxLeng = dot + 3;
|
|
|
|
- } else {
|
|
|
|
|
|
+ if(dot>-1){
|
|
|
|
+ this.moneyMaxLeng = dot+3;
|
|
|
|
+ }else{
|
|
this.moneyMaxLeng = 8
|
|
this.moneyMaxLeng = 8
|
|
}
|
|
}
|
|
- this.true_money = Math.floor((this.$util.$h.Mul(val, this.$util.$h.Div(this.$util.$h.Sub(100, this
|
|
|
|
- .withdraw_fee), 100))) * 100) / 100 || 0;
|
|
|
|
|
|
+
|
|
|
|
+ let money = await calculator({money:val});
|
|
|
|
+ this.withdraw_fee = money.data.fee;
|
|
|
|
+ this.true_money = val - this.withdraw_fee;
|
|
},
|
|
},
|
|
// uploadpicW(){
|
|
// uploadpicW(){
|
|
// this.uploadpic(this.qrcodeUrlW);
|
|
// this.uploadpic(this.qrcodeUrlW);
|
|
@@ -262,8 +242,10 @@
|
|
that.$util.uploadImageOne('upload/image', function(res) {
|
|
that.$util.uploadImageOne('upload/image', function(res) {
|
|
if (type === 'W') {
|
|
if (type === 'W') {
|
|
that.qrcodeUrlW = res.data.url;
|
|
that.qrcodeUrlW = res.data.url;
|
|
- } else {
|
|
|
|
|
|
+ } else if(type=="Z"){
|
|
that.qrcodeUrlZ = res.data.url;
|
|
that.qrcodeUrlZ = res.data.url;
|
|
|
|
+ }else if(type=="P"){
|
|
|
|
+ that.qrcodeUrPZ = res.data.url;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -277,6 +259,9 @@
|
|
DelPicZ: function() {
|
|
DelPicZ: function() {
|
|
this.qrcodeUrlZ = "";
|
|
this.qrcodeUrlZ = "";
|
|
},
|
|
},
|
|
|
|
+ DelPicP: function() {
|
|
|
|
+ this.qrcodeUrPZ = "";
|
|
|
|
+ },
|
|
onLoadFun: function() {
|
|
onLoadFun: function() {
|
|
this.getUserInfo();
|
|
this.getUserInfo();
|
|
this.getUserExtractBank();
|
|
this.getUserExtractBank();
|
|
@@ -293,7 +278,6 @@
|
|
array.unshift("请选择银行");
|
|
array.unshift("请选择银行");
|
|
that.$set(that, 'array', array);
|
|
that.$set(that, 'array', array);
|
|
that.minPrice = res.data.minPrice;
|
|
that.minPrice = res.data.minPrice;
|
|
- that.withdraw_fee = res.data.withdraw_fee;
|
|
|
|
that.extract_wechat_type = res.data.extract_wechat_type;
|
|
that.extract_wechat_type = res.data.extract_wechat_type;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -304,26 +288,32 @@
|
|
let that = this;
|
|
let that = this;
|
|
getUserInfo().then(res => {
|
|
getUserInfo().then(res => {
|
|
that.userInfo = res.data;
|
|
that.userInfo = res.data;
|
|
- if (res.data.user_extract_bank_status) {
|
|
|
|
- this.navList.push({
|
|
|
|
- 'name': '银行卡',
|
|
|
|
- 'icon': 'icon-yinhangqia',
|
|
|
|
- 'id': 0
|
|
|
|
- })
|
|
|
|
|
|
+ if(res.data.user_extract_bank_status){
|
|
|
|
+ this.navList.push(
|
|
|
|
+ {
|
|
|
|
+ 'name': '银行卡',
|
|
|
|
+ 'icon': 'icon-yinhangqia',
|
|
|
|
+ 'id': 0
|
|
|
|
+ }
|
|
|
|
+ )
|
|
}
|
|
}
|
|
- if (res.data.user_extract_wechat_status) {
|
|
|
|
- this.navList.push({
|
|
|
|
- 'name': '微信',
|
|
|
|
- 'icon': 'icon-weixin2',
|
|
|
|
- 'id': 1
|
|
|
|
- })
|
|
|
|
|
|
+ if(res.data.user_extract_wechat_status){
|
|
|
|
+ this.navList.push(
|
|
|
|
+ {
|
|
|
|
+ 'name': '微信',
|
|
|
|
+ 'icon': 'icon-weixin2',
|
|
|
|
+ 'id': 1
|
|
|
|
+ }
|
|
|
|
+ )
|
|
}
|
|
}
|
|
- if (res.data.user_extract_alipay_status) {
|
|
|
|
- this.navList.push({
|
|
|
|
- 'name': '支付宝',
|
|
|
|
- 'icon': 'icon-icon34',
|
|
|
|
- 'id': 2
|
|
|
|
- })
|
|
|
|
|
|
+ if(res.data.user_extract_alipay_status){
|
|
|
|
+ this.navList.push(
|
|
|
|
+ {
|
|
|
|
+ 'name': '支付宝',
|
|
|
|
+ 'icon': 'icon-icon34',
|
|
|
|
+ 'id': 2
|
|
|
|
+ }
|
|
|
|
+ )
|
|
}
|
|
}
|
|
this.currentTab = this.navList[0].id;
|
|
this.currentTab = this.navList[0].id;
|
|
})
|
|
})
|
|
@@ -337,58 +327,50 @@
|
|
subCash: function(e) {
|
|
subCash: function(e) {
|
|
let that = this,
|
|
let that = this,
|
|
value = e.detail.value;
|
|
value = e.detail.value;
|
|
- if (!this.isAuth) {
|
|
|
|
- uni.showModal({
|
|
|
|
- title: '提示',
|
|
|
|
- content: '您还未认证请立即认证',
|
|
|
|
- confirmText: '立即认证',
|
|
|
|
- success: res => {
|
|
|
|
- if (res.confirm) {
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: './WAuth'
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- fail: () => {},
|
|
|
|
- complete: () => {}
|
|
|
|
|
|
+
|
|
|
|
+ if(!that.qrcodeUrPZ){
|
|
|
|
+ this.$util.Tips({
|
|
|
|
+ title: '请上传凭证'
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ value.image = that.qrcodeUrPZ;
|
|
|
|
+
|
|
|
|
+ if (that.currentTab == 0) { //银行卡
|
|
|
|
+ if (value.name.length == 0) return this.$util.Tips({
|
|
|
|
+ title: '请填写持卡人姓名'
|
|
|
|
+ });
|
|
|
|
+ if (value.cardnum.length == 0) return this.$util.Tips({
|
|
|
|
+ title: '请填写卡号'
|
|
|
|
+ });
|
|
|
|
+ if (that.index == 0) return this.$util.Tips({
|
|
|
|
+ title: "请选择银行"
|
|
|
|
+ });
|
|
|
|
+ value.extract_type = 'bank';
|
|
|
|
+ value.bankname = that.array[that.index];
|
|
|
|
+ } else if (that.currentTab == 1) { //微信
|
|
|
|
+ value.extract_type = 'weixin';
|
|
|
|
+ if(that.extract_wechat_type == 0){
|
|
|
|
+ if (value.name.length == 0) return this.$util.Tips({
|
|
|
|
+ title: '请填写微信号'
|
|
|
|
+ });
|
|
|
|
+ if (that.qrcodeUrlW == '') return this.$util.Tips({
|
|
|
|
+ title: '请上传图片'
|
|
});
|
|
});
|
|
- return
|
|
|
|
|
|
+ value.weixin = value.name;
|
|
|
|
+ value.qrcode_url = that.qrcodeUrlW;
|
|
}
|
|
}
|
|
- // if (that.currentTab == 0) { //银行卡
|
|
|
|
- // if (value.name.length == 0) return this.$util.Tips({
|
|
|
|
- // title: '请填写持卡人姓名'
|
|
|
|
- // });
|
|
|
|
- // if (value.cardnum.length == 0) return this.$util.Tips({
|
|
|
|
- // title: '请填写卡号'
|
|
|
|
- // });
|
|
|
|
- // if (that.index == 0) return this.$util.Tips({
|
|
|
|
- // title: "请选择银行"
|
|
|
|
- // });
|
|
|
|
- // value.extract_type = 'bank';
|
|
|
|
- // value.bankname = that.array[that.index];
|
|
|
|
- // } else if (that.currentTab == 1) { //微信
|
|
|
|
- // value.extract_type = 'weixin';
|
|
|
|
- // if (that.extract_wechat_type == 0) {
|
|
|
|
- // if (value.name.length == 0) return this.$util.Tips({
|
|
|
|
- // title: '请填写微信号'
|
|
|
|
- // });
|
|
|
|
- // if (that.qrcodeUrlW == '') return this.$util.Tips({
|
|
|
|
- // title: '请上传图片'
|
|
|
|
- // });
|
|
|
|
- // value.weixin = value.name;
|
|
|
|
- // value.qrcode_url = that.qrcodeUrlW;
|
|
|
|
- // }
|
|
|
|
- // } else if (that.currentTab == 2) { //支付宝
|
|
|
|
- // value.extract_type = 'alipay';
|
|
|
|
- // if (value.name.length == 0) return this.$util.Tips({
|
|
|
|
- // title: '请填写账号'
|
|
|
|
- // });
|
|
|
|
- // if (that.qrcodeUrlZ == '') return this.$util.Tips({
|
|
|
|
- // title: '请上传图片'
|
|
|
|
- // });
|
|
|
|
- // value.alipay_code = value.name;
|
|
|
|
- // value.qrcode_url = that.qrcodeUrlZ;
|
|
|
|
- // }
|
|
|
|
|
|
+ } else if (that.currentTab == 2) { //支付宝
|
|
|
|
+ value.extract_type = 'alipay';
|
|
|
|
+ if (value.name.length == 0) return this.$util.Tips({
|
|
|
|
+ title: '请填写账号'
|
|
|
|
+ });
|
|
|
|
+ if (that.qrcodeUrlZ == '') return this.$util.Tips({
|
|
|
|
+ title: '请上传图片'
|
|
|
|
+ });
|
|
|
|
+ value.alipay_code = value.name;
|
|
|
|
+ value.qrcode_url = that.qrcodeUrlZ;
|
|
|
|
+ }
|
|
if (value.money.length == 0) return this.$util.Tips({
|
|
if (value.money.length == 0) return this.$util.Tips({
|
|
title: '请填写提现金额'
|
|
title: '请填写提现金额'
|
|
});
|
|
});
|
|
@@ -400,10 +382,6 @@
|
|
} else {
|
|
} else {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- uni.showLoading({
|
|
|
|
- title:'提交中',
|
|
|
|
- mask:true
|
|
|
|
- })
|
|
|
|
extractCash(value).then(res => {
|
|
extractCash(value).then(res => {
|
|
//that.getUserInfo();
|
|
//that.getUserInfo();
|
|
return this.$util.Tips({
|
|
return this.$util.Tips({
|
|
@@ -430,11 +408,9 @@
|
|
page {
|
|
page {
|
|
background-color: #fff !important;
|
|
background-color: #fff !important;
|
|
}
|
|
}
|
|
-
|
|
|
|
- .fontcolor {
|
|
|
|
|
|
+ .fontcolor{
|
|
color: var(--view-theme) !important;
|
|
color: var(--view-theme) !important;
|
|
}
|
|
}
|
|
-
|
|
|
|
.cash-withdrawal .nav {
|
|
.cash-withdrawal .nav {
|
|
height: 130rpx;
|
|
height: 130rpx;
|
|
box-shadow: 0 10rpx 10rpx #f8f8f8;
|
|
box-shadow: 0 10rpx 10rpx #f8f8f8;
|
|
@@ -583,4 +559,4 @@
|
|
.price {
|
|
.price {
|
|
color: var(--view-priceColor);
|
|
color: var(--view-priceColor);
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
|
|
+</style>
|