question.wxml 4.2 KB
<view class="questop">
  {{quesname}}
  <view class="topnum">{{one}}/{{questionlist.length}}</view>
</view>

<view class="quesboxpage">

  <view class="quesbox" wx:for="{{questionlist}}" wx:key="" wx:if="{{item.show==true}}">
    <view class="quesname">{{index+1}}. {{item.title}} <text wx:if="{{item.red_title!=''}}" class="redtitle">{{item.red_title}}</text></view>

    <view class="quesimg" wx:if="{{item.image!=''}}">
        <image src="{{item.image}}" mode="aspectFit"></image>
    </view>

    <view class="supply" wx:if="{{item.supply!=''}}">
    <text> {{item.supply}}</text>
   
    </view>

    <view class="quesboxlist">
      <view class="quesboxitem {{sela==true?'quesactive':''}}" bindtap="selyuana" data-id="{{item.id}}" data-answer="A">
        <view class="quesboxitemleft" >
          <image src="/img/yesa.png" wx:if="{{sela==true}}"></image>
          <image src="/img/noa.png" wx:else></image>

        </view>
        <view class="quesboxitemright {{sela==true?'nametive':''}}">{{item.selectA}}</view>
      </view>
      <view class="quesboxitem {{selb==true?'quesactive':''}}" bindtap="selyuanb" data-id="{{item.id}}" data-answer="B">
        <view class="quesboxitemleft">
          <image src="/img/yesb.png" wx:if="{{selb==true}}"></image>
          <image src="/img/nob.png" wx:else></image>
        </view>
        <view class="quesboxitemright {{selb==true?'nametive':''}}">{{item.selectB}}</view>
      </view>
      <view class="quesboxitem {{selc==true?'quesactive':''}}" bindtap="selyuanc" data-id="{{item.id}}" data-answer="C">
        <view class="quesboxitemleft">
          <image src="/img/yesc.png" wx:if="{{selc==true}}"></image>
          <image src="/img/noc.png" wx:else></image>
        </view>
        <view class="quesboxitemright {{selc==true?'nametive':''}}">{{item.selectC}}</view>
      </view>
      <view class="quesboxitem {{seld==true?'quesactive':''}}" bindtap="selyuand" data-id="{{item.id}}" data-answer="D">
        <view class="quesboxitemleft">
          <image src="/img/yesd.png" wx:if="{{seld==true}}"></image>
          <image src="/img/nod.png" wx:else></image>
        </view>
        <view class="quesboxitemright {{seld==true?'nametive':''}}">{{item.selectD}}</view>
      </view>



    </view>


    <view class="quesfoot">
      <view class="quesfootleft lef {{kxuan==1?'kactive':''}} " bindtap="shang" data-index="{{index}}" data-id="{{item.id}}">上一题</view>
      <view class="quesfootleft {{kxuan==2?'kactive':''}}" bindtap="next" data-index="{{index}}" data-id="{{item.id}}">下一题</view>
    </view>
  </view>
</view>

<!-- <view class="quesboxpage" wx:if="{{one==2}}">
  <view class="quesbox">
    <view class="quesname">2. 经常出现不小心打翻、打烂东西、爬楼梯、走路不小心摔跤现象</view>

    <view class="quesboxlist">
      <view class="quesboxitem {{sela==true?'quesactive':''}}" bindtap="selyuana" data-id="1">
        <view class="quesboxitemleft">
          <image src="/img/yesa.png" wx:if="{{sela==true}}"></image>
          <image src="/img/noa.png" wx:else></image>

        </view>
        <view class="quesboxitemright {{sela==true?'nametive':''}}">从不</view>
      </view>
      <view class="quesboxitem {{selb==true?'quesactive':''}}" bindtap="selyuanb" data-id="2">
        <view class="quesboxitemleft">
          <image src="/img/yesb.png" wx:if="{{selb==true}}"></image>
          <image src="/img/nob.png" wx:else></image>
        </view>
        <view class="quesboxitemright {{selb==true?'nametive':''}}">偶尔</view>
      </view>
      <view class="quesboxitem {{selc==true?'quesactive':''}}" bindtap="selyuanc" data-id="3">
        <view class="quesboxitemleft">
          <image src="/img/yesc.png" wx:if="{{selc==true}}"></image>
          <image src="/img/noc.png" wx:else></image>
        </view>
        <view class="quesboxitemright {{selc==true?'nametive':''}}">经常</view>
      </view>
      <view class="quesboxitem {{seld==true?'quesactive':''}}" bindtap="selyuand" data-id="4">
        <view class="quesboxitemleft">
          <image src="/img/yesd.png" wx:if="{{seld==true}}"></image>
          <image src="/img/nod.png" wx:else></image>
        </view>
        <view class="quesboxitemright {{seld==true?'nametive':''}}">总是</view>
      </view>
    </view>
  </view>
</view> -->