123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- <template>
- <view class="login">
- <statusBar :item='navBarData'></statusBar>
-
- <view class="img">
- <image src="http://43.139.158.220:5007/img/static/yym/image7.png" mode="aspectFill"></image>
- </view>
- <view class="mid">
-
- <!-- <radio value="r1" @click="radioCheck" size="10" :checked="isOK" /> -->
- <view class="" style="position: relative;padding-left:30rpx;">
- 我已阅读并同意<text>《教育小程序服务条款》</text>和 <text>《 隐私协议》</text>新用户自动注册
- <view class="quan" @click="isDui">
- <image v-if="isShow" class="dui" src="http://43.139.158.220:5007/img/static/yym/dui.png" mode="aspectFill"></image>
- </view>
- </view>
- </view>
- <button class="btn" @click="gotoIndex">一键登录</button>
- <!-- <button class="btn" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">一键登录</button> -->
- <view class="footer" @click="goto">
- <text>手机号登录/账号密码登录</text>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- isOK: false,
- navBarData: {
- title: '首页',
- btn: 1 //判断是否显示返回按钮
- },
- isMsg:0,
- isShow:false
- };
- },
- methods: {
- getPhoneNumber (e) {
- console.log(e.detail.code) // 动态令牌
- console.log(e.detail.errMsg) // 回调信息(成功失败都会返回)
- console.log(e.detail.errno) // 错误码(失败时返回)
- },
- gotoIndex() {
- const value = uni.setStorageSync('login', '1');
-
- uni.switchTab({
- url: '/pages/index/index'
- })
- // if(this.isMsg==1){
- // uni.setStorageSync('msgLogin', '1');
- // uni.switchTab({
- // url: '/pages/message/message'
- // })
- // }else{
- // const value = uni.setStorageSync('login', '1');
- // uni.switchTab({
- // url: '/pages/index/index'
- // })
- // }
- },
- goto() {
- uni.navigateTo({
- url: "/pages/login_two/login_two"
- })
- },
- radioCheck() {
- this.isOK = !this.isOK
- },
- isDui(){
- this.isShow=!this.isShow
- }
- },
- onLoad(opt) {
- console.log(opt);
- this.isMsg=opt.id
- }
- }
- </script>
- <style lang="scss">
- .login {
- background-color: #ffffff;
- height: 100vh;
- .img {
- // padding: 10vh 0;
- padding-top: 10vh;
- margin-bottom: 10vh;
- width: 750rpx;
- display: flex;
- justify-content: center;
-
- image {
- width: 200rpx;
- height: 200rpx;
- border-radius: 50%;
- }
- }
- .mid {
- display: flex;
- justify-content: flex-start;
- width: 750rpx;
- padding: 0rpx 50rpx;
- font-size: 13px;
- .quan {
- position: absolute;
- flex-shrink: 0;
- top: 0;
- left: -10rpx;
- width: 32rpx;
- height: 32rpx;
- border-radius: 50%;
- margin-top: 5rpx;
- margin-right: 10rpx;
- border: 1px #bdbdbd solid;
- display: flex;
- justify-content: center;
- align-items: center;
- .dui {
- width: 32rpx;
- height: 32rpx;
- }
- }
- text {
- color: #4a97f2;
- }
- }
- .btn {
- background-color: #0056a8;
- color: #ffffff;
- border-radius: 30px;
- margin: 30rpx 55rpx;
- // padding: 0rpx 10rpx;
- font-size: 16px;
- }
- .footer {
- display: flex;
- justify-content: center;
- font-size: 14px;
- margin: auto;
- color: #666666;
- }
- }
- </style>
|