odc.xiaohui
2023-03-20 190f42003ed5f96f285e8ff9517dbfbe70ef0ba5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// index.ts
// 获取应用实例
const manager = getApp<IAppOption>()
 
Page({
    data: {
        isShow: false,
        userInfo: {},
        hasUserInfo: false,
        canIUse: wx.canIUse('button.open-type.getUserInfo'),
        canIUseGetUserProfile: false,
        canIUseOpenData: wx.canIUse('open-data.type.userAvatarUrl') && wx.canIUse('open-data.type.userNickName') // 如需尝试获取用户信息可改为false
    },
    // 事件处理函数
    bindViewTap() {
        wx.navigateTo({
            url: '../logs/logs',
        })
    },
 
 
    onLoad() {
    },
    getReport() {
        console.log("xxx")
        wx.navigateTo({
            url: '../manager/report/index'
        })
    }
    ,getGroup(){
        console.log("group")
        wx.navigateTo({
            url:'../manager/group/index'
        })
    }
    ,getCause(){
        console.log("cause")
        wx.navigateTo({
            url:'../manager/cause/index'
        })
    }
    ,getAudi(){
        console.log("myself")
        wx.navigateTo({
            url:'../manager/myself/index'
        })
    }
})