Răsfoiți Sursa

个人信息页不显示取消以及项目平台左上角动态显示

eraser 4 ani în urmă
părinte
comite
3c3bcebc87

+ 12 - 3
components/home/teacherCreation.vue

@@ -3,9 +3,13 @@
 		<view class="m_left">
 		<view class="m_left">
 			<view class="m_hander">
 			<view class="m_hander">
 				<view class="m_teacher">
 				<view class="m_teacher">
-					<image src="../../assets/login/loginPic2.png" class="m_head_portrait"></image>
-					<view class="m_teacher_name" v-text="name"></view>
-					<view class="m_teacher_position" v-text="position"></view>
+					
+						<view class="user-left-avatar df">
+							<img :src="userInfo.avatarSrc"></img>
+						</view>
+					<!-- <image src="../../assets/login/loginPic2.png" class="m_head_portrait"></image> -->
+					<view class="m_teacher_name" v-text="userInfo.Name+userInfo.role"></view>
+					<view class="m_teacher_position" v-text="userInfo.Position"></view>
 				</view>
 				</view>
 			</view>
 			</view>
 			<view class="m_menu">
 			<view class="m_menu">
@@ -75,6 +79,7 @@
 				}],
 				}],
 				scrollTop: 0,
 				scrollTop: 0,
 				oldScrollTop: 0,
 				oldScrollTop: 0,
+				userInfo: mydata_userInfo,
 
 
 			}
 			}
 		},
 		},
@@ -390,4 +395,8 @@
 	.m_menu-item-checked .cact {
 	.m_menu-item-checked .cact {
 		color: #EA252C;
 		color: #EA252C;
 	}
 	}
+	.user-left-avatar img {
+		width: px2vw(120);
+		margin-top: px2vw(74);
+	}
 </style>
 </style>

+ 1 - 0
components/login/loginByPWD.vue

@@ -97,6 +97,7 @@
 							}
 							}
 							mydata_userInfo.Name = data.Name;
 							mydata_userInfo.Name = data.Name;
 							mydata_userInfo.UserID = data.UserID;
 							mydata_userInfo.UserID = data.UserID;
+							mydata_userInfo.Position = data.Position;
 							// console.log("登陆成功,个人信息", mydata_userInfo);
 							// console.log("登陆成功,个人信息", mydata_userInfo);
 							if (mydata_userInfo.role == '老师') {
 							if (mydata_userInfo.role == '老师') {
 								userController.updateStudentList(null,null);
 								userController.updateStudentList(null,null);

+ 1 - 1
components/user/selfInfo.vue

@@ -145,7 +145,7 @@
 					</view>
 					</view>
 					<view class="btn-box df fdr aic jcc">
 					<view class="btn-box df fdr aic jcc">
 						<view class="btn-submit df aic jcc" @click="onClick_commit">提交</view>
 						<view class="btn-submit df aic jcc" @click="onClick_commit">提交</view>
-						<view class="btn-cancel df aic jcc">取消</view>
+						<!-- <view class="btn-cancel df aic jcc">取消</view> -->
 					</view>
 					</view>
 				</view>
 				</view>
 			</view>
 			</view>

+ 1 - 0
myData.js

@@ -24,5 +24,6 @@ mydata_userInfo = {
 	"Name": "张林",
 	"Name": "张林",
 	"UserID": "12321zxc",
 	"UserID": "12321zxc",
 	"email":'',
 	"email":'',
+	"Position":''
 }
 }
 mydata_api='http://39.105.166.141:8085'
 mydata_api='http://39.105.166.141:8085'