增加字体大小设置
This commit is contained in:
@@ -98,7 +98,22 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 分组4:高级设置 -->
|
||||
<!-- 分组4:其他设置 -->
|
||||
<view class="settings-group">
|
||||
<view class="settings-item" @click="navigateTo('/pages/settings/other-settings')">
|
||||
<view class="s-icon" style="background:#f9f0ff;">
|
||||
<uni-icons type="font" size="20" color="#722ed1"></uni-icons>
|
||||
</view>
|
||||
<view class="s-text">
|
||||
<text class="s-title">其他设置</text>
|
||||
<text class="s-desc">字体大小、显示设置</text>
|
||||
</view>
|
||||
<text class="s-extra">{{ currentFontLabel }}</text>
|
||||
<uni-icons type="right" size="14" color="#cccccc"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 分组5:高级设置 -->
|
||||
<view class="settings-group">
|
||||
<view class="settings-item" @click="navigateTo('/pages/settings/env-config')">
|
||||
<view class="s-icon" style="background:#fff7e6;">
|
||||
@@ -112,7 +127,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 分组5:退出登录 -->
|
||||
<!-- 分组6:退出登录 -->
|
||||
<view class="settings-group">
|
||||
<view class="settings-item" @click="handleLogout">
|
||||
<view class="s-icon" style="background:#fff1f0;">
|
||||
@@ -136,15 +151,22 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapGetters } from 'vuex'
|
||||
import { mapGetters, mapGetters as mapFontGetters } from 'vuex'
|
||||
import { api } from '@/api'
|
||||
export default {
|
||||
computed: {
|
||||
// 检查设备是否已配置(从 Vuex store 获取)
|
||||
...mapGetters('print', ['hasSavedConfig']),
|
||||
...mapGetters('user', ['enterpriseName', 'enterpriseInfo']),
|
||||
// 从 Vuex 读取字体标签
|
||||
...mapFontGetters('font', ['fontScaleLabel']),
|
||||
deviceConfigured() {
|
||||
return this.hasSavedConfig
|
||||
},
|
||||
|
||||
// 显示字体标签
|
||||
currentFontLabel() {
|
||||
return this.fontScaleLabel || '默认'
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -164,6 +186,7 @@ export default {
|
||||
const enterpriseInfo = await this.$store.dispatch('user/getEnterpriseInfo')
|
||||
this.hospitalName = enterpriseInfo.fullEnterpriseName
|
||||
},
|
||||
|
||||
navigateTo(path) { uni.navigateTo({ url: path }) },
|
||||
handleLogout() {
|
||||
uni.showModal({
|
||||
@@ -277,7 +300,7 @@ export default {
|
||||
|
||||
.s-arrow {
|
||||
color: #cccccc;
|
||||
font-size: 14px;
|
||||
font-size: $font-size-md;
|
||||
}
|
||||
|
||||
.version-info {
|
||||
|
||||
Reference in New Issue
Block a user