litian
4 小时以前 aff8d054df4a638f399dc8f15d98c19b9c9aa785
packageBookService/pages/bookServices/detail/components/testResource/testResource.wxml
@@ -27,38 +27,6 @@
        <view class="btn-content-text">组卷</view>
      </view>
    </view>
    <!-- <t-radio-group
      class="test-radio"
      t-class="horizontal-box"
      value="{{radioItem}}"
      bind:change="onRadioChange"
      style="margin: 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':'#ff6c00'}};"
              >练习</text
            >
          </view>
        </t-radio>
      </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':'#ff6c00'}};"
              >组卷</text
            >
          </view>
        </t-radio>
      </view>
    </t-radio-group> -->
    <view class="btn-box">
      <t-button
        class="error-btn"
@@ -91,14 +59,7 @@
    </view>
  </view>
  <!-- 练习列表 -->
  <view
    class="resource-list"
    wx:for="{{list}}"
    wx:key="id"
    wx:if="{{radioItem == 'test'}}"
    bind:tap="goTest"
    data-value="{{item}}"
  >
  <!-- <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>
@@ -106,17 +67,58 @@
    <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>