|
|
@@ -42,13 +42,20 @@
|
|
|
<view class="type">选择支付方式</view>
|
|
|
<view class="image" @click="close"><image src="../../static/img/x.png" mode="aspectFill"></image></view>
|
|
|
</view>
|
|
|
- <view class="paybox-main flex">
|
|
|
+ <!-- <view class="paybox-main flex">
|
|
|
<view class="zftype flex">
|
|
|
<image src="../../static/img/weixin.png" mode="aspectFill"></image>
|
|
|
<view class="zf">微信支付</view>
|
|
|
</view>
|
|
|
<label class="radio1" @click="changePayType(1)"><radio style="transform:scale(0.7)" value="" :checked="payType == 1" color="#5dbc7c"></radio></label>
|
|
|
</view>
|
|
|
+ <view class="paybox-main flex">
|
|
|
+ <view class="zftype flex">
|
|
|
+ <image src="../../static/img/weixin.png" mode="aspectFill"></image>
|
|
|
+ <view class="zf">支付宝支付</view>
|
|
|
+ </view>
|
|
|
+ <label class="radio1" @click="changePayType(4)"><radio style="transform:scale(0.7)" value="" :checked="payType == 4" color="#5dbc7c"></radio></label>
|
|
|
+ </view> -->
|
|
|
<view class="paybox-main flex">
|
|
|
<view class="zftype flex">
|
|
|
<image src="../../static/img/yue.png" mode="aspectFill"></image>
|
|
|
@@ -103,8 +110,8 @@ export default {
|
|
|
// }
|
|
|
],
|
|
|
desc: '', //备注
|
|
|
- payType: 1, //1微信 2余额 2佣金
|
|
|
- payName:'weixin',
|
|
|
+ payType: 2, //1微信 2余额 2佣金
|
|
|
+ payName:'yue',
|
|
|
// 商品列表
|
|
|
shopList: '',
|
|
|
// 购物车id
|
|
|
@@ -184,7 +191,11 @@ export default {
|
|
|
}
|
|
|
if (this.payType == 3) {
|
|
|
this.payName = 'brokerage';
|
|
|
- console.log('yue', this.payName);
|
|
|
+ console.log('brokerage', this.payName);
|
|
|
+ }
|
|
|
+ if (this.payType == 4) {
|
|
|
+ this.payName = 'ali';
|
|
|
+ console.log('ali', this.payName);
|
|
|
}
|
|
|
},
|
|
|
// 提交订单
|
|
|
@@ -196,28 +207,28 @@ export default {
|
|
|
try {
|
|
|
let obj = this;
|
|
|
// 判断是否余额不足
|
|
|
- if (obj.payName == 'yue' && +obj.now_money < obj.payAllMoney) {
|
|
|
- uni.showModal({
|
|
|
- title: '提示',
|
|
|
- content: '账户余额不足!',
|
|
|
- showCancel: false,
|
|
|
- success: res => {},
|
|
|
- fail: () => {},
|
|
|
- complete: () => {}
|
|
|
- });
|
|
|
- return;
|
|
|
- }
|
|
|
- if (obj.payName == 'yue' && +obj.now_money < obj.payAllMoney) {
|
|
|
- uni.showModal({
|
|
|
- title: '提示',
|
|
|
- content: '账户余额不足!',
|
|
|
- showCancel: false,
|
|
|
- success: res => {},
|
|
|
- fail: () => {},
|
|
|
- complete: () => {}
|
|
|
- });
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if (obj.payName == 'yue' && +obj.now_money < obj.payAllMoney) {
|
|
|
+ // uni.showModal({
|
|
|
+ // title: '提示',
|
|
|
+ // content: '账户余额不足!',
|
|
|
+ // showCancel: false,
|
|
|
+ // success: res => {},
|
|
|
+ // fail: () => {},
|
|
|
+ // complete: () => {}
|
|
|
+ // });
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // if (obj.payName == 'yue' && +obj.now_money < obj.payAllMoney) {
|
|
|
+ // uni.showModal({
|
|
|
+ // title: '提示',
|
|
|
+ // content: '账户余额不足!',
|
|
|
+ // showCancel: false,
|
|
|
+ // success: res => {},
|
|
|
+ // fail: () => {},
|
|
|
+ // complete: () => {}
|
|
|
+ // });
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
// 支付中
|
|
|
obj.payLoding = true;
|
|
|
// #ifdef H5
|