@jx3box/jx3box-common-ui 7.7.4 → 7.7.6
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/assets/css/thx.less
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><svg width="24" height="24" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M41 44V20H7V44H41Z" fill="none" stroke="#fff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M24 44V20" stroke="#fff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M41 44H7" stroke="#fff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><rect x="4" y="12" width="40" height="8" fill="none" stroke="#fff" stroke-width="3" stroke-linejoin="round"/><path d="M16 4L24 12L32 4" stroke="#fff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
package/package.json
CHANGED
package/src/header/shop.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="c-header-panel c-header-shop">
|
|
3
3
|
<el-tooltip effect="dark" content="积分商城" placement="bottom" popper-class="c-header-tooltip">
|
|
4
4
|
<a class="u-present" href="/vip/mall" target="_blank">
|
|
5
|
-
<
|
|
5
|
+
<img class="u-icon" svg-inline src="../../assets/img/header/gift.svg" />
|
|
6
6
|
</a>
|
|
7
7
|
</el-tooltip>
|
|
8
8
|
</div>
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
.u-icon {
|
|
23
|
-
font-size: 15px;
|
|
24
23
|
color: #fff;
|
|
24
|
+
.size(16px);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
</style>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<em class="u-label">本月状态</em>
|
|
14
14
|
已用<b>{{ this.used }}</b> 剩余<b>{{ this.left }}</b> 总计<b>{{ this.total }}</b>
|
|
15
15
|
<el-progress
|
|
16
|
-
:percentage="100 - (this.used * 100
|
|
16
|
+
:percentage="this.total ? 100 - (this.used * 100 / this.total) : 0"
|
|
17
17
|
:stroke-width="15"
|
|
18
18
|
:text-inside="true"
|
|
19
19
|
></el-progress>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<div class="u-left">
|
|
16
16
|
<em class="u-label">本月状态</em>
|
|
17
17
|
已用<b>{{this.used}}</b> 剩余<b>{{this.left}}</b> 总计<b>{{this.total}}</b>
|
|
18
|
-
<el-progress :percentage="100 - (this.used * 100 / this.total)" :stroke-width="15" :text-inside="true"></el-progress>
|
|
18
|
+
<el-progress :percentage="this.total ? 100 - (this.used * 100 / this.total) : 0" :stroke-width="15" :text-inside="true"></el-progress>
|
|
19
19
|
</div>
|
|
20
20
|
<div class="u-list">
|
|
21
21
|
<em class="u-label">❤️ 品鉴</em>
|
|
@@ -112,8 +112,16 @@ export default {
|
|
|
112
112
|
return location.href.includes('origin') ? 'origin' : 'std'
|
|
113
113
|
},
|
|
114
114
|
fitPoints : function (){
|
|
115
|
-
|
|
115
|
+
const points = this.points.filter(item => item <= this.left)
|
|
116
|
+
if (this.isSignAuthor) {
|
|
117
|
+
// 最大值为1000
|
|
118
|
+
return points.filter(item => item <= 1000)
|
|
119
|
+
}
|
|
120
|
+
return points
|
|
116
121
|
},
|
|
122
|
+
isSignAuthor : function (){
|
|
123
|
+
return User.getInfo().group == 32;
|
|
124
|
+
}
|
|
117
125
|
},
|
|
118
126
|
watch: {
|
|
119
127
|
own : function (val){
|