Commit 1972fb6d by libai

测试

parent 9224d7de
Showing with 19 additions and 19 deletions
......@@ -144,25 +144,25 @@
fp.get(function(result, components) {
canvasCode=result
});
// if(localStorage.uid!=undefined&&localStorage.uid!="undefined"){
// $.ajax({
// url:$ip+'activesys/getUserBaseInfo',
// type: "post",
// data: {
// uid:localStorage.uid,
// token:localStorage.token
// },
// success:function(msg){
// var data = JSON.parse(msg)
// console.log("获取用户基本信息",data)
// if(data.code==1){
// window.location.href='index.html';
// }else{
// layer.msg(data.msg)
// }
// }
// })
// }
if(localStorage.uid!=undefined&&localStorage.uid!="undefined"){
$.ajax({
url:$ip+'activesys/getUserBaseInfo',
type: "post",
data: {
uid:localStorage.uid,
token:localStorage.token
},
success:function(msg){
var data = JSON.parse(msg)
console.log("获取用户基本信息",data)
if(data.code==1){
window.location.href='myData.html?uid='+localStorage.uid+'&token='+localStorage.token+''
}else{
layer.msg(data.msg)
}
}
})
}
$(".code-btn").on("click", function () {
if ($(".login-phone-ipt").val().length > 10) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment