Skip to content

Commit

Permalink
refactor: update checkGuide
Browse files Browse the repository at this point in the history
  • Loading branch information
cn-xufei committed Jan 10, 2024
1 parent d5bfc37 commit fa4da01
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions apps/dfs/src/mixins/tour.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,15 @@ export default {
}

if (subscribeId) {
if (subscribeId === '-') {
// agent 引导过程中退订: subscribeId === '-', 所有订阅都是canceled按引导退订处理,能开启引导
this.subscriptionModelVisible = subItems.every(item => item.status === 'canceled')
return
}

let subscribe = subItems.find(i => guide.subscribeId === i.id)

if (
(subscribe && subscribe.status === 'incomplete') ||
// agent 引导过程中退订: subscribeId === '-', 所有订阅都是canceled按引导退订处理,能开启引导
(subscribeId === '-' && subItems.every(item => item.status === 'canceled'))
) {
if (subscribe && subscribe.status === 'incomplete') {
// 引导订阅的agent未支付
this.subscribes = subscribe
this.subscriptionModelVisible = true
Expand Down

0 comments on commit fa4da01

Please sign in to comment.