|
|
|
@ -36,8 +36,8 @@ |
|
|
|
|
<text>自营</text>{{item.goods_name}} |
|
|
|
|
</view> |
|
|
|
|
<view class="price"> |
|
|
|
|
<view class="n">¥<text>{{item.goods_price_min}}</text>到手价</view> |
|
|
|
|
<view class="o">¥{{item.line_price_min}}</view> |
|
|
|
|
<view class="n">¥<text>{{item.goods_price_min?Number(item.goods_price_min):''}}</text>到手价</view> |
|
|
|
|
<view class="o">¥{{item.line_price_min?Number(item.line_price_min):''}}</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- <view class="desc"> |
|
|
|
|
{{item.goods_sales}}+条评论 {{item.remaizhishu}}%好评率 |
|
|
|
@ -122,25 +122,15 @@ |
|
|
|
|
Api.brandList(pamars) |
|
|
|
|
.then(result => { |
|
|
|
|
let arr = result.data.data; |
|
|
|
|
if (arr && arr.length > 0) { |
|
|
|
|
arr.map(a => { |
|
|
|
|
a.goods_price_min = Number(a.goods_price_min) |
|
|
|
|
a.goods_price_max = Number(a.goods_price_max) |
|
|
|
|
a.line_price_min = Number(a.line_price_min) |
|
|
|
|
a.line_price_max = Number(a.line_price_max) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
app.list = arr |
|
|
|
|
}) |
|
|
|
|
.finally(() => app.isLoading = false) |
|
|
|
|
}, |
|
|
|
|
tabItem(index, item) { |
|
|
|
|
console.log(item, '1') |
|
|
|
|
this.tabIndex = index; |
|
|
|
|
this.getBrandList(item.category_id) |
|
|
|
|
}, |
|
|
|
|
tabItem1(item, index) { |
|
|
|
|
console.log(item, '2') |
|
|
|
|
this.tabIndex1 = index; |
|
|
|
|
let app = this; |
|
|
|
|
app.categoryChildren = []; |
|
|
|
|