作者 李洪娟

修改邀请页

@@ -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,33 +289,41 @@ @@ -289,33 +289,41 @@
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()
308 - app.timer = setInterval(function () {  
309 - if (app.count > 0 && app.count <= TIME_COUNT) {  
310 - app.count--;  
311 - } else {  
312 - app.show = true;  
313 - clearInterval(this.timer);  
314 - app.timer = null;  
315 - }  
316 - }, 1000) 306 + if (!app.timer) {
  307 + app.timer = setInterval(function () {
  308 + if (app.count > 0 && app.count <= TIME_COUNT) {
  309 + app.count--;
  310 + } else {
  311 + app.show = true;
  312 + clearInterval(this.timer);
  313 + app.timer = null;
  314 + }
  315 + }, 1000)
  316 + }
  317 + // alert(JSON.stringify(res))
  318 + // alert(res.data.msg)
  319 +
  320 +
317 }) 321 })
318 - } 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,