odc.xiaohui
2023-03-22 376eeb6037b697fcd5796e97562e60f9ea19db3f
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
// index.ts
// 获取应用实例
const groupPublicty = getApp()
 
Page({
  data: {
    causeList:[],
    isShow:false
  },
  // 事件处理函数
  onLoad(e) {
    wx.request(  
        {
          url:groupPublicty.globalData.url+"/group/getAllNotice",
          method:"GET",
          data:{
              id:e.id
          },
          header:{'token':wx.getStorageSync('token')},
          success:(res)=>{
              console.log(res)
              this.setData({
                causeList:res.data.data
              })
          }
              })
    }
})