作者 王晓刚
1 个管道 的构建 通过 耗费 0 秒

修改问题文档

... ... @@ -304,7 +304,7 @@
<div class="paymentMode" onclick="changeRadioState(1)">
<img id="weChat" class="checkboxImg" src="__CDN__/assets/store/images/checkbox_orange.png" alt="radio">
<div>
<img src="images/weixin.png" alt="" class="paymentModeIcon">
<img src="__CDN__/assets/store/images/weixin.png" alt="" class="paymentModeIcon">
<span class="paymentModeText">微信支付</span>
</div>
... ... @@ -312,7 +312,7 @@
<div class="paymentMode" onclick="changeRadioState(2)">
<img id="aliPay" class="checkboxImg" src="__CDN__/assets/store/images/radioUnSelect.png" alt="radio">
<div>
<img src="images/zhufubao.png" alt="" class="paymentModeIcon">
<img src="__CDN__/assets/store/images/zhufubao.png" alt="" class="paymentModeIcon">
<span class="paymentModeText">支付宝支付</span>
</div>
</div>
... ... @@ -397,15 +397,19 @@
success: function (res) {
console.log(res);
if (res.code == 1) {
if (pay_type == 1) {
//微信支付
order_id = res.data.viporder_id;
$('#payModal').show();
$('.modal-left .modal-qrcode').attr('src',res.data.url);
} else if (pay_type == 2) {
//支付宝支付
order_id = res.data.viporder_id;
window.open(res.data.url);
if(res.data.status == 1){
if (pay_type == 1) {
//微信支付
order_id = res.data.viporder_id;
$('#payModal').show();
$('.modal-left .modal-qrcode').attr('src',res.data.url);
} else if (pay_type == 2) {
//支付宝支付
order_id = res.data.viporder_id;
window.open(res.data.url);
}
}else{
window.location.href="{:url('index/member/member')}";
}
} else {
toast(res.msg);
... ...