import { wxNavigateTo, wxRequestPost } from "@utils/promise-wx-api"; import words from "@config/words"; import animeBehavior from "@mixins/anime"; const app = getApp(); Component({ behaviors: [animeBehavior], properties: { tagName: { type: String, value: "", }, tagId: { type: String, value: "", }, }, data: { customerId: "", currentGridName: "", iniLoaded: false, releasedUrl: "resi/voice/article/subjectarticlelist", listParams: { gridId: "", tagId: "", }, listIsMock: false, }, methods: { async onLoad() { await app.doAfterLogin(); const { tagName, tagId } = this.data; if (tagName) { wx.setNavigationBarTitle({ title: tagName, }); } if (tagId) { this.setData({ "listParams.tagId": tagId, }); } this.init(); }, async init() { const { iniLoaded } = this.data; const $loading = this.selectComponent("#loading"); if (!iniLoaded) { $loading.show(); } const { gridId, currentGridName } = app.globalData; this.setData({ "listParams.gridId": gridId, currentGridName, iniLoaded: true, }); $loading.hide(); }, }, });