eraser 4 жил өмнө
parent
commit
c6baa29d40

+ 6 - 5
components/home/teacherCreation.vue

@@ -3,10 +3,10 @@
 		<view class="m_left">
 			<view class="m_hander">
 				<view class="m_teacher">
-					
-						<view class="user-left-avatar df">
-							<img :src="userInfo.avatarSrc"></img>
-						</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>
@@ -130,7 +130,7 @@
 			viewProject(obj, index) {
 				console.log("查看项目", obj, index);
 				this.menu[1].list[0].title = '项目' + (index + 1);
-				this.checkMenu(this.menu[1].list[0],1);
+				this.checkMenu(this.menu[1].list[0], 1);
 				this.$refs.project.viewProject(obj);
 			}
 		}
@@ -395,6 +395,7 @@
 	.m_menu-item-checked .cact {
 		color: #EA252C;
 	}
+
 	.user-left-avatar img {
 		width: px2vw(120);
 		margin-top: px2vw(74);

+ 15 - 3
components/student/Index.vue

@@ -3,9 +3,16 @@
 		<view class="m_left">
 			<view class="m_hander">
 				<view class="m_teacher">
-					<image src="../../assets/login/loginPic2.png" class="m_head_portrait"></image>
+					<!-- <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="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 class="m_menu">
@@ -47,7 +54,8 @@
 					icon: "icon-bianzu22",
 					select: true,
 					title: '项目一'
-				}]
+				}],
+				userInfo: mydata_userInfo,
 
 			}
 		},
@@ -343,4 +351,8 @@
 	.m_menu-item-checked .cact {
 		color: #EA252C;
 	}
+	.user-left-avatar img {
+		width: px2vw(120);
+		margin-top: px2vw(74);
+	}
 </style>