You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.0 KiB
JavaScript

12 months ago
const app = getApp()
// let app = null;
Component({
data: {
labelColor: ["#c41d7f", "#096dd9", "#531dab", "#d46b08", "#389e0d", "#08979c", "#cf1322"],
bgColor: ["#fff0f6", "#e6f7ff", "#f9f0ff", "#fff7e6", "#f6ffed", "#e6fffb", "#fff1f0"],
corpUserFlag: false,
serviceInfo: {}
},
properties: {
// 抽屉高度
showModal: {
type: Boolean,
value: false,
},
},
lifetimes: {
attached: function () {
this.setData({
serviceInfo: app.globalData.serviceInfo,
});
// 在组件实例进入页面节点树时执行
},
detached: function () {
// 在组件实例被从页面节点树移除时执行
},
},
ready () {
// console.log('app.globalData.loginUserInfo.corpUserFlag', app.globalData.loginUserInfo.corpUserFlag);
console.log('this.properties.loginUserInfo', this.properties.loginUserInfo);
// app.getLoginUserTokenInfo().then(() => {
// });
},
methods: {
closeDialog () {
this.setData({
showModal: false
})
}
}
})