From 55803b1a7b478aade9b6e59ca6675777375e2a92 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期五, 07 七月 2023 15:48:24 +0800 Subject: [PATCH] no message --- uniapp/pages/index/index.vue | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/uniapp/pages/index/index.vue b/uniapp/pages/index/index.vue index 8b90c02..41c8d5a 100644 --- a/uniapp/pages/index/index.vue +++ b/uniapp/pages/index/index.vue @@ -132,9 +132,9 @@ } }, onLoad() { - this.getCategoryList(); this.getPopBannerInfo(); + this.updateCid(); }, onShow() { if(!this.hasshow) @@ -155,6 +155,21 @@ }, watch: {}, methods: { + updateCid() + { + //浠庣紦瀛樿幏鍙朿id + let clientInfo = uni.getStorageSync('clientInfo'); + console.log(clientInfo); + if(clientInfo&&clientInfo.clientid) + { + this.$u.api.updateCid({ + pushcid:clientInfo.clientid + }).then(e => { + console.log(e); + }).catch(function (err) { + }) + } + }, shShow() { var that=this; -- Gitblit v1.9.3