Commit 73faa935 by libai

测试

parent 674e0388
Showing with 21 additions and 21 deletions
......@@ -49,25 +49,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='https://activity.ishuaji.cn/active2020/subsidy/index.html?uid='+data.uid+'&token='+data.token+'';
}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='index.html';
// }else{
// layer.msg(data.msg)
// }
// }
// })
// }
$(".code-btn").on("click", function () {
if ($(".login-phone-ipt").val().length > 10) {
$.ajax({
......@@ -118,8 +118,8 @@
var data=JSON.parse(msg)
console.log(data);
if(data.code==1){
localStorage.uid=data.uid
localStorage.token=data.token
// localStorage.uid=data.uid
// localStorage.token=data.token
window.location.href='https://activity.ishuaji.cn/active2020/subsidy/index.html?uid='+data.uid+'&token='+data.token+'';
// $.cookie("tbb", data.token, {expires: 30, path: "/"});
// $.cookie("ukk", data.uid, {expires: 30, path: "/"});
......
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