Merge branch 'master' of http://114.215.101.231:8099/miniprogram/volunteer
正在显示
2 个修改的文件
包含
14 行增加
和
9 行删除
@@ -46,6 +46,7 @@ Page({ | @@ -46,6 +46,7 @@ Page({ | ||
46 | arr: [], | 46 | arr: [], |
47 | lunch: [], | 47 | lunch: [], |
48 | dinner: [], | 48 | dinner: [], |
49 | + select_time:'', | ||
49 | }, | 50 | }, |
50 | 51 | ||
51 | //日历 | 52 | //日历 |
@@ -425,10 +426,8 @@ Page({ | @@ -425,10 +426,8 @@ Page({ | ||
425 | let zindex = e.detail.value | 426 | let zindex = e.detail.value |
426 | console.log(e.detail.value) | 427 | console.log(e.detail.value) |
427 | this.setData({ | 428 | this.setData({ |
428 | - | ||
429 | - | ||
430 | - | ||
431 | - | 429 | + select_time:this.data.time_arr[zindex], |
430 | + [`t_arr[${index}].time`]: this.data.time_arr[zindex] | ||
432 | }) | 431 | }) |
433 | // this.judge_status(1, index) | 432 | // this.judge_status(1, index) |
434 | }, | 433 | }, |
@@ -643,6 +642,14 @@ Page({ | @@ -643,6 +642,14 @@ Page({ | ||
643 | }) | 642 | }) |
644 | return | 643 | return |
645 | } | 644 | } |
645 | + if(that.data.select_time==''){ | ||
646 | + wx.showModal({ | ||
647 | + title: '提示', //提示文字 | ||
648 | + content: '请选择参加时间', | ||
649 | + showCancel: false, //是否显示取消按钮 | ||
650 | + }) | ||
651 | + return | ||
652 | + } | ||
646 | if (that.data.zhiyuan == 2) { | 653 | if (that.data.zhiyuan == 2) { |
647 | wx.showModal({ | 654 | wx.showModal({ |
648 | title: '提示', //提示文字 | 655 | title: '提示', //提示文字 |
@@ -690,11 +697,10 @@ Page({ | @@ -690,11 +697,10 @@ Page({ | ||
690 | apply_stay: JSON.stringify(that.data.arr), | 697 | apply_stay: JSON.stringify(that.data.arr), |
691 | // apply_food: JSON.stringify(that.data.e_arr) | 698 | // apply_food: JSON.stringify(that.data.e_arr) |
692 | apply_lunch_food: JSON.stringify(that.data.lunch), | 699 | apply_lunch_food: JSON.stringify(that.data.lunch), |
693 | - apply_dinner_food: JSON.stringify(that.data.dinner) | ||
694 | - | ||
695 | - | ||
696 | - | 700 | + apply_dinner_food: JSON.stringify(that.data.dinner), |
701 | + select_date_time:that.data.select_time | ||
697 | } | 702 | } |
703 | + | ||
698 | let header = { | 704 | let header = { |
699 | 'XX-Token': wx.getStorageSync('token') | 705 | 'XX-Token': wx.getStorageSync('token') |
700 | } | 706 | } |
-
请 注册 或 登录 后发表评论