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

83 lines
1.5 KiB

const app = getApp();
Component({
properties: {},
data: {
customerId: "",
iniLoaded: false,
menuList: [
{
name: "审核中",
value: 0,
},
{
name: "表决中",
value: 1,
},
{
name: "已转项目",
value: 2,
},
{
name: "已关闭",
value: 3,
},
],
current: 0, //审核中 auditing 表决中 voting 已转项目 toproject 已关闭 closed
checkUrl: "resi/mine/issue/my-pub-issues/auditinglist",
votingUrl: "resi/mine/issue/my-pub-issues/voting",
toprojectUrl: "resi/mine/issue/my-pub-issues/shift-project",
closedUrl: "resi/mine/issue/my-pub-issues/closed",
listParams: {
customerId: "",
},
listIsMock: false,
},
lifetimes: {
attached() {
this.init();
},
},
methods: {
async init() {
await app.doAfterLogin();
const { customerId } = app.globalData;
this.setData({
listParams: {
customerId,
},
});
this.setData({
iniLoaded: true,
});
},
handleSwiperChange(e) {
const {
detail: { current, source },
} = e;
if (source == "touch") {
this.setData({ current });
}
},
// 点击顶部菜单
handleShiftMenu(e) {
const {
detail: { value },
} = e;
this.setData({ current: value });
},
},
});