重要更新

This commit is contained in:
Kele
2022-11-29 22:03:21 +08:00
parent 6d759b4812
commit baef1695c4
13 changed files with 815 additions and 74 deletions
@@ -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>
+4 -1
View File
@@ -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
+3 -3
View File
@@ -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,