正在显示
2 个修改的文件
包含
13 行增加
和
20 行删除
| @@ -2,8 +2,6 @@ | @@ -2,8 +2,6 @@ | ||
| 2 | var app = getApp(); | 2 | var app = getApp(); |
| 3 | var baseUrl = app.globalData.baseUrl; | 3 | var baseUrl = app.globalData.baseUrl; |
| 4 | var format = require('../../../../utils/util.js'); | 4 | var format = require('../../../../utils/util.js'); |
| 5 | - | ||
| 6 | -const cardTypeArray = ['居民身份证', '中国护照', '港澳居民居住证', '台湾居民居住证', '外国人永久居留身份证', '外国人工作许可证(A类)', '外国人工作许可证(B类)', '外国人工作许可证(C类)']; | ||
| 7 | Page({ | 5 | Page({ |
| 8 | 6 | ||
| 9 | /** | 7 | /** |
| @@ -17,19 +15,8 @@ Page({ | @@ -17,19 +15,8 @@ Page({ | ||
| 17 | id_card_no: "", | 15 | id_card_no: "", |
| 18 | birthday: "", | 16 | birthday: "", |
| 19 | datas: "", | 17 | datas: "", |
| 20 | - cardtypeData: { | ||
| 21 | - isrequre: true, | ||
| 22 | - label: '证照类型', | ||
| 23 | - bindtype: 'cardtype', | ||
| 24 | - placeholder: '请选择证照类型', | ||
| 25 | - selected: '', | ||
| 26 | - values: cardTypeArray, | ||
| 27 | - // range_key:'name', | ||
| 28 | - // values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往内地通行证', '外交官证', '中国护照', | ||
| 29 | - // '外国护照', '香港永久性居民身份证', '澳门特别行政区永久性居民身份证', '台湾身份证', '台湾居民来往大陆通行证', '外国人永久居留证' | ||
| 30 | - // ], | ||
| 31 | - onChange: 'onPickerSelect' | ||
| 32 | - }, | 18 | + cardTypeArray : ['居民身份证', '中国护照', '港澳居民居住证', '台湾居民居住证', '外国人永久居留身份证', '外国人工作许可证(A类)', '外国人工作许可证(B类)', '外国人工作许可证(C类)'], |
| 19 | + cardtype:"", | ||
| 33 | birthday_datelong: -1, | 20 | birthday_datelong: -1, |
| 34 | }, | 21 | }, |
| 35 | 22 | ||
| @@ -178,6 +165,11 @@ Page({ | @@ -178,6 +165,11 @@ Page({ | ||
| 178 | }) | 165 | }) |
| 179 | }, | 166 | }, |
| 180 | 167 | ||
| 168 | + bindCardtypeChange:function(e){ | ||
| 169 | + console.log('bindCardtypeChange', e) | ||
| 170 | + | ||
| 171 | + }, | ||
| 172 | + | ||
| 181 | showToast: function(data) { | 173 | showToast: function(data) { |
| 182 | if (data && data.length > 0) { | 174 | if (data && data.length > 0) { |
| 183 | wx.showToast({ | 175 | wx.showToast({ |
| @@ -10,14 +10,15 @@ | @@ -10,14 +10,15 @@ | ||
| 10 | <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入姓名' name='name' value='{{name}}'></input> | 10 | <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入姓名' name='name' value='{{name}}'></input> |
| 11 | </view> | 11 | </view> |
| 12 | <view style="margin:0 30rpx;background:#e5e5e5;height:2rpx;"></view> | 12 | <view style="margin:0 30rpx;background:#e5e5e5;height:2rpx;"></view> |
| 13 | - <view style='height:90rpx;padding:0 30rpx'> | 13 | + |
| 14 | + <picker bindchange="bindPickerChange" value="{{index}}" range="{{cardTypeArray}}"> | ||
| 15 | + <view style='height:90rpx;padding:0 30rpx ' bindchange="bindCardtypeChange"> | ||
| 14 | <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text> | 16 | <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text> |
| 15 | <text style='color:#777;font-size: 30rpx;line-height: 90rpx; float:left'>共同赡养人证照类型</text> | 17 | <text style='color:#777;font-size: 30rpx;line-height: 90rpx; float:left'>共同赡养人证照类型</text> |
| 16 | - <text style='color:#333;font-size: 30rpx;line-height: 90rpx; float:right'>居民身份证</text> | 18 | + <image class='arrow_wrap' src='/images/arrow_right.png' style='margin-top:26rpx'></image> |
| 19 | + <text style='color:#333;font-size: 30rpx;line-height: 90rpx; float:right'>{{cardtype}}</text> | ||
| 17 | </view> | 20 | </view> |
| 18 | - <!-- <view style="margin:0 30rpx"> | ||
| 19 | - <template is="picker_cell_normal" data="{{...cardtypeData}}" /> | ||
| 20 | - </view> --> | 21 | + </picker> |
| 21 | <view style="margin:0 30rpx;background:#e5e5e5;height:2rpx;"></view> | 22 | <view style="margin:0 30rpx;background:#e5e5e5;height:2rpx;"></view> |
| 22 | <view style='height:90rpx;padding:0 30rpx'> | 23 | <view style='height:90rpx;padding:0 30rpx'> |
| 23 | <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text> | 24 | <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text> |
请
注册
或
登录
后发表评论