Prechádzať zdrojové kódy

fix: 修复整体样式问题

周玉环 2 dní pred
rodič
commit
10af332661

+ 1 - 0
xinkeaboard-web/assets/language/en.js

@@ -824,6 +824,7 @@ export const lang_en = {
     '搜索结果':'search result',
     '我们正在努力装修中,敬请期待~':'We are trying to decorate, please look forward to~',
     '店铺不存在或已关闭':'The store does not exist or has been closed',
+    '店铺暂停经营': 'The shop is temporarily closed.',
 
     // pages/member/footprint.vue
     '确定要清空吗?':'Are you sure you want to empty?',

+ 2 - 0
xinkeaboard-web/assets/language/zh.js

@@ -851,6 +851,8 @@ export const lang_zn = {
     '搜索结果':'搜索结果',
     '我们正在努力装修中,敬请期待~':'我们正在努力装修中,敬请期待~',
     '店铺不存在或已关闭':'店铺不存在或已关闭',
+    '店铺暂停经营': '店铺暂停经营',
+
 
 
     // pages/member/footprint.vue

+ 3 - 1
xinkeaboard-web/components/Store/HeaderCat.vue

@@ -105,7 +105,7 @@
     </div>
         <NavTopBar></NavTopBar>
 
-    <div class="sld_store_label_nav_wrap">
+    <div class="sld_store_label_nav_wrap" v-if="showNav">
       <div class="sld_store_label_wrap">
         <img
           :src="storeData.info.storeBannerPcUrl  ? storeData.info.storeBannerPcUrl : defaultStoreBanner"
@@ -205,6 +205,7 @@ import { useFiltersStore } from "@/store/filter.js";
 
 const filtersStore = useFiltersStore();
 const goodsInfox = goodsInfo();
+const showNav = ref(false);
 // const L = lang_zn;
 const L = getCurLanguage();
 const emit = defineEmits(['updateFllow','sendGoodsName'])
@@ -272,6 +273,7 @@ const getStoreInfoBaseInfo = async () => {
           res.data.serviceScore * 1) /
         3
       ).toFixed(1);
+      showNav.value = true;
     }
 };
 //获取店铺分类数据

+ 1 - 1
xinkeaboard-web/pages/goods/detail/[id].vue

@@ -130,7 +130,7 @@
             <div class="goods_des_left">
               <!-- 商品放大镜效果 start-->
               <div class="goods_main_picture">
-                <div class="mask" v-if="goodsDetail.data.state !== 3">
+                <div class="mask" v-if="goodsDetail.data.state && goodsDetail.data.state !== 3">
                    <div class="circle">{{  L['已下架']  }}</div>
                   </div>
                 <div

+ 18 - 3
xinkeaboard-web/pages/store/[id].vue

@@ -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);
   }
 
 };