|
@@ -2,17 +2,26 @@
|
|
|
<view class="container" style="background-image: url('../../static/login.gif');height:100vh;">
|
|
|
<view :style="{ height: height }" />
|
|
|
<view class="logo">
|
|
|
- <u--image src="/static/img/logo.png" width="39.200vw" height="12.533vw" mode="scaleToFill">
|
|
|
+ <u--image src="/static/img/LOGO-c1524a7d.svg" width="39.200vw" height="12.533vw" mode="scaleToFill">
|
|
|
<template v-slot:loading>
|
|
|
<u-loading-icon color="red"></u-loading-icon>
|
|
|
</template>
|
|
|
<view slot="error" style="font-size: 12px;">加载失败</view>
|
|
|
</u--image>
|
|
|
</view>
|
|
|
- <account v-show="loginMethod == 'account'" />
|
|
|
- <phone v-show="loginMethod == 'phone'" />
|
|
|
+ <account :isAgreement="isAgreement" v-show="loginMethod == 'account'" />
|
|
|
+ <phone :isAgreement="isAgreement" v-show="loginMethod == 'phone'" />
|
|
|
<view style="height: 25px;" />
|
|
|
- <other-login :loginMethod="loginMethod" @onChange="changeLoginMethod" />
|
|
|
+
|
|
|
+ <view class="agreement">
|
|
|
+ <u-checkbox :checked="isAgreement" shape="circle" @change="changeAgreement" />
|
|
|
+ <view @click="changeAgreement">
|
|
|
+ 已阅读并同意
|
|
|
+ </view>
|
|
|
+ <text class="nav">《隐私协议》</text>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <other-login :isAgreement="isAgreement" :loginMethod="loginMethod" @onChange="changeLoginMethod" />
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -29,17 +38,22 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
loginMethod: "",
|
|
|
- height: this.usePort == 'h5' ? "100px" : "150px"
|
|
|
+ height: this.usePort == 'h5' ? "100px" : "150px",
|
|
|
+ isAgreement: false
|
|
|
};
|
|
|
},
|
|
|
onLoad() {
|
|
|
this.loginMethod = uni.getStorageSync('loginMethod') || 'account';//登录方式
|
|
|
getCity.bind(this)().then(res => res && uni.setStorageSync("city", res))
|
|
|
+ if (uni.getStorageSync("isAgreement")) this.isAgreement = true;
|
|
|
},
|
|
|
methods: {
|
|
|
/* 修改登录方式 */
|
|
|
changeLoginMethod(Method) {
|
|
|
this.loginMethod = Method;
|
|
|
+ },
|
|
|
+ changeAgreement() {
|
|
|
+ this.isAgreement = !this.isAgreement;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -56,5 +70,29 @@ export default {
|
|
|
height: 42px;
|
|
|
margin: 0 auto 50px;
|
|
|
}
|
|
|
+
|
|
|
+ .agreement {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ margin: 0 auto;
|
|
|
+ height: 17px;
|
|
|
+ font-size: 12px;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #fff;
|
|
|
+
|
|
|
+ .nav {
|
|
|
+ color: #16FFF6;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/.u-checkbox__icon-wrap,
|
|
|
+ /deep/.u-checkbox__icon-wrap--circle {
|
|
|
+ width: 16px !important;
|
|
|
+ height: 16px !important;
|
|
|
+
|
|
|
+ .u-icon__icon {
|
|
|
+ font-size: 10px !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|