|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="index">
|
|
|
- <StoreHeaderCat v-show="!shutDown" ref="headercat" @updateFllow="updateFllow"/>
|
|
|
- <template v-if="firstLoading">
|
|
|
+ <StoreHeaderCat ref="headercat" @updateFllow="updateFllow"/>
|
|
|
+ <template v-if="firstLoading && !shutDown && !decorating && !stopBusiness">
|
|
|
<div class="skeleton_banner"></div>
|
|
|
<div class="w_sld_react_1210 adv_04_wrap skeleton">
|
|
|
<div class="floor_title">
|
|
@@ -48,11 +48,18 @@
|
|
|
</div>
|
|
|
<!-- 空页面 start-->
|
|
|
<SldCommonEmpty
|
|
|
- v-if="!firstLoading && !decorateData.data.length && !shutDown"
|
|
|
+ v-if="decorating"
|
|
|
totalHeight="700"
|
|
|
paddingTop="200"
|
|
|
:tip="L['我们正在努力装修中,敬请期待~']"
|
|
|
/>
|
|
|
+
|
|
|
+ <SldCommonEmpty
|
|
|
+ v-if="stopBusiness"
|
|
|
+ totalHeight="700"
|
|
|
+ paddingTop="200"
|
|
|
+ :tip="L['店铺暂停经营']"
|
|
|
+ />
|
|
|
<!-- 空页面 end-->
|
|
|
|
|
|
<SldCommonEmpty
|
|
@@ -73,6 +80,8 @@ const router = useRouter();
|
|
|
const vid = calcProductId(route.path);
|
|
|
const decorateData = reactive({ data: [] }); //装修数据
|
|
|
const shutDown = ref(false);
|
|
|
+const decorating = ref(false); //是否装修中
|
|
|
+const stopBusiness = ref(false); //是否停业
|
|
|
const honors = reactive({data:[]})
|
|
|
console.log('vid',vid)
|
|
|
const getStoreInfoBaseInfo = async () => {
|
|
@@ -98,6 +107,12 @@ const getStoreInfoBaseInfo = async () => {
|
|
|
else if (res.state == 257) {
|
|
|
shutDown.value = true;
|
|
|
firstLoading.value = false;
|
|
|
+ } else if (res.state == 270) {
|
|
|
+ decorating.value = true;
|
|
|
+ } else if (res.state == 271) {
|
|
|
+ stopBusiness.value = true;
|
|
|
+ } else {
|
|
|
+ ElMessage.error(res.msg);
|
|
|
}
|
|
|
|
|
|
};
|