From 42a48ac3b34208c1eb416bb6c800c4a67bb76365 Mon Sep 17 00:00:00 2001 From: qzc Date: Wed, 10 Jul 2024 09:37:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=94=A8=E6=88=B7=E8=A1=8C?= =?UTF-8?q?=E4=B8=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/addressBook/addressBook.vue | 17 +++++++++++++++-- pages/homeIndex/index.vue | 25 ++++++++++++++++++++----- pages/mypage/mypage.vue | 16 ++++++++++++++++ 3 files changed, 51 insertions(+), 7 deletions(-) diff --git a/pages/addressBook/addressBook.vue b/pages/addressBook/addressBook.vue index 7584557..02120d9 100644 --- a/pages/addressBook/addressBook.vue +++ b/pages/addressBook/addressBook.vue @@ -104,6 +104,7 @@ }, onShow() { this.getSearch(this.keyword) + this.setInsert() }, methods: { getHighlight(val) { @@ -184,8 +185,20 @@ uni.$showMsg() } - } - , + }, + async setInsert () { + try { + const params = { + createId: uni.getStorageSync('value').userId, + loginType:1, + menu1:'通讯录', + menu2:'通讯录', + } + + const { data } = await uni.$http.post('/gunshiApp/xfflood/visitMenuLog/insert',params) + console.log('用户行为',params,data) + } catch (error) {} + }, itemClick(item,index) { this.treeData = item.children, this.treePath = [...this.treePath,{ diff --git a/pages/homeIndex/index.vue b/pages/homeIndex/index.vue index 0276ac0..de86fd6 100644 --- a/pages/homeIndex/index.vue +++ b/pages/homeIndex/index.vue @@ -25,7 +25,7 @@