From 2e7bd5767a325a045cc32dbd29c824a7d6317203 Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Wed, 8 Jul 2026 09:47:29 +0800 Subject: [PATCH] 1 --- pages/index/index.vue | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 07fa8ba..7e3f8b6 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -461,7 +461,7 @@ - + @@ -491,7 +491,7 @@ - + 商品详情 @@ -523,7 +523,7 @@ - + 抢单成功 @@ -1397,7 +1397,7 @@ uni.setStorageSync(HOME_AD_IMAGE_CACHE_KEY, cache) }, isHomeAdImageCacheValid(cacheItem) { - return !!(cacheItem && cacheItem.path && Date.now() - Number(cacheItem.savedAt || 0) < HOME_AD_IMAGE_CACHE_TTL) + return !!(cacheItem && cacheItem.path && cacheItem.path.indexOf('__tmp__') === -1 && Date.now() - Number(cacheItem.savedAt || 0) < HOME_AD_IMAGE_CACHE_TTL) }, applyCachedAdImages(mallAds) { const cache = this.getHomeAdImageCache() @@ -1444,7 +1444,6 @@ delete homeAdImageDownloading[imageUrl] return } - this.homeMenuIconImages[key] = downloadRes.tempFilePath uni.saveFile({ tempFilePath: downloadRes.tempFilePath, success: (saveRes) => { @@ -1463,6 +1462,9 @@ this.saveHomeAdImageCache(cache) this.homeMenuIconImages[key] = saveRes.savedFilePath }, + fail: () => { + this.homeMenuIconImages[key] = imageUrl + }, complete: () => { delete homeAdImageDownloading[imageUrl] } @@ -1491,7 +1493,6 @@ delete homeAdImageDownloading[imageUrl] return } - this.replaceAdImageWithCache(imageUrl, downloadRes.tempFilePath) uni.saveFile({ tempFilePath: downloadRes.tempFilePath, success: (saveRes) => { @@ -1510,6 +1511,9 @@ this.saveHomeAdImageCache(cache) this.replaceAdImageWithCache(imageUrl, saveRes.savedFilePath) }, + fail: () => { + this.replaceAdImageWithCache(imageUrl, imageUrl) + }, complete: () => { delete homeAdImageDownloading[imageUrl] } @@ -1972,6 +1976,10 @@ height: 100%; } + .home-popup-layer { + z-index: 1200 !important; + } + .swiper { width: 100%; height: 440rpx; @@ -2665,7 +2673,7 @@ box-sizing: border-box; position: sticky; top: 0; - z-index: 1002; + z-index: 97; border-radius: 34rpx; background: rgba(255, 255, 255, 0.62); border-bottom-left-radius: 0; @@ -2677,7 +2685,7 @@ position: fixed; left: 0; top: 0; - z-index: 1000; + z-index: 94; pointer-events: none; background: linear-gradient(180deg, rgba(246, 255, 251, 1) 0%, rgba(246, 255, 251, 1) 78%, rgba(246, 255, 251, 0.92) 92%, rgba(246, 255, 251, 0) 100%), @@ -2781,15 +2789,15 @@ } .page1.is-sticky .daimai-tab { - z-index: 1003; + z-index: 97; } .page1.is-sticky .title-sort { - z-index: 1002; + z-index: 96; } .page1.is-sticky .sort-text { - z-index: 1001; + z-index: 95; } .daimai-tab-item { @@ -3958,7 +3966,7 @@ display: flex; position: sticky; top: 0; - z-index: 1001; + z-index: 96; background: rgba(255, 255, 255, 1); padding: 20rpx 10rpx 0; box-sizing: border-box; @@ -3976,7 +3984,7 @@ display: flex; position: sticky; top: 0; - z-index: 1001; + z-index: 95; background: rgba(255, 255, 255, 0.96); padding: 20rpx 10rpx 10rpx; box-sizing: border-box;