feat: 协议
This commit is contained in:
parent
db82f3b7ec
commit
084a2da41a
@ -164,6 +164,9 @@ struct JoinModal: View {
|
|||||||
HStack(alignment: .center) {
|
HStack(alignment: .center) {
|
||||||
Button(action: {
|
Button(action: {
|
||||||
// Action for Terms of Service
|
// Action for Terms of Service
|
||||||
|
if let url = URL(string: "https://memorywake.com/privacy-policy") {
|
||||||
|
UIApplication.shared.open(url)
|
||||||
|
}
|
||||||
}) {
|
}) {
|
||||||
Text("Terms of Service")
|
Text("Terms of Service")
|
||||||
.font(.system(size: 12, weight: .regular))
|
.font(.system(size: 12, weight: .regular))
|
||||||
@ -175,7 +178,10 @@ struct JoinModal: View {
|
|||||||
.frame(width: 1, height: 16)
|
.frame(width: 1, height: 16)
|
||||||
.padding(.vertical, 4)
|
.padding(.vertical, 4)
|
||||||
Button(action: {
|
Button(action: {
|
||||||
// Action for Privacy Policy
|
// 打开网页
|
||||||
|
if let url = URL(string: "https://memorywake.com/privacy-policy") {
|
||||||
|
UIApplication.shared.open(url)
|
||||||
|
}
|
||||||
}) {
|
}) {
|
||||||
Text("Privacy Policy")
|
Text("Privacy Policy")
|
||||||
.font(.system(size: 12, weight: .regular))
|
.font(.system(size: 12, weight: .regular))
|
||||||
@ -188,8 +194,11 @@ struct JoinModal: View {
|
|||||||
.padding(.vertical, 4)
|
.padding(.vertical, 4)
|
||||||
Button(action: {
|
Button(action: {
|
||||||
// Action for Restore Purchase
|
// Action for Restore Purchase
|
||||||
|
if let url = URL(string: "https://memorywake.com/privacy-policy") {
|
||||||
|
UIApplication.shared.open(url)
|
||||||
|
}
|
||||||
}) {
|
}) {
|
||||||
Text("Restore Purchase")
|
Text("AI Usage Guidelines")
|
||||||
.font(.system(size: 12, weight: .regular))
|
.font(.system(size: 12, weight: .regular))
|
||||||
.foregroundColor(.themeTextMessage)
|
.foregroundColor(.themeTextMessage)
|
||||||
.underline() // Add underline
|
.underline() // Add underline
|
||||||
|
|||||||
@ -113,7 +113,9 @@ struct LoginView: View {
|
|||||||
|
|
||||||
HStack(spacing: 8) {
|
HStack(spacing: 8) {
|
||||||
Button("Service") {
|
Button("Service") {
|
||||||
openURL("https://yourwebsite.com/terms")
|
if let url = URL(string: "https://memorywake.com/privacy-policy") {
|
||||||
|
UIApplication.shared.open(url)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.font(.caption2)
|
.font(.caption2)
|
||||||
.foregroundColor(.themeTextMessageMain)
|
.foregroundColor(.themeTextMessageMain)
|
||||||
@ -123,7 +125,9 @@ struct LoginView: View {
|
|||||||
.font(.caption)
|
.font(.caption)
|
||||||
|
|
||||||
Button("Privacy Policy") {
|
Button("Privacy Policy") {
|
||||||
openURL("https://yourwebsite.com/privacy")
|
if let url = URL(string: "https://memorywake.com/privacy-policy") {
|
||||||
|
UIApplication.shared.open(url)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.font(.caption2)
|
.font(.caption2)
|
||||||
.foregroundColor(.themeTextMessageMain)
|
.foregroundColor(.themeTextMessageMain)
|
||||||
|
|||||||
@ -48,7 +48,7 @@ struct AboutUsView: View {
|
|||||||
title: "Terms of Service",
|
title: "Terms of Service",
|
||||||
action: {
|
action: {
|
||||||
withAnimation {
|
withAnimation {
|
||||||
if let url = URL(string: "https://example.com/terms") {
|
if let url = URL(string: "https://memorywake.com/privacy-policy") {
|
||||||
UIApplication.shared.open(url)
|
UIApplication.shared.open(url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -59,7 +59,7 @@ struct AboutUsView: View {
|
|||||||
title: "Privacy Policy",
|
title: "Privacy Policy",
|
||||||
action: {
|
action: {
|
||||||
withAnimation {
|
withAnimation {
|
||||||
if let url = URL(string: "https://example.com/terms") {
|
if let url = URL(string: "https://memorywake.com/privacy-policy") {
|
||||||
UIApplication.shared.open(url)
|
UIApplication.shared.open(url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -70,7 +70,7 @@ struct AboutUsView: View {
|
|||||||
title: "AI Usage Guidelines",
|
title: "AI Usage Guidelines",
|
||||||
action: {
|
action: {
|
||||||
withAnimation {
|
withAnimation {
|
||||||
if let url = URL(string: "https://example.com/terms") {
|
if let url = URL(string: "https://memorywake.com/privacy-policy") {
|
||||||
UIApplication.shared.open(url)
|
UIApplication.shared.open(url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user