Parcourir la source

fix:修改引导位置

lazy il y a 2 mois
Parent
commit
9de7375cee

+ 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: '超过授权次数或授权失效,请重新进行账户开通'
           }
         })
       }