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 | 28 ++++++++++++++++++++++++----
1 files changed, 24 insertions(+), 4 deletions(-)
diff --git a/wechat_staff/components/buoyClient/index.js b/wechat_staff/components/buoyClient/index.js
index c154c3b..738093c 100644
--- a/wechat_staff/components/buoyClient/index.js
+++ b/wechat_staff/components/buoyClient/index.js
@@ -1,17 +1,23 @@
-// components/buoyClient/index.js
+import { getCrmAuthUrl } from '../../api/index'
Component({
/**
* 缁勪欢鐨勫睘鎬у垪琛�
*/
properties: {
-
+ showPurpose: {
+ type: String,
+ value: '0'
+ }
},
-
+ attached() {
+ const enjoyList = wx.getStorageSync('enjoyList') || []
+ this.setData({ enjoyList })
+ },
/**
* 缁勪欢鐨勫垵濮嬫暟鎹�
*/
data: {
-
+ enjoyList: []
},
/**
@@ -21,6 +27,20 @@
jumpPage(e) {
const urls = [ '/pages/kefu/fond', '/pages/store/staff' ]
const i = e.currentTarget.dataset.i
+ if(i == 2){
+ getCrmAuthUrl({type:1}).then(res => {
+ this.setData({ url: res.data })
+ let link = res.data
+ wx.navigateTo({
+ url: '/pages/webView/index',
+ success: function(res) {
+ // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
+ console.log(link)
+ res.eventChannel.emit('data',{link:link} );
+ }
+ })
+ })
+ }
console.log('i', i);
wx.navigateTo({
url: urls[i],
--
Gitblit v1.9.3