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