|
|
@ -81,7 +81,8 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 商品价格 --> |
|
|
|
<!-- 商品价格 --> |
|
|
|
<view class="desc-footer"> |
|
|
|
<view class="desc-footer"> |
|
|
|
<text class="price-x">¥{{ item.goods_price_min>0?Number(item.goods_price_min):'' }}</text> |
|
|
|
<text |
|
|
|
|
|
|
|
class="price-x">¥{{ item.goods_price_min>0?Number(item.goods_price_min):'' }}</text> |
|
|
|
<text class="price-y col-9" |
|
|
|
<text class="price-y col-9" |
|
|
|
v-if="item.line_price_min > 0">¥{{ item.line_price_min>0?Number(item.line_price_min):'' }}</text> |
|
|
|
v-if="item.line_price_min > 0">¥{{ item.line_price_min>0?Number(item.line_price_min):'' }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -115,8 +116,9 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 商品价格 --> |
|
|
|
<!-- 商品价格 --> |
|
|
|
<view class="detail-price oneline-hide"> |
|
|
|
<view class="detail-price oneline-hide"> |
|
|
|
<text class="goods-price f-30 col-m">¥{{ item.goods_price_min>0?Number(item.goods_price_min):'' }} <text |
|
|
|
<text |
|
|
|
class="delPrice">到手价</text></text> |
|
|
|
class="goods-price f-30 col-m">¥{{ item.goods_price_min>0?Number(item.goods_price_min):'' }} |
|
|
|
|
|
|
|
<text class="delPrice">到手价</text></text> |
|
|
|
<text v-if="item.line_price_min > 0" |
|
|
|
<text v-if="item.line_price_min > 0" |
|
|
|
class="line-price col-9 f-24">¥{{ item.line_price_min>0?Number(item.line_price_min):'' }}</text> |
|
|
|
class="line-price col-9 f-24">¥{{ item.line_price_min>0?Number(item.line_price_min):'' }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -126,6 +128,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<u-empty text="暂无数据显示哦~" v-if="list.data.length==0" mode="list"></u-empty> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</mescroll-body> |
|
|
|
</mescroll-body> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -217,13 +220,24 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
onChage(item, type) { |
|
|
|
onChage(item, type) { |
|
|
|
if (type == 1) { |
|
|
|
if (type == 1) { |
|
|
|
|
|
|
|
if (item.category_id == this.isBanrdActive) { |
|
|
|
|
|
|
|
this.isBanrdActive = ''; |
|
|
|
|
|
|
|
this.keyName1 = '' |
|
|
|
|
|
|
|
} else { |
|
|
|
this.isBanrdActive = item.category_id; |
|
|
|
this.isBanrdActive = item.category_id; |
|
|
|
this.keyName1 = item.name |
|
|
|
this.keyName1 = item.name |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
if (type == 2) { |
|
|
|
if (type == 2) { |
|
|
|
this.isActive = item.category_id |
|
|
|
if (item.category_id == this.isActive) { |
|
|
|
|
|
|
|
this.isActive = ''; |
|
|
|
|
|
|
|
this.keyName2 = '' |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.isActive = item.category_id; |
|
|
|
this.keyName2 = item.name |
|
|
|
this.keyName2 = item.name |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.getGoodsList() |
|
|
|
this.getGoodsList() |
|
|
|
}, |
|
|
|
}, |
|
|
|
/** |
|
|
|
/** |
|
|
@ -267,8 +281,9 @@ |
|
|
|
categoryId: app.options.categoryId || 0, |
|
|
|
categoryId: app.options.categoryId || 0, |
|
|
|
goodsName: app.options.search || '', |
|
|
|
goodsName: app.options.search || '', |
|
|
|
page: pageNo, |
|
|
|
page: pageNo, |
|
|
|
keywords: keywords |
|
|
|
keywords: keywords.length > 0 ? keywords.join(',') : '' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
console.log(param) |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
GoodsApi.list(param) |
|
|
|
GoodsApi.list(param) |
|
|
|
.then(result => { |
|
|
|
.then(result => { |
|
|
@ -361,6 +376,10 @@ |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
<style lang="scss" scoped> |
|
|
|
|
|
|
|
::v-deep .u-empty { |
|
|
|
|
|
|
|
padding: 100rpx 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 页面头部 |
|
|
|
// 页面头部 |
|
|
|
.header { |
|
|
|
.header { |
|
|
|
background-color: #fff; |
|
|
|
background-color: #fff; |
|
|
|