diff --git a/public/images/Durbg.png b/public/images/Durbg.png index 918e6f41..3ddad837 100644 Binary files a/public/images/Durbg.png and b/public/images/Durbg.png differ diff --git a/public/images/expbg.png b/public/images/expbg.png index fb4a2fd2..38d612b8 100644 Binary files a/public/images/expbg.png and b/public/images/expbg.png differ diff --git a/public/images/homeWu/u-wu.png b/public/images/homeWu/u-wu.png new file mode 100644 index 00000000..b51585bd Binary files /dev/null and b/public/images/homeWu/u-wu.png differ diff --git a/public/images/study-info.png b/public/images/study-info.png new file mode 100644 index 00000000..bb2fa446 Binary files /dev/null and b/public/images/study-info.png differ diff --git a/src/views/ucurrency/Index.vue b/src/views/ucurrency/Index.vue index ddae2d53..92794bde 100644 --- a/src/views/ucurrency/Index.vue +++ b/src/views/ucurrency/Index.vue @@ -10,13 +10,20 @@
U币历史记录
(最多保留近7天的记录)
-
-

{{day.dayNmae}}

-
-
{{getUType(info.eventKey)}}
-
{{info.uvalue > 0? '+':''}} {{info.uvalue}}
+
+
+

{{day.dayNmae}}

+
+
{{getUType(info.eventKey)}}
+
{{info.uvalue > 0? '+':''}} {{info.uvalue}}
+
+ +
+ +

最近7天你可能太忙了,快开始 努力获得U币吧

+
@@ -29,7 +36,7 @@
- 累计 + {{name}} 累计 @@ -45,7 +52,7 @@ 我的排名 : {{currentUserRankingData.rankingNo}}
- 我的经验值 : {{currentUserRankingData.total}} + 我的经验值 : {{currentUserRankingData.total || currentUserRankingData.months || currentUserRankingData.years || currentUserRankingData.weeks}}
@@ -83,7 +90,7 @@
.
.
.
-
+
{{currentUserRankingData.rankingNo}}
{{currentUserRankingData.authorInfo.name}}
{{currentUserRankingData.authorInfo.orgInfo}}
@@ -194,6 +201,7 @@ data(){ return{ cycle:'total', + name:'累计', getUType, dialogVisible:false, tableData:[ @@ -220,8 +228,21 @@ this.getRanking(); }, methods:{ + translate(field) { + let name = ''; + switch (field) { + case 'total':name = '累计'; break; + case 'weeks':name = '本周'; break; + case 'months':name = '本月'; break; + case 'years':name = '本年'; break; + default: + break; + } + return name; + }, handleCommand(e) { this.cycle = e; + this.name = this.translate(e) this.getRanking(); }, getRanking() { @@ -242,10 +263,8 @@ } this.getUserData([res.result.currentUserRankingData.aid],[res.result.currentUserRankingData]) this.currentUserRankingData = res.result.currentUserRankingData; - console.log(this.currentUserRankingData,'this.currentUserRankingData'); const ids= []; res.result.rankingData.forEach(item=>{ - item.aid = '952948626497724414' ids.push(item.aid) item.authorInfo = { aid: "", diff --git a/src/views/user/ranking.vue b/src/views/user/ranking.vue index d4ebc9e4..0b099308 100644 --- a/src/views/user/ranking.vue +++ b/src/views/user/ranking.vue @@ -1,31 +1,33 @@ @@ -310,14 +467,15 @@ export default { display: flex; div{ // margin-right: 13%; - min-width: 90px; + min-width: 52px; font-size: 14px; font-weight: 400; color: #999999; } .bm{ - flex: 1; - margin-left: 20px; + // flex: 1; + margin-left: 50%; + // float: right; } .jy{ margin-left: auto; @@ -375,9 +533,15 @@ export default { } } .tab-bm{ - line-height: 40px; + font-size: 12px !important; + color: #666666; + margin-top: 7px; } .tab-name{ + display: flex; + ::v-deep .item-author{ + min-width: 54px !important; + } img{ width: 40px; height: 40px; @@ -400,8 +564,7 @@ export default { } } .experience{ - flex: 1; - margin-right: 118px; + min-width: 400px; .exp-hear{ width: 100%; @@ -478,15 +641,18 @@ export default { } } .Duration{ - margin-right: 118px; - flex: 1; + min-width: 400px; + .study-info{ + height: 62px !important; + background: url('../../../public/images/study-info.png') no-repeat 100% / 100% !important; + } .exp-hear{ width: 100%; - height: 65px; + height: 62px; background: url('../../../public/images/Durbg.png') no-repeat 100% / 100%; .exp-hear-text{ float: left; - line-height: 65px; + line-height: 62px; margin-left: 25px; font-size: 18px; font-weight: 600;