servantedit.axml 2.5 KB

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