From efa9bfe98ba906e4c9b8f49c89f5da162a46bb0f Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期一, 13 一月 2025 10:21:24 +0800
Subject: [PATCH] 1.微信一键登录:新增“同意用户协议”之后才可登录

---
 pages/login/supplier-login.vue |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/pages/login/supplier-login.vue b/pages/login/supplier-login.vue
index 441ddef..8e4c9bf 100644
--- a/pages/login/supplier-login.vue
+++ b/pages/login/supplier-login.vue
@@ -387,7 +387,9 @@
 	},
 
 	onShow() {
-		this.getOpenId();
+		// #ifdef PUB_CUSTOMER
+		 	this.getOpenId();
+		// #endif
 	},
 	onShareAppMessage() {
 		let that = this;
@@ -484,6 +486,10 @@
 
 		async handleGetPhoneNumber(e){
 			let that = this
+			if (!this.protocal) {
+				this.$message.showToast('请同意用户协议')
+				return
+			}
 			console.log(e)
 			console.log(e.detail.code)  // 动态令牌
 			console.log(e.detail.errMsg) // 回调信息(成功失败都会返回)
@@ -606,6 +612,12 @@
 
 		
 		handleWechatClick() {
+
+			if (!this.protocal) {
+				this.$message.showToast('请同意用户协议')
+				return
+			}
+
 			let that = this
 			// 微信登录
 			uni.login({

--
Gitblit v1.9.3