|
@@ -6,7 +6,10 @@
|
|
class="wave-img"
|
|
class="wave-img"
|
|
></image>
|
|
></image>
|
|
|
|
|
|
- <view class="logo-content">
|
|
|
|
|
|
+ <view
|
|
|
|
+ class="logo-content"
|
|
|
|
+ :style="`margin-top: ${globalData.navBarHeight}px`"
|
|
|
|
+ >
|
|
<image :src="imagePath" mode="aspectFit" class="logo-image"></image>
|
|
<image :src="imagePath" mode="aspectFit" class="logo-image"></image>
|
|
<text class="title">金邻助家</text>
|
|
<text class="title">金邻助家</text>
|
|
</view>
|
|
</view>
|
|
@@ -31,7 +34,7 @@
|
|
label="我已认真阅读、理解并同意"
|
|
label="我已认真阅读、理解并同意"
|
|
name="agree"
|
|
name="agree"
|
|
usedAlone
|
|
usedAlone
|
|
- v-model:checked="checkboxValue"
|
|
|
|
|
|
+ v-model="checkboxValue"
|
|
class="text-grey1"
|
|
class="text-grey1"
|
|
>
|
|
>
|
|
</up-checkbox>
|
|
</up-checkbox>
|
|
@@ -46,6 +49,7 @@
|
|
import { ref, reactive, onMounted } from 'vue'
|
|
import { ref, reactive, onMounted } from 'vue'
|
|
import { useRouter } from 'vue-router' // 根据实际情况选择路由库
|
|
import { useRouter } from 'vue-router' // 根据实际情况选择路由库
|
|
import store from '@/store'
|
|
import store from '@/store'
|
|
|
|
+import { onShow } from '@dcloudio/uni-app'
|
|
|
|
|
|
const imagePath = '/static/9efd1.png' // Path to the logo image (red tree)
|
|
const imagePath = '/static/9efd1.png' // Path to the logo image (red tree)
|
|
|
|
|
|
@@ -60,6 +64,10 @@ const loginForm = reactive({
|
|
})
|
|
})
|
|
|
|
|
|
const checkboxValue = ref(false)
|
|
const checkboxValue = ref(false)
|
|
|
|
+const globalData = ref({
|
|
|
|
+ statusBarHeight: 47,
|
|
|
|
+ navBarHeight: 91,
|
|
|
|
+})
|
|
|
|
|
|
// const codeUrl = ref(""); // Not used in the new design
|
|
// const codeUrl = ref(""); // Not used in the new design
|
|
// const captchaEnabled = ref(true); // Not used in the new design
|
|
// const captchaEnabled = ref(true); // Not used in the new design
|
|
@@ -72,17 +80,22 @@ const handleUserRegister = () => {
|
|
}
|
|
}
|
|
|
|
|
|
const WeChat = {
|
|
const WeChat = {
|
|
- width: '280rpx',
|
|
|
|
|
|
+ width: '530rpx',
|
|
height: '96rpx',
|
|
height: '96rpx',
|
|
opacity: 1,
|
|
opacity: 1,
|
|
- background: '#0E0404',
|
|
|
|
|
|
+ background: '#8B4F2D',
|
|
color: '#FFFFFF',
|
|
color: '#FFFFFF',
|
|
borderRadius: '48rpx',
|
|
borderRadius: '48rpx',
|
|
- fontWeight: '500',
|
|
|
|
|
|
+ fontWeight: '700px',
|
|
fontSize: '32rpx',
|
|
fontSize: '32rpx',
|
|
- marginLeft: '48rpx',
|
|
|
|
- marginRight: '422rpx',
|
|
|
|
- marginBottom: '32rpx',
|
|
|
|
|
|
+ marginLeft: 'auto',
|
|
|
|
+ marginRight: 'auto',
|
|
|
|
+ marginBottom: '10rpx',
|
|
|
|
+ display: 'flex',
|
|
|
|
+ justifyContent: 'center',
|
|
|
|
+ alignItems: 'center',
|
|
|
|
+ border: 'none',
|
|
|
|
+ boxShadow: 'none',
|
|
}
|
|
}
|
|
|
|
|
|
// 隐私协议
|
|
// 隐私协议
|
|
@@ -179,6 +192,22 @@ const loginSuccess = () => {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// 获取胶囊位置信息
|
|
|
|
+const getSystemInfo = () => {
|
|
|
|
+ uni.getSystemInfo({
|
|
|
|
+ success: (res) => {
|
|
|
|
+ const statusBarHeight = res.statusBarHeight
|
|
|
|
+ const navBarHeight =
|
|
|
|
+ res.platform === 'android' ? 48 : 44 + res.statusBarHeight
|
|
|
|
+ globalData.value = { statusBarHeight, navBarHeight }
|
|
|
|
+ },
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+onShow(() => {
|
|
|
|
+ getSystemInfo()
|
|
|
|
+})
|
|
|
|
+
|
|
// 页面加载时
|
|
// 页面加载时
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
uni.setStorageSync('userType', 0)
|
|
uni.setStorageSync('userType', 0)
|
|
@@ -191,19 +220,22 @@ onMounted(() => {
|
|
timingFunc: 'easeIn',
|
|
timingFunc: 'easeIn',
|
|
},
|
|
},
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
+ getSystemInfo()
|
|
})
|
|
})
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.normal-login-container {
|
|
.normal-login-container {
|
|
// border: 2px solid red;
|
|
// border: 2px solid red;
|
|
- width: 750rpx;
|
|
|
|
- height: 1624rpx;
|
|
|
|
|
|
+ width: 100vw;
|
|
|
|
+ height: 100vh;
|
|
// width: 100vw;
|
|
// width: 100vw;
|
|
// height: 100vh;
|
|
// height: 100vh;
|
|
border-radius: 48rpx;
|
|
border-radius: 48rpx;
|
|
background: linear-gradient(156deg, #f5c954 -4%, #f66c44 110%);
|
|
background: linear-gradient(156deg, #f5c954 -4%, #f66c44 110%);
|
|
position: relative;
|
|
position: relative;
|
|
|
|
+ overflow-x: hidden;
|
|
.wave-img {
|
|
.wave-img {
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 0;
|
|
top: 0;
|
|
@@ -220,6 +252,8 @@ onMounted(() => {
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
align-items: center;
|
|
|
|
+ position: relative;
|
|
|
|
+ z-index: 1;
|
|
.logo-image {
|
|
.logo-image {
|
|
width: 90px;
|
|
width: 90px;
|
|
height: 78px;
|
|
height: 78px;
|
|
@@ -233,7 +267,7 @@ onMounted(() => {
|
|
height: 60rpx;
|
|
height: 60rpx;
|
|
font-family: Poppins;
|
|
font-family: Poppins;
|
|
font-size: 46rpx;
|
|
font-size: 46rpx;
|
|
- font-weight: 600;
|
|
|
|
|
|
+ font-weight: 400;
|
|
line-height: 60rpx;
|
|
line-height: 60rpx;
|
|
letter-spacing: normal;
|
|
letter-spacing: normal;
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
@@ -249,14 +283,14 @@ onMounted(() => {
|
|
width: 720rpx;
|
|
width: 720rpx;
|
|
height: 334rpx;
|
|
height: 334rpx;
|
|
margin-top: 0;
|
|
margin-top: 0;
|
|
- margin-bottom: 148rpx;
|
|
|
|
|
|
+ margin-bottom: 50rpx;
|
|
margin-right: 136rpx;
|
|
margin-right: 136rpx;
|
|
margin-left: 136rpx;
|
|
margin-left: 136rpx;
|
|
}
|
|
}
|
|
|
|
|
|
.slogan-content {
|
|
.slogan-content {
|
|
margin-top: 0;
|
|
margin-top: 0;
|
|
- margin-bottom: 148rpx;
|
|
|
|
|
|
+ margin-bottom: 380rpx;
|
|
margin-right: 300rpx;
|
|
margin-right: 300rpx;
|
|
margin-left: 300rpx;
|
|
margin-left: 300rpx;
|
|
z-index: 1;
|
|
z-index: 1;
|
|
@@ -265,7 +299,7 @@ onMounted(() => {
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
align-items: center;
|
|
width: 448rpx;
|
|
width: 448rpx;
|
|
- height: 104rpx;
|
|
|
|
|
|
+ height: 52rpx;
|
|
font-family: Poppins;
|
|
font-family: Poppins;
|
|
font-size: 32rpx;
|
|
font-size: 32rpx;
|
|
font-weight: 600;
|
|
font-weight: 600;
|
|
@@ -275,4 +309,32 @@ onMounted(() => {
|
|
color: #824727;
|
|
color: #824727;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+.actions-container {
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ align-items: center;
|
|
|
|
+ width: 100%;
|
|
|
|
+ z-index: 1;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.xieyi {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ flex-wrap: wrap;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.text-blue {
|
|
|
|
+ color: #1976d2;
|
|
|
|
+ margin: 0 4rpx;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.text-grey1 {
|
|
|
|
+ color: #333333;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.text-center {
|
|
|
|
+ text-align: center;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|