|
@@ -144,7 +144,6 @@ Page({
|
|
|
const data = JSON.parse(JSON.stringify(this.data.form))
|
|
|
if (app.globalData.userInfo.openid) data.openid =app.globalData.userInfo.openid;
|
|
|
if (this.data.today) data.date = this.data.today
|
|
|
- console.log(data)
|
|
|
wx.request({
|
|
|
url: `${app.globalData.publicUrl}/api/st/dining/order`,
|
|
|
method: "post",
|
|
@@ -171,48 +170,6 @@ Page({
|
|
|
*/
|
|
|
onLoad: function (options) {
|
|
|
this.searchDate();
|
|
|
- let one = [{
|
|
|
- id: '1',
|
|
|
- url: '/image/home/image2.jpg',
|
|
|
- title: '早餐1',
|
|
|
- num: '1000',
|
|
|
- reserve: 15
|
|
|
- }, {
|
|
|
- id: '2',
|
|
|
- url: '/image/home/image2.jpg',
|
|
|
- title: '早餐2',
|
|
|
- num: '1000',
|
|
|
- reserve: 15
|
|
|
- },]
|
|
|
- if (one) this.setData({ breakfastList: one })
|
|
|
- let two = [{
|
|
|
- id: '3',
|
|
|
- url: '/image/home/image2.jpg',
|
|
|
- title: '午餐1',
|
|
|
- num: '1000',
|
|
|
- reserve: 15
|
|
|
- }, {
|
|
|
- id: '4',
|
|
|
- url: '/image/home/image2.jpg',
|
|
|
- title: '午餐2',
|
|
|
- num: '1000',
|
|
|
- reserve: 15
|
|
|
- },]
|
|
|
- if (two) this.setData({ lunchList: two })
|
|
|
- let thr = [{
|
|
|
- id: '5',
|
|
|
- url: '/image/home/image2.jpg',
|
|
|
- title: '晚餐1',
|
|
|
- num: '1000',
|
|
|
- reserve: 15
|
|
|
- }, {
|
|
|
- id: '6',
|
|
|
- url: '/image/home/image2.jpg',
|
|
|
- title: '晚餐2',
|
|
|
- num: '1000',
|
|
|
- reserve: 15
|
|
|
- },]
|
|
|
- if (thr) this.setData({ dinnerList: thr })
|
|
|
},
|
|
|
// 查询时间
|
|
|
searchDate: function () {
|