Commit 17e61238 authored by 张杰's avatar 张杰

老师首页代码

parent 592d403b
Pipeline #52 failed with stages
......@@ -5,7 +5,8 @@ Page({
* 页面的初始数据
*/
data: {
signIcon:"https://gomore-wxmall.oss-cn-shanghai.aliyuncs.com/miniapp/hangzhouwanke/tabbar/home/score.png",
userIcon:"/src/img/defaut_teacher_icon.jpg",
},
......
<!--pages/home/teacher/index.wxml-->
<import src='/template/operate_btn/index.wxml'></import>
<view class='home-header'>
<image class='home-header-user-icon' src='/src/img/defaut_teacher_icon.jpg'></image>
<image class='home-header-user-icon' src='{{userIcon}}'></image>
<view class='home-header-user-info'>
<view class='kg-text-title'>向日葵小班-张老师</view>
<view class='kg-text-normal-grayl'>共19人</view>
</view>
<view class='home-header-roll-call'>
<image class='roll-call-image' src='https://gomore-wxmall.oss-cn-shanghai.aliyuncs.com/miniapp/hangzhouwanke/tabbar/home/score.png'></image>
<image class='roll-call-image' src='{{signIcon}}'></image>
<view class='roll-call-title'>点名</view>
</view>
</view>
......@@ -26,10 +26,10 @@
<image class='home-student-sex' src='/src/img/female.png' mode='aspectFit'></image>
</view>
<!-- 图片 -->
<view class='home-student-picture'>
<image src='/src/img/student_picture.png' style='width:calc(100vw/4.5); height:calc(100vw/4.5); margin-left:10px'></image>
<image src='/src/img/student_picture.png' style='width:calc(100vw/4.5); height:calc(100vw/4.5); margin-left:10px'></image>
<image src='/src/img/student_picture.png' style='width:calc(100vw/4.5); height:calc(100vw/4.5); margin-left:10px'></image>
<view class='home-student-picture-item'>
<image src='/src/img/student_picture.png' class='home-student-picture' mode='aspectFill'></image>
<image src='/src/img/student_picture.png' class='home-student-picture'></image>
<image src='/src/img/student_picture.png' class='home-student-picture'></image>
</view>
<!-- 行为 -->
<view class='home-student-name' style='justify-content: space-between;margin:0px 10px;'>
......@@ -40,6 +40,7 @@
</view>
</view>
</view>
</view>
</view>
</scroll-view>
......
......@@ -85,9 +85,16 @@
height: 24px;
}
.home-student-picture {
.home-student-picture-item {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.home-student-picture {
width:calc(100vw/4.5);
height:calc(100vw/4.5);
margin-left:10px
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment