bug
闫增涛
2024-09-20 33bca11c5ee8db8a0ca3444869f0cc3048edbe94
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<import src="index.skeleton.wxml" />
<template is="skeleton" wx:if="{{loading}}" />
<view wx:else>
  <view style="width: 100%; height: {{barHeight}}px;"></view>
  <view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;">
    <view class="back-icon">
      <!-- <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> -->
      <image
        src="/static/images/digitalTextbooks/chevron-left.png"
        bind:tap="goBack"
        mode="aspectFit"
      />
    </view>
    <t-search
      model:value="{{searchValue}}"
      shape="round"
      placeholder="请输入课程名称/ISBN/课程负责人"
      class="navBar-search"
      style="width: 464rpx"
      bind:submit="searchBook"
    />
  </view>
  <view class="heardTab">
    <view class="tabBox">
      <t-tabs
        defaultValue="{{active}}"
        bind:change="onTabsChange"
        t-class="custom-tabs"
      >
        <t-tab-panel
          wx:for="{{tabList}}"
          wx:key="index"
          wx:for-item="item"
          label="{{item.name}}"
          value="{{index}}"
        >
        </t-tab-panel>
      </t-tabs>
    </view>
    <view class="dropdown">
      <t-dropdown-menu>
        <t-dropdown-item
          options="{{sorter.options}}"
          default-value="{{sorter.value}}"
          bindchange="onSort"
        />
      </t-dropdown-menu>
    </view>
  </view>
  <view class="contentBox">
    <view class="titleBox">
      <view class="frameBox"></view>
      <view class="titleTextBox">
        <image
          src="/static/images/digitalCourses/zhuantitaolun@2x.png"
          mode="aspectFit"
        />
      </view>
    </view>
  </view>
  <t-skeleton
    theme="paragraph"
    animation="gradient"
    loading="{{contentLoading}}"
    class="content-loading"
    wx:if="{{contentLoading}}"
  ></t-skeleton>
  <scroll-view
    scroll-y="{{true}}"
    class="outsideContentBox"
    bindscrolltolower="onScrollToLower"
    wx:if="{{!contentLoading}}"
  >
    <view class="ExternalInformationBox">
      <view
        class="informationBox"
        wx:for="{{courseList}}"
        wx:key="index"
        wx:for-item="item"
        data-item="{{item}}"
      >
        <view class="book-img" bind:tap="courseDetail" data-item="{{item}}">
          <image
            src="{{item.icon ? item.icon : 'https://jsek.bnuic.com/home/image/courseIcon.png'}}"
            mode="aspectFit"
          />
        </view>
        <view class="book-Info">
          <view class="book-name" bind:tap="courseDetail" data-item="{{item}}">
            {{item.name}}
          </view>
          <view class="viewCount"> {{item.viewCount }}次点击 </view>
          <view class="author">
            <view class="courseLeader"> {{ item.courseLeader}} </view>
            <view> {{ item.classHours}}课时 </view>
          </view>
          <view class="money">
            <view wx:if="{{item.price != 0}}">¥{{item.price }}</view>
            <view wx:else> 免费</view>
            <view bind:tap="addCart" data-item="{{item}}">
              <t-icon name="cart" size="16" />
            </view>
          </view>
        </view>
      </view>
    </view>
    <view wx:if="{{noData}}" class="noDataBox">
      <!-- <t-empty icon="folder-open" description="暂无数据" font-size="80" /> -->
      <empty />
    </view>
  </scroll-view>
</view>