From efa9bfe98ba906e4c9b8f49c89f5da162a46bb0f Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期一, 13 一月 2025 10:21:24 +0800
Subject: [PATCH] 1.微信一键登录:新增“同意用户协议”之后才可登录
---
mixin/mixin.js | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/mixin/mixin.js b/mixin/mixin.js
index ee51659..2564b5f 100644
--- a/mixin/mixin.js
+++ b/mixin/mixin.js
@@ -50,6 +50,7 @@
// regAvatarUrl: 'https://youzhen123.oss-cn-huhehaote.aliyuncs.com/WechatOwnerProperty/images/mrtx.png',
regUserName: '',
regAvatarUrl: '',
+ previewImgSign:false,
}
},
methods: {
@@ -78,6 +79,10 @@
this.regUserName = e.detail.value; // 获取微信昵称
},
+ handleContact(e) {
+ console.log(e.detail.path)
+ console.log(e.detail.query)
+ },
@@ -127,14 +132,29 @@
} else {
//根据id去重正常
var ids = []
+ var idsMap = {}
for (var item of this.list) {
ids.push(item.id)
+ if (item.id) {
+ idsMap[item.id] = item
+ }
}
+ var hasnew = false
for (var item of data.records) {
if (ids.indexOf(item.id) < 0) {
this.list.push(item)
+ } else {
+ //最好更新一下
+ idsMap[item.id] = {
+ ...idsMap[item.id],
+ ...item, //覆盖了
+ }
+ hasnew = true
}
}
+ if (hasnew) {
+ this.$forceUpdate()
+ }
}
this.page.total = data.total || 0
--
Gitblit v1.9.3