日照项目的居民端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

68 lines
1.3 KiB

//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();
},
},
});