Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
groupPurchase-miniapp
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
彭佳妮(贵阳日报)
groupPurchase-miniapp
Commits
fecba94e
Commit
fecba94e
authored
Aug 15, 2024
by
周俊涛(东信)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8.15bug修复
parent
74a8f05d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
22 deletions
+48
-22
RouteDetails.vue
src/pages/assistingAgriculture/RouteDetails/RouteDetails.vue
+2
-2
card.vue
src/pages/assistingAgriculture/album/card.vue
+27
-4
index.vue
src/pages/assistingAgriculture/album/index.vue
+19
-16
like.png
src/static/assistingAgriculture/assets/like.png
+0
-0
likeFilled.png
src/static/assistingAgriculture/assets/likeFilled.png
+0
-0
No files found.
src/pages/assistingAgriculture/RouteDetails/RouteDetails.vue
View file @
fecba94e
...
...
@@ -1016,10 +1016,10 @@ uni-page-body {
}
}
.footer
{
height
:
196
rpx
;
height
:
90
rpx
;
border-radius
:
16rpx
16rpx
0rpx
0rpx
;
background
:
#ffffff
;
padding
:
20rpx
20rpx
0
42
rpx
;
padding
:
16
rpx
;
align-items
:
flex-start
;
.like
{
display
:
flex
;
...
...
src/pages/assistingAgriculture/album/card.vue
View file @
fecba94e
...
...
@@ -11,8 +11,11 @@
<img
:src=
"item.avatar"
alt=
""
/>
<p>
{{
item
.
nickName
}}
</p>
</div>
<div
class=
"like"
>
<wd-icon
name=
"thumb-up"
></wd-icon>
<div
class=
"like flex-align-center"
@
click=
"like(item)"
>
<img
:src=
"`/static/assistingAgriculture/assets/$
{item.give == 0 ? 'like' : 'likeFilled'}.png`"
alt=""
/>
{{
item
.
giveCount
}}
</div>
</div>
...
...
@@ -20,6 +23,7 @@
</
template
>
<
script
setup
>
import
{
likeOrDislike
}
from
'../../../api/photo'
;
const
showMore
=
ref
(
false
);
const
props
=
defineProps
({
photoData
:
{
...
...
@@ -33,6 +37,24 @@ const toReviewDetails = (id) => {
url
:
`/pages/assistingAgriculture/reviewDetails/reviewDetails?evaluationId=
${
id
}
`
,
});
};
/* 点赞 */
let
flag
=
false
;
const
like
=
(
item
)
=>
{
if
(
flag
)
{
return
;
}
else
{
flag
=
true
;
}
likeOrDislike
({
evaluationId
:
item
.
evaluationId
}).
then
((
res
)
=>
{
flag
=
false
;
if
(
res
.
code
===
0
)
{
// 成功
item
.
give
=
item
.
give
===
0
?
1
:
0
;
item
.
giveCount
=
item
.
give
===
0
?
item
.
giveCount
-
1
:
item
.
giveCount
+
1
;
}
});
};
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
@@ -86,8 +108,9 @@ const toReviewDetails = (id) => {
.like
{
font-size
:
12px
;
color
:
#767676
;
.wd-icon
{
font-size
:
15px
;
img
{
width
:
16px
;
height
:
16px
;
}
}
}
...
...
src/pages/assistingAgriculture/album/index.vue
View file @
fecba94e
...
...
@@ -7,7 +7,7 @@
</div>
</scroll-view>
<div
class=
"back"
>
<button>
返回预订
</button>
<button
@
click=
"back"
>
返回预订
</button>
</div>
</div>
</
template
>
...
...
@@ -91,6 +91,9 @@ const getPhotoFn = () => {
photoData
.
value
=
[...
photoData
.
value
,
...
res
.
data
];
});
};
const
back
=
()
=>
{
uni
.
navigateBack
();
};
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
@@ -103,21 +106,21 @@ uni-page-body {
flex-direction
:
column
;
background-color
:
#f3f3f3
;
.content
{
padding
:
10px
5
px
;
padding
:
20rpx
10r
px
;
box-sizing
:
border-box
;
flex-grow
:
1
;
height
:
69
px
;
height
:
138r
px
;
.filter-box
{
display
:
flex
;
background-color
:
#fff
;
padding
:
10
px
;
gap
:
10
px
;
padding
:
20r
px
;
gap
:
20r
px
;
flex-wrap
:
wrap
;
div
{
padding
:
8
px
;
padding
:
16r
px
;
color
:
#3d3d3d
;
font-size
:
8
px
;
border-radius
:
8
px
;
font-size
:
16r
px
;
border-radius
:
16r
px
;
background-color
:
#eeeeee
;
}
.active
{
...
...
@@ -126,23 +129,23 @@ uni-page-body {
}
}
.card-wrap
{
// margin-top:
5
px;
// margin-top:
10r
px;
display
:
grid
;
grid-template-columns
:
1fr
1fr
;
gap
:
5
px
;
gap
:
10r
px
;
}
}
}
.back
{
background-color
:
#fff
;
padding
:
20px
0
34px
;
box-shadow
:
0
px
-4px
8px
0
px
rgba
(
0
,
0
,
0
,
0
.12
);
padding
:
40rpx
0
;
box-shadow
:
0
rpx
-8rpx
16rpx
0r
px
rgba
(
0
,
0
,
0
,
0
.12
);
button
{
width
:
345
px
;
height
:
44
px
;
border-radius
:
34
px
;
width
:
690r
px
;
height
:
88r
px
;
border-radius
:
68r
px
;
background-color
:
#fa5151
;
font-size
:
16
px
;
font-size
:
32r
px
;
font-weight
:
500
;
color
:
#ffffff
;
}
...
...
src/static/assistingAgriculture/assets/like.png
0 → 100644
View file @
fecba94e
1.12 KB
src/static/assistingAgriculture/assets/likeFilled.png
0 → 100644
View file @
fecba94e
742 Bytes
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