|
|
@@ -10,7 +10,7 @@
|
|
|
<view class="payment-top acea-row row-column row-center-wrapper" v-else>
|
|
|
<span class="name">我的股权</span>
|
|
|
<view class="pic">
|
|
|
- ¥<span class="pic-font">{{ staffInfo.shareholding || 0 }}</span>
|
|
|
+ <span class="pic-font">{{ staffInfo.shareholding*1 || 0 }}</span>股
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="payment">
|
|
|
@@ -18,66 +18,75 @@
|
|
|
<view class="item" :class="active==index?'on':''" v-for="(item,index) in navRecharge" :key="index"
|
|
|
@click="navRecharges(index)">{{item}}</view>
|
|
|
</view>
|
|
|
- <view class='tip picList' v-if='!active'>
|
|
|
- <view class="pic-box pic-box-color acea-row row-center-wrapper row-column"
|
|
|
- :class="activePic == index ? 'pic-box-color-active' : ''" v-for="(item, index) in picList"
|
|
|
- :key="index" @click="picCharge(index, item)" v-if="item.price">
|
|
|
- <view class="pic-number-pic">
|
|
|
- {{ item.price }}<span class="pic-number"> 元</span>
|
|
|
- </view>
|
|
|
- <view class="pic-number">赠送:{{ item.give_money }} 元</view>
|
|
|
+ <view class='tip picList' v-if='!active'>
|
|
|
+ <view class="pic-box pic-box-color acea-row row-center-wrapper row-column"
|
|
|
+ :class="activePic == index ? 'pic-box-color-active' : ''" v-for="(item, index) in picList"
|
|
|
+ :key="index" @click="picCharge(index, item)" v-if="item.price">
|
|
|
+ <view class="pic-number-pic">
|
|
|
+ {{ item.price }}<span class="pic-number"> 元</span>
|
|
|
</view>
|
|
|
- <view class="pic-box pic-box-color acea-row row-center-wrapper"
|
|
|
- :class="activePic == picList.length ? 'pic-box-color-active' : ''"
|
|
|
- @click="picCharge(picList.length)">
|
|
|
- <input type="digit" placeholder="其他" v-model="money" class="pic-box-money pic-number-pic"
|
|
|
- :class="activePic == picList.length ? 'pic-box-color-active' : ''" />
|
|
|
+ <view class="pic-number">赠送:{{ item.give_money }} 元</view>
|
|
|
+ </view>
|
|
|
+ <view class="pic-box pic-box-color acea-row row-center-wrapper"
|
|
|
+ :class="activePic == picList.length ? 'pic-box-color-active' : ''"
|
|
|
+ @click="picCharge(picList.length)">
|
|
|
+ <input type="digit" placeholder="其他" v-model="money" class="pic-box-money pic-number-pic"
|
|
|
+ :class="activePic == picList.length ? 'pic-box-color-active' : ''" />
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="flex share-user">
|
|
|
+ <view class="title">
|
|
|
+ 邀请人:
|
|
|
</view>
|
|
|
-
|
|
|
- <view class="flex share-user">
|
|
|
- <view class="title">
|
|
|
- 邀请人:
|
|
|
- </view>
|
|
|
- <view class="input-box">
|
|
|
- <input type="text" placeholder="请输入邀请人会员码" v-model="verify_code" class="input-user" />
|
|
|
- </view>
|
|
|
- <!-- #ifdef H5 -->
|
|
|
- <view class="iconfont icon-saoma" @click="scanCode"></view>
|
|
|
- <!-- #endif -->
|
|
|
- <!-- #ifdef MP || MP-WEIXIN || APP -->
|
|
|
- <view class="iconfont icon-saoma" @click="scanCode">
|
|
|
- </view>
|
|
|
- <!-- #endif -->
|
|
|
+ <view class="input-box">
|
|
|
+ <input type="text" placeholder="请输入邀请人会员码" v-model="verify_code" class="input-user" />
|
|
|
</view>
|
|
|
- <view class="tips-box">
|
|
|
- <view class="tips mt-30">注意事项:</view>
|
|
|
- <view class="tips-samll" v-for="item in rechargeAttention" :key="item">
|
|
|
- {{ item }}
|
|
|
- </view>
|
|
|
+ <!-- #ifdef H5 -->
|
|
|
+ <view class="iconfont icon-saoma" @click="scanCode"></view>
|
|
|
+ <!-- #endif -->
|
|
|
+ <!-- #ifdef MP || MP-WEIXIN || APP -->
|
|
|
+ <view class="iconfont icon-saoma" @click="scanCode">
|
|
|
+ </view>
|
|
|
+ <!-- #endif -->
|
|
|
+ </view>
|
|
|
+ <view class="tips-box">
|
|
|
+ <view class="tips mt-30">注意事项:</view>
|
|
|
+ <view class="tips-samll" v-for="item in rechargeAttention" :key="item">
|
|
|
+ {{ item }}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="tip" v-else>
|
|
|
- <view class='input' v-if="is_gq != 1"><text>¥</text><input @input='inputNum' :maxlength="moneyMaxLeng"
|
|
|
- placeholder="0.00" type='digit' placeholder-class='placeholder' :value="number"
|
|
|
- name="number"></input></view>
|
|
|
- <view class='input' v-else><text>¥</text><input @input='inputNum' :maxlength="moneyMaxLeng"
|
|
|
- placeholder="0" type='number' placeholder-class='placeholder' :value="number"
|
|
|
- name="number"></input></view>
|
|
|
- <view class="tips-title" v-if="is_gq != 1">
|
|
|
- <view style="font-weight: bold; font-size: 26rpx;">提示:</view>
|
|
|
- <view style="margin-top: 10rpx;">当前可转入佣金为 <text
|
|
|
- class='font-color'>¥{{userinfo.commissionCount || 0}}</text>,冻结佣金为<text
|
|
|
- class='font-color'>¥{{userinfo.broken_commission}}</text></view>
|
|
|
+ </view>
|
|
|
+ <view class="tip" v-else>
|
|
|
+ <view class='input' v-if="is_gq != 1">
|
|
|
+ <text>¥</text>
|
|
|
+ <input @input='inputNum'
|
|
|
+ :maxlength="moneyMaxLeng" placeholder="0.00" type='digit' placeholder-class='placeholder'
|
|
|
+ :value="number" name="number"></input>
|
|
|
+ </view>
|
|
|
+ <view class='input' v-else>
|
|
|
+ <input @input='inputNum' :maxlength="moneyMaxLeng"
|
|
|
+ placeholder="0" type='number' placeholder-class='placeholder' :value="number"
|
|
|
+ name="number"></input>
|
|
|
+ <text>股</text>
|
|
|
+ </view>
|
|
|
+ <view class="tips-title" v-if="is_gq != 1">
|
|
|
+ <view style="font-weight: bold; font-size: 26rpx;">提示:</view>
|
|
|
+ <view style="margin-top: 10rpx;">
|
|
|
+ 当前可转入佣金为
|
|
|
+ <text class='font-color'>¥{{userinfo.commissionCount || 0}}</text>,
|
|
|
+ 冻结佣金为
|
|
|
+ <text class='font-color'>¥{{userinfo.broken_commission}}</text>
|
|
|
</view>
|
|
|
- <view class="tips-box" v-if="is_gq != 1">
|
|
|
- <view class="tips mt-30">注意事项:</view>
|
|
|
- <view class="tips-samll" v-for="item in rechargeAttention" :key="item">
|
|
|
- {{ item }}
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
+ <view class="tips-box" v-if="is_gq != 1">
|
|
|
+ <view class="tips mt-30">注意事项:</view>
|
|
|
+ <view class="tips-samll" v-for="item in rechargeAttention" :key="item">
|
|
|
+ {{ item }}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <button class='but bg-color' formType="submit" v-if="is_gq != 1"> {{active ? '立即转入': '立即充值' }}</button>
|
|
|
- <button class='but bg-color' formType="submit" v-else>提现</button>
|
|
|
+ </view>
|
|
|
+ <button class='but bg-color' formType="submit" v-if="is_gq != 1"> {{active ? '立即转入': '立即充值' }}</button>
|
|
|
+ <button class='but bg-color' formType="submit" v-else>提现</button>
|
|
|
</view>
|
|
|
</form>
|
|
|
<payment :payMode="payMode" :pay_close="pay_close" :is-call="true" @changePayType="changePayType"
|
|
|
@@ -133,7 +142,7 @@
|
|
|
number: '',
|
|
|
userinfo: {},
|
|
|
placeholder: "0.00",
|
|
|
- verify_code:'',//邀请会员码
|
|
|
+ verify_code: '', //邀请会员码
|
|
|
from: '',
|
|
|
isAuto: false, //没有授权的不会自动授权
|
|
|
isShowAuth: false, //是否隐藏授权
|
|
|
@@ -199,7 +208,7 @@
|
|
|
} else {
|
|
|
toLogin();
|
|
|
}
|
|
|
- if(options.is_gq) {
|
|
|
+ if (options.is_gq) {
|
|
|
this.is_gq = options.is_gq
|
|
|
this.active = 1
|
|
|
}
|
|
|
@@ -228,8 +237,8 @@
|
|
|
scanType: ["qrCode", "barCode"]
|
|
|
}).then(res => {
|
|
|
let result = res.resultStr;
|
|
|
- if(result.includes(',')){
|
|
|
- result = result.split(",")[1]
|
|
|
+ if (result.includes(',')) {
|
|
|
+ result = result.split(",")[1]
|
|
|
}
|
|
|
this.verify_code = result
|
|
|
});
|
|
|
@@ -322,22 +331,17 @@
|
|
|
let that = this;
|
|
|
getUserInfo().then(res => {
|
|
|
that.$set(that, 'userinfo', res.data);
|
|
|
- if(that.is_gq == 1) {
|
|
|
+ if (that.is_gq == 1) {
|
|
|
that.getStaffInfo()
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
getStaffInfo() {
|
|
|
- let that =this
|
|
|
+ let that = this
|
|
|
getStaffInfo({
|
|
|
uid: that.userinfo.uid
|
|
|
}).then(res => {
|
|
|
- // that.staffInfo = res.data.list[0]
|
|
|
- res.data.list.forEach(item => {
|
|
|
- if(item.uid == that.userinfo.uid) {
|
|
|
- that.staffInfo = item
|
|
|
- }
|
|
|
- })
|
|
|
+ that.staffInfo = res.data;
|
|
|
})
|
|
|
},
|
|
|
changePayType: function(e) {
|
|
|
@@ -390,7 +394,7 @@
|
|
|
type: 0,
|
|
|
rechar_id: this.rechar_id,
|
|
|
from: this.payType === 'alipay' ? 'alipay' : 'routine',
|
|
|
- bar_code:this.verify_code
|
|
|
+ bar_code: this.verify_code
|
|
|
}).then(res => {
|
|
|
uni.hideLoading();
|
|
|
let data = res.data.data;
|
|
|
@@ -451,7 +455,7 @@
|
|
|
// from: this.payType == '' ? this.$wechat.isWeixin() ? 'weixin' :'weixinh5' : this.payType,
|
|
|
from: this.payType,
|
|
|
rechar_id: that.rechar_id,
|
|
|
- bar_code:that.verify_code
|
|
|
+ bar_code: that.verify_code
|
|
|
}).then(res => {
|
|
|
let data = res.data;
|
|
|
if (data.type == "weixinh5") {
|
|
|
@@ -500,25 +504,25 @@
|
|
|
submitSub: function(e) {
|
|
|
let that = this
|
|
|
let value = e.detail.value.number;
|
|
|
- if(that.is_gq == 1) {
|
|
|
+ if (that.is_gq == 1) {
|
|
|
console.log(value)
|
|
|
if (parseFloat(value) < 0 || parseFloat(value) == NaN || value == undefined || value == "") {
|
|
|
return that.$util.Tips({
|
|
|
title: '请输入金额'
|
|
|
});
|
|
|
}
|
|
|
- if(parseFloat(value)%1 !== 0) {
|
|
|
+ if (parseFloat(value) % 1 !== 0) {
|
|
|
return that.$util.Tips({
|
|
|
title: '请输入整数'
|
|
|
});
|
|
|
}
|
|
|
- if(parseFloat(value) >parseFloat(that.staffInfo.shareholding)) {
|
|
|
+ if (parseFloat(value) > parseFloat(that.staffInfo.shareholding)) {
|
|
|
return that.$util.Tips({
|
|
|
title: '您当前的股权不足'
|
|
|
});
|
|
|
}
|
|
|
equityWithdrawal({
|
|
|
- shareholding:value,
|
|
|
+ shareholding: value,
|
|
|
uid: that.userinfo.uid
|
|
|
}).then(res => {
|
|
|
that.$util.Tips({
|
|
|
@@ -527,7 +531,7 @@
|
|
|
})
|
|
|
that.getStaffInfo()
|
|
|
})
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
// 转入余额
|
|
|
if (that.active) {
|
|
|
if (parseFloat(value) < 0 || parseFloat(value) == NaN || value == undefined || value == "") {
|
|
|
@@ -535,7 +539,7 @@
|
|
|
title: '请输入金额'
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
uni.showModal({
|
|
|
title: '转入余额',
|
|
|
content: '转入余额后无法再次转出,确认是否转入余额',
|
|
|
@@ -545,7 +549,7 @@
|
|
|
rechargeRoutine({
|
|
|
price: parseFloat(value),
|
|
|
type: 1,
|
|
|
- bar_code:that.verify_code
|
|
|
+ bar_code: that.verify_code
|
|
|
})
|
|
|
// #endif
|
|
|
// #ifdef H5
|
|
|
@@ -553,7 +557,7 @@
|
|
|
price: parseFloat(value),
|
|
|
from: that.from,
|
|
|
type: 1,
|
|
|
- bar_code:that.verify_code
|
|
|
+ bar_code: that.verify_code
|
|
|
})
|
|
|
// #endif
|
|
|
.then(res => {
|
|
|
@@ -587,7 +591,7 @@
|
|
|
this.totalPrice = this.rechar_id == 0 ? parseFloat(this.money) : parseFloat(this.numberPic);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -620,20 +624,24 @@
|
|
|
border-bottom: 1px solid #f3f3f3;
|
|
|
padding-top: 20rpx;
|
|
|
padding-bottom: 10rpx;
|
|
|
- .iconfont{
|
|
|
- &.icon-saoma{
|
|
|
+
|
|
|
+ .iconfont {
|
|
|
+ &.icon-saoma {
|
|
|
font-size: 50rpx;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.title {
|
|
|
font-size: 30rpx;
|
|
|
color: #656565;
|
|
|
font-weight: 800;
|
|
|
flex-shrink: 0;
|
|
|
}
|
|
|
+
|
|
|
.input-box {
|
|
|
flex-grow: 1;
|
|
|
- .input-user{
|
|
|
+
|
|
|
+ .input-user {
|
|
|
width: 100%;
|
|
|
height: 50rpx;
|
|
|
font-size: 28rpx;
|