createServant.axml 1.7 KB

12345678910111213141516171819202122232425262728293031323334
  1. <view class="common-page-padding create-servant-page">
  2. <!-- 创建服务者/编辑服务者 -->
  3. <!-- 姓名 -->
  4. <view class="common-card line-cell">
  5. <view class="cell-title">怎么称呼您的服务者</view>
  6. <view class="cell-content name-content">
  7. <input class="input name-input" value='{{servantName}}' placeholder="请输入" onInput="bindServantInput" placeholder-class="common-placeholder" maxlength="10"/>
  8. </view>
  9. </view>
  10. <!-- 工种 -->
  11. <view class="common-card picker-wrapper">
  12. <!-- <view class="cell-title">选择该服务者的工种</view>
  13. <view class="cell-content">{{serviceModelName}}</view> -->
  14. <picker onChange="bindPickerChange" value="{{index}}" range="{{serviceModelList}}" class="model-picker" range-key="text">
  15. <view class="row">
  16. <view class="row-title">选择该服务者的工种</view>
  17. <view class="row-extra">{{serviceModelName}}</view>
  18. <image class="row-arrow" src="/image/icon-right.png" mode="aspectFill" />
  19. </view>
  20. </picker>
  21. </view>
  22. <!-- 工作时间 -->
  23. <view class="common-card work-time">
  24. <view class="cell-title">选择该服务者的工作时间<text class="every-week">(每周)</text></view>
  25. <view class="work-list">
  26. <view class="work-item {{workSelectedClassList.indexOf(item.index)!=-1 ?'work-item-selected':''}}" a:for="{{workInitList}}" key="{{index}}" onTap="toggleWorkTime" data-zh="{{item.workDayZh}}" data-id="{{item.index}}" >
  27. {{item.workDayZh}}
  28. </view>
  29. </view>
  30. </view>
  31. <view class="common-button-wrapper">
  32. <button type="primary" class="common-button" hover-class="active-button" onTap="createServant">创建服务者</button>
  33. </view>
  34. </view>