123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <!--pages/tu_xing_tui_li/tu_xing_tui_li.wxml-->
- <view class='container'>
- <image src='../../image/block.png' class='block' style="padding-top:{{statusBar+10}}px" bindtap='blockCtl'></image>
- <view class='wrapper'>
-
- <view>
- <!-- 第一题 -->
- <view class='li' wx:if='{{level==1}}'>
- <view class='li-exercise'>{{lianxiList[0].header}}</view>
- <view class='li-text'>{{lianxiList[0].title}}</view>
- <image src='{{lianxiList[0].imgTitle}}' class='li-image' style='width: 278rpx;height: 184rpx;'></image>
- <view class='li-all'>
- <view class='li-items' wx:for='{{lianxiList[0].answerList}}' wx:key='index' data-bindex='{{0}}' data-sindex='{{index}}' bindtap='selectItems' wx:if='{{index<3}}'>
- <image src='{{item.img}}' class='li-items-img' style='width: 130rpx;height:80rpx;'></image>
- <view class='li-items-text' wx:if='{{item.status!="active"}}'>{{item.text}}</view>
- <image wx:if='{{!isYes&&item.status=="active"}}' src='../../image/no.png' class='li-items-text'></image>
- <image wx:if='{{isYes&&item.status=="active"}}' src='../../image/yes.png' class='li-items-text'></image>
- </view>
- </view>
- <view class='li-all'>
- <view class='li-items' wx:for='{{lianxiList[0].answerList}}' wx:key='index' data-bindex='{{0}}' data-sindex='{{index}}' bindtap='selectItems' wx:if='{{index>2}}'>
- <image src='{{item.img}}' class='li-items-img' style='width: 130rpx;height:80rpx;'></image>
- <view class='li-items-text' wx:if='{{item.status!="active"}}'>{{item.text}}</view>
- <image wx:if='{{!isYes&&item.status=="active"}}' src='../../image/no.png' class='li-items-text'></image>
- <image wx:if='{{isYes&&item.status=="active"}}' src='../../image/yes.png' class='li-items-text'></image>
- </view>
- </view>
- <view class='li-yes' wx:if='{{isAnswer}}'>
- <view wx:if='{{isYes}}'>回答正确</view>
- <view wx:if='{{!isYes}}'>回答错误</view>
- </view>
- </view>
- <!-- 第二题 -->
- <view class='li' wx:if='{{level==2}}'>
- <view class='li-exercise'>{{lianxiList[1].header}}</view>
- <view class='li-text'>{{lianxiList[1].title}}</view>
- <image src='{{lianxiList[1].imgTitle}}' class='li-image' style='width: 89rpx;height: 102rpx;'></image>
- <view class='li-all'>
- <view class='li-items' wx:for='{{lianxiList[1].answerList}}' wx:key='index' data-bindex='{{1}}' data-sindex='{{index}}' bindtap='selectItems' >
- <image src='{{item.img}}' class='li-items-img' style='width: 112rpx;height: 112rpx;'></image>
- <view class='li-items-text' wx:if='{{item.status!="active"}}'>{{item.text}}</view>
- <image wx:if='{{!isYes&&item.status=="active"}}' src='../../image/no.png' class='li-items-text'></image>
- <image wx:if='{{isYes&&item.status=="active"}}' src='../../image/yes.png' class='li-items-text'></image>
- </view>
- </view>
- <view class='li-yes' wx:if='{{isAnswer}}'>
- <view wx:if='{{isYes}}'>回答正确</view>
- <view wx:if='{{!isYes}}'>回答错误</view>
- </view>
- </view>
- <!-- 第三题 -->
- <view class='li' wx:if='{{level==3}}'>
- <view class='li-exercise'>{{lianxiList[2].header}}</view>
- <view class='li-text'>{{lianxiList[2].title}}</view>
- <image src='{{lianxiList[2].imgTitle}}' class='li-image' style='width: 232rpx;height: 158rpx;'></image>
- <view class='li-all'>
- <view class='li-items' wx:for='{{lianxiList[2].answerList}}' wx:key='index' data-bindex='{{2}}' data-sindex='{{index}}' bindtap='selectItems'>
- <image src='{{item.img}}' class='li-items-img' style='width: 101rpx;height:101rpx;'></image>
- <view class='li-items-text' wx:if='{{item.status!="active"}}'>{{item.text}}</view>
- <image wx:if='{{!isYes&&item.status=="active"}}' src='../../image/no.png' class='li-items-text'></image>
- <image wx:if='{{isYes&&item.status=="active"}}' src='../../image/yes.png' class='li-items-text'></image>
- </view>
- </view>
- <view class='li-yes' wx:if='{{isAnswer}}'>
- <view wx:if='{{isYes}}'>回答正确</view>
- <view wx:if='{{!isYes}}'>回答错误</view>
- </view>
- </view>
-
- <!-- 第四题 -->
- <view class='li' wx:if='{{level==4}}'>
- <view wx:if='{{isOneShow}}'>
- <view class='li-exercise'>{{lianxiList[3].header}}</view>
- <view class='li-text'>{{lianxiList[3].title}}</view>
- <view class='li-four'>
- <image wx:for='{{lianxiList[3].titleList}}' wx:key='index' src='{{item.img}}' class='li-four-img' style='top:{{index==0?139:index==1?374:335}}rpx;left:{{index==0?234:index==1?121:403}}rpx' wx:if='{{isOneImgShow}}'></image>
- <view class='li-four-point' wx:if='{{isOnePointShow}}'></view>
- </view>
- </view>
- <view wx:if='{{!isOneShow}}'>
- <view class='li-exercise'>{{lianxiList[3].header}}</view>
- <view class='li-text'>{{lianxiList[3].titleOne}}</view>
- <view class='li-four'>
- <view class='li-four-select' wx:for='{{lianxiList[3].answerList}}' wx:key='index' style='top:{{index==0?139:index==1?374:335}}rpx;left:{{index==0?234:index==1?121:403}}rpx' data-bindex='{{3}}' data-sindex='{{index}}' bindtap='selectItems'>
- <image src='{{item.img}}' class='li-four-select-img' ></image>
- <image wx:if='{{!isYes&&item.status=="active"}}' src='{{noImg}}' class='li-four-yes'></image>
- <image wx:if='{{isYes&&item.status=="active"}}' src='{{yesImg}}' class='li-four-yes'></image>
- </view>
- <view class='li-four-point'></view>
- </view>
- <view class='li-yes' wx:if='{{isAnswer}}'>
- <view wx:if='{{isYes}}'>回答正确</view>
- <view wx:if='{{!isYes}}'>回答错误</view>
- </view>
- </view>
- </view>
- <!-- 第五题 -->
- <view class='li' wx:if='{{level==5}}'>
- <view wx:if='{{isTwoShow}}'>
- <view class='li-exercise'>{{lianxiList[4].header}}</view>
- <view class='li-text'>{{lianxiList[4].title}}</view>
- <view class='li-four'>
- <image wx:for='{{lianxiList[4].titleList}}' wx:key='index' src='{{item.img}}' class='li-four-img' style='top:{{index==0?139:index==1?374:335}}rpx;left:{{index==0?234:index==1?121:403}}rpx;' wx:if='{{isTwoImgShow}}'></image>
- <view class='li-four-point' wx:if='{{isTwoPointShow}}'></view>
- </view>
- </view>
- <view wx:if='{{!isTwoShow}}'>
- <view class='li-exercise'>{{lianxiList[4].header}}</view>
- <view class='li-text'>{{lianxiList[4].titleOne}}</view>
- <view class='li-four'>
- <view class='li-four-select' wx:for='{{lianxiList[4].answerList}}' wx:key='index' style='top:{{index==0?139:index==1?374:335}}rpx;left:{{index==0?234:index==1?121:403}}rpx' data-bindex='{{4}}' data-sindex='{{index}}' bindtap='selectItems'>
- <image src='{{item.img}}' class='li-four-select-img' ></image>
- <image wx:if='{{!isYes&&item.status=="active"}}' src='{{noImg}}' class='li-four-yes'></image>
- <image wx:if='{{isYes&&item.status=="active"}}' src='{{yesImg}}' class='li-four-yes'></image>
- </view>
- <view class='li-four-point'></view>
- </view>
- <view class='li-yes' wx:if='{{isAnswer}}'>
- <view wx:if='{{isYes}}'>回答正确</view>
- <view wx:if='{{!isYes}}'>回答错误</view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
|