//获取应用实例 const app = getApp() Page({ data: { active: 0, // 待审核 oneList: [], // 审核通过 twoList: [] }, // 审核用户 checkBtn: function (data) { wx.navigateTo({ url: `../adminUser/check?id=${data.currentTarget.dataset.id}` }) }, onLoad: function () { // 查询办卡列表 // 待审核 wx.request({ url: app.globalData.publicUrl + '/api/htyd/card', method: "get", data: { status: '1' }, success: (res) => { if (res.data.errcode == '0') { console.log(res.data.data); this.setData({ oneList: res.data.data }) } else { wx.showToast({ title: '查询失败', icon: 'error', duration: 2000 }) } } }) // 审核通过 wx.request({ url: app.globalData.publicUrl + '/api/htyd/card', method: "get", data: { status: '0' }, success: (res) => { if (res.data.errcode == '0') { this.setData({ twoList: res.data.data }) } else { wx.showToast({ title: '查询失败', icon: 'error', duration: 2000 }) } } }) }, })