From fe0d888da06aed2a56eff6358190d8cf1746da90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Fri, 10 Sep 2021 10:45:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BE=AE=E4=BF=A1=E7=BD=91?= =?UTF-8?q?=E9=A1=B5=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/cart/payment/payOrder.vue | 4 +- pages/passport/codeLogin.vue | 16 +--- pages/passport/login.vue | 86 +++++++++-------- pages/passport/wechatH5Login.vue | 153 +++++++++++++++++++++++++++++++ 4 files changed, 203 insertions(+), 56 deletions(-) create mode 100644 pages/passport/wechatH5Login.vue diff --git a/pages/cart/payment/payOrder.vue b/pages/cart/payment/payOrder.vue index e6060ac..0f8da5e 100644 --- a/pages/cart/payment/payOrder.vue +++ b/pages/cart/payment/payOrder.vue @@ -260,7 +260,7 @@ }, fail: (e) => { - console.log(e); + console.log(this); this.exception = e; uni.showModal({ content: "支付失败,如果您已支付,请勿反复支付", @@ -298,7 +298,7 @@ WeixinJSBridge.invoke( "getBrandWCPayRequest", response.result, - function(res) { + (res) => { if (res.err_msg == "get_brand_wcpay_request:ok") { // 使用以上方式判断前端返回,微信团队郑重提示: //res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。 diff --git a/pages/passport/codeLogin.vue b/pages/passport/codeLogin.vue index 62febf1..3fcfdb7 100644 --- a/pages/passport/codeLogin.vue +++ b/pages/passport/codeLogin.vue @@ -29,7 +29,6 @@ import storage from "@/utils/storage.js"; //缓存 import { whetherNavigate } from "@/utils/Foundation"; //登录跳转 import myVerification from "@/components/verification/verification.vue"; //验证码模块 import uuid from "@/utils/uuid.modified.js"; // uuid -import api from "@/config/api.js"; export default { components: { myVerification, @@ -192,21 +191,8 @@ export default { }, // 跳转到一键登录 clickLogin() { - // #ifndef APP-PLUS - //判断是否微信浏览器 - var ua = window.navigator.userAgent.toLowerCase(); - if (ua.match(/MicroMessenger/i) == "micromessenger") { - let code = "WECHAT"; - let buyer = api.buyer; - window.open(buyer + `/connect/login/web/` + code, "_self"); - } - else{ - this.$emit("open", "click"); - } - // #endif - // #ifdef APP-PLUS this.$emit("open", "click"); - // #endif + }, /**点击验证码*/ diff --git a/pages/passport/login.vue b/pages/passport/login.vue index cfd35fc..f2b455f 100644 --- a/pages/passport/login.vue +++ b/pages/passport/login.vue @@ -1,27 +1,33 @@ + +