Commit 051e1c27 by 冷斌

fix bug

parent 742fc472
...@@ -76,6 +76,10 @@ ...@@ -76,6 +76,10 @@
}, },
userinfo() { userinfo() {
console.log(this.userId); console.log(this.userId);
if (this.userId == 1) {
layer.msg('请检查用户ID');
return;
}
let _this = this; let _this = this;
$.ajax({ $.ajax({
url:'/wxshare/index.php?g=home&c=pay&a=getUserInfo', url:'/wxshare/index.php?g=home&c=pay&a=getUserInfo',
...@@ -90,7 +94,7 @@ ...@@ -90,7 +94,7 @@
// $(that).attr('data-uid',data.data.id); // $(that).attr('data-uid',data.data.id);
// $("#userinfo").show(); // $("#userinfo").show();
} else { } else {
alert(data.msg); layer.msg(data.msg);
} }
}, },
error:function(e){ error:function(e){
......
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 to comment