| | |
| | | t-class="horizontal-box" |
| | | value="{{radioItem}}" |
| | | bind:change="onRadioChange" |
| | | style="margin: 0px" |
| | | style="margin: 0 10rpx 0 0" |
| | | > |
| | | <view class="card {{radioItem == 'test' ? 'card--active' : ''}}"> |
| | | <t-radio value="test" icon="none" borderless style="height: 80rpx"> |
| | | <view class="radio-content" slot="content"> |
| | | <t-image |
| | | <image |
| | | src="{{ radioItem == 'test' ? '/static/images/bookService/detail/practice-icon.png' : '/static/images/bookService/detail/notest.png'}}" |
| | | ></t-image> |
| | | ></image> |
| | | <text style="color: {{radioItem == 'test' ? '#fff':''}};" |
| | | >练习</text |
| | | > |
| | |
| | | </t-radio> |
| | | </view> |
| | | <view class="card {{radioItem == 'mock' ? 'card--active' : ''}}"> |
| | | <t-radio value="mock" icon="none" borderless> |
| | | <t-radio value="mock" icon="none" borderless style="height: 80rpx"> |
| | | <view class="radio-content" slot="content"> |
| | | <t-image |
| | | <image |
| | | src="{{ radioItem == 'mock' ? '/static/images/bookService/detail/checkpaper.png' : '/static/images/bookService/detail/zujuan.png'}}" |
| | | ></t-image> |
| | | <text style="color: {{radioItem == 'mock' ? '#fff':''}};"> |
| | | 组卷</text |
| | | ></image> |
| | | <text style="color: {{radioItem == 'mock' ? '#fff':''}};" |
| | | >组卷</text |
| | | > |
| | | </view> |
| | | </t-radio> |
| | | </view> |
| | | </t-radio-group> |
| | | <!-- <t-button |
| | | class=" {{selectBtn == 'test' ? 'practice-btn' : 'paper-btn'}}" |
| | | theme="default" |
| | | size="medium" |
| | | style="width: 85px" |
| | | bind:tap="changeBtn" |
| | | data-type="test" |
| | | > |
| | | <view slot="content"> |
| | | <t-image |
| | | src="{{ selectBtn == 'test' ? '/static/images/bookService/detail/practice-icon.png' : '/static/images/bookService/detail/notest.png'}}" |
| | | ></t-image> |
| | | <text>练习</text> |
| | | </view> |
| | | </t-button> |
| | | <t-button |
| | | class=" {{selectBtn == 'mock' ? 'practice-btn' : 'paper-btn'}}" |
| | | theme="default" |
| | | size="medium" |
| | | style="width: 85px" |
| | | bind:tap="changeBtn" |
| | | data-type="mock" |
| | | > |
| | | <view slot="content"> |
| | | <t-image |
| | | src="{{ selectBtn == 'mock' ? '/static/images/bookService/detail/checkpaper.png' : '/static/images/bookService/detail/zujuan.png'}}" |
| | | ></t-image> |
| | | 组卷 |
| | | </view> |
| | | </t-button> --> |
| | | <t-button |
| | | class="error-btn" |
| | | theme="default" |
| | |
| | | bind:tap="goMycollect" |
| | | data-answerType="errorQuestion" |
| | | > |
| | | <view slot="content"> |
| | | <t-image src="/static/images/bookService/detail/cuoti.png"></t-image> |
| | | 我的错题 |
| | | <view slot="content" class="btn-content"> |
| | | <image src="/static/images/bookService/detail/cuoti.png"></image> |
| | | <text>我的错题</text> |
| | | </view> |
| | | </t-button> |
| | | <t-button |
| | |
| | | bind:tap="goMycollect" |
| | | data-answerType="collectQuestion" |
| | | > |
| | | <view slot="content"> |
| | | <t-image |
| | | src="/static/images/bookService/detail/wodeshoucang.png" |
| | | ></t-image> |
| | | 我的收藏 |
| | | <view slot="content" class="btn-content"> |
| | | <image src="/static/images/bookService/detail/wodeshoucang.png"></image> |
| | | <text> 我的收藏</text> |
| | | </view> |
| | | </t-button> |
| | | </view> |
| | |
| | | <view |
| | | class="resource-list" |
| | | wx:for="{{list}}" |
| | | wx:key="item.id" |
| | | wx:key="id" |
| | | wx:if="{{radioItem == 'test'}}" |
| | | > |
| | | <view class="list-title"> |
| | | <t-image src="/static/images/bookService/detail/test-icon.png"></t-image> |
| | | <image src="/static/images/bookService/detail/test-icon.png"></image> |
| | | <text>{{item.name}}</text> |
| | | </view> |
| | | <view class="practice" bind:tap="goTest" data-value="{{item}}"> |
| | | <t-image |
| | | src="/static/images/bookService/detail/lianxi-icon.png" |
| | | ></t-image> |
| | | <image src="/static/images/bookService/detail/lianxi-icon.png"></image> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- 组卷列表 --> |
| | | <view class="mock-data" wx:if="{{radioItem == 'mock'}}"> |
| | | <view class="mack-num">已组卷{{mockData.mockList.length}}次</view> |
| | | <view class="mock-list"> |
| | | <view |
| | | class="mock-list-box" |
| | | wx:for="{{mockData.mockList}}" |
| | | data-item="{{item}}" |
| | | bind:tap="goMackPaper" |
| | | > |
| | | <view class="mock-title">{{item.name}}</view> |
| | | <view class="mock-message"> |
| | | <view class="message-box"> |
| | | <view class="mack-state"> |
| | | <text wx:if="{{item.state == '3'}}" class="complete state-pad" |
| | | >已完成</text |
| | | > |
| | | <text |
| | | wx:elif="{{item.state == '2' || item.state == '1'}}" |
| | | class="Incomplete state-pad" |
| | | >未完成</text |
| | | > |
| | | <text wx:else class="Incomplete state-pad">未开始</text> |
| | | <view wx:if="{{mockData.mockList.length}}"> |
| | | <view class="mack-num">已组卷{{mockData.mockList.length}}次</view> |
| | | <view class="mock-list"> |
| | | <view |
| | | class="mock-list-box" |
| | | wx:for="{{mockData.mockList}}" |
| | | wx:key="id" |
| | | data-item="{{item}}" |
| | | bind:tap="goMackPaper" |
| | | > |
| | | <view class="mock-title">{{item.name}}</view> |
| | | <view class="mock-message"> |
| | | <view class="message-box"> |
| | | <view class="mack-state"> |
| | | <text wx:if="{{item.state == '3'}}" class="complete state-pad" |
| | | >已完成</text |
| | | > |
| | | <text |
| | | wx:elif="{{item.state == '2' || item.state == '1'}}" |
| | | class="Incomplete state-pad" |
| | | >未完成</text |
| | | > |
| | | <text wx:else class="Incomplete state-pad">未开始</text> |
| | | </view> |
| | | <view class="mock-time">{{item.createDate}}</view> |
| | | </view> |
| | | <view class="mock-time">{{item.createDate}}</view></view |
| | | > |
| | | <view class="mock-score" wx:if="{{item.report.userScore}}" |
| | | >{{item.report.userScore}}分</view |
| | | > |
| | | <view class="mock-score" wx:if="{{item.state == '3'}}" |
| | | >{{item.report.userScore}}分</view |
| | | > |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view wx:else class="not-mock"> |
| | | <image |
| | | src="/static/images/bookService/examination/zhuangtai-icon.png" |
| | | ></image> |
| | | <view class="not-mock-message note-mock-text" |
| | | >组卷是收费功能,请购买后使用!</view |
| | | > |
| | | <view class="note-mock-price note-mock-text" |
| | | >价格:<text class="mock-price">¥{{mockData.price}}</text> 元/次</view |
| | | > |
| | | </view> |
| | | </view> |