Commit 120573f9 by fanx

系统字体设置

1 parent 5869b7f7
...@@ -65,7 +65,7 @@ export default { ...@@ -65,7 +65,7 @@ export default {
faceIdChecked: false, // 面容ID解锁状态 faceIdChecked: false, // 面容ID解锁状态
showSysFont: false, showSysFont: false,
sysFontText: '标准', sysFontText: '标准',
columns: ['较小', '标准', '较大', '超大'], columns: [{ text: '较小', value: 98 }, { text: '标准', value: 100 }, { text: '较大', value: 110 }, { text: '超大', value: 120 }],
} }
}, },
mounted() { mounted() {
...@@ -160,18 +160,9 @@ export default { ...@@ -160,18 +160,9 @@ export default {
}) })
}, },
// 切换字体大小 // 切换字体大小
onConfirm(value) { onConfirm(opt) {
this.sysFontText = value this.sysFontText = opt.text
let size; const size = opt.value
if (value == '较小') {
size = 95
} else if (value == '较大') {
size = 110
} else if (value == '超大') {
size = 120
} else {
size = 100
}
NativeApi.nativeTextZoom({ NativeApi.nativeTextZoom({
value: size value: size
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!