Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
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
wangxuelai
wechatapp.shangjiadao.com
Commits
b65c2a2d
Commit
b65c2a2d
authored
Nov 05, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/class_lvtz' into wxl-develop
parents
76c67dd5
1695ec88
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
10 deletions
+18
-10
classdetail.wxss
business/pages/classservice/classdetail.wxss
+5
-1
reviewdetail.js
business/pages/classservice/reviewdetail.js
+3
-2
reviewdetail.wxml
business/pages/classservice/reviewdetail.wxml
+1
-1
classreviewshare.js
src/pages/papersquare/classreviewshare.js
+1
-1
reviewdetail.js
src/pages/papersquare/reviewdetail.js
+7
-4
reviewdetail.wxml
src/pages/papersquare/reviewdetail.wxml
+1
-1
No files found.
business/pages/classservice/classdetail.wxss
View file @
b65c2a2d
...
...
@@ -1182,12 +1182,14 @@ page{
}
.select-student-dailog .dailog-content{
width: 100%;
height: 80
vh
;
height: 80
%
;
position: absolute;
left: 0;
bottom: 0;
background:rgba(255,255,255,1);
border-radius:20rpx 20rpx 0px 0px;
display: flex;
flex-direction: column;
}
.select-student-dailog .dailog-content .search-box{
width:525rpx;
...
...
@@ -1219,8 +1221,10 @@ page{
text-align: center;
}
.select-student-dailog .dailog-content .student-list{
flex: 1;
display: flex;
flex-wrap: wrap;
/* height: calc(80vh - 30px); */
}
.select-student-dailog .dailog-content .student-list .student-item{
display: inline-block;
...
...
business/pages/classservice/reviewdetail.js
View file @
b65c2a2d
...
...
@@ -511,11 +511,12 @@ Page({
prevImg
(
e
)
{
const
{
dataset
}
=
e
.
currentTarget
;
const
current
=
dataset
.
src
;
const
comment
=
dataset
.
comment
||
''
;
const
images
=
this
.
data
.
reviewDetail
.
content
.
img
;
const
works
=
this
.
data
.
reviewDetail
.
works
;
let
_images
=
images
.
filter
((
ele
)
=>
ele
.
type
==
'image'
).
map
(
ele
=>
ele
.
src
);
let
_works
=
works
.
filter
((
ele
)
=>
ele
.
type
==
'image'
).
map
(
ele
=>
ele
.
src
);
wxPreviewImage
({
urls
:
_images
,
urls
:
_images
.
concat
(
_works
)
,
current
:
current
,
type
:
'clockitem'
})
...
...
business/pages/classservice/reviewdetail.wxml
View file @
b65c2a2d
...
...
@@ -73,7 +73,7 @@
</view>
<view class="img-box" wx:if="{{(reviewDetail.content.img && reviewDetail.content.img.length>0) || (reviewDetail.works && reviewDetail.works.length>0)}}">
<view class="bigimgbox" wx:for="{{reviewDetail.works}}" wx:for-item="video" wx:key="index" style="{{reviewDetail.content.img.length>0 ? 'margin-bottom: 20rpx' :''}}">
<view class="imgbox" wx:if="{{video.type == 'image'}}" data-src="{{video.src}}" style="{{video.students && video.students.length>0 ? 'border-radius: 8rpx 8rpx 0 0;' :''}}">
<view class="imgbox" wx:if="{{video.type == 'image'}}" data-src="{{video.src}}"
bindtap="prevImg"
style="{{video.students && video.students.length>0 ? 'border-radius: 8rpx 8rpx 0 0;' :''}}">
<image class="img" src="{{filter.imagify(video.src, 'image/resize,w_640/format,jpg/quality,q_80')}}" mode="widthFix" lazy-load="true" binderror="" bindload="" style="{{video.students && video.students.length>0 ? 'border-radius: 8rpx 8rpx 0 0;' :''}}"></image>
</view>
</view>
...
...
src/pages/papersquare/classreviewshare.js
View file @
b65c2a2d
...
...
@@ -52,7 +52,7 @@ Page({
selectCardLong
:
false
,
imgSrc
:
''
,
sharePage
:
'src/pages/papersquare/
classsharereview
'
,
// TODO 换路径 src/pages/papersquare/classsharereview 事例src/pages/clockdetail/newindex
sharePage
:
'src/pages/papersquare/
reviewdetail
'
,
// TODO 换路径 src/pages/papersquare/classsharereview 事例src/pages/clockdetail/newindex
},
onLoad
:
function
(
options
)
{
const
{
sid
,
rid
,
type
,
id
}
=
options
;
...
...
src/pages/papersquare/reviewdetail.js
View file @
b65c2a2d
...
...
@@ -5,7 +5,8 @@ import {
getRandomFilename
,
audioorigin
,
matchBlacklist
,
LocalStorage
LocalStorage
,
scenQueryGet
}
from
'../../../utilities/index.js'
;
import
{
classroomdetailGet
,
...
...
@@ -77,6 +78,7 @@ Page({
if
(
options
.
scene
)
{
let
sceneQuery
=
scenQueryGet
(
options
.
scene
);
const
{
s
,
c
,
r
,
t
}
=
sceneQuery
;
console
.
log
(
sceneQuery
)
this
.
setData
({
sid
:
s
,
id
:
c
,
...
...
@@ -360,11 +362,12 @@ Page({
prevImg
(
e
)
{
const
{
dataset
}
=
e
.
currentTarget
;
const
current
=
dataset
.
src
;
const
comment
=
dataset
.
comment
||
''
;
const
images
=
this
.
data
.
reviewDetail
.
content
.
img
;
const
works
=
this
.
data
.
reviewDetail
.
works
;
let
_images
=
images
.
filter
((
ele
)
=>
ele
.
type
==
'image'
).
map
(
ele
=>
ele
.
src
);
let
_works
=
works
.
filter
((
ele
)
=>
ele
.
type
==
'image'
).
map
(
ele
=>
ele
.
src
);
wxPreviewImage
({
urls
:
_images
,
urls
:
_images
.
concat
(
_works
)
,
current
:
current
,
type
:
'clockitem'
})
...
...
@@ -548,7 +551,7 @@ Page({
generatelongimg
(){
const
{
sid
,
id
,
rid
,
type
}
=
this
.
data
;
wx
.
navigateTo
({
url
:
`/src/pages/papersquare/classreviewshare?sid=
${
sid
}
&
c
id=
${
id
}
&rid=
${
rid
}
&type=
${
type
}
`
url
:
`/src/pages/papersquare/classreviewshare?sid=
${
sid
}
&id=
${
id
}
&rid=
${
rid
}
&type=
${
type
}
`
})
}
})
\ No newline at end of file
src/pages/papersquare/reviewdetail.wxml
View file @
b65c2a2d
...
...
@@ -63,7 +63,7 @@
</view>
<view class="img-box" wx:if="{{(reviewDetail.content.img && reviewDetail.content.img.length>0) || (reviewDetail.works && reviewDetail.works.length>0)}}">
<view class="bigimgbox" wx:for="{{reviewDetail.works}}" wx:for-item="video" wx:key="index" style="{{reviewDetail.content.img.length>0 ? 'margin-bottom: 20rpx' :''}}">
<view class="imgbox" wx:if="{{video.type == 'image'}}" data-src="{{video.src}}" style="{{video.students && video.students.length>0 ? 'border-radius: 8rpx 8rpx 0 0;' :''}}">
<view class="imgbox" wx:if="{{video.type == 'image'}}" data-src="{{video.src}}"
bindtap="prevImg"
style="{{video.students && video.students.length>0 ? 'border-radius: 8rpx 8rpx 0 0;' :''}}">
<image class="img" src="{{filter.imagify(video.src, 'image/resize,w_640/format,jpg/quality,q_80')}}" mode="widthFix" lazy-load="true" binderror="" bindload="" style="{{video.students && video.students.length>0 ? 'border-radius: 8rpx 8rpx 0 0;' :''}}"></image>
</view>
</view>
...
...
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