Commit beff10b4 authored by 徐光星's avatar 徐光星

feat: 放开H5对秒杀和抢购活动的访问限制

parent 6c42c0cf
...@@ -121,7 +121,8 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle ...@@ -121,7 +121,8 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle
} }
mounted() { mounted() {
if (!isApp && !isWxMp && !EASY_ENV_IS_NODE) { if (!isApp && !isWxMp && !EASY_ENV_IS_NODE) {
this.pageData.elements = this.$route.query.isPreview ? this.pageData.elements : this.pageData.elements.filter(v => v.name !== 'cs-search-bar' && v.name !== 'cs-snap-up' && v.name !== 'cs-seckill'); // && v.name !== 'cs-snap-up' && v.name !== 'cs-seckill' 放开H5访问秒杀、抢购的限制
this.pageData.elements = this.$route.query.isPreview ? this.pageData.elements : this.pageData.elements.filter(v => v.name !== 'cs-search-bar');
} }
this.targetEle = document.querySelector('body'); this.targetEle = document.querySelector('body');
if (EASY_ENV_IS_BROWSER) { this.showBackTop = true; } if (EASY_ENV_IS_BROWSER) { this.showBackTop = true; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment