Commit 240059b7caffd8170a440d13faaaa253459afca2

Authored by xianghenggang
1 parent acef4ab642

no message

Showing 3 changed files with 30 additions and 23 deletions

littleApp_child/pages/checkTabList/checkTabList.wxss View file @ 240059b
... ... @@ -59,13 +59,18 @@
59 59 color: #222;
60 60 word-wrap: break-word;
61 61 margin-left: 5px;
  62 + height: 20px;
  63 + line-height: 20px;
  64 + text-align:center;
62 65 }
63 66  
64 67 .content_after {
  68 + height: 20px;
  69 + line-height: 20px;
65 70 font-size: 12px;
66 71 color: #666;
  72 + text-align:center;
67 73 margin-left: 5px;
68   - height: 20px;
69 74 display: -webkit-box;
70 75 overflow: hidden;
71 76 text-overflow: ellipsis;
littleApp_child/pages/home/home.js View file @ 240059b
... ... @@ -195,30 +195,30 @@
195 195 if (timeCount < 60) {
196 196 return
197 197 }
  198 + if (numberUtil.IsTelPhoneNumber(phone) && name.length>0) {
  199 + var that = this
  200 + networkUtil._post(api.bindDoc, { username: name, phone: phone }, function (res) {
  201 + console.log("getVerifyCode:", res)
198 202  
199   - var that = this
200   - networkUtil._post(api.bindDoc, { username: name, phone: phone }, function (res) {
201   - console.log("getVerifyCode:",res)
202   -
203   - }, function (res) {
204   - timeCount = 60
205   - clearTimeout(timer);
206   - that.setData({
207   - time: '0s'
  203 + }, function (res) {
  204 + timeCount = 60
  205 + clearTimeout(timer);
  206 + that.setData({
  207 + time: '0s'
  208 + })
  209 + networkUtil.showErrorToast(res.errormsg)
208 210 })
209   - networkUtil.showErrorToast(res.errormsg)
210   - })
211   - if (timeCount == 60) {
212   - this.keepTime()
  211 + if (timeCount == 60) {
  212 + this.keepTime()
  213 + }
  214 + } else {
  215 + networkUtil.showErrorToast('请输入正确手机号码和姓名')
  216 + return
213 217 }
214   - // if (numberUtil.IsTelPhoneNumber(phone)) {
  218 +
215 219  
216   - // } else {
217   - // wx.showToast({
218   - // title: '请输入正确手机号码',
219   - // })
220   - // return
221   - // }
  220 +
  221 +
222 222 },
223 223 // 计时器
224 224 keepTime: function () {
225 225  
... ... @@ -238,9 +238,11 @@
238 238 },
239 239 blurInput: function (e) {
240 240 phone = e.detail.value
  241 + // console.log(e)
241 242 },
242 243 blurNameInput:function(e){
243 244 name = e.detail.value
  245 + // console.log(e)
244 246 },
245 247 // 提交表单
246 248 formSubmit: function (e) {
littleApp_child/pages/home/home.wxml View file @ 240059b
... ... @@ -131,11 +131,11 @@
131 131 <view class="record-input-constainer whiteColor">
132 132 <view class="record-input_bg whiteColor" style="border-color:{{inputFocus.nameInput ? '#f4879b' : '#e8eae5'}}">
133 133 <label class="record-input_title">姓名</label>
134   - <input class="input" id="name" name="name" maxlength="12" placeholder="请输入建档姓名" value="" placeholder-class="input-placeholder" bindfocus="getFocus" bindblur="blurNameInput"/>
  134 + <input class="input" id="name" name="name" maxlength="12" placeholder="请输入建档姓名" value="" placeholder-class="input-placeholder" bindfocus="getFocus" bindinput="blurNameInput"/>
135 135 </view>
136 136 <view class="record-input_bg" style="margin-top:15px;border-color:{{inputFocus.phoneInput ? '#f4879b' : '#e8eae5'}}">
137 137 <label class="record-input_title">手机号</label>
138   - <input class="input" id="phone" name="phone" type="number" placeholder="请输入建档手机号" maxlength="11" placeholder-class="input-placeholder" bindfocus="getFocus" value="" bindblur="blurInput" />
  138 + <input class="input" id="phone" name="phone" type="number" placeholder="请输入建档手机号" maxlength="11" placeholder-class="input-placeholder" bindfocus="getFocus" value="" bindinput="blurInput" />
139 139 </view>
140 140  
141 141 <view class="code_view">