Commit 742fc472 by 冷斌

fix bug

parent 064b0c17
...@@ -76,6 +76,29 @@ ...@@ -76,6 +76,29 @@
}, },
userinfo() { userinfo() {
console.log(this.userId); console.log(this.userId);
let _this = this;
$.ajax({
url:'/wxshare/index.php?g=home&c=pay&a=getUserInfo',
data:{ uid: _this.userId },
dataType:'json',
success:function(data){
console.log(data);
if(data.code == 0) {
// $("#nice_name").html(data.data.user_nicename);
// $("#avatar").attr('src',data.data.avatar_thumb);
// $("#coin").html(data.data.coin);
// $(that).attr('data-uid',data.data.id);
// $("#userinfo").show();
} else {
alert(data.msg);
}
},
error:function(e){
console.log(e);
}
})
}, },
wx() { wx() {
let _this = this; let _this = this;
......
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