12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <!-- 弹窗蒙层 -->
- <view class="ques_pop {{tipsshow?'ques_pop_active':''}}" catchtouchmove="preventTouchMove"></view>
- <view class="ques_page" catchtouchmove="preventTouchMove">
- <image class="bg_page" src="../../static/images/page-bg.png" />
- <image class="bg_close" bindtap="closePage" src="../../static/images/quesClose.png" />
- <view class="ques_main">
- <view class="ques_title">问卷调查</view>
- <view class="ques_tips">感谢您参加这次问卷调查,您的每一条反馈,都促使我们做得更好!</view>
- <!-- 询问星级 -->
- <view wx:if="{{!answer}}">
- <view class="ques_txt"><text>* </text>{{firstDate.questionName}}</view>
- <view class="ques_star">
- <van-rate size="{{ 30 }}"
- color="#FF8800"
- void-color="#ffffff"
- void-icon="star"
- gutter="6"
- bind:change="starChange"
- ></van-rate>
- <text>对环境进行星级评价</text>
- </view>
- </view>
- </view>
- <!-- 少于四颗星答题 -->
- <scroll-view scroll-y="{{true}}" catchtouchmove="{{false}}" scroll-top="{{textScroll}}" class="ques_list" id="ques_list" wx:if="{{answer}}" >
- <view class="qus_listbox" id="qus_listbox">
- <view wx:for="{{otherDate}}" :key="{{index}}">
- <view class="ques_txt ques_txt_list"><text>* </text>{{item.questionName}}</view>
- <van-checkbox-group value="{{ item.checked }}" bind:change="selectChange" data-index="{{index}}">
- <van-checkbox wx:for="{{item.questionAnswerList}}" wx:for-item='items' custom-class="ques_checkbox"
- checked-color="#04b49c"
- shape="square"
- name="{{items.answerId}}"
- label-class="{{m1.getIncludes(item.checked,items.answerId)?'radio_active':'radio_span'}}">
- {{items.answerName}}
- </van-checkbox>
- </van-checkbox-group>
- <view wx:if="{{item.remark}}">
- <textarea placeholder="请输入" value="{{item.remarkTxt}}" bindinput="inputChange" data-index="{{index}}" class="txtarea" maxlength="200" cursor-spacing="10"/>
- </view>
- </view>
- </view>
- </scroll-view>
- <view class="footer footer_active" wx:if="{{answer}}">
- <button class="submit {{!submitFlag?'submit_noactive':''}} flex_row" catchtap="submitFeed">
- 提交
- </button>
- </view>
- </view>
- <!-- 是否下次提醒弹窗 -->
- <view class="dialog_box" wx:if="{{tipsshow}}">
- <view class="title">是否关闭当前问卷反馈?</view>
- <view class="content">
- <van-radio-group value="{{ dialogRadio }}" bind:change="radioChange">
- <van-radio name="1" checked-color="#04B49C" custom-class="radio_custom" icon-size="24px" label-class="{{dialogRadio==1?'radio_active':'radio_span'}}">不再提醒</van-radio>
- <van-radio name="2" checked-color="#04B49C" custom-class="radio_custom" icon-size="24px" label-class="{{dialogRadio==2?'radio_active':'radio_span'}}">下次提醒</van-radio>
- </van-radio-group>
- </view>
- <view class="dialog_footer flex_row">
- <view bindtap="closeDialog" class="dialog_btn flex_row">取消</view>
- <view class="line"></view>
- <view bindtap="submitMsg" class="dialog_btn flex_row">确定</view>
- </view>
- </view>
- <wxs module="m1">
- var getIncludes = function(array,target) {
- var max = false;
- for(var i=0;i<array.length;i++){
- if(!max){
- if(array[i]==target){
- max=true;
- }
- }
- }
- return max;
- }
- module.exports.getIncludes = getIncludes;
- </wxs>
|