浏览代码

修改购物车供应商shopId

zhengjinyi 3 年之前
父节点
当前提交
c9a60c14e7

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

@@ -203,7 +203,7 @@ var payContainer = new Vue({
                         _self.PayOrdersecondAliPay(params);
                     }else{
                         var params = {//正常订单
-                                payAmount:parseInt(_self.payAmount*100),
+                                payAmount:Math.round(_self.payAmount*100),
                                 returnUrl:'https://www.caimei365.com/',
                                 orderId:_self.payInfo.payOrderId
                             };
@@ -220,7 +220,7 @@ var payContainer = new Vue({
                     }else{
                         var params = {//正常订单
                             payWay:_self.payInfo.payBankNum,
-                            payAmount:parseInt(_self.payAmount*100),
+                            payAmount:Math.round(_self.payAmount*100),
                             returnUrl:'https://www.caimei365.com/',
                             orderId:_self.payInfo.payOrderId
                         };

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

@@ -69,7 +69,7 @@ var payContainer = new Vue({
         WxRequestPaymentFn:function(){
             var _this = this;
             var params={
-                    payAmount:_this.payAmount*100,
+                    payAmount:Math.round(_this.payAmount*100),
                     code:_this.wechatcode,
                     state:_this.rand(1000,9999),
                     orderId:_this.orderID,