|  |  |  | 
|---|
|  |  |  | if (pages.length > 1) { | 
|---|
|  |  |  | Taro.navigateBack({ delta: delta }); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | Taro.switchTab({ | 
|---|
|  |  |  | RouteHelper.switchTab({ | 
|---|
|  |  |  | url: Object.values(TabBarPageRouter)[systemStore.activeTab], | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | export function goHome() { | 
|---|
|  |  |  | const systemStore = useSystemStoreWithOut(); | 
|---|
|  |  |  | systemStore.setTabIndex(0); | 
|---|
|  |  |  | Taro.switchTab({ | 
|---|
|  |  |  | RouteHelper.switchTab({ | 
|---|
|  |  |  | url: TabBarPageRouter['Home'], | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | static navigateTo(option: Taro.navigateTo.Option) { | 
|---|
|  |  |  | Taro.navigateTo({ | 
|---|
|  |  |  | return Taro.navigateTo({ | 
|---|
|  |  |  | ...option, | 
|---|
|  |  |  | url: pathAddExtraParam(option.url, { channelId: blLifeRecharge.accountModel.channlesNum }), | 
|---|
|  |  |  | }); | 
|---|