QYF-GitLab1
4 天以前 b55024ee2f42aa93e0ecaa3113bdeb286f6e59ac
packageCourse/components/questionDom/index.wxml
@@ -31,21 +31,15 @@
        </view>
        <view class="judge" wx:if="{{item.questionType == 'judge'}}">
          <t-radio-group>
            <t-radio block="{{false}}" wx:for="{{item.questionOption}}" wx:for-item="{{ritem}}" wx:index="{{ritem.index}}" label="{{ritem.value}}" value="{{ritem.value}}" />
            <t-radio block="{{false}}" wx:for="{{item.questionOption}}" wx:for-item="{{ritem}}" wx:key="index" label="{{ritem.value}}" value="{{ritem.value}}" />
          </t-radio-group>
        </view>
        <view class="singleChoice" wx:if="{{item.questionType == 'singleChoice'}}">
          <t-radio-group>
            <t-radio block="{{false}}" wx:for="{{item.questionOption}}" wx:for-item="{{ritem}}" wx:index="{{ritem.index}}" label="{{ritem.value}}" value="{{ritem.value}}">
              <text>{{ritem.value}}</text>. <text>{{ritem.txt}}</text>
            </t-radio>
          <t-radio-group value="{{item.userAnswer}}" bind:change="getData" options="{{item.questionOption}}">
          </t-radio-group>
        </view>
        <view class="multipleChoice" wx:if="{{item.questionType == 'multipleChoice'}}">
          <t-checkbox-group>
            <t-checkbox block="{{false}}" wx:for="{{item.questionOption}}" wx:for-item="{{mitem}}" wx:index="{{mitem.index}}" label="{{mitem.value}}" value="{{mitem.value}}">
              <text>{{mitem.value}}</text>. <text>{{mitem.txt}}</text>
            </t-checkbox>
          <t-checkbox-group value="{{item.userAnswer}}" bind:change="getData" options="{{item.questionOption}}">
          </t-checkbox-group>
        </view>
      </view>