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
7a231989
Commit
7a231989
authored
6 years ago
by
张杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
带班老师首页图片预览
parent
168f12ec
master
1.0.1
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
index.js
pages/home/teacher/index.js
+9
-0
index.wxml
pages/home/teacher/index.wxml
+2
-2
No files found.
pages/home/teacher/index.js
View file @
7a231989
...
@@ -16,6 +16,15 @@ Page({
...
@@ -16,6 +16,15 @@ Page({
},
},
previewPic
:
function
(
e
)
{
var
current
=
this
.
data
.
records
[
e
.
target
.
dataset
.
index
].
arrPic
[
e
.
target
.
dataset
.
picIndex
]
wx
.
previewImage
({
current
:
current
,
urls
:
this
.
data
.
records
[
e
.
target
.
dataset
.
index
].
arrPic
})
},
tapCell
:
function
(
e
)
{
tapCell
:
function
(
e
)
{
console
.
log
(
e
)
console
.
log
(
e
)
let
index
=
e
.
currentTarget
.
dataset
.
index
let
index
=
e
.
currentTarget
.
dataset
.
index
...
...
This diff is collapsed.
Click to expand it.
pages/home/teacher/index.wxml
View file @
7a231989
...
@@ -21,8 +21,8 @@
...
@@ -21,8 +21,8 @@
</view>
</view>
<!-- 图片 -->
<!-- 图片 -->
<view class='home-student-picture-item'>
<view class='home-student-picture-item'>
<view wx:for="{{item.arrPic}}" wx:for-item="picItem">
<view wx:for="{{item.arrPic}}" wx:for-item="picItem"
wx:for-index="picIndex"
>
<image src='{{picItem}}' class='home-student-picture' mode='aspectFill'></image>
<image src='{{picItem}}' class='home-student-picture'
bindtap='previewPic' data-index='{{index}}' data-picIndex='{{picIndex}}'
mode='aspectFill'></image>
</view>
</view>
</view>
</view>
<!-- 行为 -->
<!-- 行为 -->
...
...
This diff is collapsed.
Click to expand it.
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