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
729ee8ad
Commit
729ee8ad
authored
Mar 03, 2025
by
liwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
041ad6a8
e022905a
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
59 additions
and
28 deletions
+59
-28
index.vue
components/elm-toast/index.vue
+18
-9
index.vue
pages/tab/index.vue
+6
-2
publishArticle.vue
pagesArticle/publishArticle.vue
+1
-1
addMessage.vue
pagesUser/addMessage.vue
+19
-6
userInfo.vue
pagesUser/userInfo.vue
+5
-1
doubleauth.vue
pagesme/me/doubleauth.vue
+1
-1
updateInformation.vue
pagesme/me/updateInformation.vue
+6
-5
info.vue
pagesme/message/info.vue
+3
-3
No files found.
components/elm-toast/index.vue
View file @
729ee8ad
...
...
@@ -3,14 +3,15 @@
<view
class=
"bg"
></view>
<view
class=
"dialog_content"
>
<view
class=
"bag"
>
<image
class=
"pop-bgc"
:src=
"img + '/common/home-pop-bg.png'"
></image>
<view
class=
"divss"
>
<view
class=
"namne"
>
{{
tips
}}
</view>
<view
class=
"namnes"
>
{{
msg
!=
null
&&
msg
!=
''
?
msg
:
"网络异常"
}}
</view>
<view
v-if=
"isCancel==true"
style=
"display: flex; justify-content: center;"
>
<view
class=
"cancelButton"
@
click=
"cancel()"
>
取消
</view>
<view
class=
"confirmButton"
@
click=
"hideDialog()"
>
确定
</view>
<view
class=
"cancelButton"
@
click=
"cancel()"
>
{{
cancelName
}}
</view>
<view
class=
"confirmButton"
@
click=
"hideDialog()"
>
{{
confirmName
}}
</view>
</view>
<view
v-else
class=
"button"
@
click=
"hideDialog()"
>
确定
</view>
<view
v-else
class=
"button"
@
click=
"hideDialog()"
>
{{
confirmName
}}
</view>
</view>
</view>
</view>
...
...
@@ -28,6 +29,14 @@
type
:
String
,
default
:
"提示"
},
cancelName
:
{
type
:
String
,
default
:
"取消"
},
confirmName
:
{
type
:
String
,
default
:
"确定"
},
isCancel
:
{
type
:
Boolean
,
default
:
true
...
...
@@ -39,7 +48,7 @@
},
data
()
{
return
{
img
:
this
.
$
BASE
_URL
,
img
:
this
.
$
IMG
_URL
,
show
:
false
};
},
...
...
@@ -133,7 +142,7 @@
width
:
100%
;
height
:
56rpx
;
line-height
:
56rpx
;
margin-top
:
15
6rpx
;
margin-top
:
6
6rpx
;
text-align
:
center
;
}
...
...
@@ -150,7 +159,7 @@
line-height
:
84rpx
;
text-align
:
center
;
margin
:
0
auto
;
margin-top
:
64
rpx
;
margin-top
:
100
rpx
;
}
.cancelButton
{
...
...
@@ -166,7 +175,7 @@
line-height
:
84rpx
;
text-align
:
center
;
margin
:
0
auto
;
margin-top
:
64
rpx
;
margin-top
:
100
rpx
;
}
.button
{
...
...
@@ -182,7 +191,7 @@
line-height
:
84rpx
;
text-align
:
center
;
margin
:
0
auto
;
margin-top
:
64
rpx
;
margin-top
:
100
rpx
;
}
.namnes
{
width
:
364rpx
;
...
...
@@ -193,7 +202,7 @@
color
:
#4a4a4a
;
line-height
:
48rpx
;
margin
:
0
auto
;
margin-top
:
4
0rpx
;
margin-top
:
8
0rpx
;
text-align
:
center
;
}
}
...
...
pages/tab/index.vue
View file @
729ee8ad
...
...
@@ -64,7 +64,7 @@
</view>
</view>
</view>
<ELM
ref=
"elm"
:msg=
"tipMsg"
:isConfirm=
"isConfirm"
@
confirm=
"confirm"
></ELM>
<ELM
ref=
"elm"
:msg=
"tipMsg"
:isConfirm=
"isConfirm"
confirmName=
"认证"
@
confirm=
"confirm"
></ELM>
</view>
</
template
>
...
...
@@ -197,8 +197,12 @@
uni
.
showToast
({
title
:
'请先登录'
,
icon
:
'none'
,
duration
:
1000
})
setTimeout
(()
=>
{
uni
.
switchTab
({
url
:
'/pages/tab/my'
});
},
500
)
}
else
{
isStopAccount
().
then
(
res
=>
{
//如果flag=0 被禁用了 踢出该用户
...
...
pagesArticle/publishArticle.vue
View file @
729ee8ad
...
...
@@ -86,7 +86,7 @@
if
(
res
.
data
.
code
==
200
){
uni
.
showToast
({
title
:
'发表成功'
,
icon
:
'
success
'
icon
:
'
none
'
})
uni
.
setStorageSync
(
"isRefresh"
,
true
)
setTimeout
(()
=>
{
...
...
pagesUser/addMessage.vue
View file @
729ee8ad
...
...
@@ -63,9 +63,13 @@
}
addMessage
(
data
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
this
.
isConfirm
=
true
;
this
.
tipMsg
=
"发送成功"
;
this
.
$refs
.
elm
.
showDialog
();
uni
.
showToast
({
title
:
'发送成功'
,
icon
:
'none'
})
setTimeout
(()
=>
{
this
.
backbar
()
},
500
)
}
else
if
(
res
.
data
.
code
===
1001
){
//留言超出限制 是否采用金币进行留言
this
.
isPayConfirm
=
true
;
...
...
@@ -105,9 +109,13 @@
}
addMessage
(
form
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
){
this
.
isConfirm
=
true
;
this
.
tipMsg
=
"发送成功"
;
this
.
$refs
.
elm
.
showDialog
();
uni
.
showToast
({
title
:
'发送成功'
,
icon
:
'none'
})
setTimeout
(()
=>
{
this
.
backbar
()
},
500
)
}
else
if
(
res
.
data
.
code
===
1001
){
uni
.
showToast
({
title
:
res
.
data
.
message
,
...
...
@@ -126,6 +134,11 @@
url
:
"/pagesme/goldCoin/recharge"
})
},
backbar
(){
uni
.
navigateBack
({
delta
:
1
})
}
}
}
</
script
>
...
...
pagesUser/userInfo.vue
View file @
729ee8ad
...
...
@@ -197,7 +197,7 @@
</view>
<ELM
ref=
"elm"
:msg=
"tipMsg"
:isCancel=
"false"
:isConfirm=
"isConfirm"
@
confirm=
"confirm"
></ELM>
<ELM
ref=
"elmCoin"
:msg=
"tipMsg"
:isConfirm=
"isCoinConfirm"
@
confirm=
"coinConfirm"
></ELM>
<ELM
ref=
"elmCoin"
:msg=
"tipMsg"
:isConfirm=
"isCoinConfirm"
confirmName=
"充值"
@
confirm=
"coinConfirm"
></ELM>
<ELM
ref=
"elmLike"
:msg=
"tipMsg"
:isConfirm=
"isLikeConfirm"
@
confirm=
"likeConfirm"
></ELM>
</view>
</
template
>
...
...
@@ -496,6 +496,10 @@
setTimeout
(()
=>
{
this
.
showAnima
=
false
;
},
500
)
}
else
if
(
res
.
data
.
code
==
1003
)
{
this
.
isCoinConfirm
=
true
;
this
.
tipMsg
=
res
.
data
.
message
;
this
.
$refs
.
elmCoin
.
showDialog
();
}
else
{
uni
.
showToast
({
title
:
res
.
data
.
message
,
...
...
pagesme/me/doubleauth.vue
View file @
729ee8ad
...
...
@@ -3,7 +3,7 @@
<view
class=
"auth-item"
>
<image
class=
"auth-img"
:src=
"baseUrl+'/user/sfauth.png'"
></image>
<view
class=
"auth-con"
>
<view
class=
"auth-con-1"
>
身份
认证
</view>
<view
class=
"auth-con-1"
>
实名
认证
</view>
<view
class=
"auth-con-2"
style=
"color: #4093fa"
v-if=
"userInfo.memRealAuthen=='1'"
>
已认证
</view>
<view
class=
"auth-con-2"
v-else
>
未认证
</view>
</view>
...
...
pagesme/me/updateInformation.vue
View file @
729ee8ad
...
...
@@ -314,9 +314,10 @@ import {getOssUrl} from "../../api/article";
count
:
1
,
success
:
(
res
)
=>
{
res
.
tempFilePaths
.
forEach
((
i
)
=>
{
uni
.
showLoading
({
title
:
"图片上传中"
})
uni
.
showToast
({
title
:
'图片上传中'
,
icon
:
'none'
,
})
uni
.
uploadFile
({
url
:
this
.
$BASE_URL
+
'/common/fileUpload'
,
filePath
:
i
,
...
...
@@ -373,13 +374,13 @@ import {getOssUrl} from "../../api/article";
if
(
res
.
data
.
code
==
200
)
{
uni
.
showToast
({
title
:
'操作成功'
,
icon
:
'
success
'
,
icon
:
'
none
'
,
})
this
.
getUserInfo
()
}
else
{
uni
.
showToast
({
title
:
'操作失败'
,
icon
:
'
error
'
,
icon
:
'
none
'
,
})
this
.
getUserInfo
()
}
...
...
pagesme/message/info.vue
View file @
729ee8ad
...
...
@@ -68,8 +68,8 @@
</u-popup>
<ELM
ref=
"elm"
:msg=
"tipMsg"
:isCancel=
"false"
:isConfirm=
"isConfirm"
@
confirm=
"confirm"
></ELM>
<ELM
ref=
"elmShowApply"
:msg=
'tipMsg'
:isConfirm=
"showApply"
@
confirm=
"acceptPayConfirm"
@
cancel=
"refuse"
></ELM>
<ELM
ref=
"elmMessage"
:msg=
"tipMsg"
:isConfirm=
"isMessageConfirm"
@
confirm=
"messageConfirm"
></ELM>
<ELM
ref=
"elmShowApply"
:msg=
'tipMsg'
:isConfirm=
"showApply"
cancelName=
"拒绝"
confirmName=
"接受"
@
confirm=
"acceptPayConfirm"
@
cancel=
"refuse"
></ELM>
<ELM
ref=
"elmMessage"
:msg=
"tipMsg"
:isConfirm=
"isMessageConfirm"
confirmName=
"充值"
@
confirm=
"messageConfirm"
></ELM>
<ELM
ref=
"elmBlack"
:msg=
'tipMsg'
:isConfirm=
"isBlackConfirm"
@
confirm=
"blackConfirm"
></ELM>
<ELM
ref=
"elmMessagePay"
:msg=
'tipMsg'
:isConfirm=
"isMessagePayConfirm"
@
confirm=
"messagePayConfirm"
></ELM>
<ELM
ref=
"elmApplyPay"
:msg=
'tipMsg'
:isConfirm=
"isApplyPayConfirm"
@
confirm=
"applyPayConfirm"
></ELM>
...
...
@@ -467,7 +467,7 @@ export default {
},
phoneClick
(){
uni
.
showToast
({
title
:
'功能
待开发
'
,
title
:
'功能
开发中
'
,
icon
:
'none'
})
},
...
...
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