12345678910111213141516171819202122232425262728293031323334353637383940 |
- var app = getApp()
- Page({
- data: {
- user:[],
- userId:''
- },
- onLoad: function (options) {
- this.setData({userId:options.id})
- app.request('user/detail?user_id='+options.id, '', 'GET').then(res => {
- console.log(res)
- this.setData({user:res.data})
- })
- },
- tap:function(){
- wx.navigateTo({
- url: '/pages/historicalOrder/historicalOrder?id='+this.data.userId,
- })
- },
- onReady: function () {
- },
- onShow: function () {
- },
- onHide: function () {
- },
- onUnload: function () {
- },
- onPullDownRefresh: function () {
- },
- onReachBottom: function () {
- },
- onShareAppMessage: function () {
- }
- })
|