瀏覽代碼

微信H5 支付

zhengjinyi 3 年之前
父節點
當前提交
f33345776d

+ 2 - 1
src/main/resources/static/js/pay/caimei-paymobile.js

@@ -153,7 +153,8 @@ var payContainer = new Vue({
             }
             // _self.payInfo.payMobileUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx91c4152b60ca91a3&redirect_uri=https://www-b.caimei365.com/pay/wechatpay.html&response_type=code&scope=snsapi_base&state="+JSON.stringify(orderInfo)+"#wechat_redirect";
             _self.payInfo.payMobileUrl = 'https://www-b.caimei365.com/wxcode.html?orderInfo='+encodeURIComponent(JSON.stringify(orderInfo));
-            // console.log(_self.payInfo.payMobileUrl);
+            console.log(_self.payInfo.payMobileUrl);
+            window.open(_self.payInfo.payMobileUrl)
             var qrcode = new QRCode(document.getElementById("wx_pay_container"), {
                 render: "canvas", //也可以替换为table
                 text: _self.payInfo.payMobileUrl,

+ 1 - 1
src/main/resources/static/js/pay/mixin/hlb_wxMixin.js

@@ -7,7 +7,7 @@ var hlbWechatMixin = function () {
 				var _this = this;
 				var params={
 					payType:'GZH',
-					payAmount:Math.round(_this.payAmount),
+					payAmount:parseFloat(_this.payAmount),
 					code:_this.wechatcode,
 					state:_this.rand(1000,9999),
 					shopOrderId:_this.shopOrderId,

+ 1 - 0
src/main/resources/static/js/shopping/confirm.js

@@ -809,6 +809,7 @@ var shoppingConfirm = new Vue({
         var urlType = getUrlParam("type") ? getUrlParam("type")*1 : "";
         if(globalUserData){
             _self.userId = _self.productParam.userId = _self.cartParam.userId = _self.postageParam.userId = _self.supportParm.userId =   globalUserData.userId;
+            _self.confirmParam.unionId = globalUserData.unionId ? globalUserData.unionId : '';
             _self.confirmParam.clubId = globalUserData.clubId
             _self.userIdentity = globalUserData.identity;
             _self.userToken = globalUserData.token;