日照项目的居民端小程序
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.
 
 
 

66 lines
1.3 KiB

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