bug
闫增涛
2024-09-07 c6c73b7d709322052b9cd6777b3d6657e0d43d30
pages/digitalCourses/index.wxml
@@ -3,21 +3,47 @@
<view wx:else="">
  <view style="width: 100%; height: {{barHeight}}px;"></view>
  <view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;">
    <view>
      <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" />
    <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" />
    <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-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-item
          options="{{sorter.options}}"
          default-value="{{sorter.value}}"
          bindchange="onSort"
        />
      </t-dropdown-menu>
    </view>
  </view>
@@ -25,29 +51,40 @@
    <view class="titleBox">
      <view class="frameBox"></view>
      <view class="titleTextBox">
        <image src="/static/images/digitalCourses/zhuantitaolun@2x.png" mode="aspectFit" />
        <image
          src="/static/images/digitalCourses/zhuantitaolun@2x.png"
          mode="aspectFit"
        />
      </view>
    </view>
    <scroll-view scroll-y="{{true}}" class="outsideContentBox" bindscrolltolower="onScrollToLower">
    <scroll-view
      scroll-y="{{true}}"
      class="outsideContentBox"
      bindscrolltolower="onScrollToLower"
    >
      <view class="ExternalInformationBox">
        <view class="informationBox" wx:for="{{courseList}}" wx:key="index" wx:for-item="item" data-item="{{item}}">
        <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}}" mode="aspectFit" />
          </view>
          <view class="book-Info">
            <view class="book-name" bind:tap="courseDetail" data-item="{{item}}">
            <view
              class="book-name"
              bind:tap="courseDetail"
              data-item="{{item}}"
            >
              {{item.name}}
            </view>
            <view class="viewCount">
              {{item.viewCount }}次点击
            </view>
            <view class="viewCount"> {{item.viewCount }}次点击 </view>
            <view class="author">
              <view>
                {{ item.courseLeader}}
              </view>
              <view>
                {{ item.classHours}}课时
              </view>
              <view> {{ item.courseLeader}} </view>
              <view> {{ item.classHours}}课时 </view>
            </view>
            <view class="money">
              <view wx:if="{{item.price != 0}}">¥{{item.price }}</view>
@@ -64,4 +101,4 @@
      </view>
    </scroll-view>
  </view>
</view>
</view>