aivip商品展示

This commit is contained in:
liuyuan
2025-06-05 17:55:30 +08:00
parent 868afd68fe
commit b198355f96

View File

@@ -340,6 +340,25 @@
<el-table-column prop="quantity" label="数量" width="80">
</el-table-column>
</el-table>
<el-table
:data="orderDetails.aiVipData"
style="width: 100%"
v-else-if="orderDetails.orderType == 'aiVip'||orderDetails.orderType == 'upgradeAiVip'"
>
<el-table-column label="商品名" min-width="280">
<template slot-scope="scope">
<div class="flexbox">
<div class="proname">
{{ scope.row.productName }}
</div>
</div>
</template>
</el-table-column>
<el-table-column prop="productPrice" label="价格" width="180">
</el-table-column>
<el-table-column prop="quantity" label="数量" width="80"></el-table-column>
</el-table>
<el-table :data="orderDetails.goodsList" style="width: 100%" v-else>
<el-table-column label="商品名" width="280">
<template slot-scope="scope">
@@ -993,6 +1012,33 @@ export default {
}
];
}
if (this.orderDetails.orderType == "aiVip"||this.orderDetails.orderType == "upgradeAiVip") {
let productPrice = '';
let productName = '';
if(this.orderDetails.realPrice>0){
productPrice = '¥'+this.orderDetails.realPrice+'天医币'
}
if(this.orderDetails.jfDeduction>0){
if(this.orderDetails.realPrice==0){
productPrice = this.orderDetails.jfDeduction+'积分'
}else{
productPrice += '+'+this.orderDetails.jfDeduction+'积分'
}
}
if(this.orderDetails.orderType == "aiVip"){
productName = 'AI VIP商品'
}else{
productName = 'AI VIP商品升级'
}
this.orderDetails.aiVipData = [
{
productName: productName,
productPrice: productPrice,
quantity: 1
}
];
}
if (data.result.expressOrders) {
data.result.expressOrders.forEach(element => {
element.showProduct = false;