闫增涛
2024-03-25 8f9242a0cfc60fa3718c93123282fcb2b8dbf7fa
packageBookService/pages/bookServices/detail/components/tree/index.wxml
@@ -1,16 +1,16 @@
<view class="tree">
  <t-collapse default-value="{{activeValues}}" bind:change="handleChange">
  <t-collapse default-value="{{openIds}}" bind:change="handleChange">
    <t-collapse-panel
      wx:for="{{treeList}}"
      wx:for-item="item"
      wx:for-index="index"
      wx:key="id"
      value="{{index}}"
      value="{{item.id}}"
      expandIcon
      disabled="{{!item.children}}"
      disabled="{{!item.children.length}}"
    >
      <view slot="header" class="header-title">
        <view wx:if="{{tab == 'jsek_cloudLearning'}}">
        <view wx:if="{{isShowCheck}}">
          <t-checkbox
            icon="rectangle"
            checked="{{item.checked}}"
@@ -50,7 +50,7 @@
                class="box-image"
                style="{{ tab == 'jsek_teachingResources' ? 'width: 350rpx;' : 'width: 450rpx;'}}"
              >
                <view class="checkBox" wx:if="{{tab == 'jsek_cloudLearning'}}">
                <view class="checkBox" wx:if="{{isShowCheck}}">
                  <!-- checked="{{citem.checked}}"  -->
                  <!-- <t-checkbox icon="rectangle" checked="{{citem.checked}}" disabled="{{citem.selectType=='webpage' || citem.isDownload != 1 || citem.fileMap[citem.file].protectType == 'Private'}}" catch:change="checkResource" data-item="{{citem}}" /> -->
                  <t-checkbox
@@ -63,12 +63,12 @@
                <!-- 教学资源图标 -->
                <view class="teach-icon">
                  <image
                    wx:if="{{citem.selectType == 'audio'}}"
                    wx:if="{{citem.selectType == 'audio' || citem.learnSelectType == 'audio'}}"
                    src="/static/images/bookService/detail/audioIcon.png"
                    mode="aspectFill"
                  />
                  <image
                    wx:if="{{citem.selectType == 'video'}}"
                    wx:if="{{citem.selectType == 'video' || citem.learnSelectType == 'video'}}"
                    src="/static/images/bookService/detail/video.png"
                    mode="aspectFill"
                  />
@@ -159,10 +159,12 @@
        <!-- // 判断 不是商品 有子项 递归组件 -->
        <tree
          wx:else
          isShowCheck="{{isShowCheck}}"
          bookInfo="{{bookInfo}}"
          treeList="{{[citem]}}"
          itemId="{{itemId}}"
          tab="{{tab}}"
          buyIds="{{buyIds}}"
          openTeachids="{{openTeachids}}"
          openLearnids="{{openLearnids}}"
        ></tree>