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