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.
78 lines
1.4 KiB
78 lines
1.4 KiB
2 years ago
|
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);
|
||
|
},
|
||
|
|
||
|
|
||
|
},
|
||
|
});
|