s_staffadd.wxml
5.56 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<nav backgroundColor="#199095" color="#ffffff">{{opt.type ? '店员详情' : '添加店员'}}</nav>
<view class="bg_white" style="width:700rpx;height:auto;border-radius:10rpx;margin:0 auto;overflow:hidden;">
<block wx:if="{{!opt.type}}">
<view class="flex-vc">
<view class="t-align-c black-font font30r" style="padding:80rpx 0 50rpx 0;">请员工使用微信扫一扫添加店员</view>
<view class="hr-one sectionZ" style="width:86%;"></view>
<image class="qrcode" src="{{dc_adduser_code}}" style="width:336rpx;height:336rpx;margin-top:60rpx;margin-bottom:160rpx;" bindtap="saveImage"/>
</view>
</block>
<block wx:else>
<view class="flex-vc">
<image class="icon-40 mtop25 mbottom25" src="{{user.headimgurl}}" style="width:120rpx;height:120rpx;margin:50rpx 0 20rpx;background:#eee;"/>
<view class="font32r black-font smooth staff-single flex-cc" bindtap="{{(identity && identity==1) || openid==user.openid ? 'editname' : ''}}" data-name="{{user.user_name ? user.user_name : user.nick_name}}">
<text class="green-font">{{user.user_name ? user.user_name : user.nick_name}}</text>
<block wx:if="{{(identity && identity==1) || openid==user.openid}}">
<image src="http://qn.colorcun.com/wechat/xt/images/icon-edit.png" class="edit-name"></image>
</block>
</view>
<view class="font32r green-font smooth flex-cc staff-single flex-cc" bindtap="{{(identity && identity==1) || openid==user.openid ? 'bindphonenumber' : ''}}">{{user.phone && user.phone!='' ? user.phone : '添加手机号'}}</view>
<view class="black-font font30r staff-single flex-cc">{{user.role_name}}</view>
<view class="black-font font30r staff-single flex-cc" style="margin-bottom: 40rpx;">{{seller.sellername}}</view>
<block wx:if="{{identity && identity==1 && user.is_first!=1}}">
<view class="cut" style="background:#efeef3;height:10rpx;"></view>
<view class="flex-cm" style="width:100%;height:100rpx;padding:12rpx 0;border-bottom:1px solid #efeef3;box-sizing:border-box;">
<view class="border-right black-font font32r flex-cc" style="width:100%;height:100%;box-sizing:border-box;" bindtap="actionSheetTap">移除店员</view>
</view>
<action-sheet class="sheet" hidden="{{actionSheetHidden}}" bindchange="cancelsheet">
<view class="font26r gray-font" style="width:86%;padding:20rpx 0;margin:0 auto;">移除店员后,店员将无法接收门店收款通知,店员收款码也将无法收款</view>
<action-sheet-item bindtap="removeStaff" class="black-font font32r green-font flex-vc" style="height:100rpx;">移除</action-sheet-item>
<action-sheet-item class="cancel gray-font font32r flex-vc" bindtap="cancelsheet" style="height:100rpx;">取消</action-sheet-item>
</action-sheet>
</block>
<!-- <view class="flex-cc" style="margin-top:30rpx;padding-bottom:20rpx;">
<view class="font30r" style="margin-right:20rpx;">{{sellername}}</view>
<view class="font24r green-font">{{role ? role : '店员'}}</view>
</view> -->
</view>
</block>
</view>
<view class="modal-mask" hidden="{{atn_ishidden}}" bindtap="cancelModel"></view>
<view class="modal-dialog" hidden="{{atn_ishidden}}">
<view class="modal-dialog-title flex-cc font34r black-font">修改店员名称</view>
<input type="text" bindinput="modalInput" cursor-spacing="100" name="" maxlength="10" placeholder="请输入店员名称" value="{{username}}" class="modal-dialog-input font30r black-font" placeholder-style="color:{{reminder && reminder==true ? '#E14553' : '#999'}};font-size:32rpx;text-align:center;" focus="{{auto_focus}}" />
<view class="modal-dialog-button flex-lr">
<view class="modal-button modal-cancel flex-cc font36r black" bindtap="cancelModel">取消</view>
<view class="modal-button modal-confirm flex-cc font36r" bindtap="confirmModel">确定</view>
</view>
</view>
<view class="modal-mask" hidden="{{reminder_ishidden}}"></view>
<view class="modal-dialog modal-dialog-reminder" hidden="{{reminder_ishidden}}">
<view class="modal-dialog-title flex-cc font36r black">提示信息</view>
<view class="modal-reminder-title font32r">{{reminderInfo}}</view>
<view class="modal-dialog-button flex-lr">
<view class="modal-button modal-confirm flex-cc font36r" bindtap="deleteReminderModel" style="width:100%;">确定</view>
</view>
</view>
<netWork bind:netchange="netchange" id="network"></netWork>
<view class="modal-mask" hidden="{{phonehide}}" bindtap="cancelphone"></view>
<view class="bind-phone bg_white" hidden="{{phonehide}}">
<block wx:if="{{service_info.phone}}">
<view class="{{reminderphone ? 'red-font' : 'black-font'}} font32r flex-cc" style="margin-bottom:50rpx;">{{reminderphone ? reminderphone : '修改手机号'}}</view>
</block>
<block wx:else>
<view class="{{reminderphone ? 'red-font' : 'black-font'}} font32r flex-cc" style="margin-bottom:50rpx;">{{reminderphone ? reminderphone : '添加手机号'}}</view>
</block>
<view class="bind-input-phone">
<input placeholder="请输入手机号" class="black-font font28r phone-input" placeholder-style="color:#999;font-size:28rpx;" type="number" maxlength="11" value="{{user.phone ? user.phone : ''}}" bindinput="inputphone" bindblur="inputphone"/>
</view>
<view class="flex-lr">
<view class="bind-confirm gray-font font30r flex-cc" style="border-right:1px solid #efeef3;" bindtap="cancelphone">取消</view>
<view class="bind-confirm green-font font30r flex-cc" bindtap="confirmphone">确定</view>
</view>
</view>