提交 9bd159a05db4a4246eaa4eae6bd2656284bafde0

作者 wangyu
2 个父辈 6bdbadcb 7b2fbbc3

Merge branch 'dev_wy' into dev2.0

@@ -61,10 +61,6 @@ Page({ @@ -61,10 +61,6 @@ Page({
61 console.log('id_info', res.data) 61 console.log('id_info', res.data)
62 if (res.data && res.data.length > 0) { 62 if (res.data && res.data.length > 0) {
63 var id_info = JSON.parse(res.data) 63 var id_info = JSON.parse(res.data)
64 - if (that.data.name.length > 0 && id_info.name != that.data.name) {  
65 - that.showtoast("姓名冲突")  
66 - return  
67 - }  
68 var birth_day 64 var birth_day
69 if (id_info.birthday.month > 9 && id_info.birthday.day > 9) { 65 if (id_info.birthday.month > 9 && id_info.birthday.day > 9) {
70 birth_day = id_info.birthday.year + '-' + id_info.birthday.month + '-' + id_info.birthday.day; 66 birth_day = id_info.birthday.year + '-' + id_info.birthday.month + '-' + id_info.birthday.day;
@@ -75,7 +71,7 @@ Page({ @@ -75,7 +71,7 @@ Page({
75 } else if (id_info.birthday.month < 10 && id_info.birthday.day < 10) { 71 } else if (id_info.birthday.month < 10 && id_info.birthday.day < 10) {
76 birth_day = id_info.birthday.year + '-0' + id_info.birthday.month + '-0' + id_info.birthday.day; 72 birth_day = id_info.birthday.year + '-0' + id_info.birthday.month + '-0' + id_info.birthday.day;
77 } 73 }
78 - 74 + console.log("birth_day", birth_day)
79 that.setData({ 75 that.setData({
80 name: id_info.name, 76 name: id_info.name,
81 id_card_no: id_info.id_card_number, 77 id_card_no: id_info.id_card_number,
@@ -148,19 +144,13 @@ Page({ @@ -148,19 +144,13 @@ Page({
148 delta: 1 144 delta: 1
149 }) 145 })
150 }else{ 146 }else{
151 - wx.showToast({  
152 - title: res.data.message,  
153 - icon:"none"  
154 - }) 147 + that.showToast(res.data.message)
155 } 148 }
156 } 149 }
157 }, 150 },
158 fail:function(res){ 151 fail:function(res){
159 console.log("fail", res) 152 console.log("fail", res)
160 - wx.showToast({  
161 - title: res.data.message,  
162 - icon: 'none'  
163 - }) 153 + that.showToast(res.data.message)
164 } 154 }
165 }) 155 })
166 }, 156 },
注册登录 后发表评论