团购商品未配置图片问题修复
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
<view class='content'>
|
||||
<view class='swiper-container'>
|
||||
<swiper class='swiper' :interval='1500' :duration='1000' @change='swiperChange'>
|
||||
<swiper-item v-for='(item,index) in bannerList' :key='index'>
|
||||
<image :src='item||defaultImage' mode='aspectFill' />
|
||||
<swiper-item v-for='(item,index) in bannerList||[defaultImage]' :key='index'>
|
||||
<image :src='item' mode='aspectFill' />
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<view class='indicator'>
|
||||
@@ -202,7 +202,7 @@ onLoad(async (e: any) => {
|
||||
countdown();
|
||||
if(e.couponId === undefined) {
|
||||
groupBuyBean.value.goods.price = groupBuyBean.value?.price || 0;
|
||||
bannerList.value = JSON.parse(groupBuyBean.value?.content).filter((item: any) => item.type === 2).map((item: any) => item.images);
|
||||
bannerList.value = JSON.parse(groupBuyBean.value?.content)?.filter((item: any) => item.type === 2).map((item: any) => item.images);
|
||||
await fetchRecommendList();
|
||||
await fetchBuyRecordList();
|
||||
}
|
||||
@@ -241,7 +241,7 @@ const isEnded = () => {
|
||||
const getStockColorCount = computed(() => {
|
||||
const list = Array.from(new Set(groupBuyBean.value?.goods?.stocks?.map(item => item.colorName)))
|
||||
.map(colorName => groupBuyBean.value?.goods?.stocks?.find(item => item.colorName === colorName)!);
|
||||
return (list?.length)||0;
|
||||
return (list?.length) || 0;
|
||||
});
|
||||
|
||||
const fetchRecommendList = async () => {
|
||||
|
@@ -86,6 +86,7 @@ const submenuList = [
|
||||
title: '注册有礼',
|
||||
icon: assetsUrl('ic_register_gift2.png'),
|
||||
path: '/pages/common/register/reward'
|
||||
// path: '/pages/common/groupbuy/detail?id=1800768359753097217'
|
||||
// path: '/pages/common/groupbuy/detail?shareId=1797548579864748033'
|
||||
// path: '/pages/coupons/ticketsBuy/ticketsBuy?couponsId=1800381015472513026'
|
||||
//1799264392762138626
|
||||
|
Reference in New Issue
Block a user