From 78068d49c20a8b90db902d955f558af507eb8b96 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期四, 11 四月 2024 16:06:12 +0800
Subject: [PATCH] 各页面添加骨架屏

---
 packageBookService/pages/bookServices/examination/examination.wxml |   25 +++++++++++++------------
 1 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/packageBookService/pages/bookServices/examination/examination.wxml b/packageBookService/pages/bookServices/examination/examination.wxml
index 588d13e..ffa1cce 100644
--- a/packageBookService/pages/bookServices/examination/examination.wxml
+++ b/packageBookService/pages/bookServices/examination/examination.wxml
@@ -1,4 +1,8 @@
 <!--pages/examination/examination.wxml-->
+
+<import src="examination.skeleton.wxml"/>
+<template is="skeleton" wx:if="{{loading}}" />
+
 <!--瀵艰埅鍖哄煙 -->
 <view
   style="width: 100%; height: {{barHeight}}px;background-color: {{isNight ? '#191919' : '#fff'}} "
@@ -20,15 +24,6 @@
     >{{answerTitle}}</view
   >
 </view>
-<!-- 
-<view class="lodaing-box" wx:if="{{loaidng}}">
-  <t-loading
-    theme="circular"
-    size="80rpx"
-    class="wrapper"
-    loading="{{loading}}"
-  />
-</view> -->
 
 <view class="page-content" style="background-color:{{isNight ? '#222' : ''}}">
   <question-schedule
@@ -51,23 +46,28 @@
     currentIndex="{{currentIndex}}"
     questionList="{{questionDataList}}"
     submitStatus="{{submitStatus}}"
+    noData="{{noData}}"
     bind:onChangeRadio="onChangeRadio"
     bind:onChangeInput="onChangeInput"
     bind:changeSwiper="changeSwiper"
     bind:viewParsing="viewParsing"
   ></question-list>
-  <view class="lodaing-box" wx:if="{{loading}}">
+  <!-- <view class="lodaing-box" wx:if="{{loading}}">
     <t-loading
       theme="circular"
       size="80rpx"
       class="wrapper"
       loading="{{loading}}"
-  /></view>
+  /></view> -->
 </view>
 
 <!-- 搴曢儴鍖哄煙-->
 
-<view class="page-bottom" style="background-color:{{isNight ? '#202020' : ''}}">
+<view
+  class="page-bottom"
+  style="background-color:{{isNight ? '#202020' : ''}}"
+  wx:if="{{answerType !== 'errorQuestion' || (answerType == 'errorQuestion' && !loading)}}"
+>
   <question-options
     id="question-options"
     isNight="{{isNight}}"
@@ -88,6 +88,7 @@
     bind:goQuestion="goQuestion"
     bind:changeBGColor="changeBGColor"
     bind:onChangeSlider="onChangeSlider"
+    bind:changeLoadingState="changeLoadingState"
   ></question-options>
 </view>
 

--
Gitblit v1.9.1