From d9a89d83c2048a964f16ca179feb2b7f21b9d33a Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 29 七月 2024 16:28:47 +0800
Subject: [PATCH] 提交

---
 wechat_jiaxuan/pages/store/staff.js |   28 +++++++++++++++++++++++++---
 1 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/wechat_jiaxuan/pages/store/staff.js b/wechat_jiaxuan/pages/store/staff.js
index c951641..8f530c7 100644
--- a/wechat_jiaxuan/pages/store/staff.js
+++ b/wechat_jiaxuan/pages/store/staff.js
@@ -1,4 +1,4 @@
-// pages/store/staff.js
+import { usersDetailByIamId } from '../../api/index'
 Page({
 
   /**
@@ -6,7 +6,9 @@
    */
   data: {
     bottomLift: 0,
-    isShow: false
+    isShow: false,
+
+    info: {}
   },
 
   /**
@@ -17,13 +19,33 @@
     this.setData({
       bottomLift: app.bottomLift
     })
+    this.getDetail(options.id)
+    wx.showShareMenu({
+      withShareTicket: true,
+      menus: ['shareAppMessage', 'shareTimeline']
+    })
+  },
+  getDetail(id) {
+    usersDetailByIamId({iamId: id}).then(res => {
+      this.setData({ info: res.data })
+      if(res.data && res.data.qrcodeImgFull){
+        this.setData({ isShow: true })
+      }
+    })
+  },
+  makePhone() {
+    const phoneNumber = this.data.info.phone
+    wx.makePhoneCall({ phoneNumber })
   },
   openModal() {
-    this.setData({isShow: true})
+    if(this.data.info.qrcodeImgFull){
+      this.setData({ isShow: true })
+    }
   },
   onClose() {
     this.setData({isShow: false})
   },
+  
 
   /**
    * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚

--
Gitblit v1.9.3