@jx3box/jx3box-common-ui 7.5.7 → 7.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "7.5.7",
3
+ "version": "7.5.8",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,8 +1,11 @@
1
1
  <template>
2
2
  <div class="c-post-topic" v-show="topicInfo">
3
3
  <div class="c-post-topic__banner">
4
- <span class="c-topic-text">{{ topicText }}</span>
5
- <img class="c-topic-bg" src="../../assets/img/rightsidebar/topic_bg.svg" alt="">
4
+ <div class="c-topic-text">
5
+ <div class="c-topic-text__year">{{ year }}</div>
6
+ <div class="c-topic-text__text">{{ topicText }}</div>
7
+ </div>
8
+ <img class="c-topic-bg" src="../../assets/img/rightsidebar/topic_bg_bps.svg" alt="">
6
9
  </div>
7
10
  <div class="c-post-topic__img">
8
11
  <img :src="topicImage" alt="">
@@ -19,11 +22,11 @@ export default {
19
22
  props: {
20
23
  type: {
21
24
  type: String,
22
- default: "face",
25
+ default: "bps",
23
26
  },
24
27
  id: {
25
28
  type: Number,
26
- default: 0,
29
+ default: 46917,
27
30
  },
28
31
  },
29
32
  data() {
@@ -33,7 +36,10 @@ export default {
33
36
  },
34
37
  computed: {
35
38
  topicText() {
36
- return this.topicInfo ? `${dayjs(this.topicInfo.created_at).format('YYYY年MM月DD日')}荣登头条榜` : ''
39
+ return this.topicInfo ? `${dayjs(this.topicInfo.created_at).format('MM月DD日')}荣登头条榜` : ''
40
+ },
41
+ year() {
42
+ return dayjs(this.topicInfo.created_at).format('YYYY年')
37
43
  },
38
44
  topicImage() {
39
45
  return this.topicInfo ? getThumbnail(this.topicInfo.img, [260*2, 78*2]) : ''
@@ -71,26 +77,32 @@ export default {
71
77
  }
72
78
  .c-post-topic__banner {
73
79
  position: relative;
74
- height: 100px;
75
- margin-top: 0;
80
+ // height: 100px;
81
+ margin-bottom: 10px;
76
82
  .c-topic-text {
77
83
  font-size: 12px;
78
- font-weight: 600;
84
+ font-weight: 700;
79
85
  position: absolute;
80
- top: 50%;
81
- left: 50%;
82
- transform: translate(-50%, -50%);
86
+ bottom: 16px;
87
+ right: 0;
88
+ // left: 50%;
89
+ // transform: translate(-50%, -50%);
83
90
  z-index: 1;
84
- color: #fff;
91
+ color: #FFD28F;
85
92
  letter-spacing: 1px;
86
93
  white-space: nowrap;
94
+ margin-right: 8px;
95
+ }
96
+ .c-topic-text__year {
97
+ margin-bottom: 2px;
98
+ text-align: right;
87
99
  }
88
100
  .c-topic-bg {
89
101
  width: 270px;
90
- position: absolute;
91
- top: 50%;
92
- left: calc(50% + 5px);
93
- transform: translate(-50%, -50%);
102
+ // position: absolute;
103
+ // top: 50%;
104
+ // left: calc(50% + 5px);
105
+ // transform: translate(-50%, -50%);
94
106
  }
95
107
  }
96
108
  .c-post-topic__img {