From a75b18a4157ab486e0b51c438ac165ab3a08e3e0 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期四, 25 七月 2024 18:10:00 +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