1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <view class="servant-settings-page">
- <!--服务设置-->
- <view class="servant-setting-header">
- <image mode="scaleToFill" src="/image/notice-blue.png" class="notice-style"/>
- <text>您可以查看保姆偏好,双向沟通更清晰</text>
- <image mode="scaleToFill" src="/image/close-blue.png" class="close-stle"/>
- </view>
- <!--服务列表-->
- <view class="setting-list" a:for="{{servantlist}}" key="{{index}}">
- <view a:if="{{item.show}}" class="setting-list-title" data-id="{{item.subtypeNo}}">
- <view class="setting-list-titlelabel" data-id="{{item.subtypeNo}}" onTap="{{item.index >1?'loadclasslist':''}}">
- <image a:if="{{item.index >1}}" class="icon-left" mode="scaleToFill" src="/image/icon-left.png"/>
- {{item.index >1?'上一类':''}}
- </view>
- {{item.subjectType}}
- <text>{{item.index}}/ {{servantlist.length}}</text>
- </view>
- <view a:if="{{item.show}}" class="setting-list-item" a:for="{{item.subjectList}}" a:for-item="subjectitem" key="{{subjectindex}}">
- <view a:if="{{subjectitem.isChoose}}" >
- <text class="item-title">{{subjectitem.subject}}</text>
- <view a:if="{{subjectitem.chooseType==1}}"> <!---单选-->
- <checkbox-group onChange="answerselectedSingle" data-id="{{subjectitem.subjectId}}">
- <label class="checkbox" a:for="{{subjectitem.answer}}" a:for-item="answeritem" key="label-{{answerindex}}">
- <checkbox value="{{answeritem.answer}}" checked="{{answeritem.isChoose}}" color="#09AFFF" />
- <text class="checkbox-text">{{answeritem.answer}}</text>
- </label>
- </checkbox-group>
- </view>
- <view a:if="{{subjectitem.chooseType==2}}"><!---多选-->
- <checkbox-group onChange="answerselected" data-id="{{subjectitem.subjectId}}">
- <label class="checkbox" a:for="{{subjectitem.answer}}" a:for-item="answeritem" key="label-{{answerindex}}">
- <checkbox value="{{answeritem.answer}}" checked="{{answeritem.isChoose}}" color="#09AFFF" />
- <text class="checkbox-text">{{answeritem.answer}}</text>
- </label>
- </checkbox-group>
- </view>
- </view>
- <view class="item-body" a:if="{{subjectitem.isCustom==1}}">
- <textarea placeholder="请输入文字" onBlur="customanswer" data-id="{{subjectitem.subjectId}}">{{subjectitem.customAnswer}}</textarea>
- </view>
- </view>
- <!--提交按钮-->
- <view a:if="{{item.show}}" class="common-button-wrapper">
- <button type="primary" data-id="{{item.subtypeNo}}" class="common-button" hover-class="active-button" onTap="{{item.button=='完成'?'dailytasksdeit':'loadclasslistadd'}}" >{{item.button}}</button>
- </view>
- </view>
- </view>
|