From ad50d3e54fdcc2c98bc7b6ca5d9171848b95dd1c Mon Sep 17 00:00:00 2001 From: "@fawn-nine" <1271023382@qq.com> Date: Fri, 27 Sep 2024 10:00:27 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8=E5=88=9A?= =?UTF-8?q?=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/common/common.vue | 26 +++- .../modules/coupon/coupon-add-or-update.vue | 136 +++++++++++------- src/views/modules/coupon/coupon.vue | 119 +++++++++++---- 3 files changed, 200 insertions(+), 81 deletions(-) diff --git a/src/views/common/common.vue b/src/views/common/common.vue index 33fc406..d919d02 100644 --- a/src/views/common/common.vue +++ b/src/views/common/common.vue @@ -6,8 +6,32 @@ const baseUrl = "http://192.168.110.100:9200/pb"; //张川川后端 // function commonFun() { // console.log("公共方法") // } +const rangList =[ + { + value: 0, + label: "无限制" + }, + { + value: 1, + label: "课程券" + }, + { + value: 2, + label: "课程品类券" + } + ]; +const TypeList =[ + { + value: "0", + label: "现金" + }, + { + value: "1", + label: "折扣" + } + ] export default { - baseUrl + baseUrl,rangList,TypeList //commonFun }; diff --git a/src/views/modules/coupon/coupon-add-or-update.vue b/src/views/modules/coupon/coupon-add-or-update.vue index cf89a00..e1bf771 100644 --- a/src/views/modules/coupon/coupon-add-or-update.vue +++ b/src/views/modules/coupon/coupon-add-or-update.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/modules/shop/shopproduct.vue b/src/views/modules/shop/shopproduct.vue index f62f253..2345de3 100644 --- a/src/views/modules/shop/shopproduct.vue +++ b/src/views/modules/shop/shopproduct.vue @@ -142,7 +142,10 @@ @click.native="handleEditCurriculum(scope.row.productId)" >新版修改 --> - + 购买赠优惠券 图书与课程 - + + diff --git a/src/views/modules/shop/shopproduct.vue b/src/views/modules/shop/shopproduct.vue index 2345de3..007d0cb 100644 --- a/src/views/modules/shop/shopproduct.vue +++ b/src/views/modules/shop/shopproduct.vue @@ -210,6 +210,7 @@ import curriculum from "./curriculum.vue"; import AddOrUpdate from "./shopproduct-add-or-update"; // import AddOrUpdate from "./shopproduct-add-or-update"; import commonTree from "@/views/components/commonBookTags/tags.vue"; + import commonTags from "./commonBookTags/commonTags1.vue"; import correlation from "./commonBookTags/correlation.vue"; export default { From a047061de42a4f97a6c3d20a6df2381582564a4e Mon Sep 17 00:00:00 2001 From: "@fawn-nine" <1271023382@qq.com> Date: Thu, 24 Oct 2024 13:23:31 +0800 Subject: [PATCH 09/10] 1 --- src/views/modules/order/reLearn.vue | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/views/modules/order/reLearn.vue b/src/views/modules/order/reLearn.vue index bf5e6a2..5ec1885 100644 --- a/src/views/modules/order/reLearn.vue +++ b/src/views/modules/order/reLearn.vue @@ -36,12 +36,14 @@ style="width: 100%;" > - + @@ -184,6 +186,15 @@ export default { return ss }, + getRemark(val){ + var arr = val.split(',') + if (arr.length > 1) { + return arr[1].trim(); // 使用 trim 方法去除可能存在的空格 + } else { + // 如果字符串中不包含逗号,则返回原字符串 + return val; + } + }, }, components: { // AddOrUpdate From 85e84b1d06634cfedf09cd9e235e5c7dfa7d98ac Mon Sep 17 00:00:00 2001 From: "@fawn-nine" <1271023382@qq.com> Date: Thu, 24 Oct 2024 15:27:08 +0800 Subject: [PATCH 10/10] 1 --- src/views/modules/order/reLearn.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/modules/order/reLearn.vue b/src/views/modules/order/reLearn.vue index 5ec1885..80996ba 100644 --- a/src/views/modules/order/reLearn.vue +++ b/src/views/modules/order/reLearn.vue @@ -36,7 +36,8 @@ style="width: 100%;" > -