瀏覽代碼

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

cuiyalong 9 月之前
父節點
當前提交
5500313cb2
共有 1 個文件被更改,包括 4 次插入4 次删除
  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() {
     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() {
     savedFilterListCount() {
       return this.pageState.savedFilterList.length
       return this.pageState.savedFilterList.length
@@ -824,8 +824,8 @@ export default {
     // 历史筛选恢复会覆盖url参数
     // 历史筛选恢复会覆盖url参数
     this.restoreStateFromRouteParams()
     this.restoreStateFromRouteParams()
     this.calcInitFilters()
     this.calcInitFilters()
-    this.calcDropdownMenuMaxHeight()
     this.$nextTick(() => {
     this.$nextTick(() => {
+      this.calcDropdownMenuMaxHeight()
       const scrollWrap = this.$refs.listContainer
       const scrollWrap = this.$refs.listContainer
       scrollWrap.addEventListener('scroll', throttle(this.scrollWrapFn, 300))
       scrollWrap.addEventListener('scroll', throttle(this.scrollWrapFn, 300))
     })
     })