fix: 统一登录跳转逻辑,添加redirectTo参数避免页面栈溢出
1. 为所有登录跳转调用添加redirectTo跳转类型参数 2. 调整部分页面的onShow生命周期执行顺序和定时器包装 3. 补充缺失的ns-login组件引用到两个diy组件中 4. 修复部分页面登录后返回出现循环跳转的问题
This commit is contained in:
@@ -66,7 +66,7 @@ export default {
|
||||
|
||||
if (!this.storeToken) {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.login.open('/pages_promotion/fenxiao/childfenxiao');
|
||||
this.$refs.login.open('/pages_promotion/fenxiao/childfenxiao', 'redirectTo');
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
:src="$util.img('public/uniapp/fenxiao/index/commissionFission-level.png')"
|
||||
alt="" class="level-icon">{{ info.level_name }}</p>
|
||||
</view>
|
||||
<view class="recommend">{{ $lang('superiorAgent') }}:{{ info.parent_name ? info.parent_name : $lang('headquarters') }}</view>
|
||||
<view class="recommend">{{ $lang('invitedSuccess', { count: teamNum.num }) }}<text class="iconfont icon-right"
|
||||
<view class="recommend">{{ $lang('superiorAgent') }}:{{ info.parent_name ? info.parent_name : $lang('headquarters') }}</view>
|
||||
<view class="recommend">{{ $lang('invitedSuccess', { count: teamNum.num }) }}<text class="iconfont icon-right"
|
||||
style="font-size: 24rpx;"></text></view>
|
||||
</view>
|
||||
<!-- <view class="promote-rules font-size-tag" @click="$util.redirectTo('/pages_promotion/fenxiao/promote')">
|
||||
@@ -296,7 +296,7 @@ export default {
|
||||
this.checkFenxiaoIsStart();
|
||||
} else {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.login.open('/pages_promotion/fenxiao/index');
|
||||
this.$refs.login.open('/pages_promotion/fenxiao/index', 'redirectTo');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ export default {
|
||||
|
||||
if (!this.storeToken) {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.login.open('/pages_promotion/fenxiao/order');
|
||||
this.$refs.login.open('/pages_promotion/fenxiao/order', 'redirectTo');
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
@@ -116,7 +116,7 @@ export default {
|
||||
this.getOrderData();
|
||||
} else {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.login.open('/pages_promotion/fenxiao/order_detail?id=' + this.orderId);
|
||||
this.$refs.login.open('/pages_promotion/fenxiao/order_detail?id=' + this.orderId, 'redirectTo');
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
@@ -95,7 +95,7 @@ export default {
|
||||
this.getFenxiaoDetail();
|
||||
} else {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.login.open('/pages_promotion/fenxiao/promote_code');
|
||||
this.$refs.login.open('/pages_promotion/fenxiao/promote_code', 'redirectTo');
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
@@ -175,7 +175,7 @@ export default {
|
||||
|
||||
} else {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.login.open('/pages_promotion/fenxiao/promote_code');
|
||||
this.$refs.login.open('/pages_promotion/fenxiao/promote_code', 'redirectTo');
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
@@ -123,7 +123,7 @@ export default {
|
||||
|
||||
if (!this.storeToken) {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.login.open('/pages_promotion/fenxiao/team');
|
||||
this.$refs.login.open('/pages_promotion/fenxiao/team', 'redirectTo');
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
@@ -79,7 +79,7 @@ export default {
|
||||
|
||||
if (!this.storeToken) {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.login.open('/pages_promotion/fenxiao/withdraw_list');
|
||||
this.$refs.login.open('/pages_promotion/fenxiao/withdraw_list', 'redirectTo');
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user