白屏,首页,霸王餐,网络完善

This commit is contained in:
wwz
2025-03-27 14:41:50 +08:00
parent 98ce8b5544
commit 9094818ea1
11 changed files with 104 additions and 76 deletions

View File

@@ -149,7 +149,7 @@
v-for="(item1,index1) in item.productList" :key="index1">
<image class="goodsImg" v-if="item1.coverImg!=null" :lazy-load="true"
@load="imageLoaded(item1,index,index1)"
:src="`${item1.coverImg}${!item1.imgLoad?'?x-oss-process=image/resize,m_lfit,w_300,h_300':''}`"
:src="`${item1.coverImg}${!item1.imgLoad?'?x-oss-process=image/resize,m_lfit,w_150,h_150':''}`"
mode="aspectFill"></image>
<image class="goodsImg"
src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/index/1.gif" mode="" v-else
@@ -363,7 +363,7 @@
</view>
</view>
</up-popup>
<Loading :isLoading="isLoading" />
</view>
</template>
@@ -457,8 +457,8 @@
const showShopInfoRef = ref(null)
// 初始加载中
const isLoading = ref(true);
const isLoading = ref(true);
//调用shop组件
const callChildMethod = () => {
if (showShopInfoRef.value) {
@@ -466,7 +466,11 @@
}
}
const shopExtend = uni.cache.get('shopTable').shopExtendMap.shopinfo_bg
try {
const shopExtend = uni.cache.get('shopTable').shopExtendMap.shopinfo_bg
} catch (error) {
//TODO handle the exception
}
// 计算高度
const navScroll = ref(null)
@@ -495,7 +499,7 @@
const topArr = ref([])
// 填充高度,用于最后一项低于滚动区域时使用
const fillHeight = ref(0)
const fillHeight = ref(200)
//距离顶部的高度
const scrollTopSize = ref(0)
@@ -1022,7 +1026,7 @@
product.cartNumber = cartItem.number
product.cartListId = cartItem.id
}
});
});
});
});
// 遍历购物车数组
@@ -1066,9 +1070,10 @@
// 初始化
if (Message.operate_type == "init") {
cartList.value = Message.data
setTimeout(()=>{
setTimeout(() => {
uni.hideLoading();
isLoading.value = false;
},1000)
}, 500)
}
// 清空购物车