diff --git a/CHANGELOG.md b/CHANGELOG.md index 436f299..f0d19e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [1.0.10-B.0](https://git.1000my.com/project-chengduSKP/cd_SKP_H_base_daoshi_vue_ts/compare/v1.0.9...v1.0.10-B.0) (2023-10-12) + +### [1.0.9](https://git.1000my.com/project-chengduSKP/cd_SKP_H_base_daoshi_vue_ts/compare/v1.0.9-B.2...v1.0.9) (2023-10-12) + + +### Bug Fixes + +* 🧩 活动详情为空时点击无效果 ([e6cdd99](https://git.1000my.com/project-chengduSKP/cd_SKP_H_base_daoshi_vue_ts/commit/e6cdd99f4beb731b1369c4edadbb8b48eb9c649a)) + ### [1.0.9-B.2](https://git.1000my.com/project-chengduSKP/cd_SKP_H_base_daoshi_vue_ts/compare/v1.0.9-B.1...v1.0.9-B.2) (2023-10-11) diff --git a/package-lock.json b/package-lock.json index 6d39cea..5e567c7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "vue_cli_ts", - "version": "1.0.9-B.2", + "version": "1.0.10-B.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "vue_cli_ts", - "version": "1.0.9-B.2", + "version": "1.0.10-B.0", "dependencies": { "@better-scroll/core": "^2.5.0", "@better-scroll/observe-image": "^2.5.0", diff --git a/package.json b/package.json index 01363c5..67c79f9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue_cli_ts", - "version": "1.0.9-B.2", + "version": "1.0.10-B.0", "private": true, "scripts": { "serve": "vue-cli-service serve", diff --git a/src/views/Activity/Activity.vue b/src/views/Activity/Activity.vue index 6126596..6a76bb0 100644 --- a/src/views/Activity/Activity.vue +++ b/src/views/Activity/Activity.vue @@ -53,12 +53,14 @@ const modules = [Autoplay, Pagination] const currentItem = ref() const showDetail = ref(false) function clickItem(item: Activity, code: string) { - if (mySwiper.value) { - mySwiper.value.autoplay.stop() - } item.list = shopAcList.value.filter(info => info.content.typeId[0] === code) - currentItem.value = item - showDetail.value = true + if ((item.type === '档期活动' && item.fileUrl_h.length) || (item.type !== '档期活动' && item.list.length)) { + if (mySwiper.value) { + mySwiper.value.autoplay.stop() + } + currentItem.value = item + showDetail.value = true + } } // 展示敬请期待