yiming
2024-06-17 bbd3feaa30f2d980eb55c17f8cb492eae4372b5b
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
<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>
  <t-search model:value="{{searchValue}}" shape="round" placeholder="请输入关键词/书名/作者" class="navBar-search" style="width: 464rpx" bind:submit="searchBook" />
</view>
 
 
<view class="tabsBox">
  <view wx:for="{{tabList}}" wx:key="index" wx:for-item="item" data-index="{{index}}" bind:tap="onTabsTap" class="{{ index == tabIndex  ?' tabsSelect ' : 'tabsNameBox'}}">
    <view class="{{ index == tabIndex  ?' tabsNameSelect ' : 'tabsName'}}">{{item.name}} ({{item.amount}})</view>
    <view class="{{index == tabIndex ? 'selectLine' :''}}"></view>
  </view>
</view>
 
 
<view wx:if="{{tabIndex == 0}}">
 
 
  <view wx:for="{{specialSubjectList}}" wx:key="index" wx:for-item="item" data-item="{{item}}" bind:tap="onLink" class="displayContent">
    <view class="imageBox">
      <image src="{{item.icon}}" mode="aspectFit" />
    </view>
 
    <view class="tltieBox">
      <view class="nameTltieBox">
        {{item.name}}
      </view>
      <view class="directSeeding">
        直播时间:{{ item.liveTime }}
      </view>
 
      <view class="position">
        <view style="color: #333;"> {{item.lecturer }}</view>
        <view wx:if="{{item.price == 0}}" style="color: #FF6C00;">免费</view>
        <view wx:else="" style="color: #FF6C00;">¥{{item.price}}</view>
      </view>
    </view>
  </view>
 
 
 
 
</view>
<view wx:else>
  <t-tabs defaultValue="{{0}}" bind:change="onTabsChange" t-class="custom-tabs" t-class-content="custom-panel">
    <t-tab-panel wx:for="{{batList}}" wx:key="index" wx:for-item="item" data-item="{{item}}" label="{{item.name}}" value="{{index}}" style="{{tabPanelstyle}}">
 
 
      <view wx:for="{{specialDiscussionList}}" wx:key="index" wx:for-item="item" data-item="{{item}}" bind:tap="onLink" class="displayContent">
        <view class="imageBox">
          <image src="{{item.icon}}" mode="aspectFit" />
        </view>
 
        <view class="tltieBox">
          <view class="nameTltieBox">
            {{item.name}}
          </view>
          <view class="directSeeding">
            直播时间:{{ item.liveTime }}
          </view>
 
          <view class="position">
            <view style="color: #333;"> {{item.lecturer }}</view>
            <view wx:if="{{item.price == 0}}" style="color: #FF6C00;">免费</view>
            <view wx:else="" style="color: #FF6C00;">¥{{item.price}}</view>
          </view>
        </view>
      </view>
 
 
    </t-tab-panel>
  </t-tabs>
</view>