From acf8eb9d7af7359b689122a5fe1ef1dd5d2de80c Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 25 七月 2024 13:49:21 +0800
Subject: [PATCH] 提交
---
wechat_staff/components/buoyClient/index.js | 21 +++++++++++++++++++--
1 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/wechat_staff/components/buoyClient/index.js b/wechat_staff/components/buoyClient/index.js
index c154c3b..4a2a98c 100644
--- a/wechat_staff/components/buoyClient/index.js
+++ b/wechat_staff/components/buoyClient/index.js
@@ -1,10 +1,13 @@
-// components/buoyClient/index.js
+import { getCrmAuthUrl } from '../../api/index'
Component({
/**
* 缁勪欢鐨勫睘鎬у垪琛�
*/
properties: {
-
+ showPurpose: {
+ type: String,
+ value: '0'
+ }
},
/**
@@ -21,6 +24,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