fix: 修复安卓手机异常
This commit is contained in:
@@ -35,7 +35,6 @@ const userStore = useUserStore()
|
|||||||
/* 覆盖 uniapp 自带rpx效果 */
|
/* 覆盖 uniapp 自带rpx效果 */
|
||||||
html {
|
html {
|
||||||
font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
font-size: 16px !important;
|
|
||||||
}
|
}
|
||||||
/* stylelint-disable-next-line selector-type-no-unknown */
|
/* stylelint-disable-next-line selector-type-no-unknown */
|
||||||
#app {
|
#app {
|
||||||
|
|||||||
@@ -22,9 +22,4 @@ const handleClickLeft = () => {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss"></style>
|
||||||
:deep(.wd-navbar) {
|
|
||||||
--wot-navbar-title-font-size: 32rpx;
|
|
||||||
// --wot-navbar-title-font-weight: 400;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ onLoad(async () => {
|
|||||||
<style>
|
<style>
|
||||||
.official-community-page {
|
.official-community-page {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
padding-bottom: 100rpx;
|
padding-bottom: 50px;
|
||||||
background-image: url('@/static/images/bg.png');
|
background-image: url('@/static/images/bg.png');
|
||||||
background-position: top;
|
background-position: top;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ watch(
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.team-page {
|
.team-page {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
padding-bottom: 100rpx;
|
padding-bottom: 50px;
|
||||||
background-image: url('@/static/images/bg.png');
|
background-image: url('@/static/images/bg.png');
|
||||||
background-position: top;
|
background-position: top;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ onLoad(() => {
|
|||||||
.login-container {
|
.login-container {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
padding-bottom: 200rpx;
|
padding-bottom: 50px;
|
||||||
background-image: url('@/static/images/login-bg.png');
|
background-image: url('@/static/images/login-bg.png');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<wd-popup
|
<wd-popup
|
||||||
v-model="showRealName"
|
v-model="showRealName"
|
||||||
custom-style="border-radius:32rpx;"
|
custom-style="border-radius:0.2rem;"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
lockScroll
|
lockScroll
|
||||||
>
|
>
|
||||||
@@ -77,7 +77,7 @@
|
|||||||
@click="handleRealName"
|
@click="handleRealName"
|
||||||
/>
|
/>
|
||||||
</wd-popup>
|
</wd-popup>
|
||||||
<wd-popup closable v-model="showReward" custom-style="border-radius:32rpx;">
|
<wd-popup closable v-model="showReward" custom-style="border-radius:0.2rem;">
|
||||||
<image
|
<image
|
||||||
class="w-300 h-416"
|
class="w-300 h-416"
|
||||||
src="@/static/images/reward-bg.jpg"
|
src="@/static/images/reward-bg.jpg"
|
||||||
@@ -158,7 +158,7 @@ onShow(async () => {
|
|||||||
<style>
|
<style>
|
||||||
.home-page {
|
.home-page {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
padding-bottom: 100rpx;
|
padding-bottom: 50px;
|
||||||
background-image: url('@/static/images/bg.png');
|
background-image: url('@/static/images/bg.png');
|
||||||
background-position: top;
|
background-position: top;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
|||||||
@@ -120,13 +120,13 @@ const onInvest = mergeStep(async (item: any) => {
|
|||||||
background-image: url('@/static/images/invest/bg.png');
|
background-image: url('@/static/images/invest/bg.png');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-attachment: fixed;
|
background-attachment: fixed;
|
||||||
background-position: top -80rpx center;
|
background-position: top -40px center;
|
||||||
background-size: 100%;
|
background-size: 100%;
|
||||||
}
|
}
|
||||||
.invest-item {
|
.invest-item {
|
||||||
width: 690rpx;
|
width: 345px;
|
||||||
height: 352rpx;
|
height: 176px;
|
||||||
margin: 0 auto 30rpx;
|
margin: 0 auto 15px;
|
||||||
background-image: url('@/static/images/invest/item-bg.png');
|
background-image: url('@/static/images/invest/item-bg.png');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ onLoad(() => {
|
|||||||
.login-container {
|
.login-container {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
padding-bottom: 200rpx;
|
padding-bottom: 50px;
|
||||||
background-image: url('@/static/images/login-bg.png');
|
background-image: url('@/static/images/login-bg.png');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ const handleConvert = () => {
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.my-page {
|
.my-page {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
padding-bottom: 100rpx;
|
padding-bottom: 50px;
|
||||||
background-image: url('@/static/images/my/bg.jpg');
|
background-image: url('@/static/images/my/bg.jpg');
|
||||||
background-position: top;
|
background-position: top;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ onLoad(async (options) => {
|
|||||||
.login-container {
|
.login-container {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
padding-bottom: 200rpx;
|
padding-bottom: 50px;
|
||||||
background-image: url('@/static/images/login-bg.png');
|
background-image: url('@/static/images/login-bg.png');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
|||||||
+6
-2
@@ -113,12 +113,16 @@ export default ({ command, mode }) => {
|
|||||||
css: {
|
css: {
|
||||||
postcss: {
|
postcss: {
|
||||||
plugins: [
|
plugins: [
|
||||||
autoprefixer(),
|
autoprefixer({
|
||||||
|
overrideBrowserslist: ['Android >= 4.0', 'iOS >= 8'],
|
||||||
|
}),
|
||||||
viewport({
|
viewport({
|
||||||
|
mobileUnit: 'rem',
|
||||||
appSelector: '#app',
|
appSelector: '#app',
|
||||||
|
// selectorBlackList: ['wd-'],
|
||||||
viewportWidth: 375,
|
viewportWidth: 375,
|
||||||
maxDisplayWidth: 600,
|
maxDisplayWidth: 600,
|
||||||
rootContainingBlockSelectorList: ['van-tabbar', 'van-popup'],
|
// rootContainingBlockSelectorList: ['wd-navbar__title'],
|
||||||
border: true,
|
border: true,
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user