优化游戏界面
This commit is contained in:
parent
2c28dd5cfd
commit
6242e47490
2
main.js
2
main.js
|
|
@ -29,7 +29,7 @@ export function createApp() {
|
||||||
app.config.globalProperties.$system = plus.os.name;
|
app.config.globalProperties.$system = plus.os.name;
|
||||||
// #endif
|
// #endif
|
||||||
app.config.globalProperties.$systemInfo = systemInfo
|
app.config.globalProperties.$systemInfo = systemInfo
|
||||||
uni.setStorageSync('version', '1.0.6.sp20')
|
uni.setStorageSync('version', '1.0.6.sp21')
|
||||||
app.config.globalProperties.$version = uni.getStorageSync('version')
|
app.config.globalProperties.$version = uni.getStorageSync('version')
|
||||||
app.use(globalMethods);
|
app.use(globalMethods);
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -135,9 +135,9 @@ const characterImgWidth = ref(300); // 初始宽度兜底
|
||||||
|
|
||||||
const characterStyle = computed(() => {
|
const characterStyle = computed(() => {
|
||||||
if (hePingData.type == 1) {
|
if (hePingData.type == 1) {
|
||||||
return `position: absolute; left: 50%; bottom:43%; transform: translate(-50%,50%); height: 300px; width: ${characterImgWidth.value}px;`;
|
return `position: absolute; left: 50%; bottom:43%; transform: translate(-50%,50%); height: 300px; width: 300px;`;
|
||||||
} else {
|
} else {
|
||||||
return `position: absolute; left: 300px; bottom: 50%;transform: translate(-50%,50%); height: 300px; width: ${characterImgWidth.value}px;`;
|
return `position: absolute; left: 300px; bottom: 50%;transform: translate(-50%,50%); height: 300px; width: 300px;`;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -196,9 +196,9 @@ const characterImgHeight = ref(350); // 初始高度兜底
|
||||||
|
|
||||||
const characterStyle = computed(() => {
|
const characterStyle = computed(() => {
|
||||||
if (wuweiData.type == 1) {
|
if (wuweiData.type == 1) {
|
||||||
return `position: absolute; right: 77px; bottom: 0; width: 300px; height: ${characterImgHeight.value}px;`;
|
return `position: absolute; right: 77px; bottom: 0; width: 300px; height: 350px;`;
|
||||||
} else {
|
} else {
|
||||||
return `position: absolute; right: 210px; bottom: 0; width: 300px; height: ${characterImgHeight.value}px;`;
|
return `position: absolute; right: 210px; bottom: 0; width: 300px; height: 350px;`;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue