zhangwei
2024-09-02 a2ddd3bec584b6eb91ab8845353fdb40c9b37ebe
src/pages/login/index.vue
@@ -20,8 +20,8 @@
                  <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>
@@ -88,6 +88,7 @@
                           title: "登录成功",
                           icon: "success"
                        })
                        uni.setStorage({
                           key: 'uid',
                           data: res.data.id,
@@ -143,10 +144,17 @@
         }
      },
      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)
@@ -184,6 +192,9 @@
                     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')