|
|
@@ -14,7 +14,7 @@
|
|
|
<image class="but-img" src="/static/img/login/login-but.png" mode="aspectFill"></image>
|
|
|
</view>
|
|
|
<view class="agreement-item">
|
|
|
- <login-agreement ></login-agreement>
|
|
|
+ <login-agreement v-model="isCheck"></login-agreement>
|
|
|
</view>
|
|
|
|
|
|
|
|
|
@@ -24,6 +24,7 @@
|
|
|
|
|
|
<script>
|
|
|
import LoginAgreement from "@/pages/login/model/loginAgreement";
|
|
|
+import tools from "@/service/tools";
|
|
|
|
|
|
export default {
|
|
|
name: "loginContent",
|
|
|
@@ -31,24 +32,51 @@ export default {
|
|
|
props: {},
|
|
|
data() {
|
|
|
return {
|
|
|
- windowWidth:750
|
|
|
+ windowWidth:750,
|
|
|
+ isCheck:false,
|
|
|
+ isPreLogin:false
|
|
|
}
|
|
|
},
|
|
|
watch: {},
|
|
|
onLoad(query) {
|
|
|
+ //#ifdef APP-NVUE
|
|
|
+ // uni.preLogin({
|
|
|
+ // provider: 'univerify',
|
|
|
+ // success(){ //预登录成功
|
|
|
+ // // 显示一键登录选项
|
|
|
+ // this.isPreLogin=true
|
|
|
+ // },
|
|
|
+ // fail(res){ // 预登录失败
|
|
|
+ // // 不显示一键登录选项(或置灰)
|
|
|
+ // // 根据错误信息判断失败原因,如有需要可将错误提交给统计服务器
|
|
|
+ // console.log(res)
|
|
|
+ // console.log(res.errCode)
|
|
|
+ // console.log(res.errMsg)
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ //#endif
|
|
|
+
|
|
|
},
|
|
|
mounted() {
|
|
|
- // let width = uni.getSystemInfoSync().windowWidth;
|
|
|
- // this.windowWidth=width*2
|
|
|
- // tools.success('width:'+width)
|
|
|
- // console.log('width:'+width)
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
|
|
|
goToLogin(){
|
|
|
- uni.navigateTo({
|
|
|
- 'url':'/pages/login/localPhoneLogin'
|
|
|
- })
|
|
|
+ if(!this.isCheck){
|
|
|
+ tools.error('请阅读并同意协议')
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ if(this.isPreLogin){
|
|
|
+ uni.navigateTo({
|
|
|
+ 'url':'/pages/login/localPhoneLogin'
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ uni.navigateTo({
|
|
|
+ 'url':'/pages/login/otherPhoneLogin'
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -66,30 +94,30 @@ export default {
|
|
|
/*background: #fff;*/
|
|
|
}
|
|
|
|
|
|
-.login-content .data{
|
|
|
+ .data{
|
|
|
position: absolute;
|
|
|
/*width: 100vw;*/
|
|
|
height: 528rpx;
|
|
|
bottom: 0;
|
|
|
left: 0;
|
|
|
}
|
|
|
-.login-content .data .data-img{
|
|
|
+ .data-img{
|
|
|
/*width: 100vw;*/
|
|
|
height: 124rpx;
|
|
|
}
|
|
|
-.login-content .data-img .img{
|
|
|
+ .img{
|
|
|
/*margin-left: calc((100vw - 124rpx) / 2);*/
|
|
|
height: 124rpx;
|
|
|
width: 124rpx;
|
|
|
border-radius: 24rpx;
|
|
|
}
|
|
|
-.login-content .data .data-text{
|
|
|
+ .data-text{
|
|
|
margin-top: 24rpx;
|
|
|
padding: 0 78rpx;
|
|
|
line-height: 44rpx;
|
|
|
|
|
|
}
|
|
|
-.login-content .data .data-text .text-content{
|
|
|
+ .text-content{
|
|
|
//width: calc( 100vw - 156rpx );
|
|
|
font-size: 24rpx;
|
|
|
color: #FFFFFF;
|
|
|
@@ -97,7 +125,7 @@ export default {
|
|
|
white-space: pre-wrap;
|
|
|
word-wrap: break-word;
|
|
|
}
|
|
|
-.login-content .data .data-but{
|
|
|
+ .data-but{
|
|
|
width: 590rpx;
|
|
|
box-sizing: border-box;
|
|
|
margin:64rpx 78rpx 0 78rpx ;
|
|
|
@@ -114,7 +142,7 @@ export default {
|
|
|
/*-webkit-text-fill-color: transparent;*/
|
|
|
|
|
|
}
|
|
|
-.data-but .but-img{
|
|
|
+ .but-img{
|
|
|
width: 590rpx;
|
|
|
height: 88rpx;
|
|
|
border-radius: 200rpx;
|