<!--pages/lianxi/index.wxml-->
<view class="page">
<view style="height:10px"></view>
    <view style="color:steelblue;font-weight:bold;text-align:center">{{workscopeName}}</view>
      <block wx:for="{{questioncatData}}" wx:key="unique">
      <view class="weui-panel weui-panel_access">
      <view class="weui-panel__bd">
        <view class="weui-media-box weui-media-box_appmsg">
          <view class="weui-media-box__hd">
            <image class="weui-media-box__thumb" src="/images/fushe.svg" alt></image>
          </view>
          <view class="weui-media-box__bd">
            <h4 class="weui-media-box__title">{{item.name}}</h4>
            <view class="weui-media-box__desc">
            已答
            <span style="color:darkblue;font-weight:bold">{{item.ydtmtotal}}</span>
            道,
            共
            <span style="color:darkblue;font-weight:bold">{{item.tmtotal}}</span>
            道
            </view>
            <view class="weui-media-box__desc">
            <a class="weui-btn weui-btn_mini weui-btn_primary" bindtap="startLianxi" id="{{item.id}}" wx:if="{{item.ydtmtotal ==0}}">开始练习</a>
            <a class="weui-btn weui-btn_mini weui-btn_primary" bindtap="startLianxi" id="{{item.id}}" wx:else>继续练习</a>
            <a class="weui-btn weui-btn_mini weui-btn_warn" bindtap="restartLianxi" id="{{item.id}}" wx:if="{{item.ydtmtotal > 0}}" style="margin-left:4px">重新开始</a>
            </view>
          </view>
        </view>
        </view>
        </view>
      </block>
    

</view>
