liuyg
2021-07-05 83c2a71060ee9e6083db4bcbcdf6128748642cfa
pages/loging/loging.vue
@@ -18,6 +18,7 @@
         </view>
         <view class="loging">
            <button class="confirm bubble" @click="longing(names,passwords)" type="default">登录</button>
            <button class="zhuce" @click="zhuce" type="default">没有账号?点击注册</button>
         </view>
         <view class="msg">
            <span>{{msg}}</span>
@@ -56,7 +57,7 @@
               //获取用户信息
               var data = {
                  userName: name,
                  userID:userID
                  userID: userID
               }
               this.$store.commit('getUse', data)
               // wx.reLaunch({
@@ -88,6 +89,11 @@
               uni.showNavigationBarLoading();
               this.$store.dispatch('loging', data)
            }
         },
         zhuce(){
            uni.navigateTo({
               url:'/pages/registerUser/registerUser'
            })
         }
      },
      created() {
@@ -144,11 +150,17 @@
         align-items: center;
         flex-direction: column;
         .loging {
            width: 65vw;
            height: 13vw;
            margin: 1vw 0;
         }
         .topImg,
         .titie,
         .name,
         .password,
         .loging,
         .msg {
            width: 65vw;
            height: 13vw;
@@ -244,4 +256,12 @@
      opacity: 1;
      transition: 0s;
   }
   .zhuce {
      position: relative;
      font-size: 0.2rem;
      width: 10rem;
      top: 1rem;
      border: 1px solid transparent;
   }
</style>