语言适配

This commit is contained in:
李志鹏
2026-05-27 13:06:08 +08:00
parent 3c39959ce3
commit 0b014f2a3b
10 changed files with 97 additions and 57 deletions

View File

@@ -79,7 +79,7 @@
}
const handleBrandClick = () => {
router.push({
name: 'brand',
name: 'brandDetail',
params: { id: props.info.sellerId }
})
}

View File

@@ -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)