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: "", }, }, data: { customerId: "", iniLoaded: false, releasedUrl: "resi/partymember/icpartymemberstyle/list", listParams: { gridId: "", }, listIsMock: false, }, async ready() { }, methods: { async onShow() { // await app.doAfterLogin(); // this.setData({ tagIdList: [] }); }, async onLoad() { await app.doAfterLogin(); this.init(); }, onReachBottom() { console.log("onReachBottom"); const $list = this.selectComponent("#releasedList"); $list.getMore(); }, async init() { const { iniLoaded } = this.data; const $loading = this.selectComponent("#loading"); if (!iniLoaded) { $loading.show(); } const { gridId } = app.globalData; this.setData({ listParams: { gridId, }, }); let that = this; setTimeout(function () { that.setData({ iniLoaded: true, }); $loading.hide(); }, 1000); }, }, });