|
@@ -593,8 +593,13 @@ $(function () {
|
|
|
$DoPost("/subscribepay/vipsubscribe/upgrade", param, function (r) {
|
|
|
if (r.success) {
|
|
|
clearSessionStorage();
|
|
|
- history.replaceState({}, '', '/front/vipsubscribe/toOrderDetailPage?orderCode=' + r.data.code);
|
|
|
- window.location.href = "/weixin/pay/checkout_subvip?t=2&orderCode=" + r.data.code;
|
|
|
+ if (r.data.needPay) {
|
|
|
+ history.replaceState({}, '', '/front/vipsubscribe/toOrderDetailPage?orderCode=' + r.data.code);
|
|
|
+ window.location.href = "/weixin/pay/checkout_subvip?t=2&orderCode=" + r.data.code;
|
|
|
+ } else {
|
|
|
+ // 0元订单提交
|
|
|
+ window.location.replace("/weixin/subvip/paySuccess?orderCode=" + r.data.code + '&t=2');
|
|
|
+ }
|
|
|
} else {
|
|
|
$('.vip-footer.renew .confirm').removeAttr("disabled");
|
|
|
}
|