Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-app
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
李伟
cust-app
Commits
b5d9307b
Commit
b5d9307b
authored
Feb 11, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改留言
parent
02090bd9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
12 deletions
+50
-12
index.js
api/user/index.js
+3
-3
info.vue
pagesme/message/info.vue
+8
-4
message.vue
pagesme/message/message.vue
+37
-3
blackList.vue
pagesme/set/blackList.vue
+2
-2
No files found.
api/user/index.js
View file @
b5d9307b
...
@@ -104,7 +104,7 @@ export function rankList(data){
...
@@ -104,7 +104,7 @@ export function rankList(data){
*/
*/
export
function
addMessage
(
data
){
export
function
addMessage
(
data
){
return
request
({
return
request
({
url
:
'/app/mem
Info
/leaveMessage'
,
url
:
'/app/mem
LeaveMessage
/leaveMessage'
,
data
:
data
,
data
:
data
,
method
:
'POST'
,
method
:
'POST'
,
});
});
...
@@ -115,7 +115,7 @@ export function addMessage(data){
...
@@ -115,7 +115,7 @@ export function addMessage(data){
export
function
messageList
(
data
){
export
function
messageList
(
data
){
return
request
({
return
request
({
method
:
"get"
,
method
:
"get"
,
url
:
'/app/mem
Info/leaveMessage
List'
,
url
:
'/app/mem
LeaveMessage/talk
List'
,
data
data
});
});
}
}
...
@@ -126,7 +126,7 @@ export function messageList(data){
...
@@ -126,7 +126,7 @@ export function messageList(data){
export
function
telMessage
(
data
){
export
function
telMessage
(
data
){
return
request
({
return
request
({
method
:
"get"
,
method
:
"get"
,
url
:
'/app/mem
Info
/leaveMessageDetailList'
,
url
:
'/app/mem
LeaveMessage
/leaveMessageDetailList'
,
data
,
data
,
});
});
}
}
...
...
pagesme/message/info.vue
View file @
b5d9307b
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<view
class=
"chat-item-name"
>
{{
item
.
memNickName
}}
</view>
<view
class=
"chat-item-name"
>
{{
item
.
memNickName
}}
</view>
<view
class=
"chat-item-msg-layout"
>
<view
class=
"chat-item-msg-layout"
>
<image
class=
"chat-item-photo"
:src=
"item.avatarUrl"
mode=
"aspectFit"
></image>
<image
class=
"chat-item-photo"
:src=
"item.avatarUrl"
mode=
"aspectFit"
></image>
<view
class=
"chat-inner-msg-left"
>
{{
item
.
leaveMessageC
ontent
}}
</view>
<view
class=
"chat-inner-msg-left"
>
{{
item
.
c
ontent
}}
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<view
class=
"chat-inner-layout"
>
<view
class=
"chat-inner-layout"
>
<view
class=
"chat-item-name-right"
>
{{
item
.
memNickName
}}
</view>
<view
class=
"chat-item-name-right"
>
{{
item
.
memNickName
}}
</view>
<view
class=
"chat-item-msg-layout"
>
<view
class=
"chat-item-msg-layout"
>
<view
class=
"chat-inner-msg-right"
>
{{
item
.
leaveMessageC
ontent
}}
</view>
<view
class=
"chat-inner-msg-right"
>
{{
item
.
c
ontent
}}
</view>
<image
class=
"chat-item-photo"
:src=
"item.avatarUrl"
mode=
"aspectFit"
></image>
<image
class=
"chat-item-photo"
:src=
"item.avatarUrl"
mode=
"aspectFit"
></image>
</view>
</view>
</view>
</view>
...
@@ -61,7 +61,9 @@ export default {
...
@@ -61,7 +61,9 @@ export default {
onShow
(){
onShow
(){
this
.
getMessageList
()
this
.
getMessageList
()
// 滚动到页面底部
// 滚动到页面底部
this
.
pageScrollToBottom
()
this
.
$nextTick
(()
=>
{
this
.
pageScrollToBottom
()
})
},
},
methods
:
{
methods
:
{
/**
/**
...
@@ -133,7 +135,9 @@ export default {
...
@@ -133,7 +135,9 @@ export default {
this
.
inputTemp
=
''
this
.
inputTemp
=
''
})
})
// 滚动到页面底部
// 滚动到页面底部
this
.
pageScrollToBottom
()
this
.
$nextTick
(()
=>
{
this
.
pageScrollToBottom
()
})
},
},
/**
/**
* 获取当前时间
* 获取当前时间
...
...
pagesme/message/message.vue
View file @
b5d9307b
...
@@ -6,14 +6,21 @@
...
@@ -6,14 +6,21 @@
<view
v-if=
"isdata"
class=
"nodatacard"
>
<view
v-if=
"isdata"
class=
"nodatacard"
>
<view
class=
"text"
>
暂无数据
</view>
<view
class=
"text"
>
暂无数据
</view>
</view>
</view>
<u-swipe-action>
<u-swipe-action-item
:options=
"options"
v-for=
"(item, index) in userList"
:key=
"index"
@
click=
"handleDelete(item.businessId)"
>
<view
class=
"card"
>
<view
class=
"card"
>
<view
class=
"recommendation-card"
v-for=
"item in userList"
@
click=
"gotoBusinessDetail(item)"
>
<view
class=
"recommendation-card"
@
click=
"gotoBusinessDetail(item)"
>
<view
class=
"card-image"
style=
"justify-content: left;display: flex"
>
<view
class=
"card-image"
style=
"justify-content: left;display: flex"
>
<image
class=
"img"
:src=
"item.avatarUrl"
/>
<image
class=
"img"
:src=
"item.avatarUrl"
/>
<view
style=
"margin-left: 20rpx;margin-top: 20rpx;font-weight: 400;font-size: 32rpx"
>
<view
style=
"margin-left: 20rpx;margin-top: 20rpx;font-weight: 400;font-size: 32rpx"
>
{{
item
.
memNickName
}}
{{
item
.
memNickName
}}
<view
class=
"message"
>
<view
class=
"message"
>
{{
item
.
leaveMessageC
ontent
}}
{{
item
.
c
ontent
}}
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -27,7 +34,7 @@
...
@@ -27,7 +34,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
messageList
}
from
"../../api/user"
;
import
{
deleteBlack
,
messageList
}
from
"../../api/user"
;
import
{
getOssUrl
}
from
"../../api/article"
;
import
{
getOssUrl
}
from
"../../api/article"
;
export
default
{
export
default
{
...
@@ -43,6 +50,14 @@ export default {
...
@@ -43,6 +50,14 @@ export default {
type
:
''
,
type
:
''
,
//页面数据的数量
//页面数据的数量
num
:
''
,
num
:
''
,
options
:[
{
text
:
'移除'
,
style
:
{
backgroundColor
:
'#ff0000'
,
},
},
],
//距离表头
//距离表头
navHeight
:
''
,
navHeight
:
''
,
share
:
false
,
share
:
false
,
...
@@ -95,6 +110,25 @@ export default {
...
@@ -95,6 +110,25 @@ export default {
url
:
"/pagesme/message/info?targetId="
+
item
.
targetId
url
:
"/pagesme/message/info?targetId="
+
item
.
targetId
})
})
},
},
handleDelete
(
id
){
uni
.
showModal
({
title
:
'提示'
,
content
:
'确定移除吗?'
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
deleteBlack
(
id
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
uni
.
showToast
({
title
:
'移除成功'
,
icon
:
'none'
});
this
.
getBlackList
(
1
,
10
);
}
})
}
}
})
},
backbar
()
{
backbar
()
{
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
,
//返回层数,2则上上页
delta
:
1
,
//返回层数,2则上上页
...
...
pagesme/set/blackList.vue
View file @
b5d9307b
<
template
>
<
template
>
<view>
<view>
<z-paging
ref=
"paging"
empty-view-text=
"
迈出第一步才有更多故事发生哦
"
<z-paging
ref=
"paging"
empty-view-text=
"
"
:empty-view-title-style=
"
{
:empty-view-title-style=
"
{
'font-size': '32rpx',
'font-size': '32rpx',
'color': '#C9C9D0',
'color': '#C9C9D0',
...
@@ -51,7 +51,7 @@ export default {
...
@@ -51,7 +51,7 @@ export default {
{
{
text
:
'移除'
,
text
:
'移除'
,
style
:
{
style
:
{
backgroundColor
:
'#
3c9cff
'
,
backgroundColor
:
'#
ff0000
'
,
},
},
},
},
],
],
...
...
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