From 280c6c5a19551a0666bc1f963feaf5c3c287acc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=AE=BF=E6=98=95?= Date: Mon, 1 Feb 2021 12:34:42 +0800 Subject: [PATCH] =?UTF-8?q?fix=E5=85=A8=E9=80=89=E5=8C=85=E6=8B=AC?= =?UTF-8?q?=E9=9D=9E=E5=94=AE=E6=9C=8D=E5=8A=A1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shopping-cart/shopping-cart-cell.vue | 20 +++++++++++++++---- .../shopping-cart/shopping-cart-list.vue | 2 ++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/components/shopping-cart/shopping-cart-cell.vue b/src/components/shopping-cart/shopping-cart-cell.vue index 0588b5e..dbd6271 100644 --- a/src/components/shopping-cart/shopping-cart-cell.vue +++ b/src/components/shopping-cart/shopping-cart-cell.vue @@ -128,14 +128,22 @@ {{ item.money }}金币/{{ item.spcs_count }}次 {{ cellItems.service.request_spcs_info.spcs_type_2[0] .money @@ -301,10 +309,14 @@ export default { !this.cellItems.service.spcs_info.id ) { this.$message({ - message: "该服务暂不支持购买", + message: + (this.cellItems.service_id == 0 + ? this.cellItems.application.app_name + : this.cellItems.service.name) + "暂不支持购买", type: "error", }); this.checkedItem = false; + this.$emit("changeState", { state: false, index: this.cellIndex }); } else { this.$emit("changeState", { state: val, index: this.cellIndex }); } @@ -322,7 +334,7 @@ export default { }, setSpecificationPop() { this.specificationPop = this.cellItems.service.spcs_info; - console.log(this.specificationPop) + console.log(this.specificationPop); // this.specificationApplicationPop = this.cellItems.duration_method; }, changeSubscription(val) { diff --git a/src/components/shopping-cart/shopping-cart-list.vue b/src/components/shopping-cart/shopping-cart-list.vue index 3af70db..9206adc 100644 --- a/src/components/shopping-cart/shopping-cart-list.vue +++ b/src/components/shopping-cart/shopping-cart-list.vue @@ -2,6 +2,7 @@