| | |
| | | <label> |
| | | <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> |
| | | <text class="color-base-text" @click.stop="toArticle(1)">《用户服务协议》</text> |
| | | <!-- 和 <text class="color-base-text" @click.stop="toArticle(2)">《隐私政策》</text> --> |
| | | </label> |
| | | </view> |
| | | </checkbox-group> |
| | |
| | | title: "登录成功", |
| | | icon: "success" |
| | | }) |
| | | |
| | | uni.setStorage({ |
| | | key: 'uid', |
| | | data: res.data.id, |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | openPopup(type) { |
| | | this.$util.redirectTo('/otherPages/member/webView/webView', { |
| | | link: type |
| | | toArticle(type) { |
| | | if(type==1){ |
| | | uni.navigateTo({ |
| | | url:'/pages/article/article' |
| | | }) |
| | | }else{ |
| | | uni.navigateTo({ |
| | | url:'/pages/article/privacy' |
| | | }) |
| | | } |
| | | |
| | | }, |
| | | changeAgree(e) { |
| | | console.log(e) |
| | |
| | | this.$api.CreateUser(obj).then(result => { |
| | | if (result.code == 1) { |
| | | this.$db.set('userToken', result.data.accessToken); |
| | | this.$api.getUser().then(res => { |
| | | this.$db.set('userInfo', JSON.stringify(res.data)) |
| | | }) |
| | | this.$util.redirectTo( |
| | | '/pages/index/index', {}, |
| | | 'tabbar') |