1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <import-sjs from="../../../util/formateFuc.sjs" name="formate"></import-sjs>
- <view class="common-page-padding">
- <!-- 保姆列表 -->
- <view a:if="{{listShow}}">
-
- <view class="customer-list">
- <view class="customer-item common-card {{item.isInvalid=='0'?'un-bind':''}}" a:for="{{servantList}}" key="{{index}}">
- <view class="main-info">
- <text class="customer-name">{{item.servantName}}</text>
- <text class="link-text" data-id="{{index}}" onTap="editServant" data-relationInfo="{{item}}">编辑信息</text>
- </view>
- <view class="work-day">
- {{item.servantTaskPeriod.workDay}}
- </view>
- <view>
- 保姆工种:{{formate.serviceType(item.servantType)}}
- </view>
- <view a:if="{{item.isInvalid=='0'}}" class="bind-code">
- <text>关联码:{{item.employIdentifier
- }}</text>
- <text class="copy-btn" onTap="copyCode" data-code="{{item.employIdentifier
- }}">复制</text>
- </view>
-
- <view class="bind-dashboard">
- <view>关联时间:{{formate.bindTime(item.relationTime)}}</view>
- <view class="link-text" onTap="enterCustomerCenter" data-emReNo="{{item.employRelationNo}}">进入工作台 > </view>
- </view>
- </view>
- </view>
-
- <view class="common-button-wrapper">
- <button type="primary" class="common-button" hover-class="active-button" onTap="addServant">添加保姆</button>
- </view>
- </view>
- <!-- 暂无保姆 -->
- <view a:if="{{noServantList}}">
- <view class="no-content-wrapper">
- <image mode="aspectFill" src="/image/no-content.png"/>
- </view>
- <view class="no-add">您还未添加保姆</view>
- <view class="no-add-tips">添加保姆,沟通更轻松</view>
- <view class="mini-button-wrapper">
- <button type="primary" class="common-button" hover-class="active-button" size="mini" onTap="addServant">现在添加</button>
- </view>
- <view class="switch-role" onTap="switchRole">角色选择错啦,去切换 >></view>
-
- <modal
- show="{{unSetModal}}"
- showClose="{{false}}"
- onButtonClick="onSetButtonClick"
- buttonsLayout="vertical"
- buttons="{{unSetBtn}}"
- >
- <view slot="header">您尚未设置服务者</view>
- 先设置服务者吧
- </modal>
- </view>
-
- </view>
|