作者 王智

bug

@@ -389,7 +389,7 @@ Page({ @@ -389,7 +389,7 @@ Page({
389 let provincearr = that.data.provincearr; 389 let provincearr = that.data.provincearr;
390 let cityarr = that.data.cityarr; 390 let cityarr = that.data.cityarr;
391 let countryarr = that.data.countryarr; 391 let countryarr = that.data.countryarr;
392 - 392 +
393 that.setData({ 393 that.setData({
394 confirmvalarr: valarr, 394 confirmvalarr: valarr,
395 province: provincearr[i].province_name, 395 province: provincearr[i].province_name,
@@ -480,9 +480,20 @@ Page({ @@ -480,9 +480,20 @@ Page({
480 }) 480 })
481 }, 481 },
482 uploadImages(e) { 482 uploadImages(e) {
  483 +
483 let that = this; 484 let that = this;
484 let tem = e.currentTarget.dataset.tem; 485 let tem = e.currentTarget.dataset.tem;
485 - that.uploadImage(tem); 486 + if (that.data.status == 2) {
  487 + wx.showModal({
  488 + title: '提示',
  489 + content: '如需修改个人信息,请在微信公众号申请:关注微信公众号“白求恩志愿者中心”,点击菜单按钮“修改个人信息”,申请提交。',
  490 + showCancel: false, //是否显示取消按钮
  491 + })
  492 + } else {
  493 + that.uploadImage(tem);
  494 +
  495 + }
  496 +
486 497
487 498
488 499
@@ -664,8 +675,7 @@ Page({ @@ -664,8 +675,7 @@ Page({
664 reverse_card: that.data.reverse_card, 675 reverse_card: that.data.reverse_card,
665 photo: that.data.photo 676 photo: that.data.photo
666 } 677 }
667 -  
668 - 678 + // 获取订阅号权限
669 { 679 {
670 wx.requestSubscribeMessage({ 680 wx.requestSubscribeMessage({
671 tmplIds: ['i32dB8tFiNFYRgRGM6bv79aEe4X2_BZ8HunwaoPw58o'], 681 tmplIds: ['i32dB8tFiNFYRgRGM6bv79aEe4X2_BZ8HunwaoPw58o'],
@@ -676,8 +686,6 @@ Page({ @@ -676,8 +686,6 @@ Page({
676 }) 686 })
677 } 687 }
678 688
679 -  
680 -  
681 wx.showModal({ 689 wx.showModal({
682 title: '请仔细核对信息,确认无误!', 690 title: '请仔细核对信息,确认无误!',
683 content: '如需修改个人信息,请在微信公众号申请:关注微信公众号“白求恩志愿者中心”,点击菜单按钮“修改个人信息”,申请提交。', 691 content: '如需修改个人信息,请在微信公众号申请:关注微信公众号“白求恩志愿者中心”,点击菜单按钮“修改个人信息”,申请提交。',
@@ -725,9 +733,6 @@ Page({ @@ -725,9 +733,6 @@ Page({
725 733
726 }, 734 },
727 735
728 -  
729 -  
730 -  
731 getpop() { 736 getpop() {
732 wx.showModal({ 737 wx.showModal({
733 title: '提示', 738 title: '提示',
@@ -828,9 +833,15 @@ Page({ @@ -828,9 +833,15 @@ Page({
828 that.getarea(); 833 that.getarea();
829 }, 834 },
830 835
831 - /**  
832 - * 生命周期函数--监听页面初次渲染完成  
833 - */ 836 +
  837 +
  838 +
  839 +
  840 +
  841 +
  842 +
  843 +
  844 +
834 onReady: function () { 845 onReady: function () {
835 846
836 }, 847 },
@@ -11,23 +11,18 @@ @@ -11,23 +11,18 @@
11 <view>姓名</view> 11 <view>姓名</view>
12 <view class='apply_item_input'> 12 <view class='apply_item_input'>
13 <input placeholder='未填写' placeholder-class='input_p' bindinput='setname' value='{{name}}' 13 <input placeholder='未填写' placeholder-class='input_p' bindinput='setname' value='{{name}}'
14 - disabled="{{page_type}}"></input> 14 + disabled="{{status==2}}"></input>
15 </view> 15 </view>
16 </view> 16 </view>
17 <view class='apply_item'> 17 <view class='apply_item'>
18 <view>昵称</view> 18 <view>昵称</view>
19 <view class='apply_item_input'> 19 <view class='apply_item_input'>
20 <input placeholder='未填写' placeholder-class='input_p' bindinput='setnickname' value='{{nickname}}' 20 <input placeholder='未填写' placeholder-class='input_p' bindinput='setnickname' value='{{nickname}}'
21 - disabled="{{page_type}}"></input> 21 + disabled="{{status==2}}"></input>
22 </view> 22 </view>
23 </view> 23 </view>
24 24
25 -  
26 -  
27 -  
28 -  
29 -  
30 -<picker bindchange="bindsex" range="{{arraysex}}" disabled="{{page_type}}"> 25 +<picker bindchange="bindsex" range="{{arraysex}}" disabled="{{status==2}}">
31 <view class='apply_item'> 26 <view class='apply_item'>
32 <view>性别</view> 27 <view>性别</view>
33 <view class='apply_item_input'> 28 <view class='apply_item_input'>
@@ -36,7 +31,7 @@ @@ -36,7 +31,7 @@
36 </view> 31 </view>
37 </view> 32 </view>
38 </picker> 33 </picker>
39 -<picker mode='date' bindchange="bindbirthdayChange" value="{{2000-01-01}}" end='{{enddata}}' disabled="{{page_type}}"> 34 +<picker mode='date' bindchange="bindbirthdayChange" value="{{2000-01-01}}" end='{{enddata}}' disabled="{{status==2}}">
40 <view class='apply_item'> 35 <view class='apply_item'>
41 <view>出生日期</view> 36 <view>出生日期</view>
42 <view class='apply_item_input'> 37 <view class='apply_item_input'>
@@ -46,7 +41,7 @@ @@ -46,7 +41,7 @@
46 </view> 41 </view>
47 </picker> 42 </picker>
48 43
49 -<picker range='{{nationarr}}' bindchange="bindnationChange" disabled="{{page_type}}"> 44 +<picker range='{{nationarr}}' bindchange="bindnationChange" disabled="{{status==2}}">
50 <view class='apply_item'> 45 <view class='apply_item'>
51 <view>民族</view> 46 <view>民族</view>
52 <view class='apply_item_input'> 47 <view class='apply_item_input'>
@@ -56,7 +51,7 @@ @@ -56,7 +51,7 @@
56 </view> 51 </view>
57 </picker> 52 </picker>
58 53
59 -<picker range='{{educationarr}}' bindchange="bindeducationChange" disabled="{{page_type}}"> 54 +<picker range='{{educationarr}}' bindchange="bindeducationChange" disabled="{{status==2}}">
60 <view class='apply_item'> 55 <view class='apply_item'>
61 <view>学历</view> 56 <view>学历</view>
62 <view class='apply_item_input'> 57 <view class='apply_item_input'>
@@ -65,7 +60,7 @@ @@ -65,7 +60,7 @@
65 </view> 60 </view>
66 </view> 61 </view>
67 </picker> 62 </picker>
68 -<picker range='{{politicsarr}}' bindchange="bindpoliticsChange" disabled="{{page_type}}"> 63 +<picker range='{{politicsarr}}' bindchange="bindpoliticsChange" disabled="{{status==2}}">
69 <view class='apply_item'> 64 <view class='apply_item'>
70 <view>政治面貌</view> 65 <view>政治面貌</view>
71 <view class='apply_item_input'> 66 <view class='apply_item_input'>
@@ -78,42 +73,42 @@ @@ -78,42 +73,42 @@
78 <view>工作单位</view> 73 <view>工作单位</view>
79 <view class='apply_item_input'> 74 <view class='apply_item_input'>
80 <input placeholder='未填写' placeholder-class='input_p' bindinput='setunit' value='{{unit}}' 75 <input placeholder='未填写' placeholder-class='input_p' bindinput='setunit' value='{{unit}}'
81 - disabled="{{page_type}}"></input> 76 + disabled="{{status==2}}"></input>
82 </view> 77 </view>
83 </view> 78 </view>
84 <view class='apply_item'> 79 <view class='apply_item'>
85 <view>职务</view> 80 <view>职务</view>
86 <view class='apply_item_input'> 81 <view class='apply_item_input'>
87 <input placeholder='未填写' placeholder-class='input_p' bindinput='setduty' value='{{duty}}' 82 <input placeholder='未填写' placeholder-class='input_p' bindinput='setduty' value='{{duty}}'
88 - disabled="{{page_type}}"></input> 83 + disabled="{{status==2}}"></input>
89 </view> 84 </view>
90 </view> 85 </view>
91 <view class='apply_item'> 86 <view class='apply_item'>
92 <view>通讯地址</view> 87 <view>通讯地址</view>
93 <view class='apply_item_input'> 88 <view class='apply_item_input'>
94 <input placeholder='未填写' placeholder-class='input_p' bindinput='setaddr' value='{{addr}}' 89 <input placeholder='未填写' placeholder-class='input_p' bindinput='setaddr' value='{{addr}}'
95 - disabled="{{page_type}}"></input> 90 + disabled="{{status==2}}"></input>
96 </view> 91 </view>
97 </view> 92 </view>
98 <view class='apply_item'> 93 <view class='apply_item'>
99 <view>邮编</view> 94 <view>邮编</view>
100 <view class='apply_item_input'> 95 <view class='apply_item_input'>
101 <input placeholder='未填写' placeholder-class='input_p' bindinput='setpostcode' value='{{postcode}}' 96 <input placeholder='未填写' placeholder-class='input_p' bindinput='setpostcode' value='{{postcode}}'
102 - disabled="{{page_type}}"></input> 97 + disabled="{{status==2}}"></input>
103 </view> 98 </view>
104 </view> 99 </view>
105 <view class='apply_item'> 100 <view class='apply_item'>
106 <view>就读/毕业院校</view> 101 <view>就读/毕业院校</view>
107 <view class='apply_item_input'> 102 <view class='apply_item_input'>
108 <input placeholder='未填写' placeholder-class='input_p' bindinput='setschool' value='{{school}}' 103 <input placeholder='未填写' placeholder-class='input_p' bindinput='setschool' value='{{school}}'
109 - disabled="{{page_type}}"></input> 104 + disabled="{{status==2}}"></input>
110 </view> 105 </view>
111 </view> 106 </view>
112 <view class='apply_item'> 107 <view class='apply_item'>
113 <view>身份证号</view> 108 <view>身份证号</view>
114 <view class='apply_item_input'> 109 <view class='apply_item_input'>
115 <input placeholder='未填写' placeholder-class='input_p' bindinput='setcard_number' value='{{card_number}}' 110 <input placeholder='未填写' placeholder-class='input_p' bindinput='setcard_number' value='{{card_number}}'
116 - disabled="{{page_type}}" maxlength="20"></input> 111 + disabled="{{status==2}}" maxlength="20"></input>
117 </view> 112 </view>
118 </view> 113 </view>
119 <view class='apply_item'> 114 <view class='apply_item'>
@@ -127,28 +122,28 @@ @@ -127,28 +122,28 @@
127 <view>移动电话</view> 122 <view>移动电话</view>
128 <view class='apply_item_input'> 123 <view class='apply_item_input'>
129 <input placeholder='未填写' type='number' placeholder-class='input_p' bindinput='setmove_phone' value='{{move_phone}}' 124 <input placeholder='未填写' type='number' placeholder-class='input_p' bindinput='setmove_phone' value='{{move_phone}}'
130 - disabled="{{page_type}}" maxlength="11"></input> 125 + disabled="{{status==2}}" maxlength="11"></input>
131 </view> 126 </view>
132 </view> 127 </view>
133 <view class='apply_item'> 128 <view class='apply_item'>
134 <view>电子邮箱</view> 129 <view>电子邮箱</view>
135 <view class='apply_item_input'> 130 <view class='apply_item_input'>
136 <input placeholder='未填写' placeholder-class='input_p' bindinput='setemail' value='{{email}}' 131 <input placeholder='未填写' placeholder-class='input_p' bindinput='setemail' value='{{email}}'
137 - disabled="{{page_type}}"></input> 132 + disabled="{{status==2}}"></input>
138 </view> 133 </view>
139 </view> 134 </view>
140 <view class='apply_item big_item'> 135 <view class='apply_item big_item'>
141 <view>紧急联系人及电话</view> 136 <view>紧急联系人及电话</view>
142 <view class='apply_item_input'> 137 <view class='apply_item_input'>
143 <input placeholder='未填写' type='number' placeholder-class='input_p' bindinput='seturgency_phone' 138 <input placeholder='未填写' type='number' placeholder-class='input_p' bindinput='seturgency_phone'
144 - value='{{urgency_phone}}' disabled="{{page_type}}"></input> 139 + value='{{urgency_phone}}' disabled="{{status==2}}"></input>
145 </view> 140 </view>
146 </view> 141 </view>
147 <view class='apply_item'> 142 <view class='apply_item'>
148 <view>QQ号码</view> 143 <view>QQ号码</view>
149 <view class='apply_item_input'> 144 <view class='apply_item_input'>
150 <input placeholder='未填写' type='number' placeholder-class='input_p' bindinput='setqq' value='{{qq}}' 145 <input placeholder='未填写' type='number' placeholder-class='input_p' bindinput='setqq' value='{{qq}}'
151 - disabled="{{page_type}}"></input> 146 + disabled="{{status==2}}"></input>
152 </view> 147 </view>
153 </view> 148 </view>
154 149
@@ -167,7 +162,7 @@ @@ -167,7 +162,7 @@
167 <view class='apply_cell {{apply_nav==2?"apply_active":""}}' data-apply_nav='2' bindtap='setapply_nav'>个人履历3</view> 162 <view class='apply_cell {{apply_nav==2?"apply_active":""}}' data-apply_nav='2' bindtap='setapply_nav'>个人履历3</view>
168 </view> 163 </view>
169 <view class='navbox'> 164 <view class='navbox'>
170 - <picker mode='date' bindchange="bindstartChange" disabled="{{page_type}}"> 165 + <picker mode='date' bindchange="bindstartChange" disabled="{{status==2}}">
171 <view class='apply_item'> 166 <view class='apply_item'>
172 <view>开始时间</view> 167 <view>开始时间</view>
173 <view class='apply_item_input'> 168 <view class='apply_item_input'>
@@ -177,7 +172,7 @@ @@ -177,7 +172,7 @@
177 </view> 172 </view>
178 </view> 173 </view>
179 </picker> 174 </picker>
180 - <picker mode='date' bindchange="bindendChange" disabled="{{page_type}}"> 175 + <picker mode='date' bindchange="bindendChange" disabled="{{status==2}}">
181 <view class='apply_item'> 176 <view class='apply_item'>
182 <view>结束时间</view> 177 <view>结束时间</view>
183 <view class='apply_item_input'> 178 <view class='apply_item_input'>
@@ -191,28 +186,28 @@ @@ -191,28 +186,28 @@
191 <view>单位名称</view> 186 <view>单位名称</view>
192 <view class='apply_item_input'> 187 <view class='apply_item_input'>
193 <input placeholder='未填写' placeholder-class='input_p' value='{{record[apply_nav].record_unit}}' 188 <input placeholder='未填写' placeholder-class='input_p' value='{{record[apply_nav].record_unit}}'
194 - bindinput='setrecordunit' disabled="{{page_type}}"></input> 189 + bindinput='setrecordunit' disabled="{{status==2}}"></input>
195 </view> 190 </view>
196 </view> 191 </view>
197 <view class='apply_item'> 192 <view class='apply_item'>
198 <view>职务</view> 193 <view>职务</view>
199 <view class='apply_item_input'> 194 <view class='apply_item_input'>
200 <input placeholder='未填写' placeholder-class='input_p' value='{{record[apply_nav].record_duty}}' 195 <input placeholder='未填写' placeholder-class='input_p' value='{{record[apply_nav].record_duty}}'
201 - bindinput='setrecordduty' disabled="{{page_type}}"></input> 196 + bindinput='setrecordduty' disabled="{{status==2}}"></input>
202 </view> 197 </view>
203 </view> 198 </view>
204 <view class='apply_item'> 199 <view class='apply_item'>
205 <view>证明人</view> 200 <view>证明人</view>
206 <view class='apply_item_input'> 201 <view class='apply_item_input'>
207 <input placeholder='未填写' placeholder-class='input_p' value='{{record[apply_nav].record_name}}' 202 <input placeholder='未填写' placeholder-class='input_p' value='{{record[apply_nav].record_name}}'
208 - bindinput='setrecordname' disabled="{{page_type}}"></input> 203 + bindinput='setrecordname' disabled="{{status==2}}"></input>
209 </view> 204 </view>
210 </view> 205 </view>
211 <view class='apply_item'> 206 <view class='apply_item'>
212 <view>证明人电话</view> 207 <view>证明人电话</view>
213 <view class='apply_item_input'> 208 <view class='apply_item_input'>
214 <input placeholder='未填写' placeholder-class='input_p' value='{{record[apply_nav].record_phone}}' 209 <input placeholder='未填写' placeholder-class='input_p' value='{{record[apply_nav].record_phone}}'
215 - bindinput='setrecordphone' disabled="{{page_type}}"></input> 210 + bindinput='setrecordphone' disabled="{{status==2}}"></input>
216 </view> 211 </view>
217 </view> 212 </view>
218 </view> 213 </view>
@@ -15,14 +15,12 @@ Page({ @@ -15,14 +15,12 @@ Page({
15 "线上答疑", 15 "线上答疑",
16 "门诊服务" 16 "门诊服务"
17 ], 17 ],
18 - time_arr: [  
19 - "上午", "下午","全天"  
20 - ], 18 + time_arr: [ "上午", "下午", "全天"],
21 19
22 - t_arr: [{ //选择日期数组 20 + t_arr: { //选择日期数组
23 data: '', 21 data: '',
24 time: '' 22 time: ''
25 - }], 23 + },
26 z_arr: [ //申请入住数组 24 z_arr: [ //申请入住数组
27 { 25 {
28 date: '' 26 date: ''
@@ -44,7 +42,7 @@ Page({ @@ -44,7 +42,7 @@ Page({
44 shows: false, 42 shows: false,
45 shownight: false, 43 shownight: false,
46 showdate: false, 44 showdate: false,
47 - selectdata:[], 45 + selectdata: [],
48 arr: [], 46 arr: [],
49 lunch: [], 47 lunch: [],
50 dinner: [], 48 dinner: [],
@@ -363,15 +361,15 @@ Page({ @@ -363,15 +361,15 @@ Page({
363 }).catch((err) => {}) 361 }).catch((err) => {})
364 }, 362 },
365 // 选择参加日期,入住日期,用餐日期 363 // 选择参加日期,入住日期,用餐日期
366 - change_date(e) {  
367 - let that = this  
368 - let index = e.currentTarget.dataset.index  
369 - // let id = e.currentTarget.dataset.id  
370 - let zindex = Number(e.detail.value) 364 + // change_date(e) {
  365 + // let that = this
  366 + // let index = e.currentTarget.dataset.index
  367 + // // let id = e.currentTarget.dataset.id
  368 + // let zindex = Number(e.detail.value)
371 369
372 - that.setData({  
373 - [`t_arr[${index}].date`]: that.data.date_arr[zindex]  
374 - }) 370 + // that.setData({
  371 + // [`t_arr[${index}].date`]: that.data.date_arr[zindex]
  372 + // })
375 373
376 374
377 // else if (id == 2) { 375 // else if (id == 2) {
@@ -384,7 +382,7 @@ Page({ @@ -384,7 +382,7 @@ Page({
384 // }) 382 // })
385 // } 383 // }
386 // that.judge_status(id, index) 384 // that.judge_status(id, index)
387 - }, 385 + // },
388 386
389 387
390 388
@@ -421,12 +419,18 @@ Page({ @@ -421,12 +419,18 @@ Page({
421 }, 419 },
422 // 选择参加时间 420 // 选择参加时间
423 change_time(e) { 421 change_time(e) {
424 - let index = Number(e.currentTarget.dataset.index)  
425 - let zindex = Number(e.detail.value) 422 + console.log(e)
  423 +
  424 + // let index = Number(e.currentTarget.dataset.index)
  425 + let zindex = e.detail.value
  426 + console.log(e.detail.value)
426 this.setData({ 427 this.setData({
427 - [`t_arr[${index}].time`]: this.data.time_arr[zindex] 428 +
  429 +
  430 +
  431 +
428 }) 432 })
429 - this.judge_status(1, index) 433 + // this.judge_status(1, index)
430 }, 434 },
431 // 选择用餐时间 435 // 选择用餐时间
432 eat_time(e) { 436 eat_time(e) {
@@ -438,28 +442,28 @@ Page({ @@ -438,28 +442,28 @@ Page({
438 this.judge_status(3, index) 442 this.judge_status(3, index)
439 }, 443 },
440 //删除日期,入住,用餐 444 //删除日期,入住,用餐
441 - del(e) {  
442 - let status = Number(e.currentTarget.dataset.status)  
443 - let index = e.currentTarget.dataset.index  
444 - let arr = status > 1 ? (status > 2 ? this.data.e_arr : this.data.z_arr) : this.data.t_arr  
445 - arr.splice(index, 1)  
446 - if (status == 1) {  
447 - this.setData({  
448 - t_arr: arr,  
449 - t_type: true  
450 - })  
451 - } else if (status == 2) {  
452 - this.setData({  
453 - z_arr: arr,  
454 - z_type: true  
455 - })  
456 - } else if (status == 3) {  
457 - this.setData({  
458 - e_arr: arr,  
459 - e_type: true  
460 - })  
461 - }  
462 - }, 445 + // del(e) {
  446 + // let status = Number(e.currentTarget.dataset.status)
  447 + // let index = e.currentTarget.dataset.index
  448 + // let arr = status > 1 ? (status > 2 ? this.data.e_arr : this.data.z_arr) : this.data.t_arr
  449 + // arr.splice(index, 1)
  450 + // if (status == 1) {
  451 + // this.setData({
  452 + // t_arr: arr,
  453 + // t_type: true
  454 + // })
  455 + // } else if (status == 2) {
  456 + // this.setData({
  457 + // z_arr: arr,
  458 + // z_type: true
  459 + // })
  460 + // } else if (status == 3) {
  461 + // this.setData({
  462 + // e_arr: arr,
  463 + // e_type: true
  464 + // })
  465 + // }
  466 + // },
463 // 添加日期,入住,用餐 467 // 添加日期,入住,用餐
464 add_item(e) { 468 add_item(e) {
465 let id = e.currentTarget.dataset.id 469 let id = e.currentTarget.dataset.id
@@ -516,6 +520,8 @@ Page({ @@ -516,6 +520,8 @@ Page({
516 }) 520 })
517 } 521 }
518 }, 522 },
  523 +
  524 +
519 // 获取工作类型 525 // 获取工作类型
520 change_enroll(e) { 526 change_enroll(e) {
521 let index = Number(e.detail.value) 527 let index = Number(e.detail.value)
@@ -613,7 +619,7 @@ Page({ @@ -613,7 +619,7 @@ Page({
613 }) 619 })
614 return 620 return
615 } 621 }
616 - if (that.data.lunch =='' ) { 622 + if (that.data.lunch == '') {
617 wx.showToast({ 623 wx.showToast({
618 title: '请先完善申请用餐信息', 624 title: '请先完善申请用餐信息',
619 icon: 'none' 625 icon: 'none'
@@ -677,6 +683,7 @@ Page({ @@ -677,6 +683,7 @@ Page({
677 form_id: form_id, 683 form_id: form_id,
678 type: that.data.type_id, 684 type: that.data.type_id,
679 work_content: that.data.check_id, 685 work_content: that.data.check_id,
  686 + // time_arr: that.data.time_arr,
680 // select_time: JSON.stringify(that.data.t_arr), 687 // select_time: JSON.stringify(that.data.t_arr),
681 select_time: JSON.stringify(that.data.selectdata), 688 select_time: JSON.stringify(that.data.selectdata),
682 // apply_stay: JSON.stringify(that.data.z_arr), 689 // apply_stay: JSON.stringify(that.data.z_arr),
@@ -54,14 +54,12 @@ @@ -54,14 +54,12 @@
54 </view> 54 </view>
55 <!-- <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}}"
56 data-id="1" disabled="{{status}}"> --> 56 data-id="1" disabled="{{status}}"> -->
57 - <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;"
58 bindtap="onDisplaydate"> 58 bindtap="onDisplaydate">
59 - <text>{{data?data:'请选择'}}</text>  
60 - <image src="/imgs/right.png" />  
61 - </view>  
62 - <van-calendar show="{{ showdate }}" type="multiple" bind:close="onClosedate" bind:confirm="onConfirmdate" />  
63 -  
64 - 59 + <text>{{data?data:'请选择'}}</text>
  60 + <image src="/imgs/right.png" />
  61 + </view>
  62 + <van-calendar show="{{ showdate }}" type="multiple" bind:close="onClosedate" bind:confirm="onConfirmdate" />
65 </view> 63 </view>
66 64
67 <view class="item"> 65 <view class="item">
@@ -99,6 +99,7 @@ Page({ @@ -99,6 +99,7 @@ Page({
99 }, 99 },
100 // 选择地址 100 // 选择地址
101 getchoose(e) { 101 getchoose(e) {
  102 +
102 console.log(e) 103 console.log(e)
103 let index = e.currentTarget.dataset.index; 104 let index = e.currentTarget.dataset.index;
104 wx.setStorageSync('tempAdress', this.data.list[index]) 105 wx.setStorageSync('tempAdress', this.data.list[index])