From 6377c38483c3dc8f8edbe792ae1614fc8b0bf6da Mon Sep 17 00:00:00 2001 From: lcc <805383944@qq.com> Date: Thu, 29 May 2025 17:37:11 +0800 Subject: [PATCH] 2025-05-29 --- .../src/views/car/product/components/edit.vue | 9 ++ pingan/src/components/CarSelector/index.vue | 3 + pingan/src/views/car/product/detail.vue | 90 ++++++++----------- pingan/src/views/car/product/index.vue | 54 +++++++---- 4 files changed, 82 insertions(+), 74 deletions(-) diff --git a/admin/src/views/car/product/components/edit.vue b/admin/src/views/car/product/components/edit.vue index 85bf2d4..c001586 100644 --- a/admin/src/views/car/product/components/edit.vue +++ b/admin/src/views/car/product/components/edit.vue @@ -71,6 +71,14 @@ v-model="form.discounts2" /> + + +

概况

- 品牌 {{ product.brandName }} - 车型 {{ product.seariesName }} - 官方售价 - {{ product.price }}品牌:{{ product.brandName }} + 车型:{{ product.seariesName }} + + 官方售价: + {{ product.guide_price }} + + 产品标签: + + +

优惠

置换补贴 - {{ - product.price_replacement - }}优惠信息1: + {{ product.discounts }} 报废补贴 - {{ - product.price_crapping - }}优惠信息2: + {{ product.discounts2 }} 优惠金额 - {{ - product.price_coupon - }}优惠信息3: + {{ product.discounts3 }} -

客户画像

- 男性占比 {{ product.man_pre }} - 年龄区间 {{ product.age_between }} - 人群标签 + 人群标签: @@ -119,18 +98,16 @@ id: '', brandName: '', seariesName: '', - price: '', - price_replacement: '', - price_crapping: '', - price_coupon: '', - man_pre: '', - age_between: '', - descript: '', + guide_price: '', promotion_text: [], - car_coupon: '', - crowdProfiling: [] + crowdProfiling: [], + discounts2: '', + discounts: '', + discounts3: '', + labels: [] }, crowdProfiling: [], + labels: [], // 预定义的 CSS 类数组 availableClasses: ['', 'success', 'info', 'warning', 'danger'] }; @@ -139,6 +116,9 @@ listDictionaryData({ dictCode: 'crowdProfiling' }).then((data) => { this.crowdProfiling = data; }); + listDictionaryData({ dictCode: 'carProductLabel' }).then((data) => { + this.labels = data; + }); }, methods: { query() { diff --git a/pingan/src/views/car/product/index.vue b/pingan/src/views/car/product/index.vue index d48b709..32a2477 100644 --- a/pingan/src/views/car/product/index.vue +++ b/pingan/src/views/car/product/index.vue @@ -13,7 +13,7 @@ />
- + - + +
+ +
+
+ @@ -148,13 +165,6 @@ showOverflowTooltip: true, minWidth: 80 }, - { - prop: 'Price', - label: '佣金', - showOverflowTooltip: true, - minWidth: 80, - slot: 'price' - }, { prop: 'status', label: '上架状态', @@ -201,7 +211,8 @@ current: null, showPromotion: false, componentKey: '', - dialogVisible: false + dialogVisible: false, + showPoster: false }; }, created() {}, @@ -230,6 +241,10 @@ this.current = row; this.showPromotion = true; }, + showPosterView(row) { + this.current = row; + this.showPoster = true; + }, onCopy() { this.$message.success('复制成功!'); }, @@ -243,7 +258,8 @@ }); }, //预览 - showPre() { + showPre(row) { + this.current = row; this.dialogVisible = true; } }