作者 sgj

合并分支 'lihongjuan' 到 'master'

Lihongjuan

修改邀请页

查看合并请求 !6
@@ -276,6 +276,7 @@ @@ -276,6 +276,7 @@
276 'XX-Token': getToken() 276 'XX-Token': getToken()
277 }; 277 };
278 getRequest('post', 'user/index/getIllness', null, heder).then(function (res) { 278 getRequest('post', 'user/index/getIllness', null, heder).then(function (res) {
  279 +
279 if (res.data.code == 1) { 280 if (res.data.code == 1) {
280 for (var i in res.data.data) { 281 for (var i in res.data.data) {
281 app.Illness_list.push({ 282 app.Illness_list.push({
@@ -289,22 +289,21 @@ @@ -289,22 +289,21 @@
289 mui.toast("请输入正确的手机号"); 289 mui.toast("请输入正确的手机号");
290 unstock(); 290 unstock();
291 }else{ 291 }else{
  292 +
292 const TIME_COUNT = 60; 293 const TIME_COUNT = 60;
293 app.show = false; 294 app.show = false;
294 - if (!app.timer) {  
295 app.count = TIME_COUNT; 295 app.count = TIME_COUNT;
  296 +
296 var header = { 297 var header = {
297 "XX-Device-Type": getDevice(), 298 "XX-Device-Type": getDevice(),
298 - 'XX-Token': getToken()  
299 }; 299 };
300 var post = { 300 var post = {
301 tel: app.tel 301 tel: app.tel
302 }; 302 };
303 getRequest('post', 'home/index/loginBySMS', post, header).then(function (res) { 303 getRequest('post', 'home/index/loginBySMS', post, header).then(function (res) {
304 - // alert(JSON.stringify(res))  
305 - // alert(res.data.msg)  
306 mui.toast(res.data.msg); 304 mui.toast(res.data.msg);
307 unstock() 305 unstock()
  306 + if (!app.timer) {
308 app.timer = setInterval(function () { 307 app.timer = setInterval(function () {
309 if (app.count > 0 && app.count <= TIME_COUNT) { 308 if (app.count > 0 && app.count <= TIME_COUNT) {
310 app.count--; 309 app.count--;
@@ -314,8 +313,17 @@ @@ -314,8 +313,17 @@
314 app.timer = null; 313 app.timer = null;
315 } 314 }
316 }, 1000) 315 }, 1000)
317 - })  
318 } 316 }
  317 + // alert(JSON.stringify(res))
  318 + // alert(res.data.msg)
  319 +
  320 +
  321 + })
  322 +
  323 +
  324 +
  325 +
  326 +
319 } 327 }
320 }, 328 },
321 329
@@ -323,7 +331,7 @@ @@ -323,7 +331,7 @@
323 reg_fir: function () { 331 reg_fir: function () {
324 var header = { 332 var header = {
325 "XX-Device-Type": getDevice(), 333 "XX-Device-Type": getDevice(),
326 - 'XX-Token': getToken() 334 + // 'XX-Token': getToken()
327 }; 335 };
328 var post = { 336 var post = {
329 tel: app.tel, 337 tel: app.tel,