86ed73ee by lttnew

提示修改密码

1 parent 6d21bc62
...@@ -581,6 +581,19 @@ ...@@ -581,6 +581,19 @@
581 </view> 581 </view>
582 </view> 582 </view>
583 </uni-popup> 583 </uni-popup>
584
585 <!-- 密码长期未更新提示弹框 -->
586 <uni-popup ref="passwordTipPopup" :mask-click="false" type="center">
587 <view class="dialog-wrapper password-tip-dialog">
588 <view class="dialog-title">温馨提示</view>
589 <view class="dialog-message">
590 <text>密码长期未更新,请及时更新</text>
591 </view>
592 <view class="dialog-footer">
593 <button class="dialog-btn confirm" @click="closePasswordTipDialog">确定</button>
594 </view>
595 </view>
596 </uni-popup>
584 </view> 597 </view>
585 </template> 598 </template>
586 599
...@@ -617,6 +630,7 @@ const numData = ref({}); ...@@ -617,6 +630,7 @@ const numData = ref({});
617 const authPayDisabled = ref(true) 630 const authPayDisabled = ref(true)
618 const authPayPopup = ref(null) 631 const authPayPopup = ref(null)
619 const authPayPopupMsg = ref('') 632 const authPayPopupMsg = ref('')
633 const passwordTipPopup = ref(null)
620 const showDirectlyForAuthPay = ref(false) 634 const showDirectlyForAuthPay = ref(false)
621 const directUnderFlagForAuthPay = ref(0) 635 const directUnderFlagForAuthPay = ref(0)
622 const associateIdForAuthPay = ref(0) 636 const associateIdForAuthPay = ref(0)
...@@ -677,20 +691,7 @@ onLoad(option => { ...@@ -677,20 +691,7 @@ onLoad(option => {
677 menus: ['shareAppMessage', 'shareTimeline'] 691 menus: ['shareAppMessage', 'shareTimeline']
678 }); 692 });
679 } 693 }
680 694 console.log('app.globalData22',app.globalData.changePassFlag,app.globalData.memberInfo?.activeStatus,app.globalData.authenticationStatus)
681 if (app.globalData.changePassFlag == '1' && memberInfo.value.activeStatus == '1' && app.globalData
682 .authenticationStatus == 2) {
683 uni.showModal({
684 content: "密码长期未更新,请及时更新",
685 success: function (res) {
686 if (res.confirm) {
687 uni.navigateTo({
688 url: `/myCenter/safe?current=1`
689 });
690 }
691 }
692 })
693 }
694 }); 695 });
695 696
696 697
...@@ -813,6 +814,10 @@ function closeAuthPayDialog() { ...@@ -813,6 +814,10 @@ function closeAuthPayDialog() {
813 authPayPopup.value.close() 814 authPayPopup.value.close()
814 } 815 }
815 816
817 function closePasswordTipDialog() {
818 passwordTipPopup.value.close()
819 }
820
816 function goAuthPayV2() { 821 function goAuthPayV2() {
817 if (!canAuthPayByAccountStatus()) { 822 if (!canAuthPayByAccountStatus()) {
818 showAuthPayDialog('当前账号状态暂无法办理缴费业务') 823 showAuthPayDialog('当前账号状态暂无法办理缴费业务')
...@@ -1023,6 +1028,13 @@ function checkDialogs() { ...@@ -1023,6 +1028,13 @@ function checkDialogs() {
1023 const user = app.globalData.userInfo || {} 1028 const user = app.globalData.userInfo || {}
1024 const memberInfoData = app.globalData.memberInfo || {} 1029 const memberInfoData = app.globalData.memberInfo || {}
1025 1030
1031 // 密码长期未更新提示: changePassFlag='1' && activeStatus=1 && authenticationStatus=2
1032 if (app.globalData.changePassFlag == '1' &&
1033 memberInfoData.activeStatus == '1' &&
1034 app.globalData.authenticationStatus == 2) {
1035 passwordTipPopup.value.open()
1036 }
1037
1026 // 绑定手机号条件: changePassFlag='1' && activeStatus=1 && authenticationStatus=2 && phonenumber为空 && checkFlag=1 1038 // 绑定手机号条件: changePassFlag='1' && activeStatus=1 && authenticationStatus=2 && phonenumber为空 && checkFlag=1
1027 if (app.globalData.changePassFlag === '1' && 1039 if (app.globalData.changePassFlag === '1' &&
1028 memberInfoData.activeStatus == 1 && 1040 memberInfoData.activeStatus == 1 &&
...@@ -1466,5 +1478,19 @@ function checkDialogs() { ...@@ -1466,5 +1478,19 @@ function checkDialogs() {
1466 .success-icon { 1478 .success-icon {
1467 color: #29c490; 1479 color: #29c490;
1468 } 1480 }
1481
1482 /* 密码提示弹框样式 */
1483 .password-tip-dialog {
1484 .dialog-icon {
1485 color: #AD181F;
1486 }
1487 .dialog-message {
1488 font-size: 28rpx;
1489 color: #606266;
1490 line-height: 1.6;
1491 text-align: center;
1492 margin-bottom: 40rpx;
1493 }
1494 }
1469 </style> 1495 </style>
1470 1496
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!