Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mp-enterprise-people-recruitment-h5
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
彭佳妮(贵阳日报)
mp-enterprise-people-recruitment-h5
Commits
fc98cee6
Commit
fc98cee6
authored
Oct 10, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c37ed5d3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
4 deletions
+52
-4
user.js
src/api/user.js
+4
-0
index.vue
src/pages/user/problemRecord/index.vue
+48
-4
No files found.
src/api/user.js
View file @
fc98cee6
...
@@ -31,5 +31,9 @@ export const saveCompanyInfoApi = params => instance.post("/company/save", param
...
@@ -31,5 +31,9 @@ export const saveCompanyInfoApi = params => instance.post("/company/save", param
//企业申诉
//企业申诉
export
const
companyAppealApi
=
params
=>
instance
.
post
(
"/company/appeal"
,
params
);
export
const
companyAppealApi
=
params
=>
instance
.
post
(
"/company/appeal"
,
params
);
//添加反馈信息
//添加反馈信息
export
const
feedbackAdd
=
params
=>
instance
.
post
(
"/feedback/add/business"
,
params
);
export
const
feedbackAdd
=
params
=>
instance
.
post
(
"/feedback/add/business"
,
params
);
//我的反馈列表
export
const
feedbackList
=
params
=>
instance
.
post
(
"/feedback/list"
,
params
);
src/pages/user/problemRecord/index.vue
View file @
fc98cee6
<
template
>
<
template
>
<view
class=
"problem-page"
>
<view
class=
"problem-page"
>
<view
class=
"history-item"
v-for=
"i
in 10"
:key=
"i
"
>
<view
class=
"history-item"
v-for=
"i
tem in list"
:key=
"item.id
"
>
<view
class=
"item-left"
>
<view
class=
"item-left"
>
<view
class=
"title"
>
贵州人力资源服务业高质量发若
</view>
<view
class=
"title"
>
{{
item
.
questionDesc
}}
</view>
<view
class=
"time"
>
2024-06-21 12:30
</view>
<view
class=
"time"
>
2024-06-21 12:30
</view>
</view>
</view>
<view
class=
"btn"
style=
"background: #f3f4f8"
>
待回复
</view>
<view
class=
"btn"
style=
"background: #f3f4f8"
>
待回复
</view>
...
@@ -20,6 +20,13 @@
...
@@ -20,6 +20,13 @@
</
template
>
</
template
>
<
script
setup
>
<
script
setup
>
import
{
feedbackList
}
from
"@/api/user"
;
const
list
=
ref
([]);
const
params
=
ref
({
pageNo
:
1
,
pageSize
:
10
,
isEnd
:
false
});
/**
/**
* 跳转详情
* 跳转详情
*/
*/
...
@@ -28,9 +35,46 @@ const navigateTo = () => {
...
@@ -28,9 +35,46 @@ const navigateTo = () => {
url
:
`/pages/user/feedbackDetails/index`
url
:
`/pages/user/feedbackDetails/index`
});
});
};
};
onPullDownRefresh
(()
=>
{});
onShow
(()
=>
{
feedbackListFn
();
});
const
feedbackListFn
=
()
=>
{
if
(
params
.
value
.
isEnd
===
true
)
return
new
Promise
(
resolve
=>
{
resolve
();
});
xma
.
showLoading
({
title
:
"加载中..."
,
mask
:
true
});
return
feedbackList
(
params
.
value
).
then
(
res
=>
{
if
(
res
.
data
.
length
<
params
.
value
.
pageSize
)
{
params
.
value
.
isEnd
=
true
;
}
params
.
value
.
pageNo
+=
1
;
list
.
value
=
list
.
value
.
concat
(
res
.
data
);
xma
.
hideLoading
();
});
};
const
refresh
=
()
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
list
.
value
=
[];
params
.
value
.
pageNo
=
1
;
params
.
value
.
isEnd
=
false
;
resolve
();
});
};
onPullDownRefresh
(()
=>
{
refresh
().
then
(()
=>
{
feedbackListFn
().
then
(()
=>
{
xma
.
stopPullDownRefresh
();
});
});
});
// 触底加载
// 触底加载
onReachBottom
(()
=>
{});
onReachBottom
(()
=>
{
feedbackListFn
();
});
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
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