This commit is contained in:
2025-04-16 14:31:15 +08:00
parent 3cdbc305b2
commit 032a32915e
3 changed files with 140 additions and 73 deletions

View File

@@ -247,10 +247,41 @@
<!-- <div style="clear:both"></div> -->
<!-- 订单商品 -->
<div class="liName">商品信息</div>
<el-table
:data="orderDetails.trainingClassData"
style="width: 100%"
v-if="orderDetails.orderType == 'trainingClass'"
>
<el-table-column label="商品名" min-width="280">
<template slot-scope="scope">
<div class="flexbox">
<!-- <img
style="padding: 2px; border:1px solid #f1f1f1; margin-right: 5px;"
:src="scope.row.productImage"
width="30px"
height="30px"
/> -->
<div class="proname">
{{ scope.row.productName }}
<i
v-if="scope.row.books && scope.row.books.length > 0"
@click.stop="seeBooks(scope.row.books)"
class="el-icon-view"
style="color:#409eff; cursor: pointer;"
></i>
</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.relearnData"
style="width: 100%"
v-if="orderDetails.orderType == 'relearn'"
v-else-if="orderDetails.orderType == 'relearn'"
>
<el-table-column label="商品名" min-width="280">
<template slot-scope="scope">
@@ -281,7 +312,7 @@
<el-table
:data="orderDetails.vipData"
style="width: 100%"
v-if="orderDetails.orderType == 'vip'"
v-else-if="orderDetails.orderType == 'vip'"
>
<el-table-column label="商品名" min-width="280">
<template slot-scope="scope">
@@ -935,6 +966,15 @@ export default {
// console.log(data.result,'data.result')
this.orderDetails = data.result;
if (this.orderDetails.orderType == "trainingClass") {
this.orderDetails.trainingClassData = [
{
productName: this.orderDetails.remark,
productPrice: this.orderDetails.orderPrice,
quantity: 1
}
];
}
if (this.orderDetails.orderType == "relearn") {
this.orderDetails.relearnData = [
{