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
bba65676
Commit
bba65676
authored
Aug 12, 2024
by
彭佳妮(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
评论列表
parent
c42bd206
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
2 deletions
+45
-2
packageDetail.js
src/api/packageDetail.js
+1
-1
pages.json
src/pages.json
+2
-1
comment.vue
src/pages/assistingAgriculture/detail/comment.vue
+42
-0
No files found.
src/api/packageDetail.js
View file @
bba65676
...
@@ -57,7 +57,7 @@ export function receiveCoupon(data) {
...
@@ -57,7 +57,7 @@ export function receiveCoupon(data) {
}
}
// 商家评论列表
// 商家评论列表
export
function
receiveCoupon
(
data
)
{
export
function
getCommentList
(
data
)
{
return
request
({
return
request
({
url
:
`/sgyrdd/evaluation/page`
,
url
:
`/sgyrdd/evaluation/page`
,
method
:
'GET'
,
method
:
'GET'
,
...
...
src/pages.json
View file @
bba65676
...
@@ -255,7 +255,8 @@
...
@@ -255,7 +255,8 @@
{
{
"path"
:
"pages/assistingAgriculture/detail/comment"
,
"path"
:
"pages/assistingAgriculture/detail/comment"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"评论"
"navigationBarTitleText"
:
"评论"
,
"enablePullDownRefresh"
:
true
}
}
}
}
],
],
...
...
src/pages/assistingAgriculture/detail/comment.vue
View file @
bba65676
...
@@ -76,6 +76,8 @@
...
@@ -76,6 +76,8 @@
</
template
>
</
template
>
<
script
setup
>
<
script
setup
>
import
{
getCommentList
}
from
'@/api/packageDetail'
;
const
fileDomain
=
import
.
meta
.
env
.
VITE_APP_IMG_URL
;
const
searchValue
=
ref
(
''
);
const
searchValue
=
ref
(
''
);
const
tab
=
ref
(
0
);
const
tab
=
ref
(
0
);
...
@@ -130,6 +132,46 @@ const rateList = ref([
...
@@ -130,6 +132,46 @@ const rateList = ref([
},
},
]);
]);
/**
* 获取用户优惠券列表
*/
const
isEnd
=
ref
(
false
);
const
state
=
ref
(
'loading'
);
const
total
=
ref
(
0
);
const
couponData
=
ref
([]);
const
catalog
=
reactive
({
current
:
0
,
size
:
10
,
statuMain
:
0
,
statuSon
:
0
,
});
const
getCouponList
=
async
()
=>
{
// if (isEnd.value) return;
catalog
.
current
++
;
state
.
value
=
'loading'
;
catalog
.
statuMain
=
currentTab
.
value
;
catalog
.
statuSon
=
currenStatus
.
value
;
console
.
log
(
catalog
);
xma
.
showLoading
({
title
:
'加载中...'
,
mask
:
true
,
});
const
res
=
await
getCommentList
(
catalog
);
if
(
res
.
data
.
records
.
length
<
catalog
.
size
)
{
isEnd
.
value
=
true
;
}
if
(
res
.
data
.
records
.
length
>
0
)
{
res
.
data
.
records
.
forEach
((
item
)
=>
{
item
.
showDetail
=
false
;
});
couponData
.
value
.
push
(...
res
.
data
.
records
);
total
.
value
=
res
.
data
.
total
;
}
// state.value = 'finished';
xma
.
hideLoading
();
};
getList
();
const
handleChangeTab
=
(
e
)
=>
{
const
handleChangeTab
=
(
e
)
=>
{
if
(
e
===
tab
.
value
)
return
;
if
(
e
===
tab
.
value
)
return
;
tab
.
value
=
e
;
tab
.
value
=
e
;
...
...
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