소스 검색

fix:修改引导位置

lazy 3 주 전
부모
커밋
9de7375cee
2개의 변경된 파일7개의 추가작업 그리고 6개의 파일을 삭제
  1. 3 4
      src/views/accountCenter/cyAccountManage/mainContent.vue
  2. 4 2
      src/views/accountCenter/mixins/driver.js

+ 3 - 4
src/views/accountCenter/cyAccountManage/mainContent.vue

@@ -107,7 +107,7 @@ export default {
           label: '账号',
           prop: 'accountNumber',
           showTooltip: true,
-          width: 140,
+          width: 140
         },
         {
           label: '账户名称',
@@ -375,11 +375,10 @@ export default {
               }
               i++
             }
-
-            this.$nextTick(() => {
+            setTimeout(() => {
               // 默认只显示第一个账户的授权状态 状态包含入金激活引导 授权引导 绑卡引导
               this.initDriver(0, 0)
-            })
+            }, 300)
           }
         }
       },

+ 4 - 2
src/views/accountCenter/mixins/driver.js

@@ -34,10 +34,11 @@ export default {
       console.log(this.companyList)
       const stepList = []
       // 去授权引导 -- 客户状态生效且登记薄状态为未失效
-      const tipDom = document.querySelectorAll(`.authorization-${outerIndex}-${innerIndex}:nth-child(1)`).length
+      const tipDom = document.querySelectorAll(`.authorization-${outerIndex}-${innerIndex}:nth-child(1)`)
       const tipCondition = this.companyList[outerIndex].customerStatus === '生效' &&
       this.companyList[outerIndex].vipAccountBasicInfoList[innerIndex].accountStatus === 1 &&
       this.companyList[outerIndex].vipAccountBasicInfoList[innerIndex].authorizationStatus !== 4
+      console.log(tipDom)
       if (tipDom && tipCondition) {
         stepList.push({
           element: `.authorization-${outerIndex}-${innerIndex}:nth-child(1)`,
@@ -73,6 +74,7 @@ export default {
       const tipActive = document.querySelectorAll('.activation:nth-child(1)').length
       const tipActiveCondition = this.companyList[outerIndex].customerStatus === '生效' &&
       this.companyList[outerIndex].vipAccountBasicInfoList[innerIndex].accountStatus === 1 &&
+      this.companyList[outerIndex].vipAccountBasicInfoList[innerIndex].bindAccountInfoList.length &&
       this.companyList[outerIndex].vipAccountBasicInfoList[innerIndex].bindAccountInfoList[0].bindSts === 2
 
       if (tipActive && tipActiveCondition) {
@@ -106,7 +108,7 @@ export default {
           element: `#new-account-${index}`,
           popover: {
             title: '授权认证超时',
-            description: '超过授权次数或授权失效,请重新进行账户开通',
+            description: '超过授权次数或授权失效,请重新进行账户开通'
           }
         })
       }