technicianSetup.wxml
3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!--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> -->