Kaynağa Gözat

开发修改用户信息

sun2511 2 yıl önce
ebeveyn
işleme
e7824a3909

+ 1 - 1
app.json

@@ -23,7 +23,7 @@
     },
     "window": {
         "backgroundTextStyle": "light",
-        "navigationBarBackgroundColor": "#ededed",
+        "navigationBarBackgroundColor": "#F2F6FC",
         "navigationBarTitleText": "小学语文朗读配音",
         "navigationBarTextStyle": "black",
         "onReachBottomDistance": 50,

+ 1 - 1
pages/editUser/index.js

@@ -78,7 +78,7 @@ Page({
     },
     selectProfession() {
         wx.showActionSheet({
-            itemList: ['学生', '家长'],
+            itemList: ['学生', '家长','老师'],
             success: (res) => {
                 /*   if (res.tapIndex == this.data.userInfo.gender) {
                       return

+ 11 - 0
pages/editUser/index.less

@@ -44,4 +44,15 @@
         }
 
     }
+
+    .switchAccount {
+        text-align: center;
+        padding: 18rpx 40rpx;
+        height: 50rpx;
+        line-height: 50rpx;
+        border-radius: 25rpx;
+        margin-bottom: 12rpx;
+        background-color: white;
+        box-sizing: content-box;
+    }
 }

+ 13 - 0
pages/editUser/index.wxml

@@ -62,4 +62,17 @@
             <image class='black' src='/static/black.png'></image>
         </view>
     </view>
+    <view class="editRow mt40">
+        <view class="name">绑定手机</view>
+        <view class="right">
+            <view class="name">
+                手机号
+            </view>
+            <image class='black' src='/static/black.png'></image>
+        </view>
+    </view>
+    <view class="switchAccount mt40">
+        切换账号
+    </view>
+
 </view>

+ 10 - 0
pages/editUser/index.wxss

@@ -37,3 +37,13 @@
   opacity: 0.8;
   margin-left: 24rpx;
 }
+.editBox .switchAccount {
+  text-align: center;
+  padding: 18rpx 40rpx;
+  height: 50rpx;
+  line-height: 50rpx;
+  border-radius: 25rpx;
+  margin-bottom: 12rpx;
+  background-color: white;
+  box-sizing: content-box;
+}