|
@@ -5,22 +5,23 @@ var hlbWechatMixin = function () {
|
|
|
methods: {
|
|
|
hlb_WxRequestPaymentFn:function(){ // 普通订单合利宝公众号支付
|
|
|
var _this = this;
|
|
|
+ _this.isSubMitStatus=true;
|
|
|
var params={
|
|
|
payType:'GZH',
|
|
|
- payAmount:Math.round(_this.payAmount),
|
|
|
+ payAmount:parseFloat(_this.payAmount),
|
|
|
code:_this.wechatcode,
|
|
|
state:_this.rand(1000,9999),
|
|
|
shopOrderId:_this.shopOrderId,
|
|
|
returnUrl:'https://www.caimei365.com/',
|
|
|
};
|
|
|
console.log('=========>普通订单合利宝公众号支付',params)
|
|
|
- _this.isSubMitStatus=true;
|
|
|
PayApi.PayOrderPcScanWxPay(params,function(response){
|
|
|
_this.hlb_handlResponse(response)
|
|
|
})
|
|
|
},
|
|
|
hlb_WxRequestPaymentVipFn: function(){ // 超级会员合利宝公众号支付
|
|
|
var _this = this;
|
|
|
+ _this.isSubMitStatus=true;
|
|
|
var params = {
|
|
|
payType:'GZH',
|
|
|
code: _this.wechatcode,
|
|
@@ -30,13 +31,13 @@ var hlbWechatMixin = function () {
|
|
|
returnUrl: 'https://www.caimei365.com/',
|
|
|
};
|
|
|
console.log('=========>超级会员合利宝公众号支付',params)
|
|
|
- _this.isSubMitStatus=true;
|
|
|
PayApi.PayVipMiniWxPay(params,function(response){
|
|
|
_this.hlb_handlResponse(response)
|
|
|
});
|
|
|
},
|
|
|
hlb_WxRequestPaymentCouponFn: function(){// 优惠券合利宝公众号支付
|
|
|
var _this = this;
|
|
|
+ _this.isSubMitStatus=true;
|
|
|
var params = {
|
|
|
payType:'GZH',
|
|
|
code: _this.wechatcode,
|
|
@@ -48,13 +49,13 @@ var hlbWechatMixin = function () {
|
|
|
source:2 //支付来源 1 小程序 2 WWW
|
|
|
};
|
|
|
console.log('=========>优惠券合利宝公众号支付',params)
|
|
|
- _this.isSubMitStatus=true;
|
|
|
PayApi.PayCouponMiniWxPay(params,function(response){
|
|
|
_this.hlb_handlResponse(response)
|
|
|
});
|
|
|
},
|
|
|
hlb_WxRequestPaymentAuthVipFn: function(){// 认证通会员合利宝公众号支付
|
|
|
var _this = this;
|
|
|
+ _this.isSubMitStatus=true;
|
|
|
var params = {
|
|
|
payType:'GZH',
|
|
|
code: _this.wechatcode,
|
|
@@ -64,13 +65,14 @@ var hlbWechatMixin = function () {
|
|
|
returnUrl: 'https://www.caimei365.com/',
|
|
|
};
|
|
|
console.log('=========>认证通会员合利宝公众号支付',params)
|
|
|
- _this.isSubMitStatus=true;
|
|
|
+
|
|
|
PayApi.PayAuthVipMiniWxPay(params,function(response){
|
|
|
_this.hlb_handlResponse(response)
|
|
|
});
|
|
|
},
|
|
|
hlb_WxRequestsecondHandPay:function(){ // 二手发布合利宝公众号支付
|
|
|
var _this = this;
|
|
|
+ _this.isSubMitStatus=true;
|
|
|
var params = {
|
|
|
payType:'GZH',
|
|
|
code: _this.wechatcode,
|
|
@@ -79,7 +81,6 @@ var hlbWechatMixin = function () {
|
|
|
returnUrl: 'https://www.caimei365.com/',
|
|
|
};
|
|
|
console.log('=========>二手发布合利宝公众号支付',params)
|
|
|
- _this.isSubMitStatus=true;
|
|
|
PayApi.PayOrdersecondWechat(params,function(response){
|
|
|
_this.hlb_handlResponse(response)
|
|
|
});
|