From 7963eb36a13a622a02ffc710ff8f15e041762551 Mon Sep 17 00:00:00 2001 From: lcc <805383944@qq.com> Date: Sun, 13 Jul 2025 22:48:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AE=A1=E7=90=86=E5=90=8E?= =?UTF-8?q?=E5=8F=B0=E4=BA=A7=E5=93=81=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/views/car/product/index.vue | 4 +- pingan/src/api/car/product/index.js | 14 +++ .../car/product/components/couponBizs.vue | 111 ++++++++++++++++++ pingan/src/views/car/product/index.vue | 54 ++++++--- 4 files changed, 164 insertions(+), 19 deletions(-) create mode 100644 pingan/src/views/car/product/components/couponBizs.vue diff --git a/admin/src/views/car/product/index.vue b/admin/src/views/car/product/index.vue index ac191d6..54bbc73 100644 --- a/admin/src/views/car/product/index.vue +++ b/admin/src/views/car/product/index.vue @@ -70,7 +70,7 @@ - + - + } + */ +export async function getCouponBizList(params) { + const res = await request.get('/car/product/couponBizList', { + params + }); + if (res.data.code === 0) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} diff --git a/pingan/src/views/car/product/components/couponBizs.vue b/pingan/src/views/car/product/components/couponBizs.vue new file mode 100644 index 0000000..d57c8e0 --- /dev/null +++ b/pingan/src/views/car/product/components/couponBizs.vue @@ -0,0 +1,111 @@ + + + + + diff --git a/pingan/src/views/car/product/index.vue b/pingan/src/views/car/product/index.vue index a399288..bac94f8 100644 --- a/pingan/src/views/car/product/index.vue +++ b/pingan/src/views/car/product/index.vue @@ -26,7 +26,7 @@ - + - + - + + @@ -345,10 +358,16 @@ import CarModelSelector from '@/components/CarSelector/index.vue'; import ElDialogWrapper from '@/components/IframePre/index.vue'; import RegionsSelect from '@/components/RegionsSelect/index.vue'; + import CouponBizs from './components/couponBizs.vue'; export default { name: 'carProduct', - components: { RegionsSelect, CarModelSelector, ElDialogWrapper }, + components: { + RegionsSelect, + CarModelSelector, + ElDialogWrapper, + CouponBizs + }, data() { return { where: { @@ -396,13 +415,13 @@ align: 'center', minWidth: 50 }, - { - prop: 'coupon', - label: '补贴信息', - align: 'center', - slot: 'coupon', - minWidth: 100 - }, + // { + // prop: 'coupon', + // label: '补贴信息', + // align: 'center', + // slot: 'coupon', + // minWidth: 100 + // }, // { // prop: 'cityName', // label: '范围', @@ -469,7 +488,8 @@ crowdProfiling: [], couponSelling: [], showBizList: false, - bizList: [] + bizList: [], + couponId: '' }; }, created() { @@ -547,9 +567,9 @@ const keys = Object.keys(myObject); return keys.length > 0 ? myObject[keys[0]] : null; }, - showAllBizName(row) { + showAllBizName(couponId) { + this.couponId = couponId; this.showBizList = true; - this.bizList = row.coupon.bizList; } } };