Skip to content

Commit b39b53b

Browse files
authored
fix style (#139)
* fix style * version * auto prettier format code
1 parent 9f03474 commit b39b53b

3 files changed

Lines changed: 41 additions & 35 deletions

File tree

src/views/btnDocs/index.vue

Lines changed: 38 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,44 @@
11
<template>
2-
<btnMenu
3-
:show_cases="show_cases"
4-
:button-text="$t('buttons.docs')"
5-
icon="book-open"
6-
:is-json="true"
7-
>
8-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24">
9-
<path
10-
fill="#fff"
11-
d="M8 13h8v-2H8zm0 3h8v-2H8zm0 3h5v-2H8zm-2 3q-.825 0-1.412-.587T4 20V4q0-.825.588-1.412T6 2h8l6 6v12q0 .825-.587 1.413T18 22zm7-13V4H6v16h12V9zM6 4v5zv16z"
12-
/>
13-
</svg>
14-
</btnMenu>
2+
<div class="dropdown-container" @click="openDocs">
3+
<span class="slot-container">
4+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24">
5+
<path
6+
fill="#fff"
7+
d="M8 13h8v-2H8zm0 3h8v-2H8zm0 3h5v-2H8zm-2 3q-.825 0-1.412-.587T4 20V4q0-.825.588-1.412T6 2h8l6 6v12q0 .825-.587 1.413T18 22zm7-13V4H6v16h12V9zM6 4v5zv16z"
8+
/>
9+
</svg>
10+
</span>
11+
<span class="button-text">{{ $t('buttons.docs') }}</span>
12+
</div>
1513
</template>
1614
<script setup lang="ts">
17-
import btnMenu from '@/components/modules/btnMenu.vue'
18-
import { onMounted, ref, watch } from 'vue'
19-
import { useI18n } from 'vue-i18n'
20-
// import { useDatasetStore } from '@/stores/datasetStore'
21-
// const datasetStore = useDatasetStore()
15+
const openDocs = () => {
16+
window.open('https://docs.bizyair.cn/', '_blank')
17+
}
18+
</script>
19+
<style scoped>
20+
.dropdown-container {
21+
display: flex;
22+
align-items: center;
23+
cursor: pointer;
24+
position: relative;
25+
padding: 0 12px;
26+
border-radius: 4px;
27+
transition: all 0.3s;
28+
}
2229
23-
const { t, locale } = useI18n()
30+
.dropdown-container:hover {
31+
background-color: #4a238e;
32+
}
2433
25-
const show_cases = ref({})
26-
show_cases.value = {
27-
[t('btnDocs.price')]: 'https://price.bizyair.cn/',
28-
[t('btnDocs.doc')]: 'https://docs.bizyair.cn/'
34+
.slot-container {
35+
margin-right: 4px;
36+
height: 16px;
2937
}
30-
watch(locale, () => {
31-
show_cases.value = {
32-
[t('btnDocs.price')]: 'https://price.bizyair.cn/',
33-
[t('btnDocs.doc')]: 'https://docs.bizyair.cn/'
34-
}
35-
})
36-
onMounted(() => {})
37-
</script>
38-
<style scoped></style>
38+
39+
.button-text {
40+
display: block;
41+
line-height: 32px;
42+
font-size: 14px;
43+
}
44+
</style>

src/views/btnProfile/DialogInfo.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@
284284
cancelText: '取消',
285285
continueText: '前往 bizyair.cn'
286286
})
287-
if (res) window.open('https://bizyair.cn', '_blank')
287+
if (res) window.open('https://bizyair.cn/user/topup', '_blank')
288288
}
289289
290290
const handleRenewClick = async () => {
@@ -294,7 +294,7 @@
294294
cancelText: '取消',
295295
continueText: '前往 bizyair.cn'
296296
})
297-
if (res) window.open('https://bizyair.cn', '_blank')
297+
if (res) window.open('https://bizyair.cn/user/topup', '_blank')
298298
}
299299
</script>
300300
<style scoped lang="less">

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.69
1+
1.2.70

0 commit comments

Comments
 (0)