作者 李洪娟

修改邀请页

... ... @@ -276,6 +276,7 @@
'XX-Token': getToken()
};
getRequest('post', 'user/index/getIllness', null, heder).then(function (res) {
if (res.data.code == 1) {
for (var i in res.data.data) {
app.Illness_list.push({
... ...
... ... @@ -289,22 +289,21 @@
mui.toast("请输入正确的手机号");
unstock();
}else{
const TIME_COUNT = 60;
app.show = false;
if (!app.timer) {
app.count = TIME_COUNT;
var header = {
"XX-Device-Type": getDevice(),
'XX-Token': getToken()
};
var post = {
tel: app.tel
};
getRequest('post', 'home/index/loginBySMS', post, header).then(function (res) {
// alert(JSON.stringify(res))
// alert(res.data.msg)
mui.toast(res.data.msg);
unstock()
if (!app.timer) {
app.timer = setInterval(function () {
if (app.count > 0 && app.count <= TIME_COUNT) {
app.count--;
... ... @@ -314,8 +313,17 @@
app.timer = null;
}
}, 1000)
})
}
// alert(JSON.stringify(res))
// alert(res.data.msg)
})
}
},
... ... @@ -323,7 +331,7 @@
reg_fir: function () {
var header = {
"XX-Device-Type": getDevice(),
'XX-Token': getToken()
// 'XX-Token': getToken()
};
var post = {
tel: app.tel,
... ...