闫增涛
2024-04-26 eb3cf68faee31402822350045ee08f3fea28cd5c
packageBookService/pages/bookServices/detail/buyResource/index.wxml
@@ -1,37 +1,55 @@
<!--packageBookService/pages/bookServices/detail/buyResource/index.wxml-->
<!--导航区域 -->
<view style="width: 100%; height: {{barHeight}}px; "></view>
<view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;">
  <view class="flex">
    <view>
      <t-icon
        name="chevron-left"
        size="30"
        data-name="{{item}}"
        bind:click="goBack"
      />
<!-- 资源购买页面 -->
<import src="index.skeleton.wxml" />
<template is="skeleton" wx:if="{{loading}}" />
<view wx:if="{{haider}}">
  <!--导航区域 -->
  <view style="width: 100%; height: {{barHeight}}px; "></view>
  <view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;">
    <view class="flex">
      <view>
        <t-icon
          name="chevron-left"
          size="30"
          data-name="{{item}}"
          bind:click="goBack"
        />
      </view>
      <view class="navbar-title">资源购买</view>
    </view>
    <view class="navbar-title">资源购买</view>
    <view bind:tap="checkAll"> {{checkAllState ? '全选' : '取消'}} </view>
  </view>
  <view bind:tap="checkAll"> 全选 </view>
</view>
<!-- 内容 -->
  <!-- 内容 -->
<view class="buy-resource" wx:if="{{!loading}}">
  <tree
    id="tree"
    treeList="{{learn}}"
    tab="{{'jsek_cloudLearning'}}"
    isShowCheck="{{true}}"
    openIds="{{openLearnids}}"
  />
</view>
  <view class="buy-resource" wx:if="{{!loading}}">
    <tree
      id="tree"
      paymentPage="{{paymentPage}}"
      superior="{{superior}}"
      treeList="{{learn}}"
      learnList="{{learn}}"
      tab="{{'jsek_cloudLearning'}}"
      isShowCheck="{{true}}"
      openIds="{{openLearnids}}"
      checkAllState="{{checkAllState}}"
      bind:changeCheckAll="changeCheckAll"
      bind:changeListChecked="changeListChecked"
      bind:changeResourceChecked="changeResourceChecked"
    />
    <view class="noData" wx:if="{{noData}}">
      <t-empty icon="folder-open" description="暂无数据" />
    </view>
  </view>
<view class="noData" wx:if="{{loading}}">
  <t-loading size="60rpx" loading="{{loading}}" />
</view>
<view class="page-bottom">
  <t-button theme="primary" size="large" class="btn-buy">批量购买</t-button>
  <view class="page-bottom">
    <t-button
      theme="primary"
      size="large"
      class="btn-buy"
      bindtap="batchPurchase"
      >批量购买</t-button
    >
  </view>
</view>