Commit bf73ab0e authored by David黄金龙's avatar David黄金龙

用户条款

隐私协议
parent dffab2e2
...@@ -51,6 +51,8 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget ...@@ -51,6 +51,8 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
return [PersonalModuleItem(title: "通知设置".local, type:.notifySettings), return [PersonalModuleItem(title: "通知设置".local, type:.notifySettings),
PersonalModuleItem(title: "权限配置".local, type:.permissionSettings), PersonalModuleItem(title: "权限配置".local, type:.permissionSettings),
PersonalModuleItem(title: "关于我们".local, type:.aboutUs), PersonalModuleItem(title: "关于我们".local, type:.aboutUs),
PersonalModuleItem(title: "用户条款".local, type:.userItems),
PersonalModuleItem(title: "隐私协议".local, type:.privaceAgreement),
PersonalModuleItem(title: "设备相关".local, type:.deviceInfo), PersonalModuleItem(title: "设备相关".local, type:.deviceInfo),
PersonalModuleItem(title: "版本 \(UIDevice.appVersion())", isShowRedPoint:isShowVersionRedPoint, type:.version), ] PersonalModuleItem(title: "版本 \(UIDevice.appVersion())", isShowRedPoint:isShowVersionRedPoint, type:.version), ]
...@@ -58,14 +60,16 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget ...@@ -58,14 +60,16 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
return [PersonalModuleItem(title: "通知设置".local, type:.notifySettings), return [PersonalModuleItem(title: "通知设置".local, type:.notifySettings),
PersonalModuleItem(title: "权限配置".local, type:.permissionSettings), PersonalModuleItem(title: "权限配置".local, type:.permissionSettings),
PersonalModuleItem(title: "关于我们".local, type:.aboutUs), PersonalModuleItem(title: "关于我们".local, type:.aboutUs),
PersonalModuleItem(title: "用户条款".local, type:.userItems),
PersonalModuleItem(title: "隐私协议".local, type:.privaceAgreement),
PersonalModuleItem(title: "设备相关".local, type:.deviceInfo), PersonalModuleItem(title: "设备相关".local, type:.deviceInfo),
PersonalModuleItem(title: "版本 \(UIDevice.appVersion())",isShowRedPoint:isShowVersionRedPoint, type:.version)] PersonalModuleItem(title: "版本 \(UIDevice.appVersion())",isShowRedPoint:isShowVersionRedPoint, type:.version)]
#else #else
return [PersonalModuleItem(title: "通知设置".local, type:.notifySettings), return [PersonalModuleItem(title: "通知设置".local, type:.notifySettings),
PersonalModuleItem(title: "权限配置".local, type:.permissionSettings), PersonalModuleItem(title: "权限配置".local, type:.permissionSettings),
// PersonalModuleItem(title: "个人信息收集清单".local, type:.infoCollectList),
// PersonalModuleItem(title: "第三方信息共享清单".local, type:.infoShareList),
PersonalModuleItem(title: "关于我们".local, type:.aboutUs), PersonalModuleItem(title: "关于我们".local, type:.aboutUs),
PersonalModuleItem(title: "用户条款".local, type:.userItems),
PersonalModuleItem(title: "隐私协议".local, type:.privaceAgreement),
PersonalModuleItem(title: "版本 \(UIDevice.appVersion())",isShowRedPoint:isShowVersionRedPoint, type:.version)] PersonalModuleItem(title: "版本 \(UIDevice.appVersion())",isShowRedPoint:isShowVersionRedPoint, type:.version)]
#endif #endif
...@@ -197,7 +201,20 @@ extension YHMySettingViewController : UITableViewDelegate, UITableViewDataSource ...@@ -197,7 +201,20 @@ extension YHMySettingViewController : UITableViewDelegate, UITableViewDataSource
let vc = YHAboutUsViewController() let vc = YHAboutUsViewController()
self.navigationController?.pushViewController(vc) self.navigationController?.pushViewController(vc)
} else if item.type == .deviceInfo { } else if item.type == .userItems {
// 用户条款
let vc = YHWebViewViewController()
vc.url = YHBaseUrlManager.shared.curUserItemsUrl()
UIViewController.current?.navigationController?.pushViewController(vc)
} else if item.type == .privaceAgreement {
//隐私政策
let vc = YHWebViewViewController()
vc.url = YHBaseUrlManager.shared.curPrivacyAgreementUrl()
UIViewController.current?.navigationController?.pushViewController(vc)
}
else if item.type == .deviceInfo {
let vc = YHDeviceInfoViewController() let vc = YHDeviceInfoViewController()
self.navigationController?.pushViewController(vc) self.navigationController?.pushViewController(vc)
......
...@@ -29,6 +29,8 @@ enum YHPersonalModuleItemType: Int { ...@@ -29,6 +29,8 @@ enum YHPersonalModuleItemType: Int {
case aboutUs case aboutUs
case deviceInfo case deviceInfo
case version case version
case userItems//用户条款
case privaceAgreement//隐私协议
} }
class PersonalModuleItem { class PersonalModuleItem {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment