From 86803be7b3dbfb3a752f35cc61004095f6c3fd32 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 26 七月 2024 09:19:09 +0800
Subject: [PATCH] ''
---
wechat_staff/components/buoyClient/index.js | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/wechat_staff/components/buoyClient/index.js b/wechat_staff/components/buoyClient/index.js
index 72c265e..738093c 100644
--- a/wechat_staff/components/buoyClient/index.js
+++ b/wechat_staff/components/buoyClient/index.js
@@ -9,12 +9,15 @@
value: '0'
}
},
-
+ attached() {
+ const enjoyList = wx.getStorageSync('enjoyList') || []
+ this.setData({ enjoyList })
+ },
/**
* 缁勪欢鐨勫垵濮嬫暟鎹�
*/
data: {
-
+ enjoyList: []
},
/**
@@ -26,10 +29,15 @@
const i = e.currentTarget.dataset.i
if(i == 2){
getCrmAuthUrl({type:1}).then(res => {
- console.log(res.data)
- this.setData({ url: res.data })
+ this.setData({ url: res.data })
+ let link = res.data
wx.navigateTo({
- url: '/pages/webView/index?link=' + res.data,
+ url: '/pages/webView/index',
+ success: function(res) {
+ // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
+ console.log(link)
+ res.eventChannel.emit('data',{link:link} );
+ }
})
})
}
--
Gitblit v1.9.3