|
@@ -14,7 +14,9 @@
|
|
|
<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>
|
|
@@ -32,15 +34,22 @@
|
|
|
</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>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class='tip'>
|
|
|
|
|
+ 到账复投积分: <text class="price">{{true_int}}</text>,到账余额:<text class="price">{{true_ye}}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class='tip'>
|
|
|
|
|
+ 实际到账:<text class="price">¥{{true_money}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class='tip'>
|
|
<view class='tip'>
|
|
|
说明: 每笔佣金的冻结期为{{userInfo.broken_day}}天,到期后可提现
|
|
说明: 每笔佣金的冻结期为{{userInfo.broken_day}}天,到期后可提现
|
|
@@ -53,12 +62,15 @@
|
|
|
<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>
|
|
@@ -79,7 +91,13 @@
|
|
|
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>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class='tip'>
|
|
|
|
|
+ 到账复投积分: <text class="price">{{true_int}}</text>,到账余额:<text class="price">{{true_ye}}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class='tip'>
|
|
|
|
|
+ 实际到账:<text class="price">¥{{true_money}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class='tip'>
|
|
<view class='tip'>
|
|
|
说明: 每笔佣金的冻结期为{{userInfo.broken_day}}天,到期后可提现
|
|
说明: 每笔佣金的冻结期为{{userInfo.broken_day}}天,到期后可提现
|
|
@@ -92,12 +110,15 @@
|
|
|
<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>
|
|
@@ -118,7 +139,13 @@
|
|
|
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>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class='tip'>
|
|
|
|
|
+ 到账复投积分: <text class="price">{{true_int}}</text>,到账余额:<text class="price">{{true_ye}}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class='tip'>
|
|
|
|
|
+ 实际到账:<text class="price">¥{{true_money}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class='tip'>
|
|
<view class='tip'>
|
|
|
说明: 每笔佣金的冻结期为{{userInfo.broken_day}}天,到期后可提现
|
|
说明: 每笔佣金的冻结期为{{userInfo.broken_day}}天,到期后可提现
|
|
@@ -149,7 +176,7 @@
|
|
|
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: [],
|
|
@@ -166,8 +193,12 @@
|
|
|
prevent: true, //避免重复提交成功多次
|
|
prevent: true, //避免重复提交成功多次
|
|
|
moneyMaxLeng: 8,
|
|
moneyMaxLeng: 8,
|
|
|
withdraw_fee: '0',
|
|
withdraw_fee: '0',
|
|
|
- true_money: 0,
|
|
|
|
|
- extract_wechat_type:0
|
|
|
|
|
|
|
+ true_money: 0, //实际到账
|
|
|
|
|
+ true_int: 0, //到账疾风
|
|
|
|
|
+ true_ye: 0, //到账余额
|
|
|
|
|
+ extract_wechat_type: 0,
|
|
|
|
|
+ cash_to_reorder_integral: 0,
|
|
|
|
|
+ cash_to_now_money: 0,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: mapGetters(['isLogin']),
|
|
computed: mapGetters(['isLogin']),
|
|
@@ -204,12 +235,16 @@
|
|
|
inputNum: function(e) {
|
|
inputNum: 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 = Math.floor((this.$util.$h.Mul(val, this.$util.$h.Div(this.$util.$h.Sub(100, this.withdraw_fee), 100))) * 100) / 100 || 0;
|
|
|
|
|
+ this.true_int = this.$util.$h.Div(this.$util.$h.Mul(this.cash_to_reorder_integral, money), 100);
|
|
|
|
|
+ this.true_ye = this.$util.$h.Div(this.$util.$h.Mul(this.cash_to_now_money, money), 100);
|
|
|
|
|
+ let bfb =this.$util.$h.Add(this.cash_to_now_money,this.cash_to_reorder_integral);
|
|
|
|
|
+ this.true_money = Math.floor((this.$util.$h.Mul(money, this.$util.$h.Div(this.$util.$h.Sub(100, bfb), 100))) * 100) / 100 || 0;
|
|
|
},
|
|
},
|
|
|
// uploadpicW(){
|
|
// uploadpicW(){
|
|
|
// this.uploadpic(this.qrcodeUrlW);
|
|
// this.uploadpic(this.qrcodeUrlW);
|
|
@@ -259,6 +294,8 @@
|
|
|
that.minPrice = res.data.minPrice;
|
|
that.minPrice = res.data.minPrice;
|
|
|
that.withdraw_fee = res.data.withdraw_fee;
|
|
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;
|
|
|
|
|
+ that.cash_to_reorder_integral = res.data.cash_to_reorder_integral;
|
|
|
|
|
+ that.cash_to_now_money = res.data.cash_to_now_money;
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
@@ -268,32 +305,26 @@
|
|
|
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;
|
|
|
})
|
|
})
|
|
@@ -321,7 +352,7 @@
|
|
|
value.bankname = that.array[that.index];
|
|
value.bankname = that.array[that.index];
|
|
|
} else if (that.currentTab == 1) { //微信
|
|
} else if (that.currentTab == 1) { //微信
|
|
|
value.extract_type = 'weixin';
|
|
value.extract_type = 'weixin';
|
|
|
- if(that.extract_wechat_type == 0){
|
|
|
|
|
|
|
+ if (that.extract_wechat_type == 0) {
|
|
|
if (value.name.length == 0) return this.$util.Tips({
|
|
if (value.name.length == 0) return this.$util.Tips({
|
|
|
title: '请填写微信号'
|
|
title: '请填写微信号'
|
|
|
});
|
|
});
|
|
@@ -379,9 +410,11 @@
|
|
|
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;
|
|
@@ -530,4 +563,4 @@
|
|
|
.price {
|
|
.price {
|
|
|
color: var(--view-priceColor);
|
|
color: var(--view-priceColor);
|
|
|
}
|
|
}
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|