You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.9 KiB
40 lines
1.9 KiB
5 months ago
|
<!--pages/test/test.wxml-->
|
||
|
|
||
|
<view class="page" hover='true' hover-stay-time="20000">
|
||
|
<view class='page__hd'>
|
||
|
<view class="page__title">{{index+1}}、
|
||
|
<view class='page_title_question'><image wx:if="{{questionImage!=''}}" src="{{questionImage}}" class='myimage' mode="widthFix"></image></view>
|
||
|
</view>
|
||
|
</view>
|
||
|
|
||
|
<view class="page__bd">
|
||
|
<view class="weui-cells weui-cells_after-title">
|
||
|
|
||
|
<!-- 判断选项个数是3个还是4还是6个 -->
|
||
|
<view wx:if="{{optionnumber == '3'}}">
|
||
|
<view class="weui-cell " hover-class="weui-cell_active" bindtap='select' data-value="{{options[answerArrays1[index]]}}" data-option="{{index}}" wx:for="{{answerArrays1}}" wx:key="index">
|
||
|
<icon type="{{icon[index]}}" size="23"></icon>
|
||
|
<view>{{myoption[index]}}、<image src="{{options[answerArrays1[index]]}}" class='myoptionimage' mode="widthFix"></image></view>
|
||
|
</view>
|
||
|
</view>
|
||
|
|
||
|
<view wx:elif="{{optionnumber == '4'}}">
|
||
|
<view class="weui-cell " hover-class="weui-cell_active" bindtap='select' data-value="{{options[answerArrays2[index]]}}" data-option="{{index}}" wx:for="{{answerArrays2}}" wx:key="index">
|
||
|
|
||
|
<icon type="{{icon[index]}}" size="23"></icon>
|
||
|
<view class='myFloat'>{{myoption[index]}}、<image src="{{options[answerArrays2[index]]}}" class='myoptionimage' mode="widthFix"></image></view>
|
||
|
</view>
|
||
|
</view>
|
||
|
|
||
|
<view wx:else>
|
||
|
<view class="weui-cell " hover-class="weui-cell_active" bindtap='select' data-value="{{options[answerArrays3[index]]}}" data-option="{{index}}" wx:for="{{answerArrays3}}" wx:key="index">
|
||
|
|
||
|
<icon type="{{icon[index]}}" size="23"></icon>
|
||
|
<view>{{myoption[index]}}、<image src="{{options[answerArrays3[index]]}}" class='myoptionimage' mode="widthFix"></image></view>
|
||
|
</view>
|
||
|
</view>
|
||
|
|
||
|
</view>
|
||
|
</view>
|
||
|
|
||
|
</view>
|