From ec8d9a372c49beb78c0b9495ca0aeda7368ca127 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期五, 09 六月 2023 19:26:52 +0800 Subject: [PATCH] no message --- public/html/freebuy.html | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/public/html/freebuy.html b/public/html/freebuy.html index b894686..3bd58f1 100644 --- a/public/html/freebuy.html +++ b/public/html/freebuy.html @@ -218,7 +218,7 @@ } .loading{ - line-height: 1rem; text-align: center; font-size: .3rem; color: #999; + line-height: 2rem; text-align: center; font-size: .3rem; color: #999; } .sys{ width: 100%; @@ -244,8 +244,9 @@ </header> <div :style="{ height: (twoNav && twoNav.length > 0) ? '2.3rem' : '2.3rem'}"></div> - - <div v-if="!loading" style="min-height: 100vh; background: #fbe7e2;" class=" swiper-container swiper-container-initialized swiper-container-horizontal swiper-container-free-mode swiper-container-ios"> + <div v-if="loading" v-else class="loading">鍔犺浇涓�...</div> + + <div v-else style="min-height: 100vh; background: #fbe7e2;" class=" swiper-container swiper-container-initialized swiper-container-horizontal swiper-container-free-mode swiper-container-ios"> <div class="swiper-wrapper" style="transform: translate3d(0px, 0px, 0px);"> <div class="swiper-slide list-section"> <div class="listTmp " v-for="(data,key) in lists" :key="key" v-on:click="targetItem(data)"> @@ -284,8 +285,7 @@ <div class="swiper-pagination"></div> <span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span> </div> - <div v-else class="loading">鍔犺浇涓�...</div> - + </div> </body> @@ -294,13 +294,16 @@ <script> (function(){ var size = (document.body.clientWidth || document.documentElement.clientWidth); + alert("1:"+document.body.clientWidth); + alert("2:"+document.documentElement.clientWidth); + size=size<=0?400:size; document.documentElement.style.fontSize = (size > 750 ? 750 : size) / 7.5 + 'px'; })(); Vue.use(VueLazyload, { preLoad: 1.3,// error: 'https://sr.ffquan.cn/cms_pic/20200622/bro7s7f6vrkd3jat4ujg0.png', - loading: 'https://sr.ffquan.cn/cms_pic/20200612/brhjkf76vrkcrfpi79eg0.png', + // loading: 'https://sr.ffquan.cn/cms_pic/20200612/brhjkf76vrkcrfpi79eg0.png', attempt: 1 }) new Vue({ -- Gitblit v1.9.3