| | |
| | | <!--pages/bookServices/detail/components/testResource/testResource.wxml--> |
| | | <view class="test-resource"> |
| | | <view class="top-btn"> |
| | | <t-radio-group |
| | | class="test-radio" |
| | | t-class="horizontal-box" |
| | | value="{{radioItem}}" |
| | | bind:change="onRadioChange" |
| | | 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"> |
| | | <image |
| | | src="{{ radioItem == 'test' ? '/static/images/bookService/detail/practice-icon.png' : '/static/images/bookService/detail/notest.png'}}" |
| | | ></image> |
| | | <text style="color: {{radioItem == 'test' ? '#fff':''}};" |
| | | >练习</text |
| | | > |
| | | </view> |
| | | </t-radio> |
| | | <view class="test-radio"> |
| | | <view |
| | | class="test-btn card {{radioItem == 'test' ? 'card--active' : ''}}" |
| | | bind:tap="testBtn" |
| | | > |
| | | <view class="image-box"> |
| | | <image |
| | | class="test-icon" |
| | | src="{{ radioItem == 'test' ? '/static/images/bookService/detail/practice-icon.png' : '/static/images/bookService/detail/notest.png'}}" |
| | | mode="aspectFit" |
| | | ></image> |
| | | </view> |
| | | <view class="btn-content-text">练习</view> |
| | | </view> |
| | | <view class="card {{radioItem == 'mock' ? 'card--active' : ''}}"> |
| | | <t-radio value="mock" icon="none" borderless style="height: 80rpx"> |
| | | <view class="radio-content" slot="content"> |
| | | <image |
| | | src="{{ radioItem == 'mock' ? '/static/images/bookService/detail/checkpaper.png' : '/static/images/bookService/detail/zujuan.png'}}" |
| | | ></image> |
| | | <text style="color: {{radioItem == 'mock' ? '#fff':''}};" |
| | | >组卷</text |
| | | > |
| | | </view> |
| | | </t-radio> |
| | | <view |
| | | class="test-btn card {{radioItem == 'mock' ? 'card--active' : ''}}" |
| | | bind:tap="mockBtn" |
| | | > |
| | | <view class="image-box"> |
| | | <image |
| | | src="{{ radioItem == 'mock' ? '/static/images/bookService/detail/checkpaper.png' : '/static/images/bookService/detail/zujuan.png'}}" |
| | | ></image> |
| | | </view> |
| | | <view class="btn-content-text">组卷</view> |
| | | </view> |
| | | </t-radio-group> |
| | | <t-button |
| | | class="error-btn" |
| | | theme="default" |
| | | size="medium" |
| | | style="padding: 0 12rpx" |
| | | bind:tap="goMycollect" |
| | | data-answerType="errorQuestion" |
| | | > |
| | | <view slot="content" class="btn-content"> |
| | | <image src="/static/images/bookService/detail/cuoti.png"></image> |
| | | <text>我的错题</text> |
| | | </view> |
| | | </t-button> |
| | | <t-button |
| | | class="collect-btn" |
| | | theme="default" |
| | | size="medium" |
| | | style="padding: 0 12rpx" |
| | | bind:tap="goMycollect" |
| | | data-answerType="collectQuestion" |
| | | > |
| | | <view slot="content" class="btn-content"> |
| | | <image src="/static/images/bookService/detail/wodeshoucang.png"></image> |
| | | <text> 我的收藏</text> |
| | | </view> |
| | | </t-button> |
| | | </view> |
| | | <view class="btn-box"> |
| | | <t-button |
| | | class="error-btn" |
| | | theme="default" |
| | | size="medium" |
| | | style="padding: 0 12rpx" |
| | | bind:tap="goMycollect" |
| | | data-answerType="errorQuestion" |
| | | > |
| | | <view slot="content" class="btn-content"> |
| | | <image src="/static/images/bookService/detail/cuoti.png"></image> |
| | | <text class="primary-color">我的错题</text> |
| | | </view> |
| | | </t-button> |
| | | <t-button |
| | | class="collect-btn" |
| | | theme="default" |
| | | size="medium" |
| | | style="padding: 0 12rpx" |
| | | bind:tap="goMycollect" |
| | | data-answerType="collectQuestion" |
| | | > |
| | | <view slot="content" class="btn-content"> |
| | | <image |
| | | src="/static/images/bookService/detail/wodeshoucang.png" |
| | | ></image> |
| | | <text class="primary-color"> 我的收藏</text> |
| | | </view> |
| | | </t-button> |
| | | </view> |
| | | </view> |
| | | <!-- 练习列表 --> |
| | | <view |
| | | class="resource-list" |
| | | wx:for="{{list}}" |
| | | wx:key="id" |
| | | wx:if="{{radioItem == 'test'}}" |
| | | > |
| | | <!-- <view class="resource-list" wx:for="{{list}}" wx:key="id" wx:if="{{radioItem == 'test'}}" bind:tap="goTest" data-value="{{item}}"> |
| | | <view class="list-title"> |
| | | <image src="/static/images/bookService/detail/test-icon.png"></image> |
| | | <text>{{item.name}}</text> |
| | | </view> |
| | | <view class="practice" bind:tap="goTest" data-value="{{item}}"> |
| | | <view class="practice"> |
| | | <image src="/static/images/bookService/detail/lianxi-icon.png"></image> |
| | | </view> |
| | | </view> --> |
| | | <!-- 练习列表树结构 --> |
| | | <view wx:if="{{radioItem == 'test'}}"> |
| | | <view class="buy-question-btn" wx:if="{{!isBuyBank}}"> |
| | | <t-button |
| | | wx:if="{{!isShoppingBank}}" |
| | | class="error-btn" |
| | | theme="default" |
| | | size="medium" |
| | | style="padding: 0 12rpx" |
| | | bind:tap="handleShoppingBank" |
| | | data-answerType="errorQuestion" |
| | | > |
| | | <view slot="content" class="btn-content"> |
| | | <image src="/static/images/bookService/detail/cart.png" /> |
| | | <text class="primary-color">加入购物车</text> |
| | | </view> |
| | | </t-button> |
| | | <t-button |
| | | class="error-btn" |
| | | theme="default" |
| | | size="medium" |
| | | style="padding: 0 12rpx" |
| | | bind:tap="buyBank" |
| | | data-answerType="errorQuestion" |
| | | > |
| | | <view slot="content" class="btn-content"> |
| | | <image src="/static/images/bookService/detail/yijiangoumai.png" /> |
| | | <text class="primary-color" |
| | | >{{bankSaleData.Price > 0 ? "全部购买" : "免费领取"}}</text |
| | | > |
| | | </view> |
| | | </t-button> |
| | | </view> |
| | | <tree |
| | | id="test-tree" |
| | | openIds="{{openIds}}" |
| | | bookInfo="{{bookInfo}}" |
| | | tab="{{tab}}" |
| | | treeList="{{list}}" |
| | | bind:goTest="goTest" |
| | | ></tree> |
| | | </view> |
| | | <view |
| | | wx:if="{{noResources}}" |
| | | class="noData" |
| | | wx:if="{{radioItem == 'test' && !list.length}}" |
| | | > |
| | | <!-- <t-empty icon="folder-open" description="暂无数据" /> --> |
| | | <empty /> |
| | | </view> |
| | | </view> |
| | | |
| | | <view |
| | | wx:if="{{noResources}}" |
| | | class="noData" |
| | | wx:if="{{radioItem == 'test' && !list.length}}" |
| | | > |
| | | <t-empty icon="folder-open" description="暂无数据" /> |
| | | </view> |
| | | |
| | | <!-- 组卷列表 --> |
| | | <view class="mock-data" wx:if="{{radioItem == 'mock'}}"> |
| | | <view> |
| | |
| | | <t-button class="buy-mock-btn" bind:tap="buyMock">购买组卷</t-button> |
| | | </view> |
| | | </view> |
| | | <view class="loading-box" wx:if="{{}}"> |
| | | <t-loading loading="{{}}" /> |
| | | </view> |
| | | </view> |