technicianSetup.wxml 3.32 KB
<!--tabMine/pages/technicianSetup/technicianSetup.wxml-->
<!-- <view>1111</view> -->
<!-- <scroll-view scroll-y enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="handleSearch" bindscrolltolower="scrollonReachBottom" class="list" style="height:calc(100vh);" scroll-top="{{scrollTop}}" refresher-threshold="104" refresher-triggered="{{triggered}}"> -->
<view class="scrollCon">
  <view class="merchantNameCon">
    <view class="name">{{userInfo.merchantName}}</view>
    <view class="addIcon  {{userInfo.userType == 2 ?'disabled':''}}" bind:tap="addTechnicalItem">
      <image class="icon-plus" src="{{IMG_URL}}/miniProgram/iconBoldPlus.png" />
      技师
    </view>
  </view>
  <view class="item-box" wx:for="{{technicianList}}" wx:key="index">
    <view class=" item techicianInfoEdit" wx:if="{{item.isEdit}}">
      <image class="icon-delete" bind:tap="deleteTechicianInfo" data-index="{{index}}" src="{{IMG_URL}}/miniProgram/deleteIcon.png" />
      <input placeholder="技师姓名" class="input name" placeholder-class="placeholder-class" maxlength="16" data-index="{{index}}" value="{{ item.staffName }}" bindinput="input" data-name="staffName" always-embed></input>
      <input placeholder="技师手机号" class="input phone {{item.isPhone?'':'disabled'}}" type="number" maxlength="11" placeholder-class="placeholder-class" disabled="{{!item.isPhone}}" value="{{ item.staffPhone }}" bindinput="input" bindblur="phoneBlur" data-index="{{index}}" data-name="staffPhone" always-embed></input>
      <view class="btn" bind:tap="submit" data-index="{{index}}">提交</view>
    </view>
    <view class=" item techicianInfo" wx:else>
      <view class="left">
        <view class="label">
          <view class="name">{{item.staffName}}</view>
          <view class="position">技师</view>
        </view>
        <view class="phone">手机号 {{item.staffPhone}}</view>
      </view>
      <image class="icon-edit {{userInfo.userType == 2 ?'disabled':''}}" bind:tap="editTechicianInfo" data-index="{{index}}" src="{{IMG_URL}}/miniProgram/grayEditIcon.png" />
    </view>
    <!-- <view class="top">
        <view class="message">
          <glsx-image src="personal/tech_defalut_avatar.png" class="avatar" />
          <view class="message-text">
            <input wx:if="{{item.isEdit}}" type="text" placeholder="{{formItems[0].placeholder}}" maxlength="{{formItems[0].maxlength}}" class="input" value="{{formData.staffName}}" focus="{{item.isEdit}}" placeholder-class="input-placeholder" data-attr="{{formItems[0].props}}" confirm-type="done" bindinput="handleInput" bindblur="handleConfirm" />
            <view wx:else class="merchant">{{item.staffName}}</view>
          </view>
          <glsx-image wx:if="{{!item.isEdit}}" src="personal/icon-edit.png" class="icon-edit" bindtap="handleEdit" data-type="edit" data-target="{{item}}" data-idx="{{index}}" />
        </view>
        <view class="delete" bindtap="handleDelete" data-target="{{item}}">删除</view>
      </view>
      <view class="bottom">
        <view class="technician_name">
          所属:{{item.merchantName}}
        </view>
        <view class="time">{{item.createdTime}}</view>
      </view> -->
  </view>
  <!-- <view class="bottomTips" wx:if="{{technicianList.length == total}}">到底啦!</view> -->
</view>
<!-- </scroll-view> -->