// pages/withdrawal/detail/index.js import { getWithdrawInfo} from '../../api/saas' Page({ /** * 页面的初始数据 */ data: { orderDetails: {} }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { wx.showLoading({ title: '加载中', mask: true }) getWithdrawInfo(options.id).then(result => { this.setData({ orderDetails: result.data }) wx.hideLoading() }).catch(err => { wx.hideLoading() }) } })