Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
ztx_wx_gzt
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
86ed73ee
authored
2026-05-08 09:48:32 +0800
by
lttnew
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提示修改密码
1 parent
6d21bc62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
16 deletions
pages/index/home.vue
pages/index/home.vue
View file @
86ed73e
...
...
@@ -581,6 +581,19 @@
</view>
</view>
</uni-popup>
<!-- 密码长期未更新提示弹框 -->
<uni-popup
ref=
"passwordTipPopup"
:mask-click=
"false"
type=
"center"
>
<view
class=
"dialog-wrapper password-tip-dialog"
>
<view
class=
"dialog-title"
>
温馨提示
</view>
<view
class=
"dialog-message"
>
<text>
密码长期未更新,请及时更新
</text>
</view>
<view
class=
"dialog-footer"
>
<button
class=
"dialog-btn confirm"
@
click=
"closePasswordTipDialog"
>
确定
</button>
</view>
</view>
</uni-popup>
</view>
</template>
...
...
@@ -617,6 +630,7 @@ const numData = ref({});
const
authPayDisabled
=
ref
(
true
)
const
authPayPopup
=
ref
(
null
)
const
authPayPopupMsg
=
ref
(
''
)
const
passwordTipPopup
=
ref
(
null
)
const
showDirectlyForAuthPay
=
ref
(
false
)
const
directUnderFlagForAuthPay
=
ref
(
0
)
const
associateIdForAuthPay
=
ref
(
0
)
...
...
@@ -677,20 +691,7 @@ onLoad(option => {
menus
:
[
'shareAppMessage'
,
'shareTimeline'
]
});
}
if
(
app
.
globalData
.
changePassFlag
==
'1'
&&
memberInfo
.
value
.
activeStatus
==
'1'
&&
app
.
globalData
.
authenticationStatus
==
2
)
{
uni
.
showModal
({
content
:
"密码长期未更新,请及时更新"
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
uni
.
navigateTo
({
url
:
`/myCenter/safe?current=1`
});
}
}
})
}
console
.
log
(
'app.globalData22'
,
app
.
globalData
.
changePassFlag
,
app
.
globalData
.
memberInfo
?.
activeStatus
,
app
.
globalData
.
authenticationStatus
)
});
...
...
@@ -813,6 +814,10 @@ function closeAuthPayDialog() {
authPayPopup
.
value
.
close
()
}
function
closePasswordTipDialog
()
{
passwordTipPopup
.
value
.
close
()
}
function
goAuthPayV2
()
{
if
(
!
canAuthPayByAccountStatus
())
{
showAuthPayDialog
(
'当前账号状态暂无法办理缴费业务'
)
...
...
@@ -1022,7 +1027,14 @@ async function handleNoDisplay() {
function
checkDialogs
()
{
const
user
=
app
.
globalData
.
userInfo
||
{}
const
memberInfoData
=
app
.
globalData
.
memberInfo
||
{}
// 密码长期未更新提示: changePassFlag='1' && activeStatus=1 && authenticationStatus=2
if
(
app
.
globalData
.
changePassFlag
==
'1'
&&
memberInfoData
.
activeStatus
==
'1'
&&
app
.
globalData
.
authenticationStatus
==
2
)
{
passwordTipPopup
.
value
.
open
()
}
// 绑定手机号条件: changePassFlag='1' && activeStatus=1 && authenticationStatus=2 && phonenumber为空 && checkFlag=1
if
(
app
.
globalData
.
changePassFlag
===
'1'
&&
memberInfoData
.
activeStatus
==
1
&&
...
...
@@ -1032,7 +1044,7 @@ function checkDialogs() {
refreshCaptcha
()
bindingPhonePopup
.
value
.
open
()
}
// 申请考点条件: activeStatus=1 && authenticationStatus=2 && hintFlag=1 && deptType=6 && isPoints=1
if
(
memberInfoData
.
activeStatus
==
1
&&
app
.
globalData
.
authenticationStatus
==
2
&&
...
...
@@ -1466,5 +1478,19 @@ function checkDialogs() {
.success-icon
{
color
:
#29c490
;
}
/* 密码提示弹框样式 */
.password-tip-dialog
{
.dialog-icon
{
color
:
#AD181F
;
}
.dialog-message
{
font-size
:
28
rpx
;
color
:
#606266
;
line-height
:
1.6
;
text-align
:
center
;
margin-bottom
:
40
rpx
;
}
}
</
style
>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment