| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- import { DelPhotoParam } from '../models'
- class YTRouter extends NavPathStack {
- router2SettingPage() {
- yTRouter.pushPathByName('SettingPage', '')
- }
- router2SuggestionPage() {
- yTRouter.pushPathByName('SuggestionPage', '')
- }
- router2AgreementPage(param: '关于我们' | '隐私政策' | '用户协议') {
- yTRouter.pushPathByName('AgreementPage', param)
- }
- /**
- * 跳转至用户协议
- */
- router2userAgreement() {
- yTRouter.pushPathByName('UserAgreementPage', '')
- }
- /**
- * 跳转至隐私政策
- */
- router2Privacy() {
- yTRouter.pushPathByName('Privacy', '')
- }
- router2AboutUS() {
- yTRouter.pushPathByName('AboutUS', '')
- }
- getAgreementPageParam() {
- return yTRouter.getParamByName('AgreementPage').pop() as '关于我们' | '隐私政策' | '用户协议'
- }
- router2LoginPage() {
- yTRouter.pushPathByName('LoginPage', '')
- }
- router2DelPhotoPage(param: DelPhotoParam) {
- yTRouter.pushPathByName('DelPhotoPage', param)
- }
- getDelPhotoParam() {
- return yTRouter.getParamByName('DelPhotoPage').pop() as DelPhotoParam
- }
- routerBack() {
- yTRouter.pop()
- }
- }
- export const yTRouter = new YTRouter()
|