guhongwei 3 years ago
parent
commit
7bdc52b7b1
3 changed files with 31 additions and 26 deletions
  1. 1 5
      pages/home/index.js
  2. 8 5
      pages/user/detail.less
  3. 22 16
      pages/user/index.less

+ 1 - 5
pages/home/index.js

@@ -79,11 +79,7 @@ Page({
   },
   // 监听用户是否登录
   watchLogin: function () {
-<<<<<<< HEAD
-    let data = { type: '6' }
-=======
-    let data = { type: '4' }
->>>>>>> 4a6b6903e6a3f0c706217a15a1196d73c0af8335
+    let data = { type: '0' }
     this.searchRouter(data);
     // wx.getStorage({
     // key: 'user',

+ 8 - 5
pages/user/detail.less

@@ -24,8 +24,10 @@
                 }
             }
 
-            .right input {
-                color: #000000;
+            .right {
+                input {
+                    color: #000000;
+                }
             }
         }
 
@@ -33,10 +35,11 @@
             float: left;
             width: 100%;
             text-align: center;
-        }
 
-        .save button {
-            margin: 10px;
+            button {
+                margin: 10px;
+            }
         }
+
     }
 }

+ 22 - 16
pages/user/index.less

@@ -7,10 +7,10 @@
         width: 100%;
         text-align: center;
         border-bottom: 1px dashed #000000;
-    }
 
-    .one button {
-        margin: 10px;
+        button {
+            margin: 10px;
+        }
     }
 
     .two {
@@ -38,20 +38,22 @@
                     font-size: 14px;
                     color: #666666;
                     padding: 0 10px;
-                }
 
-                .otherInfo text {
-                    color: #000000;
+                    text {
+                        color: #000000;
+                    }
                 }
+
             }
 
             .btn {
                 text-align: center;
-            }
 
-            .btn button {
-                margin: 0 5px;
+                button {
+                    margin: 0 5px;
+                }
             }
+
         }
     }
 }
@@ -73,19 +75,23 @@
         .left {
             float: left;
             margin: 0 10px;
-        }
 
-        .left text {
-            font-size: 14px;
-            color: #666666;
+            text {
+                font-size: 14px;
+                color: #666666;
+            }
         }
 
-        .right input {
-            font-size: 12px;
+
+        .right {
+            input {
+                font-size: 12px;
+            }
         }
     }
 }
+
 .van-dialog__header {
     padding-top: 0 !important;
     padding: 10px 0 !important;
-  }
+}