语言适配
This commit is contained in:
@@ -79,7 +79,7 @@
|
||||
}
|
||||
const handleBrandClick = () => {
|
||||
router.push({
|
||||
name: 'brand',
|
||||
name: 'brandDetail',
|
||||
params: { id: props.info.sellerId }
|
||||
})
|
||||
}
|
||||
|
||||
@@ -134,9 +134,9 @@
|
||||
|
||||
const list_ = ref([])
|
||||
const list = computed(() => {
|
||||
// if(sortBy.value === 'BestSelling') {
|
||||
// return list_.value.sort((a, b) => b.sales - a.sales)
|
||||
// }
|
||||
if(sortBy.value === 'BestSelling') {
|
||||
return list_.value.sort((a, b) => b.salesVolume - a.salesVolume)
|
||||
}
|
||||
if (sortBy.value === 'PriceLowToHigh') {
|
||||
return list_.value.filter(() => true).sort((a, b) => a.amount - b.amount)
|
||||
}
|
||||
@@ -165,6 +165,7 @@
|
||||
status: v.status, //状态
|
||||
date: v.addTime, //添加时间
|
||||
tags: v.productCategory, //标签
|
||||
salesVolume: v.salesVolume, //销售量
|
||||
checked: false
|
||||
}
|
||||
arr.push(obj)
|
||||
|
||||
Reference in New Issue
Block a user