mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2026-11-13 20:38:51 +08:00
refactor(category): 重构分类页面UI
- 重构分类页面导航栏,将标题+搜索框改为仅搜索框样式 - 优化分类页面左侧列表与右侧内容区域的布局及视觉样式 - 重写搜索栏宽度计算逻辑 - 优化分类滚动组件、侧边列表、排序栏及子标签栏的交互样式 - 增加分类头部图片条件渲染及商品列表嵌入模式样式 - 关闭商品列表划线价默认显示配置
This commit is contained in:
@@ -101,20 +101,7 @@
|
||||
<view class="-goods-price" v-if="goodsDetail.price != undefined">
|
||||
|
||||
<span>
|
||||
<span v-if="wholesaleList.length">
|
||||
<span>¥</span><span class="price">{{
|
||||
goodsFormatPrice(wholesaleList[wholesaleList.length - 1].price)[0]
|
||||
}}</span>.{{
|
||||
goodsFormatPrice(wholesaleList[wholesaleList.length - 1].price)[1]
|
||||
}}
|
||||
~
|
||||
<span>¥</span><span class="price">{{
|
||||
goodsFormatPrice(wholesaleList[0].price)[0]
|
||||
}}</span>.{{
|
||||
goodsFormatPrice(wholesaleList[0].price)[1]
|
||||
}}
|
||||
</span>
|
||||
<span v-else>
|
||||
<span>
|
||||
<span>¥</span><span class="price">{{
|
||||
goodsFormatPrice(goodsDetail.price)[0]
|
||||
}}</span>.{{ goodsFormatPrice(goodsDetail.price)[1] }}
|
||||
@@ -291,7 +278,7 @@
|
||||
<!-- 商品规格 商品详情,以及默认参与活动的id-->
|
||||
<popupGoods :addr="delivery" ref="popupGoodsRef" @changed="changedGoods" @closeBuy="closePopupBuy"
|
||||
@queryCart="cartCount()" :goodsDetail="goodsDetail" :goodsSpec="goodsSpec" :isGroup="isGroup" :id="productId"
|
||||
v-if="goodsDetail.id" :pointDetail="pointDetail" :wholesaleList="wholesaleList" @handleClickSku="selectSku"
|
||||
v-if="goodsDetail.id" :pointDetail="pointDetail" @handleClickSku="selectSku"
|
||||
:buyMask="buyMask" />
|
||||
|
||||
<!-- 下架框 -->
|
||||
@@ -391,7 +378,6 @@ const productId = ref(0)
|
||||
const startTimer = ref(false)
|
||||
const routerVal = ref<any>("")
|
||||
const IMLink = ref("")
|
||||
const wholesaleList = ref<any[]>([])
|
||||
const takeDownFromSale = ref(false)
|
||||
|
||||
// computed
|
||||
@@ -520,7 +506,6 @@ async function init(id: any, goodsId: any, distributionId = "", shareId = "") {
|
||||
if (goodsDetail.value) {
|
||||
goodsDetail.value.thumbnail = parseGoodsImageUrl(goodsDetail.value.thumbnail)
|
||||
}
|
||||
wholesaleList.value = response.data.result.wholesaleList || []
|
||||
goodsSpec.value = response.data.result.specs || ""
|
||||
PromotionList.value = response.data.result.promotionMap || ""
|
||||
goodsParams.value = response.data.result.goodsParamsDTOList || []
|
||||
|
||||
Reference in New Issue
Block a user