Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
educationStu
Project
Project
Details
Activity
Releases
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
向伟
educationStu
Commits
a8380190
Commit
a8380190
authored
Sep 24, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4448f3e5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
863 additions
and
735 deletions
+863
-735
activityMedia.vue
src/pages/activity/activityMedia.vue
+0
-1
feedback.vue
src/pages/course/feedback.vue
+42
-5
index.vue
src/pages/index/index.vue
+821
-729
No files found.
src/pages/activity/activityMedia.vue
View file @
a8380190
...
...
@@ -83,7 +83,6 @@ export default {
});
let
methods
=
{
previewImage
(
i
)
{
console
.
log
(
i
);
uni
.
previewImage
({
urls
:
data
.
preImg
,
current
:
i
,
...
...
src/pages/course/feedback.vue
View file @
a8380190
...
...
@@ -11,7 +11,7 @@
<view
v-for=
"(item, index) in dataList"
:key=
"index"
class=
"list-item
flex flex_between_center
"
class=
"list-item"
@
click=
"jumpPage(item.FeedBackId)"
>
<view
class=
"feedback-info flex flex_start_center"
>
...
...
@@ -29,20 +29,27 @@
</view>
<view
class=
"feedback-all"
>
{{
item
.
CreatetimeStr
}}
</view>
</view>
<view
class=
"
two_line
feedback-text"
>
{{
item
.
Comment
}}
</view>
<view
class=
"flex"
>
<view
class=
"feedback-text"
>
{{
item
.
Comment
}}
</view>
<view
class=
"flex
flex_wrap
"
>
<view
v-for=
"(item1, index1) in item.PhotoList"
:key=
"index1"
class=
"feedback-img"
v-if=
"index1 === 0 || index1 === 1 || index1 === 2"
@
click=
"previewImage(item.PhotoList, index1)"
>
<image
:src=
"item1"
style=
"width: 100%; height: 100%"
mode=
"aspectFill"
v-if=
"index1 === 0 || index1 === 1 || index1 === 2"
/>
<view
class=
"layer flex flex_center_center"
class=
"layer"
v-if=
"item.PhotoList.length > 3 && index1 === 2"
></view>
<view
class=
"layer2 flex flex_center_center"
v-if=
"item.PhotoList.length > 3 && index1 === 2"
>
+
{{
item
.
PhotoList
.
length
-
3
}}
</view
>
...
...
@@ -106,6 +113,19 @@ export default {
data
.
pageState
=
"none"
;
}
},
previewImage
(
arr
,
i
)
{
uni
.
previewImage
({
urls
:
arr
,
current
:
i
,
longPressActions
:
{
itemList
:
[
"发送给朋友"
,
"保存图片"
,
"收藏"
],
success
:
function
(
data
)
{},
fail
:
function
(
err
)
{
console
.
log
(
err
.
errMsg
);
},
},
});
},
};
let
that
=
methods
;
onMounted
(()
=>
{
...
...
@@ -133,7 +153,7 @@ export default {
background-color
:
#fff
;
}
.list-item
{
height
:
430
rpx
;
/* height: 430rpx; */
box-sizing
:
border-box
;
padding
:
30
rpx
0
;
}
...
...
@@ -171,7 +191,10 @@ export default {
height
:
210
rpx
;
border-radius
:
20
rpx
;
background-color
:
#eee
;
overflow
:
hidden
;
margin-right
:
30
rpx
;
box-shadow
:
0
rpx
10
rpx
30
rpx
0
rpx
rgba
(
36
,
36
,
36
,
0.2
);
position
:
relative
;
}
.feedback-img
:nth-child
(
3n
)
{
margin-right
:
0
rpx
!important
;
...
...
@@ -179,10 +202,24 @@ export default {
.layer
{
width
:
100%
;
height
:
100%
;
border-radius
:
20
rpx
;
background-color
:
#cbd9ed
;
position
:
absolute
;
top
:
0
;
right
:
0
;
opacity
:
0.5
;
}
.layer2
{
width
:
100%
;
height
:
100%
;
border-radius
:
20
rpx
;
font-size
:
36
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
color
:
#111111
;
position
:
absolute
;
top
:
0
;
right
:
0
;
z-index
:
5
;
}
</
style
>
\ No newline at end of file
src/pages/index/index.vue
View file @
a8380190
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