servantsettings.axml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <view class="servant-settings-page">
  2. <!--服务设置-->
  3. <view class="servant-setting-header">
  4. <image mode="scaleToFill" src="/image/notice-blue.png" class="notice-style"/>
  5. <text>您可以查看保姆偏好,双向沟通更清晰</text>
  6. <image mode="scaleToFill" src="/image/close-blue.png" class="close-stle"/>
  7. </view>
  8. <!--服务列表-->
  9. <view class="setting-list" a:for="{{servantlist}}" key="{{index}}">
  10. <view a:if="{{item.show}}" class="setting-list-title" data-id="{{item.subtypeNo}}">
  11. <view class="setting-list-titlelabel" data-id="{{item.subtypeNo}}" onTap="{{item.index >1?'loadclasslist':''}}">
  12. <image a:if="{{item.index >1}}" class="icon-left" mode="scaleToFill" src="/image/icon-left.png"/>
  13. {{item.index >1?'上一类':''}}
  14. </view>
  15. {{item.subjectType}}
  16. <text>{{item.index}}/ {{servantlist.length}}</text>
  17. </view>
  18. <view a:if="{{item.show}}" class="setting-list-item" a:for="{{item.subjectList}}" a:for-item="subjectitem" key="{{subjectindex}}">
  19. <view a:if="{{subjectitem.isChoose}}" >
  20. <text class="item-title">{{subjectitem.subject}}</text>
  21. <view a:if="{{subjectitem.chooseType==1}}"> <!---单选-->
  22. <checkbox-group onChange="answerselectedSingle" data-id="{{subjectitem.subjectId}}">
  23. <label class="checkbox" a:for="{{subjectitem.answer}}" a:for-item="answeritem" key="label-{{answerindex}}">
  24. <checkbox value="{{answeritem.answer}}" checked="{{answeritem.isChoose}}" color="#09AFFF" />
  25. <text class="checkbox-text">{{answeritem.answer}}</text>
  26. </label>
  27. </checkbox-group>
  28. </view>
  29. <view a:if="{{subjectitem.chooseType==2}}"><!---多选-->
  30. <checkbox-group onChange="answerselected" data-id="{{subjectitem.subjectId}}">
  31. <label class="checkbox" a:for="{{subjectitem.answer}}" a:for-item="answeritem" key="label-{{answerindex}}">
  32. <checkbox value="{{answeritem.answer}}" checked="{{answeritem.isChoose}}" color="#09AFFF" />
  33. <text class="checkbox-text">{{answeritem.answer}}</text>
  34. </label>
  35. </checkbox-group>
  36. </view>
  37. </view>
  38. <view class="item-body" a:if="{{subjectitem.isCustom==1}}">
  39. <textarea placeholder="请输入文字" onBlur="customanswer" data-id="{{subjectitem.subjectId}}">{{subjectitem.customAnswer}}</textarea>
  40. </view>
  41. </view>
  42. <!--提交按钮-->
  43. <view a:if="{{item.show}}" class="common-button-wrapper">
  44. <button type="primary" data-id="{{item.subtypeNo}}" class="common-button" hover-class="active-button" onTap="{{item.button=='完成'?'dailytasksdeit':'loadclasslistadd'}}" >{{item.button}}</button>
  45. </view>
  46. </view>
  47. </view>