正在显示
2 个修改的文件
包含
29 行增加
和
3 行删除
| ... | ... | @@ -13,7 +13,7 @@ |
| 13 | 13 | <image wx:if='{{!disabled}}' class='arrow_wrap' src='/images/arrow_right.png'></image> |
| 14 | 14 | |
| 15 | 15 | <view class="weui-cell__bd"> |
| 16 | - <picker mode="{{mode?mode:'selector'}}" range-key="{{range_key}}" range="{{values}}" fields="{{fields}}" start="{{start}}" end="{{end}}" bindchange="{{onChange}}" bindcolumnchange="{{onColumnChange}}" disabled="{{disabled}}" id='{{bindtype}}'> | |
| 16 | + <picker mode="{{mode?mode:'selector'}}" range-key="{{range_key}}" range="{{values}}" fields="{{fields}}" start="{{start}}" end="{{end}}" bindtap='{{onTap}}' bindchange="{{onChange}}" bindcolumnchange="{{onColumnChange}}" disabled="{{disabled}}" id='{{bindtype}}'> | |
| 17 | 17 | <text wx:if="{{selected&&disabled}}" class="text_black_30 float_right text-single" style='line-height: 90rpx;text-align:right;max-width:{{maxWidth}}rpx;'>{{selected}}</text> |
| 18 | 18 | <text wx:elif="{{selected}}" class="text_black_30 float_right text-single" style="line-height: 90rpx;text-align:right;max-width:{{maxWidth}}rpx;">{{selected}}</text> |
| 19 | 19 | <text wx:else class="text_999_30 float_right " style='line-height: 90rpx;'>{{placeholder}}</text> | ... | ... |
| ... | ... | @@ -288,6 +288,9 @@ Page({ |
| 288 | 288 | fields: "day", |
| 289 | 289 | datelong: 0, |
| 290 | 290 | start: '1970-01-01', |
| 291 | + // start: (new Date()).getFullYear() + '-09-01',//'1970-01-01', | |
| 292 | + // end: (new Date()).getFullYear() + '-09-01', | |
| 293 | + // onTap: 'studyDataTap' | |
| 291 | 294 | }, |
| 292 | 295 | studyenddate: { |
| 293 | 296 | label: '教育终止时间', |
| ... | ... | @@ -301,6 +304,9 @@ Page({ |
| 301 | 304 | mode: "date", |
| 302 | 305 | fields: "day", |
| 303 | 306 | start: '1970-01-01', |
| 307 | + // start: (new Date()).getFullYear() + '-07-31',//'1970-01-01', | |
| 308 | + // end: (new Date()).getFullYear() + '-07-31', | |
| 309 | + // onTap: 'studyDataTap', | |
| 304 | 310 | datelong: 0, |
| 305 | 311 | }, |
| 306 | 312 | applydate: { |
| ... | ... | @@ -1082,8 +1088,8 @@ Page({ |
| 1082 | 1088 | newdata.percent = parseFloat(this.data.childrenpercentData.selected.replace("%","")) |
| 1083 | 1089 | newdata.children_id_card_type = '1' //this.data.childrencardtypeData.selected |
| 1084 | 1090 | newdata.children_birthday = this.data.commonbirthDate.datelong |
| 1085 | - newdata.education_end = this.data.studystartdate.datelong | |
| 1086 | - newdata.education_start = this.data.studyenddate.datelong | |
| 1091 | + newdata.education_end = this.data.studyenddate.datelong | |
| 1092 | + newdata.education_start = this.data.studystartdate.datelong | |
| 1087 | 1093 | newdata.education_period = this.data.childedudegreeData.selected |
| 1088 | 1094 | newdata.school_country = this.data.schoolCountryData.selected |
| 1089 | 1095 | newdata.children_nation = "中国" |
| ... | ... | @@ -1482,6 +1488,25 @@ Page({ |
| 1482 | 1488 | } |
| 1483 | 1489 | this.setData(data) |
| 1484 | 1490 | }, |
| 1491 | + // studyDataTap: function (e) { | |
| 1492 | + // console.log('studyDataTap',e) | |
| 1493 | + // if (e.currentTarget.id == 'study_start_date'){ | |
| 1494 | + // var study_startdate = this.data.studystartdate | |
| 1495 | + // study_startdate.start = '1970-01-01' | |
| 1496 | + // study_startdate.end = '' | |
| 1497 | + // this.setData({ | |
| 1498 | + // studystartdate: study_startdate | |
| 1499 | + // }) | |
| 1500 | + // } else if (e.currentTarget.id == 'study_end_date') { | |
| 1501 | + // console.log('study_end_date') | |
| 1502 | + // var study_enddate = this.data.studyenddate | |
| 1503 | + // study_enddate.start = '1970-01-01' | |
| 1504 | + // study_enddate.end = '' | |
| 1505 | + // this.setData({ | |
| 1506 | + // studyenddate: study_enddate | |
| 1507 | + // }) | |
| 1508 | + // } | |
| 1509 | + // }, | |
| 1485 | 1510 | onPickerSelect: function(e) { |
| 1486 | 1511 | console.log('picker发送选择改变,携带值为', e) |
| 1487 | 1512 | switch (e.currentTarget.id) { |
| ... | ... | @@ -1843,6 +1868,7 @@ Page({ |
| 1843 | 1868 | 'content-type': 'application/json', |
| 1844 | 1869 | "Authorization": Authorization |
| 1845 | 1870 | }, |
| 1871 | + method:"POST", | |
| 1846 | 1872 | data: { 'address_codes': loc}, |
| 1847 | 1873 | success(res) { |
| 1848 | 1874 | if (res && res.statusCode < 300) { | ... | ... |
请
注册
或
登录
后发表评论