diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json index 075b9c5..261ce48 100644 --- a/.hbuilderx/launch.json +++ b/.hbuilderx/launch.json @@ -2,6 +2,10 @@ // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数 "version": "0.0", "configurations": [{ + "app-plus" : + { + "launchtype" : "remote" + }, "default" : { "launchtype" : "remote" diff --git a/pages/cart/payment/payOrder.vue b/pages/cart/payment/payOrder.vue index a013ab6..86c6834 100644 --- a/pages/cart/payment/payOrder.vue +++ b/pages/cart/payment/payOrder.vue @@ -162,10 +162,7 @@ // #endif - // #ifndef APP-PLUS - //判断是否微信浏览器 - var ua = window.navigator.userAgent.toLowerCase(); - // #endif + @@ -178,15 +175,20 @@ else{ this.payList = res.data.result.support; } - - // #endif + // #ifndef APP-PLUS + //判断是否微信浏览器 + var ua = window.navigator.userAgent.toLowerCase(); if (ua.match(/MicroMessenger/i) == 'micromessenger') { - console.log("微信浏览器") + this.payList = res.data.result.support.filter((item) => { return item != "ALIPAY"; }); } + // #endif + + // #endif + this.walletValue = res.data.result.walletValue; this.autoCancel =