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 | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/wechat_jiaxuan/pages/store/staff.js b/wechat_jiaxuan/pages/store/staff.js
index b57c4c5..8f530c7 100644
--- a/wechat_jiaxuan/pages/store/staff.js
+++ b/wechat_jiaxuan/pages/store/staff.js
@@ -6,7 +6,7 @@
*/
data: {
bottomLift: 0,
- isShow: true,
+ isShow: false,
info: {}
},
@@ -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