1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <!--miniprogram/pages/answer/index.wxml-->
- <view class="questionPage">
- <view class="head" style="height: {{'' + height[0] + 'px;line-height:' + height[0] + 'px' }}">
- <view>{{countDown}}</view>
- </view>
- <view class="body" style="height: {{height[1]}}px">
- <swiper style="height:{{height[1]}}px" bindchange="changeSwiper" indicator-dots="{{false}}" current="{{data.current - 1}}">
- <block wx:for="{{list}}" wx:key="id">
- <swiper-item>
- <scroll-view scroll-y="{{true}}" style="height: {{height[1]}}px">
- <view style="padding: 23rpx 36rpx;">
- <text class="queType" wx:if="{{item.answer && item.answer.length > 1}}">多选</text>
- <text class="queType" wx:else>单选</text>
- 题目:{{item.question}}
- </view>
- <checkbox-group bindchange="changeGroup" wx:if="{{item.answer && item.answer.length > 1}}">
- <view style="padding: 23rpx 36rpx;" wx:for="{{item.options || []}}" wx:for-index="o" wx:for-item="v" wx:key="id">
- <label>
- <checkbox color="#2A9CEC" value="{{v.name}}" checked="{{v.checked}}" />{{v.option}}
- </label>
- </view>
- </checkbox-group>
- <radio-group bindchange="changeGroup" wx:else>
- <view style="padding: 23rpx 36rpx;" wx:for="{{item.options || []}}" wx:for-index="o" wx:for-item="v" wx:key="id">
- <label>
- <radio color="#2A9CEC" value="{{v.name}}" checked="{{v.checked}}" />{{v.option}}
- </label>
- </view>
- </radio-group>
- </scroll-view>
- </swiper-item>
- </block>
- </swiper>
- </view>
- <view class="foote flex" style="height: {{ height[0] + 'px;line-height:' + height[0] + 'px' }}">
- <view wx:if="{{data.current <= 1}}" style="color: #9e9e9e">
- <i-icon type="return"></i-icon>
- 上一题
- </view>
- <view wx:else bindtap="prov">
- <i-icon type="return"></i-icon>
- 上一题
- </view>
- <view class="Fcenter">{{data.current}}/{{data.total}}</view>
- <view wx:if="{{data.current >= data.total}}" style="padding-top: {{(height[0] - 29)/2}}px;">
- <button type="warn" size="mini" bindtap="submit">交卷</button>
- </view>
- <view wx:else bindtap="next">
- 下一题
- <i-icon type="enter"></i-icon>
- </view>
- </view>
- </view>
|