odc.xiaohui
2023-04-07 f693c859cdaf607c2a146ef89a7a2ce0d9476d1a
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
// index.ts
// 获取应用实例
const groupPublicty = getApp()
 
Page({
  data: {
    causeList:[],
    isShow:false
  },
  causeListAdd(){
      
  },
  // 事件处理函数
  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
              })
          }
              })
    }
})