Commit da22f5e7 by 李伟康

fix(home-frame): 修复组件模板语法错误

- 修复了模板中缺失的右括号导致的语法错误
- 确保了组件结构的完整性
- 修正了模板解析问题以避免渲染异常
1 parent d9263984
...@@ -730,8 +730,11 @@ export default { ...@@ -730,8 +730,11 @@ export default {
}, },
async getActivityMessage() { async getActivityMessage() {
this.$store.dispatch('setActivityWindowPopCount', 0) this.$store.dispatch('setActivityWindowPopCount', 0)
const { sceneType } = this const { sceneType } = this,
pages = getCurrentPages(),
currentPage = pages[pages.length - 1]
if (sceneType == 7) return // 二手车业务无活动中心 if (sceneType == 7) return // 二手车业务无活动中心
if (!['pages/equity/index', 'pages/boutique/index'].includes(currentPage.route)) return
const data = await uni.$api.activityApi.getActivityMessagePopUpWindow({ const data = await uni.$api.activityApi.getActivityMessagePopUpWindow({
businessType: sceneType businessType: sceneType
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!