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

修改问题文档

@@ -304,7 +304,7 @@ @@ -304,7 +304,7 @@
304 <div class="paymentMode" onclick="changeRadioState(1)"> 304 <div class="paymentMode" onclick="changeRadioState(1)">
305 <img id="weChat" class="checkboxImg" src="__CDN__/assets/store/images/checkbox_orange.png" alt="radio"> 305 <img id="weChat" class="checkboxImg" src="__CDN__/assets/store/images/checkbox_orange.png" alt="radio">
306 <div> 306 <div>
307 - <img src="images/weixin.png" alt="" class="paymentModeIcon"> 307 + <img src="__CDN__/assets/store/images/weixin.png" alt="" class="paymentModeIcon">
308 <span class="paymentModeText">微信支付</span> 308 <span class="paymentModeText">微信支付</span>
309 </div> 309 </div>
310 310
@@ -312,7 +312,7 @@ @@ -312,7 +312,7 @@
312 <div class="paymentMode" onclick="changeRadioState(2)"> 312 <div class="paymentMode" onclick="changeRadioState(2)">
313 <img id="aliPay" class="checkboxImg" src="__CDN__/assets/store/images/radioUnSelect.png" alt="radio"> 313 <img id="aliPay" class="checkboxImg" src="__CDN__/assets/store/images/radioUnSelect.png" alt="radio">
314 <div> 314 <div>
315 - <img src="images/zhufubao.png" alt="" class="paymentModeIcon"> 315 + <img src="__CDN__/assets/store/images/zhufubao.png" alt="" class="paymentModeIcon">
316 <span class="paymentModeText">支付宝支付</span> 316 <span class="paymentModeText">支付宝支付</span>
317 </div> 317 </div>
318 </div> 318 </div>
@@ -397,6 +397,7 @@ @@ -397,6 +397,7 @@
397 success: function (res) { 397 success: function (res) {
398 console.log(res); 398 console.log(res);
399 if (res.code == 1) { 399 if (res.code == 1) {
  400 + if(res.data.status == 1){
400 if (pay_type == 1) { 401 if (pay_type == 1) {
401 //微信支付 402 //微信支付
402 order_id = res.data.viporder_id; 403 order_id = res.data.viporder_id;
@@ -407,6 +408,9 @@ @@ -407,6 +408,9 @@
407 order_id = res.data.viporder_id; 408 order_id = res.data.viporder_id;
408 window.open(res.data.url); 409 window.open(res.data.url);
409 } 410 }
  411 + }else{
  412 + window.location.href="{:url('index/member/member')}";
  413 + }
410 } else { 414 } else {
411 toast(res.msg); 415 toast(res.msg);
412 return false; 416 return false;