From 8a27f5724e10e82cc5a30bf7051397da2e697e63 Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期四, 19 十二月 2024 10:49:11 +0800
Subject: [PATCH] bug优化,答题卡初始化

---
 pages/specialDiscussion/index.wxml |  139 +++++++++++++++++++++++----------------------
 1 files changed, 71 insertions(+), 68 deletions(-)

diff --git a/pages/specialDiscussion/index.wxml b/pages/specialDiscussion/index.wxml
index 4e1a671..c178ba2 100644
--- a/pages/specialDiscussion/index.wxml
+++ b/pages/specialDiscussion/index.wxml
@@ -1,75 +1,78 @@
-<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>
+<import src="index.skeleton.wxml" />
+<template is="skeleton" wx:if="{{loading}}" />
 <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 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="璇疯緭鍏ュ叧閿瘝/涔﹀悕/浣滆��" 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>
+  </view>
+  <view wx:if="{{tabIndex == 0}}" class="list-box">
+    <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="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 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 wx:if="{{specialSubjectList.length <= 0}}" class="noDataBox">
+      <!-- <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" font-size="80" /> -->
+      <empty />
+    </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}}">
+        <view class="list-box">
+          <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>
 
-    </t-tab-panel>
-  </t-tabs>
+              <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:if="{{specialDiscussionList.length <= 0}}" class="noDataBox">
+          <!-- <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" font-size="80" /> -->
+          <empty />
+        </view>
+      </t-tab-panel>
+    </t-tabs>
+  </view>
+
 </view>
\ No newline at end of file

--
Gitblit v1.9.1