aivip商品展示
This commit is contained in:
@@ -340,6 +340,25 @@
|
|||||||
<el-table-column prop="quantity" label="数量" width="80">
|
<el-table-column prop="quantity" label="数量" width="80">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</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 :data="orderDetails.goodsList" style="width: 100%" v-else>
|
||||||
<el-table-column label="商品名" width="280">
|
<el-table-column label="商品名" width="280">
|
||||||
<template slot-scope="scope">
|
<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) {
|
if (data.result.expressOrders) {
|
||||||
data.result.expressOrders.forEach(element => {
|
data.result.expressOrders.forEach(element => {
|
||||||
element.showProduct = false;
|
element.showProduct = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user