From 8f5f44022b38dbdff3ac72fec6dc854fbbb01b10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Mon, 23 Aug 2021 11:54:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96app=E4=B8=AD=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E6=97=B6=E9=97=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .hbuilderx/launch.json | 4 ++++ pages/cart/payment/payOrder.vue | 16 +++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) 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 =