mirror of
https://github.com/hi2shark/nazhua.git
synced 2026-01-13 07:40:44 +08:00
✨ 更新服务器信息框,添加标签列表以显示网络路由信息;调整样式以改善视觉效果
This commit is contained in:
parent
14863a8390
commit
98581d0074
@ -372,8 +372,8 @@ const processCount = computed(() => props.info?.State?.ProcessCount);
|
||||
padding: 0 4px;
|
||||
line-height: 18px;
|
||||
font-size: 12px;
|
||||
color: #111;
|
||||
background-color: rgba(#fff, 0.8);
|
||||
color: #ddd;
|
||||
background-color: #294a66;
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
@ -21,6 +21,18 @@
|
||||
<span class="text-item value-text">{{ billAndPlan.remainingTime.value }}</span>
|
||||
</span>
|
||||
</template>
|
||||
<div
|
||||
v-else-if="tagList"
|
||||
class="tag-list"
|
||||
>
|
||||
<span
|
||||
v-for="(tagItem, index) in tagList"
|
||||
:key="`${tagItem}_${index}`"
|
||||
class="tag-item"
|
||||
>
|
||||
{{ tagItem }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="billing-and-order-link">
|
||||
<div
|
||||
@ -78,6 +90,14 @@ const showBuyBtn = computed(() => !!props.info?.PublicNote?.customData?.orderLin
|
||||
function toBuy() {
|
||||
window.open(props.info?.PublicNote?.customData?.orderLink);
|
||||
}
|
||||
|
||||
const tagList = computed(() => {
|
||||
const list = [];
|
||||
if (props?.info?.PublicNote?.planDataMod?.networkRoute) {
|
||||
list.push(...props.info.PublicNote.planDataMod.networkRoute.split(','));
|
||||
}
|
||||
return list;
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@ -119,6 +139,21 @@ function toBuy() {
|
||||
}
|
||||
}
|
||||
|
||||
.tag-list {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
|
||||
.tag-item {
|
||||
height: 18px;
|
||||
padding: 0 4px;
|
||||
line-height: 18px;
|
||||
font-size: 12px;
|
||||
color: #ddd;
|
||||
background-color: #294a66;
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
.billing-and-order-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user