86ed73ee by lttnew

提示修改密码

1 parent 6d21bc62
......@@ -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: 28rpx;
color: #606266;
line-height: 1.6;
text-align: center;
margin-bottom: 40rpx;
}
}
</style>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!