From 2c08a98f7e85ec7c9376f27a7933e75e44d672f7 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 27 八月 2024 15:52:59 +0800
Subject: [PATCH] ll

---
 wechat_jiaxuan/pages/store/staff.js |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/wechat_jiaxuan/pages/store/staff.js b/wechat_jiaxuan/pages/store/staff.js
index bb08c95..8f530c7 100644
--- a/wechat_jiaxuan/pages/store/staff.js
+++ b/wechat_jiaxuan/pages/store/staff.js
@@ -28,10 +28,19 @@
   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