let config = require("../../config/config.js"); let app = getApp(); const Http = require("../../utils/HttpBasics"); const util = require("../../utils/util"); Page({ data: { data: {}, couponId: null, orderId: "", day: "", hour: "", minute: "", nodes: '' }, onShow() { let that = this; that.topicShow(); }, topicShow(){ let that = this; Http.get({ url: config.api.topicShow, data: { token: app.globalData.token } }).then(res => { console.log(res) if (res&&res.data) { that.setData({ data: res.data }); console.log(that.data.data) } }).catch(err => { wx.showToast({ title: err.errMsg, icon: 'none', duration: 2000, mask: false }); }) }, gotoactdetail:function(){ let that = this; console.log(that.data.data.detail) wx.navigateTo({ url: `/pages/actdetail/actdetail?detail=${that.data.data.detail}`, }) } });