修复bug ,底部导航,装修优化

This commit is contained in:
Jason
2022-09-14 16:41:39 +08:00
parent a1fc2fed1c
commit cf99b35b79
28 changed files with 323 additions and 112 deletions

View File

@@ -53,15 +53,8 @@ export enum LinkTypeEnum {
}
export function navigateTo(link: Link, navigateType: 'navigateTo' | 'reLaunch' = 'navigateTo') {
let url: string
switch (link.type) {
case LinkTypeEnum.SHOP_PAGES:
url = link.query ? `${link.path}?${objectToQuery(link.query)}` : link.path
uni[navigateType]({ url })
break
case LinkTypeEnum.CUSTOM_LINK:
uni[navigateType]({ url: `/pages/webview/webview?url=${link.path}` })
}
const url = link.query ? `${link.path}?${objectToQuery(link.query)}` : link.path
uni[navigateType]({ url })
}
/**