Commit c478c817 by 冷斌

fix bug

parent 051e1c27
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<!-- 用户头像 --> <!-- 用户头像 -->
<div class="userBox" > <div class="userBox" >
<img src="__PUBLIC__/appapi/pay/img/bandCard.png" class="userImg" > <img src="__PUBLIC__/appapi/pay/img/bandCard.png" class="userImg" >
<div class="userName">手机用户0565</div> <div class="userName">{{nickname}}</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -75,7 +75,6 @@ ...@@ -75,7 +75,6 @@
this.sel_num = index this.sel_num = index
}, },
userinfo() { userinfo() {
console.log(this.userId);
if (this.userId == 1) { if (this.userId == 1) {
layer.msg('请检查用户ID'); layer.msg('请检查用户ID');
return; return;
...@@ -88,6 +87,10 @@ ...@@ -88,6 +87,10 @@
success:function(data){ success:function(data){
console.log(data); console.log(data);
if(data.code == 0) { if(data.code == 0) {
_this.zuanNum = data.data.coin;
_this.face = data.data.avatar_thumb;
_this.nickname = data.data.user_nicename;
// $("#nice_name").html(data.data.user_nicename); // $("#nice_name").html(data.data.user_nicename);
// $("#avatar").attr('src',data.data.avatar_thumb); // $("#avatar").attr('src',data.data.avatar_thumb);
// $("#coin").html(data.data.coin); // $("#coin").html(data.data.coin);
......
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