k94314517
2024-08-15 89e7ed902461f28d6a7dd3e6c927eaf40b154f5e
wechat_staff/pages/store/staff.wxml
@@ -1,29 +1,37 @@
<view>
<view class="app">
  <back />
  <image src="../../static/images/design_banner@2x.png" mode="widthFix" class="bg_wrap"></image>
  <view class="bg_wrap">
    <image src="../../static/images/design_banner@2x.png" mode="widthFix" ></image>
  </view>
  <view wx:if="{{ !isShow }}" bindtap="jumpUser" class="editBtn">编辑资料</view>
  <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 || '--' }}
          <text class="icon">+</text>
        </view>
        <view wx:else class="num">--</view>
      </view>
    </view>
    <view class="guide">
@@ -39,7 +47,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 +55,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>
      <image show-menu-by-longpress 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
  <!-- 用户名片 -->
  <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>