wl
2022-11-16 096f265df6dcf07df93806e2da461c2cad4a331f
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// index.ts
// 获取应用实例
const user = getApp()
 
Page({
    data: {
        isShow: false,
        userInfo: {},
        causeList:[]
    },
    // 事件处理函数
    bindViewTap() {
        wx.navigateTo({
            url: '../logs/logs',
        })
    },
 
 
    onLoad() {
        wx.request(  
            {
              url:user.globalData.url+"/publicity?size="+"4",
              method:"GET",
              header:{'token':wx.getStorageSync('token')},
              success:(res)=>{
                  this.setData({
                    causeList:res.data.data.records
                  })
                  console.log(this.data.causeList)
              }
                  })
    },
    getReport() {
        console.log("xxx")
        wx.navigateTo({
            url: '../user/report/index'
        })
    }
    ,getPublicty(){
        console.log("publicty")
        wx.navigateTo({
            url:'../user/pubulicty/index'
        })
        
    }
    ,getGroup(){
        console.log("group")
        wx.navigateTo({
            url:'../user/group/index'
        })}
    ,getCause(){
        console.log("cause")
        wx.navigateTo({
            url:'../manager/cause/index'
        })
    }
    ,getAudi(){
        console.log("myself")
        wx.navigateTo({
            url:'../user/myself/index'
        })
    }
    ,more(){
        console.log("myself")
        wx.navigateTo({
            url:'../user/pubulicty/index'
        })
    }
})