| | |
| | | </view> |
| | | <view class="login_btn"> |
| | | <!-- #ifdef MP-WEIXIN || MP-QQ || MP-BAIDU --> |
| | | <button v-if="canIUseGetPhoneNumber" type="primary" class="uni-tip-button" |
| | | <button v-if="canIUseGetPhoneNumber" class="uni-tip-button" style="backgroundColor:#fece01;borderColor:#fece01" |
| | | @click="mobileAuthLogin">授权并登录</button> |
| | | <button type="primary" v-else open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" |
| | | <button style="backgroundColor:#fece01;borderColor:#fece01" v-else open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" |
| | | class="uni-tip-button">授权并登录</button> |
| | | <view class="no_login" @click="back"> |
| | | <view class="no_login" @click="back" style="color:#fece01;borderColor:#fece01"> |
| | | 暂不授权 |
| | | </view> |
| | | <!-- #endif --> |
| | | <checkbox-group @change="changeAgree"> |
| | | <view class="regisiter-agreement"> |
| | | <label> |
| | | <checkbox value="1" :checked="isChecked" color="#35A6FF" style="transform:scale(0.7)" /> |
| | | <checkbox value="1" :checked="isChecked" color="#fece01" style="transform:scale(0.7)" /> |
| | | 已阅读并同意以下协议 |
| | | <text class="color-base-text" @click.stop="openPopup(1)">《用户服务协议》</text>和 <text |
| | | class="color-base-text" @click.stop="openPopup(2)">《隐私政策》</text> |
| | |
| | | success: res => { |
| | | this.$api.temLogin(res.code).then((result) => { |
| | | if (result.code == 1) { |
| | | this.$api.getUser().then(res => { |
| | | this.$db.set('userInfo', JSON.stringify(res.data)) |
| | | }) |
| | | this.$db.set('userToken', result.data.accessToken); |
| | | this.$util.redirectTo( |
| | | '/pages/index/index', {}, |
| | |
| | | |
| | | <style lang="scss" scoped> |
| | | .wrap { |
| | | background: linear-gradient(to bottom,#fbec99, #ffffff); |
| | | background: linear-gradient(to bottom, #fbec99, #ffffff); |
| | | display: flex; |
| | | align-items: center; |
| | | flex-direction: column; |
| | |
| | | line-height: 60rpx; |
| | | |
| | | .color-base-text { |
| | | color: #35A6FF; |
| | | color: #fece01; |
| | | } |
| | | } |
| | | |