Browse Source

我的页面

zs 2 years ago
parent
commit
525a3f0709
4 changed files with 17 additions and 6 deletions
  1. 4 0
      pages/my/userInfo.wxml
  2. 5 1
      pages/setting/basic.less
  3. 4 4
      pages/setting/basic.wxml
  4. 4 1
      pages/setting/basic.wxss

+ 4 - 0
pages/my/userInfo.wxml

@@ -16,6 +16,10 @@
                     <view class="label">性别</view>
                     <view class="value">{{form.gender||'未知'}}</view>
                 </view>
+                <view class="content">
+                    <view class="label">身份证</view>
+                    <view class="value">{{form.card||'未知'}}</view>
+                </view>
                 <view class="content">
                     <view class="label">手机号</view>
                     <view class="value">{{form.phone||'未知'}}</view>

+ 5 - 1
pages/setting/basic.less

@@ -30,8 +30,12 @@
 
         .btn {
             width: 96vw;
-            display: flex;
             margin: 50px 0;
+            text-align: center;
+
+            button {
+                background-color: #216EC7;
+            }
         }
     }
 }

+ 4 - 4
pages/setting/basic.wxml

@@ -10,10 +10,6 @@
                     <view class="label">openid:</view>
                     <view class="value"><input name="openid" value="{{form.openid}}" placeholder="请输入openid" /></view>
                 </view>
-                <view class="content" style="display: none;">
-                    <view class="label">身份证:</view>
-                    <view class="value"><input name="card" value="{{form.card}}" placeholder="请输入身份证" /></view>
-                </view>
                 <view class="content">
                     <view class="label">用户名</view>
                     <view class="value"><input name="name" value="{{form.name}}" placeholder="请输入用户名" /></view>
@@ -32,6 +28,10 @@
                         </picker>
                     </view>
                 </view>
+                <view class="content">
+                    <view class="label">身份证:</view>
+                    <view class="value"><input disabled="true" name="card" value="{{form.card}}" placeholder="请输入身份证" /></view>
+                </view>
                 <view class="content">
                     <view class="label">手机号</view>
                     <view class="value"><input name="phone" value="{{form.phone}}" placeholder="请输入手机号" /></view>

+ 4 - 1
pages/setting/basic.wxss

@@ -26,6 +26,9 @@
 }
 .main .one .btn {
   width: 96vw;
-  display: flex;
   margin: 50px 0;
+  text-align: center;
+}
+.main .one .btn button {
+  background-color: #216EC7;
 }