//import { wxNavigateTo } from "@utils/promise-wx-api"; //import words from "@config/words"; //import nextTick from "@npm/dai-mp/tools/nextTick.js"; // import computedBehavior from "@npm/dai-mp/mixins/computed-component/index.js"; // import commonBehavior from "@mixins/common"; const app = getApp() Component({ // behaviors: [ computedBehavior, commonBehavior], properties: {}, data: { customerId: "", iniLoaded: false, myPartUrl: "resi/mine/issue/my-part-projects", listParams: { customerId: "", }, listIsMock: false, }, lifetimes: { attached: async function () { await this.init() }, detached: function () { }, }, //computed: {}, //watch: {}, methods: { async refreshData(){ await this.init() await this.selectComponent("#myPart").refreshData() }, async init() { console.log('page init') const { iniLoaded } = this.data; const $loading = this.selectComponent("#loading"); if (!iniLoaded) { $loading.show(); } const { customerId } = app.globalData; this.setData({ listParams: { customerId, }, }); this.setData({ iniLoaded: true, }); $loading.hide(); }, }, });