Commit 1706f442 authored by 528360026@qq.com's avatar 528360026@qq.com

修复横屏样式错乱问题

parent f815c534
<script> <script>
export default { export default {
onLaunch: function() { onLaunch: function () {
// console.log('App Launch') // #ifdef APP-PLUS
}, plus.navigator.setFullscreen(true);
onShow: function() { plus.screen.lockOrientation('landscape-primary');
// console.log('App Show') // #endif
}, },
onHide: function() { onShow: function () {
// console.log('App Hide') },
} onHide: function () {
} }
}
</script> </script>
<style lang="scss"> <style lang="scss">
/*每个页面公共css */ /*每个页面公共css */
@import "@/uview-ui/index.scss"; @import "@/uview-ui/index.scss";
</style> </style>
...@@ -28,6 +28,12 @@ ...@@ -28,6 +28,12 @@
"navigationBarBackgroundColor": "#F8F8F8", "navigationBarBackgroundColor": "#F8F8F8",
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"backgroundColor": "#F8F8F8", "backgroundColor": "#F8F8F8",
"rpxCalcMaxDeviceWidth": 750,
// rpx 计算所支持的最大设备宽度,单位 px,默认值为 960
"rpxCalcBaseDeviceWidth": 375,
// rpx 计算使用的基准设备宽度,设备实际宽度超出 rpx 计算所支持的最大设备宽度时将按基准宽度计算,单位 px,默认值为 375
"rpxCalcIncludeWidth": 750,
// rpx 计算特殊处理的值,始终按实际的设备宽度计算,单位 rpx,默认值为 750
"app-plus": { "app-plus": {
"titleNView": false "titleNView": false
} }
......
...@@ -200,7 +200,7 @@ export default { ...@@ -200,7 +200,7 @@ export default {
height: inherit; height: inherit;
.header-logo { .header-logo {
width: 180rpx; width: 90%;
margin: 40rpx auto; margin: 40rpx auto;
display: block; display: block;
} }
...@@ -270,7 +270,7 @@ img { ...@@ -270,7 +270,7 @@ img {
.setting-body { .setting-body {
position: absolute; position: absolute;
bottom: 50rpx; bottom: 20rpx;
width: 200rpx; width: 200rpx;
margin: 0 auto; margin: 0 auto;
font-size: 36rpx; font-size: 36rpx;
......
...@@ -731,6 +731,7 @@ export default { ...@@ -731,6 +731,7 @@ export default {
.prod-body-left-task { .prod-body-left-task {
height: calc(100% - 80rpx - 500rpx); height: calc(100% - 80rpx - 500rpx);
min-height: 400rpx;
border: 1px solid rgb(232, 232, 232); border: 1px solid rgb(232, 232, 232);
} }
......
...@@ -20,4 +20,5 @@ ...@@ -20,4 +20,5 @@
// H5特有的样式 // H5特有的样式
/* #ifdef H5 */ /* #ifdef H5 */
@import "./libs/css/style.h5.scss"; @import "./libs/css/style.h5.scss";
/* #endif */ /* #endif */
\ No newline at end of file
...@@ -17,7 +17,7 @@ module.exports = { ...@@ -17,7 +17,7 @@ module.exports = {
devServer: { devServer: {
proxy: { proxy: {
'/api': { '/api': {
target: 'http://192.168.3.91:8080/', target: 'http://localhost:8080/',
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/api': '' '^/api': ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment