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.
90 lines
1.7 KiB
90 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: {
|
|
customerId: "",
|
|
|
|
iniLoaded: false,
|
|
|
|
menuList: [
|
|
{
|
|
name: "表决中",
|
|
value: 0,
|
|
},
|
|
{
|
|
name: "已转项目",
|
|
value: 1,
|
|
},
|
|
{
|
|
name: "已关闭",
|
|
value: 2,
|
|
},
|
|
],
|
|
|
|
current: 0, // 表决中voting 已转项目turned 已关闭closed
|
|
|
|
votingUrl: "resi/group/groupissue/votinglist",
|
|
turnedUrl: "resi/group/groupissue/shiftproject",
|
|
closedUrl: "resi/group/groupissue/closedlist",
|
|
listParams: {
|
|
groupId: "",
|
|
},
|
|
listIsMock: false,
|
|
},
|
|
lifetimes: {
|
|
async attached() {
|
|
await this.init();
|
|
},
|
|
},
|
|
|
|
methods: {
|
|
async init() {
|
|
const { groupId } = this.data;
|
|
|
|
this.setData({
|
|
listParams: {
|
|
groupId,
|
|
},
|
|
});
|
|
|
|
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 });
|
|
},
|
|
},
|
|
});
|
|
|