Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
Kindergarten
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
Kindergarten
Commits
17e61238
Commit
17e61238
authored
Dec 03, 2018
by
张杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
老师首页代码
parent
592d403b
Pipeline
#52
failed with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
8 deletions
+17
-8
index.js
pages/home/teacher/index.js
+2
-1
index.wxml
pages/home/teacher/index.wxml
+7
-6
index.wxss
pages/home/teacher/index.wxss
+8
-1
No files found.
pages/home/teacher/index.js
View file @
17e61238
...
...
@@ -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
View file @
17e61238
<!--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>
...
...
pages/home/teacher/index.wxss
View file @
17e61238
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment