|
@@ -110,7 +110,7 @@
|
|
|
</view>
|
|
|
<!-- 产品列表 -->
|
|
|
<view class="product-box" v-if="hasShopiing && totalhotPage>0">
|
|
|
- <u-divider bg-color="" color="#666" use-slot :fontSize="28">
|
|
|
+ <u-divider bg-color="" half-width="0" color="#666" use-slot :fontSize="28">
|
|
|
<image style="width: 16px;height:16px;" src="../../static/hot.png"></image>
|
|
|
<text style="margin: 0 5px;font-weight: bold;">热门推荐</text>
|
|
|
<image style="width: 16px;height:16px;" src="../../static/hot.png"></image>
|
|
@@ -250,15 +250,16 @@
|
|
|
activeType: ''
|
|
|
}
|
|
|
]
|
|
|
+ const newList = []
|
|
|
// 红包
|
|
|
if(this.hasRedPacket&&this.hasShelf){
|
|
|
- list.push(
|
|
|
+ newList.push(
|
|
|
{
|
|
|
image: '/static/banner2.jpg',
|
|
|
activeType: 'redPacket'
|
|
|
})
|
|
|
}
|
|
|
- return list.concat(this.carouselList)
|
|
|
+ return this.carouselList.length>0 ? newList.concat(this.carouselList) : list.concat(newList)
|
|
|
},
|
|
|
// 快捷导航
|
|
|
navList(){
|
|
@@ -473,10 +474,10 @@
|
|
|
this.hasShopiing = res.data && res.data.paramValue == 1
|
|
|
// 有商城
|
|
|
if(this.hasShopiing){
|
|
|
- this.showShopPage()
|
|
|
+ this.showShopPage(flag)
|
|
|
}else{
|
|
|
// 没有商城
|
|
|
- this.showNoShopPage()
|
|
|
+ this.showNoShopPage(flag)
|
|
|
}
|
|
|
// 查询红包活动
|
|
|
this.getRedPacketRule()
|
|
@@ -499,7 +500,7 @@
|
|
|
this.getHotProductList(flag)
|
|
|
},
|
|
|
// 显示未没有开通商城的界面
|
|
|
- showNoShopPage(){
|
|
|
+ showNoShopPage(flag){
|
|
|
this.productTypeList = []
|
|
|
this.productList = []
|
|
|
// 隐藏促销模块
|
|
@@ -551,6 +552,7 @@
|
|
|
},
|
|
|
// 商品列表查询
|
|
|
getHotProductList(flag){
|
|
|
+ console.log(flag)
|
|
|
this.hotProductPageNo = 1
|
|
|
// 不是show 刷新列表
|
|
|
if(flag!=1){
|
|
@@ -582,17 +584,10 @@
|
|
|
item.discountType = a.discountType
|
|
|
item.promoProductSn = a.promoProductSn
|
|
|
item.promoSn = a.promoSn
|
|
|
+ item.orginPrice = item.price
|
|
|
// 特价
|
|
|
if(item.promoType=='PROMO_PROD'){
|
|
|
- item.orginPrice = item.price
|
|
|
- // 直降
|
|
|
- if(item.discountType == 'STRAIGHT_DOWN'){
|
|
|
- item.price = item.price - item.resultValue
|
|
|
- }
|
|
|
- // 折扣
|
|
|
- if(item.discountType == 'DISCOUNT'){
|
|
|
- item.price = Number(item.price * item.resultValue).toFixed(2)
|
|
|
- }
|
|
|
+ item.price = item.conditionValue
|
|
|
}
|
|
|
}
|
|
|
item.priceStr = Number(item.price).toFixed(2).toString().split('.')
|
|
@@ -1048,7 +1043,7 @@
|
|
|
border-radius: 6px;
|
|
|
margin: 10px 0;
|
|
|
padding: 10px 0;
|
|
|
- box-shadow: 1px 1px 2px #eee;
|
|
|
+ border: 1px solid #eee;
|
|
|
}
|
|
|
.product-box{
|
|
|
margin: 10px 0;
|