tment_details.js
1.02 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
var e = getApp(),
a = e.globalData.setting,
os = a,
t = e.request,
d = e.globalData;
Page({
/**
* 页面的初始数据
*/
data: {
iurl: a.imghost,
tment_details: [], //预约详情
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
var th = this;
var url = "http://localhost:8022/api/weshop/yy_fuwu_meirsxiangq";
wx.request({
url: url,
success: function(res) {
if (res.data.code == 0) {
th.setData({
tment_details:res.data.data
})
}
}
})
/*
var url = "/api/weshop/marketing/reservation/reservation/page";
getApp().request.promiseGet(url, {
data: {
storeId: 1,
userId: 5682130
}
}).then(res => {
if (res.data.code == 0) {
var data = res.data.data.pageData;
th.setData({
tment_details: data
})
}
})
*/
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
},
})