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
Show 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 @@
...
@@ -70,6 +70,11 @@
<ELM
ref=
"elm"
:msg=
"tipMsg"
:isConfirm=
"isConfirm"
@
confirm=
"confirm"
></ELM>
<ELM
ref=
"elm"
:msg=
"tipMsg"
:isConfirm=
"isConfirm"
@
confirm=
"confirm"
></ELM>
<ELM
ref=
"elm"
:msg=
'tipMsg'
:isConfirm=
"showApply"
@
confirm=
"apply"
@
cancel=
"refuse"
></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=
"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>
</view>
</template>
</template>
...
@@ -105,6 +110,11 @@ export default {
...
@@ -105,6 +110,11 @@ export default {
tipMsg
:
''
,
tipMsg
:
''
,
isConfirm
:
false
,
isConfirm
:
false
,
isMessageConfirm
:
false
,
isMessageConfirm
:
false
,
isBlackConfirm
:
false
,
isMessagePayConfirm
:
false
,
isApplyPayConfirm
:
false
,
isAcceptPayConfirm
:
false
,
isRefuseConfirm
:
false
,
applyWxPayment
:
0
,
applyWxPayment
:
0
,
acceptWxPayment
:
0
,
acceptWxPayment
:
0
,
wxTask
:[]
wxTask
:[]
...
@@ -225,23 +235,9 @@ export default {
...
@@ -225,23 +235,9 @@ export default {
},
},
//拉黑
//拉黑
addBlack
()
{
addBlack
()
{
uni
.
showModal
({
this
.
isBlackConfirm
=
true
title
:
'提示'
,
this
.
tipMsg
=
"确定拉黑该用户吗?"
;
content
:
'确定拉黑该用户吗?'
,
this
.
$refs
.
elm
.
showDialog
();
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
()
}
})
}
}
})
},
},
/**
/**
* 发送
* 发送
...
@@ -267,32 +263,9 @@ export default {
...
@@ -267,32 +263,9 @@ export default {
this
.
inputTemp
=
''
this
.
inputTemp
=
''
}
else
if
(
res
.
data
.
code
===
1001
){
}
else
if
(
res
.
data
.
code
===
1001
){
//留言超出限制 是否采用金币进行留言
//留言超出限制 是否采用金币进行留言
uni
.
showModal
({
this
.
isMessagePayConfirm
=
true
;
title
:
'提示'
,
this
.
tipMsg
=
'已超出留言次数,是否花费'
+
this
.
payCount
+
'金币再进行留言'
;
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
();
this
.
$refs
.
elm
.
showDialog
();
}
})
}
else
if
(
res
.
cancel
)
{
}
}
});
this
.
inputTemp
=
''
this
.
inputTemp
=
''
}
else
if
(
res
.
data
.
code
===
1002
){
}
else
if
(
res
.
data
.
code
===
1002
){
uni
.
showToast
({
uni
.
showToast
({
...
@@ -333,11 +306,87 @@ export default {
...
@@ -333,11 +306,87 @@ export default {
}).
exec
()
}).
exec
()
},
},
wantWxC
(){
wantWxC
(){
uni
.
showModal
({
this
.
isApplyPayConfirm
=
true
title
:
'提示'
,
this
.
tipMsg
=
"是否花费"
+
this
.
applyWxPayment
+
"金币,向对方发起请求"
;
content
:
'是否花费'
+
this
.
applyWxPayment
+
'金币,向对方发起请求'
,
this
.
$refs
.
elm
.
showDialog
();
success
:
(
res
)
=>
{
},
if
(
res
.
confirm
)
{
close
()
{
this
.
show
=
false
},
open
(){
this
.
show
=
true
},
closeApply
(){
this
.
showApply
=
false
},
openApply
(){
this
.
showApply
=
true
this
.
tipMsg
=
'是否接受对方的请求'
this
.
$refs
.
elm
.
showDialog
();
},
apply
(){
this
.
isAcceptPayConfirm
=
true
this
.
tipMsg
=
'是否花费'
+
this
.
acceptWxPayment
+
'金币,向对方发起请求'
;
this
.
$refs
.
elm
.
showDialog
();
},
refuse
(){
this
.
isRefuseConfirm
=
true
this
.
tipMsg
=
'是否确认拒绝对方请求'
;
this
.
$refs
.
elm
.
showDialog
();
},
getWxTask
(){
const
form
=
{
targetId
:
this
.
targetId
,
}
getWeChatTask
(
form
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
){
this
.
wxTask
=
res
.
data
.
data
if
(
this
.
wxTask
.
type
===
'2'
&&
this
.
wxTask
.
status
===
'1'
){
//请求已经被回应了.让tabbar变色
this
.
tabbarValue
=
1
}
}
})
},
confirm
()
{
this
.
isConfirm
=
false
;
},
messageConfirm
(){
this
.
isMessageConfirm
=
false
;
uni
.
navigateTo
({
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
=
{
const
form
=
{
targetId
:
this
.
targetId
,
targetId
:
this
.
targetId
,
type
:
'1'
,
type
:
'1'
,
...
@@ -361,30 +410,8 @@ export default {
...
@@ -361,30 +410,8 @@ export default {
this
.
$refs
.
elm
.
showDialog
();
this
.
$refs
.
elm
.
showDialog
();
}
}
})
})
}
}
})
},
close
()
{
this
.
show
=
false
},
open
(){
this
.
show
=
true
},
closeApply
(){
this
.
showApply
=
false
},
},
openApply
(){
acceptPayConfirm
(){
this
.
showApply
=
true
this
.
tipMsg
=
'是否接受对方的请求'
this
.
$refs
.
elm
.
showDialog
();
},
apply
(){
uni
.
showModal
({
title
:
'提示'
,
content
:
'是否同意花费'
+
this
.
acceptWxPayment
+
'金币,接受对方请求'
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
const
form
=
{
const
form
=
{
targetId
:
this
.
targetId
,
targetId
:
this
.
targetId
,
status
:
'1'
,
status
:
'1'
,
...
@@ -406,16 +433,8 @@ export default {
...
@@ -406,16 +433,8 @@ export default {
this
.
$refs
.
elm
.
showDialog
();
this
.
$refs
.
elm
.
showDialog
();
}
}
})
})
}
}
})
},
},
refuse
(){
refuseConfirm
(){
uni
.
showModal
({
title
:
'提示'
,
content
:
'是否确认拒绝对方请求'
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
const
form
=
{
const
form
=
{
targetId
:
this
.
targetId
,
targetId
:
this
.
targetId
,
status
:
'2'
,
status
:
'2'
,
...
@@ -437,32 +456,6 @@ export default {
...
@@ -437,32 +456,6 @@ export default {
this
.
$refs
.
elm
.
showDialog
();
this
.
$refs
.
elm
.
showDialog
();
}
}
})
})
}
}
})
},
getWxTask
(){
const
form
=
{
targetId
:
this
.
targetId
,
}
getWeChatTask
(
form
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
){
this
.
wxTask
=
res
.
data
.
data
if
(
this
.
wxTask
.
type
===
'2'
&&
this
.
wxTask
.
status
===
'1'
){
//请求已经被回应了.让tabbar变色
this
.
tabbarValue
=
1
}
}
})
},
confirm
()
{
this
.
isConfirm
=
false
;
},
messageConfirm
(){
this
.
isMessageConfirm
=
false
;
uni
.
navigateTo
({
url
:
"/pagesme/goldCoin/recharge"
})
},
},
phoneClick
(){
phoneClick
(){
uni
.
showToast
({
uni
.
showToast
({
...
...
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