Browse Source

feat: 阳光采购列表页广告位id调整

cuiyalong 9 tháng trước cách đây
mục cha
commit
5500313cb2
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      apps/mobile/src/views/search/result/sun/index.vue

+ 4 - 4
apps/mobile/src/views/search/result/sun/index.vue

@@ -667,9 +667,9 @@ export default {
       }
     },
     getContentAdID() {
-      // const { inWX } = this.$envs
-      const { platform } = this.$env
-      return `${platform}-sunlightlist-search-middle`
+      const { inWX } = this.$envs
+      const prefix = inWX ? 'wx' : 'app'
+      return `${prefix}-sunlightlist-search-middle`
     },
     savedFilterListCount() {
       return this.pageState.savedFilterList.length
@@ -824,8 +824,8 @@ export default {
     // 历史筛选恢复会覆盖url参数
     this.restoreStateFromRouteParams()
     this.calcInitFilters()
-    this.calcDropdownMenuMaxHeight()
     this.$nextTick(() => {
+      this.calcDropdownMenuMaxHeight()
       const scrollWrap = this.$refs.listContainer
       scrollWrap.addEventListener('scroll', throttle(this.scrollWrapFn, 300))
     })