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

---
 wechat_staff/pages/store/staff.wxml |   48 +++++++++++++++++++++++++++---------------------
 1 files changed, 27 insertions(+), 21 deletions(-)

diff --git a/wechat_staff/pages/store/staff.wxml b/wechat_staff/pages/store/staff.wxml
index 522ef83..4fb840c 100644
--- a/wechat_staff/pages/store/staff.wxml
+++ b/wechat_staff/pages/store/staff.wxml
@@ -2,28 +2,32 @@
   <back />
   <image src="../../static/images/design_banner@2x.png" mode="widthFix" class="bg_wrap"></image>
   <view class="container">
-    <image class="avatar" src="{{userInfo.imgurlFull}}"></image>
+    <image class="avatar" src="{{userInfo.imgurlFull ? userInfo.imgurlFull : '../../static/images/default_avatar.png'}}"></image>
     <view class="name_wrap">
       <view class="left">
         <view class="name">{{userInfo.name}}</view>
         <view class="tag">瀵艰喘</view>
         <!-- <view class="tag">5骞寸粡楠�</view> -->
       </view>
-      <image bind:tap="showQrcode" class="qrcode" src="../../static/icon/mingpian_erweima@2x.png" mode="widthFix"></image>
+      <image wx:if="{{ userInfo.qrcodeImgFull }}" bind:tap="showQrcode" class="qrcode" src="../../static/icon/mingpian_erweima@2x.png" mode="widthFix"></image>
     </view>
     <view class="desc">
       <image src="../../static/icon/mingpian_ic_edit@2x.png" mode="widthFix"></image>
-      <view>{{userInfo.slogans}}</view>
+      <view class="text">{{userInfo.slogans}}</view>
       <view class="icon"></view>
     </view>
     <view class="static">
       <view class="card">
+        <image src="../../static/images/mingpian_bg_nianxian.png" class="bg"></image>
         <view>浠庝笟骞撮檺</view>
-        <view class="num">{{userInfo.jobDate||'0'}}</view>
+        <view class="num">{{ userInfo.jobDate || '5' }}</view>
       </view>
       <view class="card">
+      <image src="../../static/images/mingpian_bg_kehu.png" class="bg"></image>
         <view>鏈嶅姟瀹㈡埛</view>
-        <view class="num">{{userInfo.costomerNum||'0'}}</view>
+        <view class="num" wx:if="{{ userInfo.costomerNum || userInfo.costomerNum == 0 }}">{{ userInfo.costomerNum || '--' }}+ 
+        </view>
+        <view wx:else class="num">--</view>
       </view>
     </view>
     <view class="guide">
@@ -39,7 +43,7 @@
         <text class="val">{{userInfo.shopName}}</text>
       </view>
       <view class="line">
-        <image class="icon" src="../../static/icon/mingpian_ic_dizhi@2x.png" mode="widthFix" style="width: 45rpx;"  ></image>
+        <image class="icon" src="../../static/icon/mingpian_ic_dizhi@2x.png" mode="widthFix"></image>
         <text class="label">闂ㄥ簵鍦板潃</text>
         <text class="val">{{userInfo.shopAddress}}</text>
       </view>
@@ -47,32 +51,34 @@
   </view>
   <!-- footer -->
   <view class="footer" style="bottom: {{bottomLift}}px;">
-    <view class="btn"  bindtap="openModal">
+    <view class="btn" bindtap="openModal">
       <image src="../../static/icon/share.png" mode="widthFix"></image>
       <view>鍒嗕韩</view>
     </view>
   </view>
   <!-- 璇︽儏 -->
-  <van-popup show="{{ isShow }}"  closeable round bind:close="onClose">
+  <van-popup show="{{ isShow }}" closeable round bind:close="onClose">
     <view class="modal">
       <view class="header">
-        <image class="avatar" src="{{userInfo.imgurlFull}}"></image>
+        <image class="avatar" src="{{userInfo.imgurlFull ? userInfo.imgurlFull : '../../static/images/default_avatar.png'}}"></image>
         <view class="content">
-            <view class="name">{{userInfo.name}}</view>
-            <view class="desc">瀵艰喘 锝� {{userInfo.jobDate ||'0'}}骞寸粡楠�</view>
+          <view class="name">{{userInfo.name}}</view>
+          <view class="desc">瀵艰喘 锝� {{userInfo.jobDate ||'5'}}骞寸粡楠�</view>
         </view>
       </view>
       <image class="qrcode" src="{{userInfo.qrcodeImgFull}}"></image>
       <view class="text">闀挎寜鍥剧墖璇嗗埆浜岀淮鐮�</view>
     </view>
-  </van-popup> <!-- 鐢ㄦ埛鍚嶇墖 -->
-  <van-popup class="modalcard" show="{{ isShow2 }}" round    custom-style="background-color: rgba(0,0,0,0);">
-    <view class="img1">
-      <image class="qrcodecard" src="{{userCard}}"></image> 
-    </view>  
-    <view class="btns">
-      <button class="btn1" bind:tap="closeCard">鍙栨秷</button> 
-      <button class="btn2" bind:tap="saveCard">淇濇寔鍒扮浉鍐�</button>
-    </view>
   </van-popup>
-</view>prod
\ No newline at end of file
+  <!-- 鐢ㄦ埛鍚嶇墖 -->
+  <view wx:if="{{ isShow2 }}" class="card_wrap">
+    <view class="img1">
+      <image mode="widthFix" src="{{userCard}}"></image>
+    </view>
+    <view class="btns">
+      <view class="btn" bind:tap="closeCard">鍙栨秷</view>
+      <view class="btn save" bind:tap="saveCard">淇濆瓨鍒扮浉鍐�</view>
+    </view>
+  </view>
+  <van-overlay z-index="10" show="{{ isShow2 }}" bind:click="onClickHide" />
+</view>
\ No newline at end of file

--
Gitblit v1.9.3