diff --git a/index.html b/index.html index 3abd977..15fd1fb 100644 --- a/index.html +++ b/index.html @@ -117,13 +117,20 @@
-
+

关于

  • 版本:v1.0.0
  • 协议:MIT
  • 源码地址:https://github.com/cleverqin/node-websocket-Chatroom
  • 联系我:705597001@qq.com
  • +
  • Star:{{star}} ★
  • +
  • +
    + +
    {{item.login}}
    +
    +
diff --git a/static/css/ui-player.css b/static/css/ui-player.css index a9006da..b29fd17 100644 --- a/static/css/ui-player.css +++ b/static/css/ui-player.css @@ -382,4 +382,33 @@ .ui-toggleBtn, .ui-songsBox{ background-image: linear-gradient(60deg, #29323c 0%, #485563 100%); +} +/****************************/ +.ui-star-user{ + width: 60px; + display: inline-block; + padding: 10px 5px 5px; + margin-right: 10px; + margin-top: 5px; + border-radius: 4px; + border: 1px solid #e9e9e9; +} +.ui-star-user img{ + display: block; + width: 30px; + height: 30px; + border-radius: 4px; + margin: 0 auto; +} +.ui-starUser-info{ + font-size: 12px; + text-align: center; + color: #666666; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + line-height: 20px; +} +.ui-webChat-tool .ui-settingBox.ui-toolInfoBox{ + width: 595px; } \ No newline at end of file diff --git a/static/js/webChat.js b/static/js/webChat.js index 4fc0ef2..8d5f5d1 100644 --- a/static/js/webChat.js +++ b/static/js/webChat.js @@ -721,7 +721,9 @@ new Vue({ isShowName:true }, keyWord:"", - isLogin:true + isLogin:true, + star:0, + starUser:[] } }, computed: { @@ -745,6 +747,8 @@ new Vue({ created:function () { this.initBg(); this.initPlayer(); + this.getStar(); + this.getStarUser(); }, filters:{ time:function (value) { @@ -947,6 +951,20 @@ new Vue({ songs:songs }) }) + }, + getStar:function () { + this.$http.get("https://api.github.com/repos/cleverqin/node-websocket-Chatroom") + .then(function (reponse) { + var body=reponse.body; + this.star=body.stargazers_count; + }) + }, + getStarUser:function () { + this.$http.get("https://api.github.com/repos/cleverqin/node-websocket-Chatroom/stargazers") + .then(function (reponse) { + var body=reponse.body; + this.starUser=body; + }) } } }) \ No newline at end of file