优化手机显示效果
This commit is contained in:
parent
81d57343a2
commit
b81a4ab5cd
|
|
@ -2,7 +2,7 @@
|
||||||
"version" : "1.0",
|
"version" : "1.0",
|
||||||
"configurations" : [
|
"configurations" : [
|
||||||
{
|
{
|
||||||
"playground" : "custom",
|
"playground" : "standard",
|
||||||
"type" : "uni-app:app-android"
|
"type" : "uni-app:app-android"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
30
App.vue
30
App.vue
|
|
@ -1,9 +1,9 @@
|
||||||
<script>
|
<script>
|
||||||
import { init } from '@/api/init.js'
|
import { init } from '@/api/init.js';
|
||||||
import http from '@/http/http.js'
|
import http from '@/http/http.js';
|
||||||
export default {
|
export default {
|
||||||
onLaunch: function () {
|
onLaunch: function () {
|
||||||
console.log('App Launch')
|
console.log('App Launch');
|
||||||
// const systemInfo = uni.getSystemInfoSync();
|
// const systemInfo = uni.getSystemInfoSync();
|
||||||
// const isA = systemInfo.platform === 'android'
|
// const isA = systemInfo.platform === 'android'
|
||||||
// if (isA) {
|
// if (isA) {
|
||||||
|
|
@ -11,28 +11,27 @@ export default {
|
||||||
// } else {
|
// } else {
|
||||||
// uni.setStorageSync('isAI', false)
|
// uni.setStorageSync('isAI', false)
|
||||||
// }
|
// }
|
||||||
|
|
||||||
},
|
},
|
||||||
onShow: function () {
|
onShow: function () {
|
||||||
init()
|
init();
|
||||||
// ios是否在审核
|
// ios是否在审核
|
||||||
http.request({
|
http.request({
|
||||||
url: '/common/type/919',
|
url: '/common/type/919'
|
||||||
}).then(res => {
|
}).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
uni.setStorageSync('isExamine', res.data.value)
|
uni.setStorageSync('isExamine', res.data.value);
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
onHide: function () {
|
onHide: function () {
|
||||||
console.log('App Hide')
|
console.log('App Hide');
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
/*每个页面公共css */
|
/*每个页面公共css */
|
||||||
@import "uview-plus/index.scss";
|
@import 'uview-plus/index.scss';
|
||||||
|
|
||||||
ul,
|
ul,
|
||||||
li {
|
li {
|
||||||
|
|
@ -119,7 +118,10 @@ web-view {
|
||||||
top: 800rpx;
|
top: 800rpx;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
}
|
}
|
||||||
.u-image{
|
.u-image {
|
||||||
background-color: transparent!important;
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
.u-status-bar {
|
||||||
|
height: var(--status-bar-height);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -61,10 +61,12 @@ onLoad((e) => {
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style>
|
||||||
page {
|
page {
|
||||||
background: #f5f5f5;
|
background: #f5f5f5;
|
||||||
}
|
}
|
||||||
|
</style>
|
||||||
|
<style scoped lang="scss">
|
||||||
.container {
|
.container {
|
||||||
padding: 28upx;
|
padding: 28upx;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -167,11 +167,14 @@ onShow(() => {
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
page {
|
||||||
|
background: #f5f7ff;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
$bgColor: #f5f7ff;
|
$bgColor: #f5f7ff;
|
||||||
page {
|
|
||||||
background: $bgColor;
|
|
||||||
}
|
|
||||||
.container {
|
.container {
|
||||||
font-size: 28upx;
|
font-size: 28upx;
|
||||||
color: #333;
|
color: #333;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue