diff --git a/littleApp_child/pages/checkTabList/checkTabList.wxss b/littleApp_child/pages/checkTabList/checkTabList.wxss index 08a9c00..089a68c 100644 --- a/littleApp_child/pages/checkTabList/checkTabList.wxss +++ b/littleApp_child/pages/checkTabList/checkTabList.wxss @@ -59,13 +59,18 @@ color: #222; word-wrap: break-word; margin-left: 5px; + height: 20px; + line-height: 20px; + text-align:center; } .content_after { + height: 20px; + line-height: 20px; font-size: 12px; color: #666; + text-align:center; margin-left: 5px; - height: 20px; display: -webkit-box; overflow: hidden; text-overflow: ellipsis; diff --git a/littleApp_child/pages/home/home.js b/littleApp_child/pages/home/home.js index e823268..dd0665f 100644 --- a/littleApp_child/pages/home/home.js +++ b/littleApp_child/pages/home/home.js @@ -195,30 +195,30 @@ Page({ if (timeCount < 60) { return } + if (numberUtil.IsTelPhoneNumber(phone) && name.length>0) { + var that = this + networkUtil._post(api.bindDoc, { username: name, phone: phone }, function (res) { + console.log("getVerifyCode:", res) - var that = this - networkUtil._post(api.bindDoc, { username: name, phone: phone }, function (res) { - console.log("getVerifyCode:",res) - - }, function (res) { - timeCount = 60 - clearTimeout(timer); - that.setData({ - time: '0s' + }, function (res) { + timeCount = 60 + clearTimeout(timer); + that.setData({ + time: '0s' + }) + networkUtil.showErrorToast(res.errormsg) }) - networkUtil.showErrorToast(res.errormsg) - }) - if (timeCount == 60) { - this.keepTime() + if (timeCount == 60) { + this.keepTime() + } + } else { + networkUtil.showErrorToast('请输入正确手机号码和姓名') + return } - // if (numberUtil.IsTelPhoneNumber(phone)) { + - // } else { - // wx.showToast({ - // title: '请输入正确手机号码', - // }) - // return - // } + + }, // 计时器 keepTime: function () { @@ -238,9 +238,11 @@ Page({ }, blurInput: function (e) { phone = e.detail.value + // console.log(e) }, blurNameInput:function(e){ name = e.detail.value + // console.log(e) }, // 提交表单 formSubmit: function (e) { diff --git a/littleApp_child/pages/home/home.wxml b/littleApp_child/pages/home/home.wxml index 6ae0464..e54bd1a 100644 --- a/littleApp_child/pages/home/home.wxml +++ b/littleApp_child/pages/home/home.wxml @@ -131,11 +131,11 @@ - + - +