Browse Source

no message

LAPTOP-2OQMQSSM\ASUS 3 years ago
parent
commit
342cea364a
3 changed files with 47 additions and 3 deletions
  1. 1 2
      pages.json
  2. 1 1
      pages/index/index.vue
  3. 45 0
      pages/login/index.vue

+ 1 - 2
pages.json

@@ -11,8 +11,7 @@
 			"style": {
 				"navigationBarTitleText": "登陆"
 			}
-		},
-		
+		}
 	],
 
 	"globalStyle": {

+ 1 - 1
pages/index/index.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="">
-		使用
+		首页
 	</view>
 </template>
 <script>

+ 45 - 0
pages/login/index.vue

@@ -0,0 +1,45 @@
+<template>
+  <view class="login">
+    登录页
+    <view class="logIn" @click="logIn">
+      登录
+    </view>
+  </view>
+</template>
+<script>
+  export default {
+    components: {
+
+    },
+    data() {
+      return {
+
+      }
+    },
+    mounted() {
+
+    },
+    methods: {
+      logIn() {
+        uni.redirectTo({
+          url: '/pages/index/index'
+        })
+      },
+    },
+  }
+</script>
+<style lang="scss" scoped>
+  .login {
+    width: 100%;
+    min-height: 100vh;
+    background: #fff;
+
+    .logIn {
+      width: 50%;
+      height: 40px;
+      text-align: center;
+      margin: 0 auto;
+      line-height: 40px;
+    }
+  }
+</style>