重要更新
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
>
|
||||
<view v-if="errorData.type === 'goods'">
|
||||
<view class="item-box ss-m-b-20" v-for="item in errorData.value" :key="item.id">
|
||||
<s-goods-item :title="item.title" :img="item.image">
|
||||
<s-goods-item :title="item.title" :img="item.image" :price="item.price[0]" priceColor="#E1212B" @tap="sheep.$router.go('/pages/goods/index', { id: item.id })">
|
||||
<template #groupon>
|
||||
<view class="item-box-subtitle">{{ item.subtitle }}</view>
|
||||
</template>
|
||||
|
||||
@@ -6,7 +6,10 @@
|
||||
<detailSkeleton v-if="state.skeletonLoading" />
|
||||
<!-- 空置页 -->
|
||||
<s-empty
|
||||
v-else-if="state.goodsInfo === null || !state.goodsInfo.activity"
|
||||
v-else-if="
|
||||
state.goodsInfo === null ||
|
||||
!['groupon', 'groupon_ladder'].includes(state.goodsInfo.activity_type)
|
||||
"
|
||||
text="活动不存在或已结束"
|
||||
icon="/static/soldout-empty.png"
|
||||
showAction
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
<detailSkeleton v-if="state.skeletonLoading" />
|
||||
<!-- 空置页 -->
|
||||
<s-empty
|
||||
v-else-if="state.goodsInfo === null || !state.goodsInfo.activity"
|
||||
text="商品不存在或已下架"
|
||||
v-else-if="state.goodsInfo === null || state.goodsInfo.activity_type !== 'seckill' "
|
||||
text="活动不存在或已结束"
|
||||
icon="/static/soldout-empty.png"
|
||||
showAction
|
||||
actionText="再逛逛"
|
||||
@@ -196,7 +196,7 @@
|
||||
}
|
||||
|
||||
const shareInfo = computed(() => {
|
||||
if (isEmpty(state.goodsInfo)) return {};
|
||||
if (isEmpty(state.goodsInfo?.activity)) return {};
|
||||
return sheep.$platform.share.getShareInfo(
|
||||
{
|
||||
title: state.goodsInfo.title,
|
||||
|
||||
Reference in New Issue
Block a user