|
@@ -9,19 +9,23 @@
|
|
</view>
|
|
</view>
|
|
<view class="payment">
|
|
<view class="payment">
|
|
<view class="nav acea-row row-around row-middle">
|
|
<view class="nav acea-row row-around row-middle">
|
|
- <view class="item" :class="active==index?'on':''" v-for="(item,index) in navRecharge" :key="index" @click="navRecharges(index)">{{item}}</view>
|
|
|
|
|
|
+ <view class="item" :class="active==index?'on':''" v-for="(item,index) in navRecharge" :key="index"
|
|
|
|
+ @click="navRecharges(index)">{{item}}</view>
|
|
</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='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">
|
|
<view class="pic-number-pic">
|
|
{{ item.price }}<span class="pic-number"> 元</span>
|
|
{{ item.price }}<span class="pic-number"> 元</span>
|
|
</view>
|
|
</view>
|
|
<view class="pic-number">赠送:{{ item.give_money }} 元</view>
|
|
<view class="pic-number">赠送:{{ item.give_money }} 元</view>
|
|
</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 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>
|
|
<view class="tips-box">
|
|
<view class="tips-box">
|
|
<view class="tips mt-30">注意事项:</view>
|
|
<view class="tips mt-30">注意事项:</view>
|
|
@@ -32,10 +36,14 @@
|
|
|
|
|
|
</view>
|
|
</view>
|
|
<view class="tip" v-else>
|
|
<view class="tip" v-else>
|
|
- <view class='input'><text>¥</text><input @input='inputNum' :maxlength="moneyMaxLeng" placeholder="0.00" type='digit' placeholder-class='placeholder' :value="number" name="number"></input></view>
|
|
|
|
|
|
+ <view class='input'><text>¥</text><input @input='inputNum' :maxlength="moneyMaxLeng"
|
|
|
|
+ placeholder="0.00" type='digit' placeholder-class='placeholder' :value="number"
|
|
|
|
+ name="number"></input></view>
|
|
<view class="tips-title">
|
|
<view class="tips-title">
|
|
<view style="font-weight: bold; font-size: 26rpx;">提示:</view>
|
|
<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 style="margin-top: 10rpx;">当前可转入佣金为 <text
|
|
|
|
+ class='font-color'>¥{{userinfo.commissionCount || 0}}</text>,冻结佣金为<text
|
|
|
|
+ class='font-color'>¥{{userinfo.broken_commission}}</text></view>
|
|
</view>
|
|
</view>
|
|
<view class="tips-box">
|
|
<view class="tips-box">
|
|
<view class="tips mt-30">注意事项:</view>
|
|
<view class="tips mt-30">注意事项:</view>
|
|
@@ -44,11 +52,11 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <button class='but bg-color' formType="submit" > {{active ? '立即转入': '立即充值' }}</button>
|
|
|
|
|
|
+ <button class='but bg-color' formType="submit"> {{active ? '立即转入': '立即充值' }}</button>
|
|
</view>
|
|
</view>
|
|
</form>
|
|
</form>
|
|
- <payment :payMode="payMode" :pay_close="pay_close" :is-call="true" @changePayType="changePayType" @onChangeFun="onChangeFun"
|
|
|
|
- :order_id="pay_order_id" :totalPrice="totalPrice"></payment>
|
|
|
|
|
|
+ <payment :payMode="payMode" :pay_close="pay_close" :is-call="true" @changePayType="changePayType"
|
|
|
|
+ @onChangeFun="onChangeFun" :order_id="pay_order_id" :totalPrice="totalPrice"></payment>
|
|
<home v-if="navigation"></home>
|
|
<home v-if="navigation"></home>
|
|
<view v-show="false" v-html="formContent"></view>
|
|
<view v-show="false" v-html="formContent"></view>
|
|
<!-- #ifdef MP -->
|
|
<!-- #ifdef MP -->
|
|
@@ -86,7 +94,7 @@
|
|
home,
|
|
home,
|
|
payment
|
|
payment
|
|
},
|
|
},
|
|
- mixins:[colors],
|
|
|
|
|
|
+ mixins: [colors],
|
|
data() {
|
|
data() {
|
|
let that = this;
|
|
let that = this;
|
|
return {
|
|
return {
|
|
@@ -102,8 +110,8 @@
|
|
picList: [],
|
|
picList: [],
|
|
activePic: 0,
|
|
activePic: 0,
|
|
money: "",
|
|
money: "",
|
|
- numberPic:'',
|
|
|
|
- rechar_id:0,
|
|
|
|
|
|
+ numberPic: '',
|
|
|
|
+ rechar_id: 0,
|
|
password: '',
|
|
password: '',
|
|
goodsList: [],
|
|
goodsList: [],
|
|
pay_order_id: '',
|
|
pay_order_id: '',
|
|
@@ -124,6 +132,14 @@
|
|
payStatus: true
|
|
payStatus: true
|
|
}
|
|
}
|
|
// #endif
|
|
// #endif
|
|
|
|
+ ,
|
|
|
|
+ {
|
|
|
|
+ "name": "慧付",
|
|
|
|
+ "icon": "icon-yuezhifu1",
|
|
|
|
+ value: 'huifu',
|
|
|
|
+ title: '选择慧付支付',
|
|
|
|
+ payStatus: true,
|
|
|
|
+ }
|
|
],
|
|
],
|
|
pay_close: false,
|
|
pay_close: false,
|
|
payType: '',
|
|
payType: '',
|
|
@@ -133,21 +149,21 @@
|
|
isWeixin: this.$wechat.isWeixin(),
|
|
isWeixin: this.$wechat.isWeixin(),
|
|
// #endif
|
|
// #endif
|
|
type: '',
|
|
type: '',
|
|
- rechargeAttention:[],
|
|
|
|
- moneyMaxLeng:8
|
|
|
|
|
|
+ rechargeAttention: [],
|
|
|
|
+ moneyMaxLeng: 8
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: mapGetters(['isLogin']),
|
|
computed: mapGetters(['isLogin']),
|
|
- watch:{
|
|
|
|
- isLogin:{
|
|
|
|
- handler:function(newV,oldV){
|
|
|
|
- if(newV){
|
|
|
|
|
|
+ watch: {
|
|
|
|
+ isLogin: {
|
|
|
|
+ handler: function(newV, oldV) {
|
|
|
|
+ if (newV) {
|
|
this.getOrderPayType();
|
|
this.getOrderPayType();
|
|
this.getUserInfo();
|
|
this.getUserInfo();
|
|
this.getRecharge();
|
|
this.getRecharge();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- deep:true
|
|
|
|
|
|
+ deep: true
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
@@ -170,14 +186,14 @@
|
|
this.getOrderPayType();
|
|
this.getOrderPayType();
|
|
this.getUserInfo();
|
|
this.getUserInfo();
|
|
this.getRecharge();
|
|
this.getRecharge();
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
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
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -256,13 +272,19 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
changePayType: function(e) {
|
|
changePayType: function(e) {
|
|
|
|
+ console.log(e, '267');
|
|
|
|
+ this.payType = e;
|
|
// #ifdef H5
|
|
// #ifdef H5
|
|
- this.payType = e == 'alipay' ? 'alipay' : this.$wechat.isWeixin() ? 'weixin' : 'weixinh5'
|
|
|
|
|
|
+ if (!this.$wechat.isWeixin() && this.payType == 'weixin') {
|
|
|
|
+ this.payType = 'weixinh5';
|
|
|
|
+ }
|
|
// #endif
|
|
// #endif
|
|
- // #ifndef H5
|
|
|
|
- this.payType = e == 'alipay' ? 'alipay' : 'routine'
|
|
|
|
|
|
+ // #ifdef MP
|
|
|
|
+ if (this.payType == 'weixin') {
|
|
|
|
+ this.payType = 'routine'
|
|
|
|
+ }
|
|
// #endif
|
|
// #endif
|
|
- console.log('双方各大华股份不报错',this.payType);
|
|
|
|
|
|
+ console.log('双方各大华股份不报错', this.payType);
|
|
},
|
|
},
|
|
onChangeFun: function(e) {
|
|
onChangeFun: function(e) {
|
|
let opt = e;
|
|
let opt = e;
|
|
@@ -277,6 +299,19 @@
|
|
this.createMemberCard(type);
|
|
this.createMemberCard(type);
|
|
},
|
|
},
|
|
createMemberCard(type) {
|
|
createMemberCard(type) {
|
|
|
|
+ if (!this.payType) {
|
|
|
|
+ this.payType = type;
|
|
|
|
+ // #ifdef H5
|
|
|
|
+ if (!this.$wechat.isWeixin() && this.payType == 'weixin') {
|
|
|
|
+ this.payType = 'weixinh5';
|
|
|
|
+ }
|
|
|
|
+ // #endif
|
|
|
|
+ // #ifdef MP
|
|
|
|
+ if (this.payType == 'weixin') {
|
|
|
|
+ this.payType = 'routine'
|
|
|
|
+ }
|
|
|
|
+ // #endif
|
|
|
|
+ }
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title: '正在加载…'
|
|
title: '正在加载…'
|
|
});
|
|
});
|
|
@@ -286,121 +321,189 @@
|
|
})
|
|
})
|
|
let that = this
|
|
let that = this
|
|
let money = parseFloat(this.money);
|
|
let money = parseFloat(this.money);
|
|
- if( this.rechar_id == 0){
|
|
|
|
- if(Number.isNaN(money)){
|
|
|
|
- return that.$util.Tips({title: '充值金额必须为数字'});
|
|
|
|
|
|
+ if (this.rechar_id == 0) {
|
|
|
|
+ if (Number.isNaN(money)) {
|
|
|
|
+ return that.$util.Tips({
|
|
|
|
+ title: '充值金额必须为数字'
|
|
|
|
+ });
|
|
}
|
|
}
|
|
- if(money <= 0){
|
|
|
|
- return that.$util.Tips({title: '充值金额不能为0'});
|
|
|
|
|
|
+ if (money <= 0) {
|
|
|
|
+ return that.$util.Tips({
|
|
|
|
+ title: '充值金额不能为0'
|
|
|
|
+ });
|
|
}
|
|
}
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
// money = this.numberPic
|
|
// money = this.numberPic
|
|
}
|
|
}
|
|
- rechargeRecharge({
|
|
|
|
- price: parseFloat(this.totalPrice),
|
|
|
|
- type: 0,
|
|
|
|
- rechar_id: this.rechar_id,
|
|
|
|
- from: this.payType === 'alipay' ? 'alipay' : 'routine'
|
|
|
|
- }).then(res => {
|
|
|
|
- uni.hideLoading();
|
|
|
|
- let data = res.data.data;
|
|
|
|
- let mp_pay_name=''
|
|
|
|
- if(uni.requestOrderPayment){
|
|
|
|
- mp_pay_name='requestOrderPayment'
|
|
|
|
- }else{
|
|
|
|
- mp_pay_name='requestPayment'
|
|
|
|
- }
|
|
|
|
- uni[mp_pay_name]({
|
|
|
|
- // #ifdef MP
|
|
|
|
- timeStamp: data.timestamp,
|
|
|
|
- nonceStr: data.nonceStr,
|
|
|
|
- package: data.package,
|
|
|
|
- signType: data.signType,
|
|
|
|
- paySign: data.paySign,
|
|
|
|
- // #endif
|
|
|
|
- // #ifdef APP-PLUS
|
|
|
|
- provider: this.payType==='alipay'?'alipay':'wxpay',
|
|
|
|
- orderInfo: data,
|
|
|
|
- // #endif
|
|
|
|
- success: function(res) {
|
|
|
|
- return that.$util.Tips({
|
|
|
|
- title: '支付成功',
|
|
|
|
- icon: 'success'
|
|
|
|
- }, {
|
|
|
|
- tab: 5,
|
|
|
|
- url: '/pages/users/user_money/index'
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- fail: function() {
|
|
|
|
- return that.$util.Tips({
|
|
|
|
- title: '支付失败'
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- complete: function(res) {
|
|
|
|
- if (res.errMsg == 'requestPayment:cancel') return that.$util.Tips({
|
|
|
|
- title: '取消支付'
|
|
|
|
- });
|
|
|
|
|
|
+ if (this.payType != 'huifu') {
|
|
|
|
+ rechargeRecharge({
|
|
|
|
+ price: parseFloat(this.totalPrice),
|
|
|
|
+ type: 0,
|
|
|
|
+ rechar_id: this.rechar_id,
|
|
|
|
+ from: this.payType
|
|
|
|
+ }).then(res => {
|
|
|
|
+ uni.hideLoading();
|
|
|
|
+ let data = res.data.data;
|
|
|
|
+ let mp_pay_name = ''
|
|
|
|
+ if (uni.requestOrderPayment) {
|
|
|
|
+ mp_pay_name = 'requestOrderPayment'
|
|
|
|
+ } else {
|
|
|
|
+ mp_pay_name = 'requestPayment'
|
|
}
|
|
}
|
|
- })
|
|
|
|
- }).catch(err => {
|
|
|
|
- uni.hideLoading();
|
|
|
|
- return that.$util.Tips({
|
|
|
|
- title: err
|
|
|
|
- })
|
|
|
|
- });
|
|
|
|
- // #endif
|
|
|
|
- // #ifdef H5
|
|
|
|
- let that = this
|
|
|
|
- this.pay_close = true;
|
|
|
|
- this.totalPrice = this.rechar_id == 0 ? this.money : this.numberPic;
|
|
|
|
- if (!this.payType) {
|
|
|
|
- this.changePayType(type);
|
|
|
|
- }
|
|
|
|
- rechargeWechat({
|
|
|
|
|
|
+ uni[mp_pay_name]({
|
|
|
|
+ // #ifdef MP
|
|
|
|
+ timeStamp: data.timestamp,
|
|
|
|
+ nonceStr: data.nonceStr,
|
|
|
|
+ package: data.package,
|
|
|
|
+ signType: data.signType,
|
|
|
|
+ paySign: data.paySign,
|
|
|
|
+ // #endif
|
|
|
|
+ // #ifdef APP-PLUS
|
|
|
|
+ provider: this.payType === 'alipay' ? 'alipay' : 'wxpay',
|
|
|
|
+ orderInfo: data,
|
|
|
|
+ // #endif
|
|
|
|
+ success: function(res) {
|
|
|
|
+ return that.$util.Tips({
|
|
|
|
+ title: '支付成功',
|
|
|
|
+ icon: 'success'
|
|
|
|
+ }, {
|
|
|
|
+ tab: 5,
|
|
|
|
+ url: '/pages/users/user_money/index'
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ fail: function() {
|
|
|
|
+ return that.$util.Tips({
|
|
|
|
+ title: '支付失败'
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ complete: function(res) {
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title:"",
|
|
|
|
+ content:err
|
|
|
|
+ })
|
|
|
|
+ if (res.errMsg == 'requestPayment:cancel') return that.$util.Tips({
|
|
|
|
+ title: '取消支付'
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ }).catch(err => {
|
|
|
|
+ uni.hideLoading();
|
|
|
|
+ return that.$util.Tips({
|
|
|
|
+ title: err
|
|
|
|
+ })
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ rechargeRecharge({
|
|
price: parseFloat(this.totalPrice),
|
|
price: parseFloat(this.totalPrice),
|
|
- // from: this.payType == '' ? this.$wechat.isWeixin() ? 'weixin' :'weixinh5' : this.payType,
|
|
|
|
- from: this.payType,
|
|
|
|
- rechar_id: that.rechar_id
|
|
|
|
|
|
+ type: 0,
|
|
|
|
+ rechar_id: this.rechar_id,
|
|
|
|
+ from: this.payType
|
|
}).then(res => {
|
|
}).then(res => {
|
|
- let data = res.data;
|
|
|
|
- if (data.type == "weixinh5") {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: data.msg,
|
|
|
|
- success() {
|
|
|
|
- location.href = data.data.mweb_url;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }else if(data.type == "alipay") {
|
|
|
|
- uni.hideLoading();
|
|
|
|
- uni.hideLoading();
|
|
|
|
- this.formContent = data.data;
|
|
|
|
- this.$nextTick(() => {
|
|
|
|
- document.getElementById('alipaysubmit').submit();
|
|
|
|
- });
|
|
|
|
- }else if(data.type == "weixin") {
|
|
|
|
- this.$wechat.pay(data.data).then(res => {
|
|
|
|
- this.$util.Tips({
|
|
|
|
|
|
+ uni.hideLoading();
|
|
|
|
+ let data = res.data.data;
|
|
|
|
+ // #ifdef MP
|
|
|
|
+ uni.openEmbeddedMiniProgram({
|
|
|
|
+ appId: 'wx33dc829ad98f7c64',
|
|
|
|
+ path: `pages/index/index?token=${res.data.pre_order_id}`,
|
|
|
|
+ envVersion: 'release',
|
|
|
|
+ // release: 正式版 trial: 体验版
|
|
|
|
+ success(res) {
|
|
|
|
+ return that.$util.Tips({
|
|
title: '支付成功',
|
|
title: '支付成功',
|
|
icon: 'success'
|
|
icon: 'success'
|
|
}, {
|
|
}, {
|
|
tab: 5,
|
|
tab: 5,
|
|
url: '/pages/users/user_money/index'
|
|
url: '/pages/users/user_money/index'
|
|
});
|
|
});
|
|
- }).catch(err => {
|
|
|
|
- if (err.errMsg == 'chooseWXPay:cancel') {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: '取消支付',
|
|
|
|
- icon: 'none'
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- }).catch(err=>{
|
|
|
|
|
|
+ },
|
|
|
|
+ complete(err) {
|
|
|
|
+ console.log(err,'errrs')
|
|
|
|
+ uni.hideLoading();
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ // #endif
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }).catch(err => {
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
return that.$util.Tips({
|
|
return that.$util.Tips({
|
|
title: err
|
|
title: err
|
|
})
|
|
})
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // #endif
|
|
|
|
+ // #ifdef H5
|
|
|
|
+ let that = this
|
|
|
|
+ this.pay_close = true;
|
|
|
|
+ this.totalPrice = this.rechar_id == 0 ? this.money : this.numberPic;
|
|
|
|
+ if (!this.payType) {
|
|
|
|
+ this.changePayType(type);
|
|
|
|
+ }
|
|
|
|
+ rechargeWechat({
|
|
|
|
+ price: parseFloat(this.totalPrice),
|
|
|
|
+ // from: this.payType == '' ? this.$wechat.isWeixin() ? 'weixin' :'weixinh5' : this.payType,
|
|
|
|
+ from: this.payType,
|
|
|
|
+ rechar_id: that.rechar_id
|
|
|
|
+ }).then(res => {
|
|
|
|
+ let data = res.data;
|
|
|
|
+ if (data.type == "weixinh5") {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: data.msg,
|
|
|
|
+ success() {
|
|
|
|
+ location.href = data.data.mweb_url;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ } else if (data.type == "alipay") {
|
|
|
|
+ uni.hideLoading();
|
|
|
|
+ uni.hideLoading();
|
|
|
|
+ this.formContent = data.data;
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ document.getElementById('alipaysubmit').submit();
|
|
|
|
+ });
|
|
|
|
+ } else if (data.type == "weixin") {
|
|
|
|
+ this.$wechat.pay(data.data).then(res => {
|
|
|
|
+ this.$util.Tips({
|
|
|
|
+ title: '支付成功',
|
|
|
|
+ icon: 'success'
|
|
|
|
+ }, {
|
|
|
|
+ tab: 5,
|
|
|
|
+ url: '/pages/users/user_money/index'
|
|
|
|
+ });
|
|
|
|
+ }).catch(err => {
|
|
|
|
+ if (err.errMsg == 'chooseWXPay:cancel') {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '取消支付',
|
|
|
|
+ icon: 'none'
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ } else if (data.type == "huifu") {
|
|
|
|
+ this.$wechat.pay(data.data).then(res => {
|
|
|
|
+ this.$util.Tips({
|
|
|
|
+ title: '支付成功',
|
|
|
|
+ icon: 'success'
|
|
|
|
+ }, {
|
|
|
|
+ tab: 5,
|
|
|
|
+ url: '/pages/users/user_money/index'
|
|
|
|
+ });
|
|
|
|
+ }).catch(err => {
|
|
|
|
+ if (err.errMsg == 'chooseWXPay:cancel') {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '取消支付',
|
|
|
|
+ icon: 'none'
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }).catch(err => {
|
|
|
|
+ uni.hideLoading();
|
|
|
|
+ return that.$util.Tips({
|
|
|
|
+ title: err
|
|
})
|
|
})
|
|
|
|
+ })
|
|
// #endif
|
|
// #endif
|
|
},
|
|
},
|
|
/*
|
|
/*
|
|
@@ -460,7 +563,7 @@
|
|
this.pay_close = true;
|
|
this.pay_close = true;
|
|
// #endif
|
|
// #endif
|
|
// #ifndef MP
|
|
// #ifndef MP
|
|
- this.pay_close = true;
|
|
|
|
|
|
+ this.pay_close = true;
|
|
// #endif
|
|
// #endif
|
|
this.totalPrice = this.rechar_id == 0 ? parseFloat(this.money) : parseFloat(this.numberPic);
|
|
this.totalPrice = this.rechar_id == 0 ? parseFloat(this.money) : parseFloat(this.numberPic);
|
|
}
|
|
}
|
|
@@ -475,9 +578,11 @@
|
|
height: 100%;
|
|
height: 100%;
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
}
|
|
}
|
|
- .bgcolor{
|
|
|
|
|
|
+
|
|
|
|
+ .bgcolor {
|
|
background-color: var(--view-theme)
|
|
background-color: var(--view-theme)
|
|
}
|
|
}
|
|
|
|
+
|
|
.payment {
|
|
.payment {
|
|
position: relative;
|
|
position: relative;
|
|
width: 100%;
|
|
width: 100%;
|
|
@@ -514,7 +619,7 @@
|
|
font-size: 56rpx;
|
|
font-size: 56rpx;
|
|
color: #333333;
|
|
color: #333333;
|
|
flex-wrap: nowrap;
|
|
flex-wrap: nowrap;
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
.payment .input text {
|
|
.payment .input text {
|
|
@@ -613,26 +718,30 @@
|
|
color: #fff !important;
|
|
color: #fff !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .tips-box{
|
|
|
|
|
|
+
|
|
|
|
+ .tips-box {
|
|
.tips {
|
|
.tips {
|
|
- font-size: 28rpx;
|
|
|
|
- color: #333333;
|
|
|
|
- font-weight: 800;
|
|
|
|
- margin-bottom: 14rpx;
|
|
|
|
|
|
+ font-size: 28rpx;
|
|
|
|
+ color: #333333;
|
|
|
|
+ font-weight: 800;
|
|
|
|
+ margin-bottom: 14rpx;
|
|
margin-top: 20rpx;
|
|
margin-top: 20rpx;
|
|
}
|
|
}
|
|
|
|
+
|
|
.tips-samll {
|
|
.tips-samll {
|
|
- font-size: 24rpx;
|
|
|
|
- color: #333333;
|
|
|
|
- margin-bottom: 14rpx;
|
|
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ color: #333333;
|
|
|
|
+ margin-bottom: 14rpx;
|
|
}
|
|
}
|
|
|
|
+
|
|
.tip-box {
|
|
.tip-box {
|
|
- margin-top: 30rpx;
|
|
|
|
|
|
+ margin-top: 30rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .tips-title{
|
|
|
|
|
|
+
|
|
|
|
+ .tips-title {
|
|
margin-top: 20rpx;
|
|
margin-top: 20rpx;
|
|
font-size: 24rpx;
|
|
font-size: 24rpx;
|
|
color: #333;
|
|
color: #333;
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
|
|
+</style>
|