From 2ec742414e138a8fac3ce43c62885c01313fd315 Mon Sep 17 00:00:00 2001
From: zhangwentao <09094219www>
Date: Mon, 4 Nov 2024 17:51:44 +0800
Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E7=A7=81=E6=94=BF=E7=AD=96=20?=
=?UTF-8?q?=E7=94=A8=E6=88=B7=E5=8D=8F=E8=AE=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/login.js | 20 +++++++++++++++++
pages.json | 9 ++++++++
pages/mine/mine.vue | 18 +++++++++++----
pages/mine/protocol.vue | 49 +++++++++++++++++++++++++++++++++++++++++
4 files changed, 92 insertions(+), 4 deletions(-)
create mode 100644 pages/mine/protocol.vue
diff --git a/api/login.js b/api/login.js
index f71244b..e19c6a2 100644
--- a/api/login.js
+++ b/api/login.js
@@ -66,5 +66,25 @@ export const regionList = (query) => {
})
}
+// 用户协议
+export const protocolUser = (query) => {
+ return apiResquest({
+ url: 'v1/protocol.user',
+ method: 'get',
+ query: query
+ })
+}
+
+
+// 隐私政策
+export const protocolPrivacy = (query) => {
+ return apiResquest({
+ url: 'v1/protocol.privacy',
+ method: 'get',
+ query: query
+ })
+}
+
+
diff --git a/pages.json b/pages.json
index c96bb6b..e7591b1 100644
--- a/pages.json
+++ b/pages.json
@@ -186,6 +186,15 @@
}
}
},
+ { // 新鲜事/话题/分类
+ "path": "pages/mine/protocol",
+ "style": {
+ "navigationBarTitleText": "",
+ "app-plus": {
+ "bounce": "none"
+ }
+ }
+ },
{ // 新鲜事/话题/详情
"path": "pages/news/news-topic-detail",
"style": {
diff --git a/pages/mine/mine.vue b/pages/mine/mine.vue
index 5cf6306..c49fb22 100644
--- a/pages/mine/mine.vue
+++ b/pages/mine/mine.vue
@@ -87,6 +87,16 @@
icon: 'iconshezhi1',
name: '修改资料',
url: 'set'
+ },
+ {
+ icon: 'iconrenzheng',
+ name: '用户协议',
+ url: 'user'
+ },
+ {
+ icon: 'iconrenzheng',
+ name: '隐私政策',
+ url: 'privacy'
}
],
userInfo: {},
@@ -132,11 +142,11 @@
case 'set':
this.$u.route('/pages/mine/edit-info')
break;
- case 'file2':
- this.downloadFile(this.flieList.file2)
+ case 'user':
+ this.$u.route('/pages/mine/protocol?type=user')
break;
- case 'file1':
- this.downloadFile(this.flieList.file1)
+ case 'privacy':
+ this.$u.route('pages/mine/protocol?type=privacy')
break;
default:
break;
diff --git a/pages/mine/protocol.vue b/pages/mine/protocol.vue
new file mode 100644
index 0000000..c6693b3
--- /dev/null
+++ b/pages/mine/protocol.vue
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file