|
@@ -9,135 +9,117 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class='wrapper'>
|
|
|
- <view :hidden='currentTab != 0' class='list'>
|
|
|
+ <view class='list'>
|
|
|
<form @submit="subCash">
|
|
|
- <view class='item acea-row row-between-wrapper'>
|
|
|
- <view class='name'>持卡人</view>
|
|
|
- <view class='input'><input placeholder='请输入持卡人姓名' placeholder-class='placeholder'
|
|
|
- name="name"
|
|
|
- onKeypress="javascript:if(event.keyCode == 32)event.returnValue = false;"></input>
|
|
|
+ <view v-if="currentTab == 0">
|
|
|
+ <view class='item acea-row row-between-wrapper'>
|
|
|
+ <view class='name'>持卡人</view>
|
|
|
+ <view class='input'>
|
|
|
+ <input placeholder='请输入持卡人姓名' placeholder-class='placeholder' 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='name'>卡号</view>
|
|
|
- <view class='input'><input type='number' placeholder='请填写卡号' placeholder-class='placeholder'
|
|
|
- name="cardnum"></input></view>
|
|
|
- </view>
|
|
|
- <view class='item acea-row row-between-wrapper'>
|
|
|
- <view class='name'>银行</view>
|
|
|
- <view class='input'>
|
|
|
- <picker @change="bindPickerChange" :value="index" :range="array">
|
|
|
- <text class='Bank'>{{array[index]}}</text>
|
|
|
- <text class='iconfont icon-qiepian38'></text>
|
|
|
- </picker>
|
|
|
+ <view class='item acea-row row-between-wrapper'>
|
|
|
+ <view class='name'>卡号</view>
|
|
|
+ <view class='input'>
|
|
|
+ <input type='number' placeholder='请填写卡号' placeholder-class='placeholder'
|
|
|
+ name="cardnum"></input>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view class='item acea-row row-between-wrapper'>
|
|
|
- <view class='name'>提现</view>
|
|
|
- <view class='input'><input @input='inputNum' :maxlength="moneyMaxLeng"
|
|
|
- :placeholder='"最低提现金额:¥"+minPrice' placeholder-class='placeholder' name="money"
|
|
|
- type='digit'></input></view>
|
|
|
- </view>
|
|
|
- <view class='tip'>
|
|
|
- 当前可提现金额: <text
|
|
|
- class="price">¥{{userInfo.commissionCount}}</text>,冻结佣金:¥{{userInfo.broken_commission}}
|
|
|
- </view>
|
|
|
- <view class='tip'>
|
|
|
- 提现手续费: <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 class='tip'>
|
|
|
- 说明: 每笔佣金的冻结期为{{userInfo.broken_day}}天,到期后可提现
|
|
|
- </view>
|
|
|
- <button formType="submit" class='bnt bg-color'>提现</button>
|
|
|
- </form>
|
|
|
- </view>
|
|
|
- <view :hidden='currentTab != 1' class='list'>
|
|
|
- <form @submit="subCash">
|
|
|
- <view class='item acea-row row-between-wrapper' v-if="extract_wechat_type == 0">
|
|
|
- <view class='name'>账号</view>
|
|
|
- <view class='input'><input placeholder='请填写您的微信账号' placeholder-class='placeholder'
|
|
|
- name="name"
|
|
|
- onKeypress="javascript:if(event.keyCode == 32)event.returnValue = false;"></input>
|
|
|
+ <view class='item acea-row row-between-wrapper'>
|
|
|
+ <view class='name'>银行</view>
|
|
|
+ <view class='input'>
|
|
|
+ <picker @change="bindPickerChange" :value="index" :range="array">
|
|
|
+ <text class='Bank'>{{array[index]}}</text>
|
|
|
+ <text class='iconfont icon-qiepian38'></text>
|
|
|
+ </picker>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class='item acea-row row-between-wrapper'>
|
|
|
+ <view class='name'>提现</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-between-wrapper'>
|
|
|
- <view class='name'>提现</view>
|
|
|
- <view class='input'><input @input='inputNum' :maxlength="moneyMaxLeng"
|
|
|
- :placeholder='"最低提现金额:¥"+minPrice' placeholder-class='placeholder' name="money"
|
|
|
- type='digit'></input></view>
|
|
|
- </view>
|
|
|
- <view class='item acea-row row-top row-between' v-if="extract_wechat_type == 0">
|
|
|
- <view class='name'>收款码</view>
|
|
|
- <view class="input acea-row">
|
|
|
- <view class="picEwm" v-if="qrcodeUrlW">
|
|
|
- <image :src="qrcodeUrlW"></image>
|
|
|
- <text class='iconfont icon-guanbi1 fontcolor' @click='DelPicW'></text>
|
|
|
+ <view v-if="currentTab == 1">
|
|
|
+ <view class='item acea-row row-between-wrapper' v-if="extract_wechat_type == 0">
|
|
|
+ <view class='name'>账号</view>
|
|
|
+ <view class='input'>
|
|
|
+ <input placeholder='请填写您的微信账号' placeholder-class='placeholder' name="name"
|
|
|
+ onKeypress="javascript:if(event.keyCode == 32)event.returnValue = false;"></input>
|
|
|
</view>
|
|
|
- <view class='pictrue acea-row row-center-wrapper row-column' @click='uploadpic("W")'
|
|
|
- v-else>
|
|
|
- <text class='iconfont icon-icon25201'></text>
|
|
|
- <view>上传图片</view>
|
|
|
+ </view>
|
|
|
+ <view class='item acea-row row-between-wrapper'>
|
|
|
+ <view class='name'>提现</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'>
|
|
|
- 当前可提现金额: <text
|
|
|
- class="price">¥{{userInfo.commissionCount}}</text>,冻结佣金:¥{{userInfo.broken_commission}}
|
|
|
- </view>
|
|
|
- <view class='tip'>
|
|
|
- 提现手续费: <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 class='tip'>
|
|
|
- 说明: 每笔佣金的冻结期为{{userInfo.broken_day}}天,到期后可提现
|
|
|
- </view>
|
|
|
- <button formType="submit" class='bnt bg-color'>提现</button>
|
|
|
- </form>
|
|
|
- </view>
|
|
|
- <view :hidden='currentTab != 2' class='list'>
|
|
|
- <form @submit="subCash">
|
|
|
- <view class='item acea-row row-between-wrapper'>
|
|
|
- <view class='name'>账号</view>
|
|
|
- <view class='input'><input placeholder='请填写您的支付宝账号' placeholder-class='placeholder'
|
|
|
- name="name"
|
|
|
- onKeypress="javascript:if(event.keyCode == 32)event.returnValue = false;"></input>
|
|
|
+ <view class='item acea-row row-top row-between' v-if="extract_wechat_type == 0">
|
|
|
+ <view class='name'>收款码</view>
|
|
|
+ <view class="input acea-row">
|
|
|
+ <view class="picEwm" v-if="qrcodeUrlW">
|
|
|
+ <image :src="qrcodeUrlW"></image>
|
|
|
+ <text class='iconfont icon-guanbi1 fontcolor' @click='DelPicW'></text>
|
|
|
+ </view>
|
|
|
+ <view class='pictrue acea-row row-center-wrapper row-column' @click='uploadpic("W")'
|
|
|
+ v-else>
|
|
|
+ <text class='iconfont icon-icon25201'></text>
|
|
|
+ <view>上传图片</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class='item acea-row row-between-wrapper'>
|
|
|
- <view class='name'>提现</view>
|
|
|
- <view class='input'><input @input='inputNum' :maxlength="moneyMaxLeng"
|
|
|
- :placeholder='"最低提现金额:¥"+minPrice' placeholder-class='placeholder' name="money"
|
|
|
- type='digit'></input></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="qrcodeUrlZ">
|
|
|
- <image :src="qrcodeUrlZ"></image>
|
|
|
- <text class='iconfont icon-guanbi1 fontcolor' @click='DelPicZ'></text>
|
|
|
+ <view v-if="currentTab == 2">
|
|
|
+ <view class='item acea-row row-between-wrapper'>
|
|
|
+ <view class='name'>账号</view>
|
|
|
+ <view class='input'><input placeholder='请填写您的支付宝账号' placeholder-class='placeholder'
|
|
|
+ name="name"
|
|
|
+ onKeypress="javascript:if(event.keyCode == 32)event.returnValue = false;"></input>
|
|
|
</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 class='item acea-row row-between-wrapper'>
|
|
|
+ <view class='name'>提现</view>
|
|
|
+ <view class='input'><input @input='inputNum' :maxlength="moneyMaxLeng"
|
|
|
+ :placeholder='"最低提现金额:¥"+minPrice' placeholder-class='placeholder' name="money"
|
|
|
+ type='digit'></input></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="qrcodeUrlZ">
|
|
|
+ <image :src="qrcodeUrlZ"></image>
|
|
|
+ <text class='iconfont icon-guanbi1 fontcolor' @click='DelPicZ'></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>
|
|
|
+ <view class='item acea-row row-between-wrapper'>
|
|
|
+ <view class='name'>提现类型</view>
|
|
|
+ <view class='input'>
|
|
|
+ <picker @change="bindMoneyType" :value="typeMoneyIndex" range-key="name"
|
|
|
+ :range="typeMoney">
|
|
|
+ <text class='Bank'>{{typeMoney[typeMoneyIndex].name}}</text>
|
|
|
+ <text class='iconfont icon-qiepian38'></text>
|
|
|
+ </picker>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<view class='tip'>
|
|
|
- 当前可提现金额: <text
|
|
|
+ 当前可提现佣金: <text
|
|
|
class="price">¥{{userInfo.commissionCount}}</text>,冻结佣金:¥{{userInfo.broken_commission}}
|
|
|
</view>
|
|
|
+ <view class='tip'>
|
|
|
+ 当前可提现奖金: <text class="price">¥{{userInfo.brokerage_integral}}</text>
|
|
|
+ </view>
|
|
|
<view class='tip'>
|
|
|
提现手续费: <text class="price">{{withdraw_fee}}%</text>
|
|
|
</view>
|
|
@@ -183,8 +165,16 @@
|
|
|
currentTab: '',
|
|
|
index: 0,
|
|
|
array: [], //提现银行
|
|
|
+ typeMoneyIndex: 0,
|
|
|
+ typeMoney: [{
|
|
|
+ name: '佣金',
|
|
|
+ value: "brokerage_price"
|
|
|
+ }, {
|
|
|
+ name: '奖金',
|
|
|
+ value: 'brokerage_integral'
|
|
|
+ }],
|
|
|
minPrice: 0.00, //最低提现金额
|
|
|
- userInfo: [],
|
|
|
+ userInfo: ["", ""],
|
|
|
isClone: false,
|
|
|
isAuto: false, //没有授权的不会自动授权
|
|
|
isShowAuth: false, //是否隐藏授权
|
|
@@ -215,7 +205,10 @@
|
|
|
deep: true
|
|
|
}
|
|
|
},
|
|
|
- onLoad() {
|
|
|
+ onLoad(opt) {
|
|
|
+ if (opt.type) {
|
|
|
+ this.typeMoneyIndex = opt.type;
|
|
|
+ }
|
|
|
if (this.isLogin) {
|
|
|
this.getUserInfo();
|
|
|
this.getUserExtractBank();
|
|
@@ -240,11 +233,13 @@
|
|
|
} else {
|
|
|
this.moneyMaxLeng = 8
|
|
|
}
|
|
|
- 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;
|
|
|
+ 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;
|
|
|
+ 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(){
|
|
|
// this.uploadpic(this.qrcodeUrlW);
|
|
@@ -335,9 +330,13 @@
|
|
|
bindPickerChange: function(e) {
|
|
|
this.index = e.detail.value;
|
|
|
},
|
|
|
+ bindMoneyType: function(e) {
|
|
|
+ this.typeMoneyIndex = e.detail.value;
|
|
|
+ },
|
|
|
subCash: function(e) {
|
|
|
let that = this,
|
|
|
value = e.detail.value;
|
|
|
+ value.from = that.typeMoney[that.typeMoneyIndex].value;
|
|
|
if (that.currentTab == 0) { //银行卡
|
|
|
if (value.name.length == 0) return this.$util.Tips({
|
|
|
title: '请填写持卡人姓名'
|