Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db_qms_wx
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
刘怀志
db_qms_wx
Commits
fd265c9f
Commit
fd265c9f
authored
Apr 17, 2025
by
刘怀志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(登录): /sysWxUser/bind修改
parent
9f391771
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
4 deletions
+25
-4
login.js
api/login.js
+4
-1
index.vue
pages/message/index.vue
+21
-3
No files found.
api/login.js
View file @
fd265c9f
...
...
@@ -17,7 +17,10 @@ export function wxBind(data) {
return
request
({
url
:
'/sysWxUser/bind'
,
method
:
'post'
,
data
:
data
data
:
data
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
// 接口修改传参类型
}
})
}
...
...
pages/message/index.vue
View file @
fd265c9f
<
template
>
<view
style=
"background-color: #fff;height:
100
vh"
>
<view
style=
"background-color: #fff;height:
94.5
vh"
>
<mine-navbar
title=
"DHEC QMS"
/>
<view
class=
"notice-container"
>
...
...
@@ -15,7 +15,11 @@
@click="clickTabs"
>
</u-tabs>
</view>
<scroll-view
class=
"scroll-view"
scroll-y=
"true"
@
scrolltolower=
"scrolltolower"
:scroll-with-animation=
"true"
>
<!--消息卡片-->
<view
v-for=
"(item,key) in noticeList"
:key=
"key"
style=
"display: flex;background-color: #ffffff"
@
click=
"handleRowClick(item)"
>
<view
class=
"noticeCard"
>
...
...
@@ -55,7 +59,7 @@
<
view
v
-
show
=
"loadStatus === 'loading'"
style
=
"text-align: center"
>
<!--
<
image
src
=
"../../static/images/home/loading.gif"
style
=
"width: 50rpx;height: 60rpx;"
/>
-->
<
/view
>
<
/scroll-view
>
<!--
顶部提示
-->
<
/view
>
<
/view
>
...
...
@@ -123,6 +127,17 @@ export default {
this
.
getPetmNoticeList
()
}
,
methods
:
{
// 处理滚动加载
scrolltolower
()
{
this
.
loadStatus
=
'loading'
if
(
this
.
queryNotice
.
rows
*
this
.
queryNotice
.
page
>=
this
.
total
)
{
this
.
loadStatus
=
'nomore'
}
else
{
this
.
queryNotice
.
rows
+=
this
.
defaultPageSize
this
.
getPetmNoticeList
()
this
.
loadStatus
=
'loadmore'
}
}
,
handleRowClick
(
row
)
{
console
.
log
(
'当前行数据:'
,
row
)
// 这里可以添加其他处理逻辑
...
...
@@ -335,6 +350,9 @@ export default {
<
/script
>
<
style
scoped
lang
=
"scss"
>
.
scroll
-
view
{
height
:
60
vh
;
}
.
no
-
message
{
text
-
align
:
center
;
height
:
calc
(
100
vh
-
350
rpx
);
...
...
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