servantedit.axml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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="setting-list">
  10. <view class="setting-list-title">
  11. {{servanteditlist.subjectType}}
  12. </view>
  13. <view class="setting-list-item" a:for="{{servanteditlist.subjectList}}" a:for-item="subjectitem" key="{{subjectindex}}">
  14. <view a:if="{{subjectitem.isChoose}}" >
  15. <text class="item-title">{{subjectitem.subject}}</text>
  16. <view a:if="{{subjectitem.chooseType==1}}"> <!---单选-->
  17. <checkbox-group onChange="answerselectedSingle" data-id="{{subjectitem.subjectId}}">
  18. <label class="checkbox" a:for="{{subjectitem.answer}}" a:for-item="answeritem" key="label-{{answerindex}}">
  19. <checkbox value="{{answeritem.answer}}" checked="{{answeritem.isChoose}}" color="#09AFFF" />
  20. <text class="checkbox-text">{{answeritem.answer}}</text>
  21. </label>
  22. </checkbox-group>
  23. </view>
  24. <view a:if="{{subjectitem.chooseType==2}}"><!---多选-->
  25. <checkbox-group onChange="answerselected" data-id="{{subjectitem.subjectId}}">
  26. <label class="checkbox" a:for="{{subjectitem.answer}}" a:for-item="answeritem" key="label-{{answerindex}}">
  27. <checkbox value="{{answeritem.answer}}" checked="{{answeritem.isChoose}}" color="#09AFFF" />
  28. <text class="checkbox-text">{{answeritem.answer}}</text>
  29. </label>
  30. </checkbox-group>
  31. </view>
  32. </view>
  33. <view class="item-body" a:if="{{subjectitem.isCustom==1}}">
  34. <textarea placeholder="请输入文字" onBlur="customanswer" data-id="{{subjectitem.subjectId}}">{{subjectitem.customAnswer}}</textarea>
  35. </view>
  36. </view>
  37. <!--提交按钮-->
  38. <view class="common-button-wrapper">
  39. <button type="primary" data-id="{{item.subtypeNo}}" class="common-button" hover-class="active-button" onTap="dailytasksdeit" >提交</button>
  40. </view>
  41. </view>
  42. </view>