Commit 73faa935 by libai

测试

parent 674e0388
Showing with 21 additions and 21 deletions
...@@ -49,25 +49,25 @@ ...@@ -49,25 +49,25 @@
fp.get(function(result, components) { fp.get(function(result, components) {
canvasCode=result canvasCode=result
}); });
if(localStorage.uid!=undefined&&localStorage.uid!="undefined"){ // if(localStorage.uid!=undefined&&localStorage.uid!="undefined"){
$.ajax({ // $.ajax({
url:$ip+'activesys/getUserBaseInfo', // url:$ip+'activesys/getUserBaseInfo',
type: "post", // type: "post",
data: { // data: {
uid:localStorage.uid, // uid:localStorage.uid,
token:localStorage.token // token:localStorage.token
}, // },
success:function(msg){ // success:function(msg){
var data = JSON.parse(msg) // var data = JSON.parse(msg)
console.log("获取用户基本信息",data) // console.log("获取用户基本信息",data)
if(data.code==1){ // if(data.code==1){
window.location.href='https://activity.ishuaji.cn/active2020/subsidy/index.html?uid='+data.uid+'&token='+data.token+''; // window.location.href='index.html';
}else{ // }else{
layer.msg(data.msg) // layer.msg(data.msg)
} // }
} // }
}) // })
} // }
$(".code-btn").on("click", function () { $(".code-btn").on("click", function () {
if ($(".login-phone-ipt").val().length > 10) { if ($(".login-phone-ipt").val().length > 10) {
$.ajax({ $.ajax({
...@@ -118,8 +118,8 @@ ...@@ -118,8 +118,8 @@
var data=JSON.parse(msg) var data=JSON.parse(msg)
console.log(data); console.log(data);
if(data.code==1){ if(data.code==1){
localStorage.uid=data.uid // localStorage.uid=data.uid
localStorage.token=data.token // localStorage.token=data.token
window.location.href='https://activity.ishuaji.cn/active2020/subsidy/index.html?uid='+data.uid+'&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("tbb", data.token, {expires: 30, path: "/"});
// $.cookie("ukk", data.uid, {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