作者 sgj

修改提交信息

@@ -48,6 +48,7 @@ Page({ @@ -48,6 +48,7 @@ Page({
48 arr: [], 48 arr: [],
49 lunch: [], 49 lunch: [],
50 dinner: [], 50 dinner: [],
  51 + select_time:'',
51 }, 52 },
52 53
53 //日历 54 //日历
@@ -424,6 +425,7 @@ Page({ @@ -424,6 +425,7 @@ Page({
424 let index = Number(e.currentTarget.dataset.index) 425 let index = Number(e.currentTarget.dataset.index)
425 let zindex = Number(e.detail.value) 426 let zindex = Number(e.detail.value)
426 this.setData({ 427 this.setData({
  428 + select_time:this.data.time_arr[zindex],
427 [`t_arr[${index}].time`]: this.data.time_arr[zindex] 429 [`t_arr[${index}].time`]: this.data.time_arr[zindex]
428 }) 430 })
429 this.judge_status(1, index) 431 this.judge_status(1, index)
@@ -637,6 +639,14 @@ Page({ @@ -637,6 +639,14 @@ Page({
637 }) 639 })
638 return 640 return
639 } 641 }
  642 + if(that.data.select_time==''){
  643 + wx.showModal({
  644 + title: '提示', //提示文字
  645 + content: '请选择参加时间',
  646 + showCancel: false, //是否显示取消按钮
  647 + })
  648 + return
  649 + }
640 if (that.data.zhiyuan == 2) { 650 if (that.data.zhiyuan == 2) {
641 wx.showModal({ 651 wx.showModal({
642 title: '提示', //提示文字 652 title: '提示', //提示文字
@@ -683,11 +693,10 @@ Page({ @@ -683,11 +693,10 @@ Page({
683 apply_stay: JSON.stringify(that.data.arr), 693 apply_stay: JSON.stringify(that.data.arr),
684 // apply_food: JSON.stringify(that.data.e_arr) 694 // apply_food: JSON.stringify(that.data.e_arr)
685 apply_lunch_food: JSON.stringify(that.data.lunch), 695 apply_lunch_food: JSON.stringify(that.data.lunch),
686 - apply_dinner_food: JSON.stringify(that.data.dinner)  
687 -  
688 -  
689 - 696 + apply_dinner_food: JSON.stringify(that.data.dinner),
  697 + select_date_time:that.data.select_time
690 } 698 }
  699 +
691 let header = { 700 let header = {
692 'XX-Token': wx.getStorageSync('token') 701 'XX-Token': wx.getStorageSync('token')
693 } 702 }
1 const app = getApp(); 1 const app = getApp();
2 2
3 Page({ 3 Page({
4 -  
5 /** 4 /**
6 * 页面的初始数据 5 * 页面的初始数据
7 */ 6 */