From 97a0832ad23842cfa28c147833c95e628ddee585 Mon Sep 17 00:00:00 2001 From: huangzhen Date: Tue, 12 Nov 2024 11:26:38 +0800 Subject: [PATCH] =?UTF-8?q?update=20@=E4=BF=AE=E6=94=B9=E6=A8=A1=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/templates/cmsDetail/index.vue | 1 + src/views/templates/cmsList/index.vue | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/templates/cmsDetail/index.vue b/src/views/templates/cmsDetail/index.vue index 8752bea..a09293d 100644 --- a/src/views/templates/cmsDetail/index.vue +++ b/src/views/templates/cmsDetail/index.vue @@ -300,6 +300,7 @@ export default { } }, async receive() { + if (this.$props.comType !== 1) return; const code = this.pageData.goods.err_code, reson = this.pageData.goods.reson; const that = this; if (this.pollStatus) { diff --git a/src/views/templates/cmsList/index.vue b/src/views/templates/cmsList/index.vue index f5a75ce..ff57f43 100644 --- a/src/views/templates/cmsList/index.vue +++ b/src/views/templates/cmsList/index.vue @@ -198,6 +198,7 @@ export default { }, methods: { jumpOrder() { + if (this.$props.comType !== 1) return; this.$router.push({ path: '/orderList' , query: { from: 'home' } }); }, changePopComStatus() { @@ -286,13 +287,13 @@ export default { this.initialSlide = swiper.realIndex; }, jumpBanner() { - if (this.comType === 2) return; + if (this.$props.comType !== 1) return; if (this.cssData.bannerUrl) { location.href = this.cssData.bannerUrl; } }, jumpDetail(item: any, type?: string) { - if (this.comType === 2) return; + if (this.$props.comType !== 1) return; if (type !== 'auto' && item.goods.key_code) { return showToast(item.goods.reson || '活动异常'); }