<!--pages/report/index.wxml-->
<scroll-view class="page">
	<cu-custom bgColor="bg-gradual-pink" isBack="{{true}}">
    <view slot="backText">返回</view>
    <view slot="content">在线答题</view>
	</cu-custom>

  <view class="container">
  <scroll-view class="scroll-container" upper-threshold="{{sortPanelDist}}" bindscroll="onToTop" scroll-y="true" style="margin-top:10px;height:calc(100% - 1px)">
    <view class="message-item" wx:for="{{list_data}}">
      <view>
        <text style="font-size: 15px;" class="title-md text-bold text-black  margin-bottom">第{{index+1}}题： {{item.title}}</text>
        <radio-group class="block" data-index="{{index}}" bindchange="changeHome">
          <view class="cu-form-group margin-top">
            <radio value="A" ></radio>
            <view class="title" style="margin-left:5px">  A:{{item.answer_a}}</view>
          </view>
          <view class="cu-form-group margin-top">
            <radio value="B" data-index="{{index}}"></radio>
            <view class="title" style="margin-left:5px">  B:{{item.answer_b}}</view>
          </view>
          <view class="cu-form-group margin-top">
            <radio value="C" data-index="{{index}}"></radio>
            <view class="title" style="margin-left:5px">  C:{{item.answer_c}}</view>
          </view>
          <view class="cu-form-group margin-top">
            <radio value="D" data-index="{{index}}"></radio>
            <view class="title" style="margin-left:5px">  D:{{item.answer_d}}</view>
          </view>
        </radio-group>
      </view>
    </view>
    <form report-submit='true' >
        <button class=" bg-blue lg button-hover" role="button" form-type="submit" bindtap="submit">提交</button>
    </form>
  </scroll-view>
</view>
</scroll-view>



