|
@@ -31,8 +31,14 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
initDriver(outerIndex, innerIndex) {
|
|
initDriver(outerIndex, innerIndex) {
|
|
|
|
+ console.log(this.companyList)
|
|
const stepList = []
|
|
const stepList = []
|
|
- if (document.querySelectorAll(`.authorization-${outerIndex}-${innerIndex}:nth-child(1)`).length) {
|
|
|
|
|
|
+ // 去授权引导 -- 客户状态生效且登记薄状态为未失效
|
|
|
|
+ const tipDom = document.querySelectorAll(`.authorization-${outerIndex}-${innerIndex}:nth-child(1)`).length
|
|
|
|
+ const tipCondition = this.companyList[outerIndex].customerStatus === '生效' &&
|
|
|
|
+ this.companyList[outerIndex].vipAccountBasicInfoList[innerIndex].accountStatus === 1 &&
|
|
|
|
+ this.companyList[outerIndex].vipAccountBasicInfoList[innerIndex].authorizationStatus !== 4
|
|
|
|
+ if (tipDom && tipCondition) {
|
|
stepList.push({
|
|
stepList.push({
|
|
element: `.authorization-${outerIndex}-${innerIndex}:nth-child(1)`,
|
|
element: `.authorization-${outerIndex}-${innerIndex}:nth-child(1)`,
|
|
popover: {
|
|
popover: {
|
|
@@ -45,7 +51,14 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- if (document.querySelectorAll(`.binding-account-${outerIndex}-${innerIndex}:nth-child(1)`).length) {
|
|
|
|
|
|
+
|
|
|
|
+ // 客户状态&登记簿状态非失效,授权成功,未绑定任何实体账户
|
|
|
|
+ const tipBind = document.querySelectorAll(`.binding-account-${outerIndex}-${innerIndex}:nth-child(1)`).length
|
|
|
|
+ const tipBindCondition = this.companyList[outerIndex].customerStatus === '生效' &&
|
|
|
|
+ this.companyList[outerIndex].vipAccountBasicInfoList[innerIndex].accountStatus === 1 &&
|
|
|
|
+ this.companyList[outerIndex].vipAccountBasicInfoList[innerIndex].authorizationStatus === 4 && this.companyList[outerIndex].vipAccountBasicInfoList[innerIndex].bindAccountInfoList.length === 0
|
|
|
|
+
|
|
|
|
+ if (tipBind && tipBindCondition) {
|
|
stepList.push({
|
|
stepList.push({
|
|
element: `.binding-account-${outerIndex}-${innerIndex}:nth-child(1)`,
|
|
element: `.binding-account-${outerIndex}-${innerIndex}:nth-child(1)`,
|
|
popover: {
|
|
popover: {
|
|
@@ -55,7 +68,14 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- if (document.querySelectorAll('.activation:nth-child(1)').length) {
|
|
|
|
|
|
+
|
|
|
|
+ // 客户状态&登记簿状态未失效,登记簿创建后,且入金激活状态未成功
|
|
|
|
+ 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[0].bindSts === 2
|
|
|
|
+
|
|
|
|
+ if (tipActive && tipActiveCondition) {
|
|
stepList.push({
|
|
stepList.push({
|
|
element: '.activation:nth-child(1)',
|
|
element: '.activation:nth-child(1)',
|
|
popover: {
|
|
popover: {
|