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.
86 lines
1.7 KiB
86 lines
1.7 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: {
|
|
// groupId: {
|
|
// type: String,
|
|
// value: "",
|
|
// },
|
|
},
|
|
|
|
data: {
|
|
iniLoaded: false,
|
|
|
|
menuList: [
|
|
// {
|
|
// name: "未处理",
|
|
// value: 0,
|
|
// },
|
|
{
|
|
name: "处理中",
|
|
value: 0,
|
|
},
|
|
{
|
|
name: "已完成",
|
|
value: 1,
|
|
},
|
|
],
|
|
|
|
current: 0, // 未处理un_read 处理中 processing 已办结 closed_case
|
|
|
|
reportUrl: "gov/project/icEvent/myreport", //"gov/project/resievent/myreported",
|
|
|
|
listParams1: {
|
|
status: "un_read",
|
|
},
|
|
listParams2: {
|
|
status: "processing",
|
|
},
|
|
listParams3: {
|
|
status: "closed_case",
|
|
},
|
|
listIsMock: false,
|
|
},
|
|
lifetimes: {
|
|
async attached() {
|
|
await this.init();
|
|
},
|
|
},
|
|
|
|
methods: {
|
|
async init() {
|
|
|
|
// await app.doAfterLogin();
|
|
|
|
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 });
|
|
},
|
|
},
|
|
});
|
|
|