1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <view>
- <view class="top">
- <van-slider value="{{answerSize*100/exams.length}}" use-button-slot
- active-color="#FF4330"
- inactive-color='#CFCFCF' custom-class="progress" bar-height="6rpx">
- <view slot="button"></view>
- </van-slider>
- <view class="progress-txt">{{answerSize}}/{{exams.length}}</view>
- </view>
- <view class="content" wx:for="{{exams}}" wx:key="index">
- <view class='question'>
- <view class="tag">{{index + 1}}</view>
- <view class="title">{{item.stem}}</view>
- <view class="type">{{qType[item.questionType]}}</view>
- </view>
- <view class='opt-list'
- wx:if="{{item.questionType == questionTypesEnum.SINGLE || item.questionType == questionTypesEnum.MULTIPLE}}">
- <view class='opt' wx:for="{{item.questionnaireAnswerList}}" wx:for-item="opt" wx:key="index"
- bind:tap="slectAnswer"
- data-q="{{item}}"
- data-opt="{{opt}}">
- <view hidden="{{!answers[item.id][opt.id]}}">
- <van-image width="24rpx" height="24rpx"
- src='/images/ic_radio_active.png'
- />
- </view>
- <view hidden="{{answers[item.id][opt.id]}}">
- <van-image width="24rpx" height="24rpx"
- hidden="{{!answers[item.id][opt.id]}}"
- src="/images/ic_radio_default.png"
- />
- </view>
- <view class="radio-txt">{{opt.answer}}</view>
- </view>
- <van-field
- wx:if="{{item.otherAnswerType}}"
- data-id="{{item.id+'*'}}"
- value="{{answers[item.id+'*']}}"
- custom-style="background: #F1F1F1;border-radius: 8rpx;font-size: 24rpx;ont-weight: 400;color: #333333;width:600rpx;margin-left:50rpx;"
- border="{{ false }}"
- bind:change="onChange"
- />
- </view>
- <van-field
- wx:else
- data-id="{{item.id}}"
- value="{{answers[item.id]}}"
- bind:change="onChange"
- type="textarea"
- custom-style="margin: 40rpx 10rpx 10rpx;background: #F1F1F1;border-radius: 8rpx;font-size: 24rpx;font-weight: 400;color: #333333;"
- autosize
- placeholder="请写下你想对我们说的建议"
- placeholder-style="font-size: 24rpx;font-weight: 400;color: #999999;"
- input-class="input-class"
- border="{{ false }}"
- />
- </view>
- <view class="mtb50">
- <edu-button title="提交" bind:click="toPut"/>
- </view>
- </view>
|