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
c5aa9606
Commit
c5aa9606
authored
Mar 02, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改弹窗
parent
53f39874
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
125 additions
and
132 deletions
+125
-132
info.vue
pagesme/message/info.vue
+125
-132
No files found.
pagesme/message/info.vue
View file @
c5aa9606
...
...
@@ -70,6 +70,11 @@
<ELM
ref=
"elm"
:msg=
"tipMsg"
:isConfirm=
"isConfirm"
@
confirm=
"confirm"
></ELM>
<ELM
ref=
"elm"
:msg=
'tipMsg'
:isConfirm=
"showApply"
@
confirm=
"apply"
@
cancel=
"refuse"
></ELM>
<ELM
ref=
"elmMessage"
:msg=
"tipMsg"
:isConfirm=
"isMessageConfirm"
@
confirm=
"messageConfirm"
></ELM>
<ELM
ref=
"elm"
:msg=
'tipMsg'
:isConfirm=
"isBlackConfirm"
@
confirm=
"blackConfirm"
></ELM>
<ELM
ref=
"elm"
:msg=
'tipMsg'
:isConfirm=
"isMessagePayConfirm"
@
confirm=
"messagePayConfirm"
></ELM>
<ELM
ref=
"elm"
:msg=
'tipMsg'
:isConfirm=
"isApplyPayConfirm"
@
confirm=
"applyPayConfirm"
></ELM>
<ELM
ref=
"elm"
:msg=
'tipMsg'
:isConfirm=
"isAcceptPayConfirm"
@
confirm=
"acceptPayConfirm"
></ELM>
<ELM
ref=
"elm"
:msg=
'tipMsg'
:isConfirm=
"isRefuseConfirm"
@
confirm=
"refuseConfirm"
></ELM>
</view>
</template>
...
...
@@ -105,6 +110,11 @@ export default {
tipMsg
:
''
,
isConfirm
:
false
,
isMessageConfirm
:
false
,
isBlackConfirm
:
false
,
isMessagePayConfirm
:
false
,
isApplyPayConfirm
:
false
,
isAcceptPayConfirm
:
false
,
isRefuseConfirm
:
false
,
applyWxPayment
:
0
,
acceptWxPayment
:
0
,
wxTask
:[]
...
...
@@ -225,23 +235,9 @@ export default {
},
//拉黑
addBlack
()
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'确定拉黑该用户吗?'
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
const
form
=
{
targetId
:
this
.
targetId
}
addBlack
(
form
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
){
uni
.
setStorageSync
(
"isRefresh"
,
true
)
this
.
backbar
()
}
})
}
}
})
this
.
isBlackConfirm
=
true
this
.
tipMsg
=
"确定拉黑该用户吗?"
;
this
.
$refs
.
elm
.
showDialog
();
},
/**
* 发送
...
...
@@ -267,32 +263,9 @@ export default {
this
.
inputTemp
=
''
}
else
if
(
res
.
data
.
code
===
1001
){
//留言超出限制 是否采用金币进行留言
uni
.
showModal
({
title
:
'提示'
,
content
:
'已超出留言次数,是否花费'
+
this
.
payCount
+
'金币再进行留言'
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
const
form
=
{
targetId
:
this
.
targetId
,
//目标id
content
:
inputValue
,
//输入的内容
isPay
:
'1'
,
//1花费 0不花费
wxOpenid
:
this
.
userInfo
.
wxOpenid
}
addMessage
(
form
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
){
this
.
$refs
.
paging
.
reload
();
this
.
inputTemp
=
''
}
else
{
this
.
isMessageConfirm
=
true
;
this
.
tipMsg
=
res
.
data
.
message
;
this
.
$refs
.
elm
.
showDialog
();
}
})
}
else
if
(
res
.
cancel
)
{
}
}
});
this
.
isMessagePayConfirm
=
true
;
this
.
tipMsg
=
'已超出留言次数,是否花费'
+
this
.
payCount
+
'金币再进行留言'
;
this
.
$refs
.
elm
.
showDialog
();
this
.
inputTemp
=
''
}
else
if
(
res
.
data
.
code
===
1002
){
uni
.
showToast
({
...
...
@@ -333,37 +306,9 @@ export default {
}).
exec
()
},
wantWxC
(){
uni
.
showModal
({
title
:
'提示'
,
content
:
'是否花费'
+
this
.
applyWxPayment
+
'金币,向对方发起请求'
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
const
form
=
{
targetId
:
this
.
targetId
,
type
:
'1'
,
wxOpenid
:
this
.
userInfo
.
wxOpenid
}
wantWeChatTask
(
form
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
){
this
.
getWxTask
()
uni
.
showToast
({
title
:
'已发送请求'
,
icon
:
'none'
})
}
else
if
(
res
.
data
.
code
==
1005
||
res
.
data
.
code
==
1006
){
uni
.
showToast
({
title
:
res
.
data
.
message
,
icon
:
'none'
})
}
else
{
this
.
isMessageConfirm
=
true
;
this
.
tipMsg
=
res
.
data
.
message
;
this
.
$refs
.
elm
.
showDialog
();
}
})
}
}
})
this
.
isApplyPayConfirm
=
true
this
.
tipMsg
=
"是否花费"
+
this
.
applyWxPayment
+
"金币,向对方发起请求"
;
this
.
$refs
.
elm
.
showDialog
();
},
close
()
{
this
.
show
=
false
...
...
@@ -380,66 +325,14 @@ export default {
this
.
$refs
.
elm
.
showDialog
();
},
apply
(){
uni
.
showModal
({
title
:
'提示'
,
content
:
'是否同意花费'
+
this
.
acceptWxPayment
+
'金币,接受对方请求'
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
const
form
=
{
targetId
:
this
.
targetId
,
status
:
'1'
,
type
:
'2'
,
wxOpenid
:
this
.
userInfo
.
wxOpenid
}
wantWeChatTask
(
form
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
){
this
.
getWxTask
()
uni
.
showToast
({
title
:
'已接受请求'
,
icon
:
'none'
})
this
.
showApply
=
false
}
else
{
this
.
showApply
=
false
this
.
isMessageConfirm
=
true
;
this
.
tipMsg
=
res
.
data
.
message
;
this
.
$refs
.
elm
.
showDialog
();
}
})
}
}
})
this
.
isAcceptPayConfirm
=
true
this
.
tipMsg
=
'是否花费'
+
this
.
acceptWxPayment
+
'金币,向对方发起请求'
;
this
.
$refs
.
elm
.
showDialog
();
},
refuse
(){
uni
.
showModal
({
title
:
'提示'
,
content
:
'是否确认拒绝对方请求'
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
const
form
=
{
targetId
:
this
.
targetId
,
status
:
'2'
,
type
:
'2'
,
wxOpenid
:
this
.
userInfo
.
wxOpenid
}
wantWeChatTask
(
form
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
){
this
.
getWxTask
()
uni
.
showToast
({
title
:
'已拒绝请求'
,
icon
:
'none'
})
this
.
showApply
=
false
}
else
{
this
.
showApply
=
false
this
.
isMessageConfirm
=
true
;
this
.
tipMsg
=
res
.
data
.
message
;
this
.
$refs
.
elm
.
showDialog
();
}
})
}
}
})
this
.
isRefuseConfirm
=
true
this
.
tipMsg
=
'是否确认拒绝对方请求'
;
this
.
$refs
.
elm
.
showDialog
();
},
getWxTask
(){
const
form
=
{
...
...
@@ -464,6 +357,106 @@ export default {
url
:
"/pagesme/goldCoin/recharge"
})
},
blackConfirm
(){
const
form
=
{
targetId
:
this
.
targetId
}
addBlack
(
form
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
){
uni
.
setStorageSync
(
"isRefresh"
,
true
)
this
.
backbar
()
}
})
},
messagePayConfirm
(){
const
form
=
{
targetId
:
this
.
targetId
,
//目标id
content
:
this
.
inputTemp
,
//输入的内容
isPay
:
'1'
,
//1花费 0不花费
wxOpenid
:
this
.
userInfo
.
wxOpenid
}
addMessage
(
form
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
){
this
.
$refs
.
paging
.
reload
();
this
.
inputTemp
=
''
}
else
{
this
.
isMessageConfirm
=
true
;
this
.
tipMsg
=
res
.
data
.
message
;
this
.
$refs
.
elm
.
showDialog
();
}
})
},
applyPayConfirm
(){
const
form
=
{
targetId
:
this
.
targetId
,
type
:
'1'
,
wxOpenid
:
this
.
userInfo
.
wxOpenid
}
wantWeChatTask
(
form
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
){
this
.
getWxTask
()
uni
.
showToast
({
title
:
'已发送请求'
,
icon
:
'none'
})
}
else
if
(
res
.
data
.
code
==
1005
||
res
.
data
.
code
==
1006
){
uni
.
showToast
({
title
:
res
.
data
.
message
,
icon
:
'none'
})
}
else
{
this
.
isMessageConfirm
=
true
;
this
.
tipMsg
=
res
.
data
.
message
;
this
.
$refs
.
elm
.
showDialog
();
}
})
},
acceptPayConfirm
(){
const
form
=
{
targetId
:
this
.
targetId
,
status
:
'1'
,
type
:
'2'
,
wxOpenid
:
this
.
userInfo
.
wxOpenid
}
wantWeChatTask
(
form
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
){
this
.
getWxTask
()
uni
.
showToast
({
title
:
'已接受请求'
,
icon
:
'none'
})
this
.
showApply
=
false
}
else
{
this
.
showApply
=
false
this
.
isMessageConfirm
=
true
;
this
.
tipMsg
=
res
.
data
.
message
;
this
.
$refs
.
elm
.
showDialog
();
}
})
},
refuseConfirm
(){
const
form
=
{
targetId
:
this
.
targetId
,
status
:
'2'
,
type
:
'2'
,
wxOpenid
:
this
.
userInfo
.
wxOpenid
}
wantWeChatTask
(
form
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
){
this
.
getWxTask
()
uni
.
showToast
({
title
:
'已拒绝请求'
,
icon
:
'none'
})
this
.
showApply
=
false
}
else
{
this
.
showApply
=
false
this
.
isMessageConfirm
=
true
;
this
.
tipMsg
=
res
.
data
.
message
;
this
.
$refs
.
elm
.
showDialog
();
}
})
},
phoneClick
(){
uni
.
showToast
({
title
:
'功能待开发'
,
...
...
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