diff --git a/view/yinmeng/modules/ranks/css/index.css b/view/yinmeng/modules/ranks/css/index.css index fdb9aa6..a75a8b8 100644 --- a/view/yinmeng/modules/ranks/css/index.css +++ b/view/yinmeng/modules/ranks/css/index.css @@ -674,6 +674,7 @@ body { position: absolute; left: 1.45rem; top: 0.82667rem; + z-index: 9; } .list li .num { diff --git a/view/yinmeng/modules/ranks/css/index.scss b/view/yinmeng/modules/ranks/css/index.scss index c371b3f..2f42cf5 100644 --- a/view/yinmeng/modules/ranks/css/index.scss +++ b/view/yinmeng/modules/ranks/css/index.scss @@ -680,6 +680,7 @@ body { position: absolute; left: 1.45rem; top: px2rem(62); + z-index: 9; } .num { diff --git a/view/yinmeng/modules/ranks/js/index.js b/view/yinmeng/modules/ranks/js/index.js index a3e7695..13e8ac8 100644 --- a/view/yinmeng/modules/ranks/js/index.js +++ b/view/yinmeng/modules/ranks/js/index.js @@ -117,11 +117,12 @@ function getRank (type, datetype) { // 处理非前三 var str = ''; notTop3.forEach((res, i) => { + str += `
  • ${res.seqNo}
    -
    +

    ${res.nick.length > 7 ? `${res.nick.slice(0, 7)}...` : res.nick} @@ -143,6 +144,17 @@ function getRank (type, datetype) {

  • ` }) $('.list').append(str); + notTop3.forEach((res, i) => { + var player = new SVGA.Player(`.svga${i}`); + var parser = new SVGA.Parser(`.svga${i}`); // 如果你需要支持 IE6+,那么必须把同样的选择器传给 Parser。 + parser.load('./images/live.svga', function (videoItem) { + // 创建动画 + player.setVideoItem(videoItem); + // 开始动画 后面api会讲到 + player.startAnimation(); + }) + }) + // 处理自己榜单 $('.my .num').text(res.data.me.seqNo ? res.data.me.seqNo : '未上榜'); $('.my .tx').attr('src', res.data.me.avatar); @@ -159,6 +171,7 @@ function getRank (type, datetype) { } }) } + // 获取上期榜单接口 function getlastTop (type, datetype) { showLoading()