|
|
@@ -37,7 +37,7 @@ |
|
|
|
</label> |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
<uni-popup ref="popup" type="center"> |
|
|
|
<uni-popup ref="popup" type="center" :maskClick="false"> |
|
|
|
<image mode="aspectFit" :src="'http://nwx.zhizhuchuxing.cn/addons/unishop/order/addQRCode?url=' + encodeURIComponent(site)"> |
|
|
|
</image> |
|
|
|
</uni-popup> |
|
|
@@ -73,9 +73,15 @@ |
|
|
|
this.total = options.total; |
|
|
|
this.orderId = options.order_id; |
|
|
|
this.out_trade_no = options.out_trade_no; |
|
|
|
console.log(window.location.href) |
|
|
|
this.getPayType(); |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
if (navigator.platform == 'Win32') { |
|
|
|
this.$nextTick(() => { |
|
|
|
// this.$refs.popup.open() |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 获取支付方式 |
|
|
|
async getPayType() { |
|
|
@@ -101,22 +107,17 @@ |
|
|
|
//确认支付 |
|
|
|
async confirm() { |
|
|
|
console.log(navigator.platform) |
|
|
|
if(navigator.platform=='Win32'){ |
|
|
|
this.$refs.popup.open() |
|
|
|
}else{ |
|
|
|
if (this.payType == 1) { |
|
|
|
// #ifdef H5 || APP-PLUS || MP-WEIXIN |
|
|
|
this.weixinPay(); |
|
|
|
// #endif |
|
|
|
} else if (this.payType == 2) { |
|
|
|
// 支付宝支付 |
|
|
|
this.alipay(); |
|
|
|
} else if (this.payType == 3) { |
|
|
|
// // 货到付款 |
|
|
|
this.offlinePay(); |
|
|
|
} |
|
|
|
// if (this.payType == 1) { |
|
|
|
// // #ifdef H5 || APP-PLUS || MP-WEIXIN |
|
|
|
// this.weixinPay(); |
|
|
|
// // #endif |
|
|
|
// } else if (this.payType == 2) { |
|
|
|
// // 支付宝支付 |
|
|
|
// this.alipay(); |
|
|
|
// } |
|
|
|
// else if (this.payType == 3) { |
|
|
|
// // 货到付款 |
|
|
|
// } |
|
|
|
}, |
|
|
|
async alipay() { |
|
|
|
|
|
|
|