[商品列表刷选一级分类和二级分类要分别处理!]
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
{{item.price}}<text>易币</text>
|
{{item.price}}<text>易币</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="price cny" v-if="priceType === 'CNY'">
|
<view class="price cny" v-if="priceType === 'CNY'">
|
||||||
<text>¥</text>{{item.original_price}}
|
<text>¥</text>{{item.price.price_min}}
|
||||||
</view>
|
</view>
|
||||||
<view class="sales">
|
<view class="sales">
|
||||||
<slot name="statistics" :value="item">
|
<slot name="statistics" :value="item">
|
||||||
|
|||||||
@@ -374,7 +374,7 @@
|
|||||||
// name: 'goodsList'
|
// name: 'goodsList'
|
||||||
// })
|
// })
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:`/pages/goods/lists?id=${id}`
|
url:`/pages/goods/lists?type=id&id=${id}`
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 打开微信小程序
|
// 打开微信小程序
|
||||||
|
|||||||
@@ -68,11 +68,16 @@
|
|||||||
// })
|
// })
|
||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
list({
|
let data = {
|
||||||
category_cid: this.$Route.query.id,
|
|
||||||
order_by: this.tabIndex == 1 ? this.marketType : '',
|
order_by: this.tabIndex == 1 ? this.marketType : '',
|
||||||
page: this.page
|
page: this.page
|
||||||
}).then(res => {
|
}
|
||||||
|
if (this.$Route.query.type) {
|
||||||
|
data.category_id = this.$Route.query.id
|
||||||
|
} else {
|
||||||
|
data.category_cid = this.$Route.query.id
|
||||||
|
}
|
||||||
|
list(data).then(res => {
|
||||||
this.goods = this.goods.concat(res.data)
|
this.goods = this.goods.concat(res.data)
|
||||||
this.has_more = res.page.has_more
|
this.has_more = res.page.has_more
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user