jiangping
2024-07-29 d9a89d83c2048a964f16ca179feb2b7f21b9d33a
wechat_staff/pages/userinfo/index.wxml
@@ -1,6 +1,7 @@
<view class="container">
  <image class="avatar" src="{{ userInfo.imgurlFull ? userInfo.imgurlFull : '../../static/images/default_avatar.png' }}" mode="widthFix"></image>
  <button open-type="chooseAvatar" bindchooseavatar="getBindchooseavatar" class="avatar_btn">更换头像</button>
  <!-- <button open-type="chooseAvatar" bindchooseavatar="getBindchooseavatar" class="avatar_btn">更换头像</button> -->
  <button bind:tap="selMedia3" class="avatar_btn">更换头像</button>
  <view class="list">
    <view class="line">
      <view class="label">姓名</view>
@@ -12,54 +13,58 @@
    </view>
    <view class="line">
      <view class="label">签名</view>
      <van-field wx:if="{{ editFalg }}" type="text" border="{{false}}" class="input" model:value="{{ slogans }}" maxlength="{{ 18 }}" clearable />
      <van-field wx:if="{{ editFalg }}" type="text" border="{{false}}" class="input" model:value="{{ slogans }}" maxlength="{{ 50 }}" clearable />
      <view wx:else class="input">{{ slogans }}</view>
    </view>
    <view class="line">
      <view class="label">从业年限</view>
      <view class="val">
        <view wx:if="{{ editFalg }}" class="input">
          <picker class="picker" mode="date" value="{{date}}" fields="year" start="1970-09-01" end="{{endDate}}" bindchange="bindDateChange">
          <van-field  type="number"  wx:if="{{ editFalg }}"    border="{{false}}" class="input" model:value="{{ jobDate  }}" maxlength="{{ 5 }}" clearable />
          <view wx:else class="input">{{ jobDate || '0'}}年</view>
          <!-- <picker class="picker" mode="date" value="{{date}}" fields="year" start="1970-09-01" end="{{endDate}}" bindchange="bindDateChange">
            <view class="picker_wrap">
              <view>{{ userInfo.jobDate }} <text wx:if="{{ userInfo.jobDate || userInfo.jobDate == 0 }}">年</text></view>
              <image class="icon" src="../../static/icon/home_ar@2x.png" mode="widthFix"></image>
            </view>
          </picker>
          </picker> -->
        </view>
        <view wx:else class="input"><text>{{ userInfo.jobDate }} 年</text></view>
        <view wx:else class="input"><text>{{ userInfo.jobDate || '0' }} 年</text></view>
      </view>
    </view>
    <view class="line">
      <view class="label">服务客户</view>
      <van-field wx:if="{{ editFalg }}" type="text" border="{{false}}" class="input" model:value="{{ costomerNum }}" maxlength="{{ 5 }}" clearable />
      <van-field wx:if="{{ editFalg }}" type="number" border="{{false}}" class="input" model:value="{{ costomerNum }}" maxlength="{{ 5 }}" clearable />
      <view wx:else class="input">{{ costomerNum }}</view>
    </view>
    <view class="line">
      <view class="label">门店名称</view>
      <view class="input">{{ userInfo.shopName }}</view>
      <view class="input">{{ userInfo.shopName || '' }}</view>
    </view>
    <view class="line">
      <view class="label">门店城市</view>
      <view class="input">{{ userInfo.shopCity }}</view>
      <view class="input">{{ userInfo.shopCity || '' }}</view>
    </view>
    <view class="line">
      <view class="label">门店地址</view>
      <view class="input">{{ userInfo.shopAddress }}</view>
      <view class="input">{{ userInfo.shopAddress || '' }}</view>
    </view>
    <view class="line">
      <view class="label">微信二维码</view>
      <view class="val" bindtap="selMedia">
        <view class="input"></view>
        <image class="qrcode" mode="widthFix" src="../../static/icon/mingpian_erweima@2x.png"></image>
        <image class="icon" src="../../static/icon/home_ar@2x.png" mode="widthFix"></image>
        <image wx:if="qrcodeImgFull !=null &&qrcodeImgFull !='' "  class="qrcode" mode="widthFix" src="{{qrcodeImgFull}}"></image>
        <image wx:else="" class="qrcode" mode="widthFix" src="../../static/icon/mingpian_erweima@2x.png"></image>
        <image  wx:if="{{ editFalg }}"  class="icon" src="../../static/icon/home_ar@2x.png" mode="widthFix"></image>
      </view>
    </view>
    <view class="line">
      <view class="label">企业微信二维码</view>
      <view class="val" bindtap="selMedia2">
        <view class="input"></view>
        <image class="qrcode" mode="widthFix" src="../../static/icon/mingpian_erweima@2x.png"></image>
        <image class="icon" src="../../static/icon/home_ar@2x.png" mode="widthFix"></image>
        <image wx:if="companyQrcodeImgFull !=null && companyQrcodeImgFull !='' "  class="qrcode" mode="widthFix" src="{{companyQrcodeImgFull}}"></image>
        <image wx:else="" class="qrcode" mode="widthFix" src="../../static/icon/mingpian_erweima@2x.png"></image>
        <image wx:if="{{ editFalg }}"  class="icon" src="../../static/icon/home_ar@2x.png" mode="widthFix"></image>
      </view>
    </view>
    <view wx:if="{{ !editFalg }}" bindtap="startEdit" class="save">编辑</view>