|
@@ -52,6 +52,14 @@ const pagingQuery = () => {
|
|
productId.value
|
|
productId.value
|
|
).then((res) => {
|
|
).then((res) => {
|
|
tableData.value = productListNameMapping(res.data.result.list)
|
|
tableData.value = productListNameMapping(res.data.result.list)
|
|
|
|
+ // 根据支付方式设置价格
|
|
|
|
+ for (let i = 0; i < tableData.value.length; i++) {
|
|
|
|
+ if (tableData.value[i].payment === 0 || tableData.value[i].payment === 3) {
|
|
|
|
+ tableData.value[i].price = '$' + tableData.value[i].price
|
|
|
|
+ } else if (tableData.value[i].payment === 1 || tableData.value[i].payment === 2) {
|
|
|
|
+ tableData.value[i].price = '¥' + tableData.value[i].price
|
|
|
|
+ }
|
|
|
|
+ }
|
|
total.value = res.data.result.total
|
|
total.value = res.data.result.total
|
|
})
|
|
})
|
|
}
|
|
}
|