Visual_Novel_iOS/crush/Crush/Src/Utils/Router/AppRouterOther.swift

50 lines
1.7 KiB
Swift

//
// AppRouterOther.swift
// Crush
//
// Created by Leon on 2025/9/16.
//
extension AppRouter {
static func goTermsOfService() {
let urlString = "\(AppConst.h5urlRoot)/policy/tos"
let vc = H5Controller()
guard let url = urlString.urlValue else{return}
vc.loadURL(url: url)
UIWindow.getTopNavigationController()?.pushViewController(vc, animated: true)
}
static func goPrivacyPolicy() {
let urlString = "\(AppConst.h5urlRoot)/policy/privacy"
let vc = H5Controller()
guard let url = urlString.urlValue else{return}
vc.loadURL(url: url)
UIWindow.getTopNavigationController()?.pushViewController(vc, animated: true)
}
static func goRechargeH5(){
let urlString = "\(AppConst.h5urlRoot)/policy/recharge"
let vc = H5Controller()
guard let url = urlString.urlValue else{return}
vc.loadURL(url: url)
UIWindow.getTopNavigationController()?.pushViewController(vc, animated: true)
}
static func goAboutUs(){
// https://test.crushlevel.ai/about
// let urlString = "\(AppConst.h5urlRoot)/about"
// let vc = H5Controller()
// guard let url = urlString.urlValue else{return}
// vc.loadURL(url: url)
// UIWindow.getTopNavigationController()?.pushViewController(vc, animated: true)
let vc = AboutUsController()
UIWindow.getTopNavigationController()?.pushViewController(vc, animated: true)
}
static func goCreatorIntroduction(){
let vc = CreatorIntroductionController()
UIWindow.getTopNavigationController()?.pushViewController(vc, animated: true)
}
}