正在显示
4 个修改的文件
包含
35 行增加
和
7 行删除
@@ -43,7 +43,8 @@ Page({ | @@ -43,7 +43,8 @@ Page({ | ||
43 | show: false, | 43 | show: false, |
44 | shows: false, | 44 | shows: false, |
45 | shownight:false, | 45 | shownight:false, |
46 | - showdate:false | 46 | + showdate:false, |
47 | + arr:[], | ||
47 | }, | 48 | }, |
48 | 49 | ||
49 | //日历 | 50 | //日历 |
@@ -118,11 +119,19 @@ onConfirmdate(event) { | @@ -118,11 +119,19 @@ onConfirmdate(event) { | ||
118 | list.push(Data); | 119 | list.push(Data); |
119 | }); | 120 | }); |
120 | 121 | ||
121 | - | 122 | + let data=[]; |
122 | console.log('1111111111111111', list) | 123 | console.log('1111111111111111', list) |
124 | + list.forEach(item => { | ||
125 | + console.log("item-",item); | ||
126 | + data.push({ | ||
127 | + date:item | ||
128 | + }) | ||
129 | + }) | ||
130 | + console.log("---",data); | ||
123 | this.setData({ | 131 | this.setData({ |
124 | show: false, | 132 | show: false, |
125 | - date: list.join(',') | 133 | + date: list.join(','), |
134 | + arr:data, | ||
126 | }); | 135 | }); |
127 | }, | 136 | }, |
128 | 137 | ||
@@ -646,7 +655,8 @@ onConfirmdate(event) { | @@ -646,7 +655,8 @@ onConfirmdate(event) { | ||
646 | type: that.data.type_id, | 655 | type: that.data.type_id, |
647 | work_content: that.data.check_id, | 656 | work_content: that.data.check_id, |
648 | select_time: JSON.stringify(that.data.t_arr), | 657 | select_time: JSON.stringify(that.data.t_arr), |
649 | - apply_stay: JSON.stringify(that.data.z_arr), | 658 | + // apply_stay: JSON.stringify(that.data.z_arr), |
659 | + apply_stay: JSON.stringify(that.data.arr), | ||
650 | apply_food: JSON.stringify(that.data.e_arr) | 660 | apply_food: JSON.stringify(that.data.e_arr) |
651 | } | 661 | } |
652 | let header = { | 662 | let header = { |
@@ -52,11 +52,8 @@ | @@ -52,11 +52,8 @@ | ||
52 | <view class="left"> | 52 | <view class="left"> |
53 | <image src="/imgs/must.png" /> 参加日期 | 53 | <image src="/imgs/must.png" /> 参加日期 |
54 | </view> | 54 | </view> |
55 | - | ||
56 | - | ||
57 | <!-- <picker mode="selector" value="{{item.date}}" bindchange="change_date" range="{{date_arr}}" data-index="{{index}}" | 55 | <!-- <picker mode="selector" value="{{item.date}}" bindchange="change_date" range="{{date_arr}}" data-index="{{index}}" |
58 | data-id="1" disabled="{{status}}"> --> | 56 | data-id="1" disabled="{{status}}"> --> |
59 | - | ||
60 | <view class="right" style="flex: 1;display:flex;justify-content: flex-end;margin-left: 32rpx;overflow: hidden;" | 57 | <view class="right" style="flex: 1;display:flex;justify-content: flex-end;margin-left: 32rpx;overflow: hidden;" |
61 | bindtap="onDisplaydate"> | 58 | bindtap="onDisplaydate"> |
62 | <text>{{data?data:'请选择'}}</text> | 59 | <text>{{data?data:'请选择'}}</text> |
@@ -136,7 +136,22 @@ Page({ | @@ -136,7 +136,22 @@ Page({ | ||
136 | layerModel: true | 136 | layerModel: true |
137 | }) | 137 | }) |
138 | } | 138 | } |
139 | + }, | ||
140 | + fail() { | ||
141 | + wx.showModal({ | ||
142 | + title: '提示', | ||
143 | + content: '请打开手机定位功能', | ||
144 | + showCancel: false | ||
145 | + | ||
146 | + }) | ||
147 | + | ||
139 | } | 148 | } |
149 | + | ||
150 | + | ||
151 | + | ||
152 | + | ||
153 | + | ||
154 | + | ||
140 | }) | 155 | }) |
141 | 156 | ||
142 | } else { | 157 | } else { |
@@ -337,6 +337,12 @@ | @@ -337,6 +337,12 @@ | ||
337 | "pathName": "pages/enroll/enroll", | 337 | "pathName": "pages/enroll/enroll", |
338 | "query": "id=63", | 338 | "query": "id=63", |
339 | "scene": null | 339 | "scene": null |
340 | + }, | ||
341 | + { | ||
342 | + "id": -1, | ||
343 | + "name": "pages/enroll/enroll", | ||
344 | + "pathName": "pages/enroll/enroll", | ||
345 | + "scene": null | ||
340 | } | 346 | } |
341 | ] | 347 | ] |
342 | } | 348 | } |
-
请 注册 或 登录 后发表评论