digital空状态
This commit is contained in:
@@ -3,6 +3,8 @@ import { ref, onMounted, onUnmounted, reactive, toRefs, onActivated } from "vue"
|
|||||||
import CommodityList from "./commodity-list.vue";
|
import CommodityList from "./commodity-list.vue";
|
||||||
import MerchantInfo from "./merchant-info.vue";
|
import MerchantInfo from "./merchant-info.vue";
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
|
import scListNull from '@/views/shoppingCart/sc-list-null.vue'
|
||||||
|
|
||||||
// 定义组件名称
|
// 定义组件名称
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'digitalItem'
|
name: 'digitalItem'
|
||||||
@@ -77,7 +79,15 @@ const {} = toRefs(data);
|
|||||||
<MerchantInfo></MerchantInfo>
|
<MerchantInfo></MerchantInfo>
|
||||||
</div>
|
</div>
|
||||||
<div class="commodity-list">
|
<div class="commodity-list">
|
||||||
<CommodityList @addShopping="addShopping" @openDetail="openDetail"></CommodityList>
|
<CommodityList v-if="true" @addShopping="addShopping" @openDetail="openDetail"></CommodityList>
|
||||||
|
<div v-else class="null">
|
||||||
|
<sc-list-null
|
||||||
|
nullImage="shopping-cart"
|
||||||
|
:showButton="false"
|
||||||
|
title="Nothing in Digital Item"
|
||||||
|
tip="Try adjusting your filters or refreshing the page."
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Footer></Footer>
|
<Footer></Footer>
|
||||||
@@ -178,7 +188,7 @@ const {} = toRefs(data);
|
|||||||
> .content{
|
> .content{
|
||||||
display: flex;
|
display: flex;
|
||||||
height: auto;
|
height: auto;
|
||||||
align-items: flex-start;
|
// align-items: flex-start;
|
||||||
border-top: 0.5px solid #585858;
|
border-top: 0.5px solid #585858;
|
||||||
.merchant-info{
|
.merchant-info{
|
||||||
width: 38.5rem;
|
width: 38.5rem;
|
||||||
@@ -197,6 +207,10 @@ const {} = toRefs(data);
|
|||||||
border-left: 0.5px solid #585858;
|
border-left: 0.5px solid #585858;
|
||||||
border-right: 0.5px solid #585858;
|
border-right: 0.5px solid #585858;
|
||||||
margin-right: 9rem;
|
margin-right: 9rem;
|
||||||
|
display: flex;
|
||||||
|
.null{
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user