|
@@ -112,6 +112,10 @@ var payContainer = new Vue({
|
|
|
if(response.code == 0){
|
|
|
if(response.data === 0){
|
|
|
_self.isPaySwitch = true;
|
|
|
+ if (_self.pageType === '2') {
|
|
|
+ CAIMEI.dialog('支付系统遇到点小问题,请稍后重试', false);
|
|
|
+ return;
|
|
|
+ }
|
|
|
CAIMEI.Alert('线上支付功能正在维护中,请前往订单详情页面查看线下转账方式后进行付款','确定',true,function(){
|
|
|
window.location.href='/user/order/detail.html?orderId='+_self.payInfo.payOrderId;
|
|
|
});
|
|
@@ -123,6 +127,9 @@ var payContainer = new Vue({
|
|
|
},
|
|
|
PayMobileSubmitFn:function(){//点击移动支付方式
|
|
|
var _self = this;
|
|
|
+ if(_self.pageType === '2'){
|
|
|
+ return _self.PayOrderOnLineSwitch();
|
|
|
+ }
|
|
|
if(_self.invoiceStatus){
|
|
|
_self.layerConfirm();
|
|
|
}else{
|
|
@@ -579,6 +586,7 @@ var payContainer = new Vue({
|
|
|
PayApi.PayVipAliPay(params, function(response){
|
|
|
console.log(response);
|
|
|
if (response.code === 0) {
|
|
|
+ _self.isPayAlert = true;
|
|
|
_self.mbOrderId = response.data.data.mbOrderId;
|
|
|
_self.payInfo.payMobileUrl = response.data.data.payUrl;
|
|
|
_self.payInfo.payData = {
|
|
@@ -601,16 +609,27 @@ var payContainer = new Vue({
|
|
|
},
|
|
|
// 微信支付会员
|
|
|
payVipMiniWxPay: function(){
|
|
|
- this.payInfo.payData = {//二手
|
|
|
- type: this.payInfo.payBankNum,
|
|
|
- vipId: this.comboInfo.id,
|
|
|
- vipRecordId: this.vipRecordId,
|
|
|
- amount: this.payAmount,
|
|
|
- duration: this.comboInfo.duration,
|
|
|
- };
|
|
|
- CAIMEI.Storage.setItem('payData', JSON.stringify(this.payInfo.payData));
|
|
|
- window.open("/pay/caimei-paymobile.html?pageType=2");
|
|
|
- this.isPayAlert = true;
|
|
|
+ if (!isPC) {
|
|
|
+ var orderInfo = {//普通订单微信二维码参数
|
|
|
+ pageType: 2,
|
|
|
+ vipId: this.comboInfo.id,
|
|
|
+ vipRecordId: this.vipRecordId,
|
|
|
+ payAmount: this.payAmount
|
|
|
+ };
|
|
|
+ this.payInfo.payMobileUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxea43a0f9ebce9e66&redirect_uri=https://www.caimei365.com/pay/wechatpay.html&response_type=code&scope=snsapi_base&state=" + JSON.stringify(orderInfo) + "#wechat_redirect";
|
|
|
+ location.href = this.payInfo.payMobileUrl;
|
|
|
+ } else {
|
|
|
+ this.payInfo.payData = {
|
|
|
+ type: this.payInfo.payBankNum,
|
|
|
+ vipId: this.comboInfo.id,
|
|
|
+ vipRecordId: this.vipRecordId,
|
|
|
+ amount: this.payAmount,
|
|
|
+ duration: this.comboInfo.duration,
|
|
|
+ };
|
|
|
+ CAIMEI.Storage.setItem('payData', JSON.stringify(this.payInfo.payData));
|
|
|
+ window.open("/pay/caimei-paymobile.html?pageType=2");
|
|
|
+ this.isPayAlert = true;
|
|
|
+ }
|
|
|
},
|
|
|
},
|
|
|
mounted: function () {
|
|
@@ -624,6 +643,7 @@ var payContainer = new Vue({
|
|
|
_self.isRequest = true;
|
|
|
_self.payStatusText = '';
|
|
|
} else if (_self.pageType === '2') { // 支付会员
|
|
|
+ this.PayOrderOnLineSwitch();
|
|
|
// 从本地获取选中的svip套餐信息后删除本地信息
|
|
|
this.comboInfo = JSON.parse(CAIMEI.Storage.getItem('comboInfo'));
|
|
|
// CAIMEI.Storage.removeItem('comboInfo');
|