From e175a4ca43061ede1318092cc7d0e2b41ca0691f Mon Sep 17 00:00:00 2001 From: linju-json Date: Tue, 11 May 2021 21:22:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=84=8F=E8=A7=81=E5=8F=8D?= =?UTF-8?q?=E9=A6=88=E5=8A=9F=E8=83=BD=E7=9A=84=E6=96=87=E4=BB=B6=E5=90=8D?= =?UTF-8?q?=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 2 +- pages/ucenter/ucenter.vue | 2 +- .../pages/uni-feedback/{add.vue => uni-feedback.vue} | 0 .../uni-feedback/uniCloud/cloudfunctions/test2/index.js | 8 ++++++++ 4 files changed, 10 insertions(+), 2 deletions(-) rename uni_modules/uni-feedback/pages/uni-feedback/{add.vue => uni-feedback.vue} (100%) create mode 100644 uni_modules/uni-feedback/uniCloud/cloudfunctions/test2/index.js diff --git a/pages.json b/pages.json index 1189d7b1..80581b85 100644 --- a/pages.json +++ b/pages.json @@ -61,7 +61,7 @@ "navigationStyle": "custom" } }, { - "path": "uni_modules/uni-feedback/pages/uni-feedback/add", + "path": "uni_modules/uni-feedback/pages/uni-feedback/uni-feedback", "style": { "navigationBarTitleText": "问题反馈" } diff --git a/pages/ucenter/ucenter.vue b/pages/ucenter/ucenter.vue index 79952f26..90369f43 100644 --- a/pages/ucenter/ucenter.vue +++ b/pages/ucenter/ucenter.vue @@ -82,7 +82,7 @@ ], [{ "title": '问题与反馈', - "to": '/uni_modules/uni-feedback/pages/uni-feedback/add', + "to": '/uni_modules/uni-feedback/pages/uni-feedback/uni-feedback', "icon":"help" }, { "title": '设置', diff --git a/uni_modules/uni-feedback/pages/uni-feedback/add.vue b/uni_modules/uni-feedback/pages/uni-feedback/uni-feedback.vue similarity index 100% rename from uni_modules/uni-feedback/pages/uni-feedback/add.vue rename to uni_modules/uni-feedback/pages/uni-feedback/uni-feedback.vue diff --git a/uni_modules/uni-feedback/uniCloud/cloudfunctions/test2/index.js b/uni_modules/uni-feedback/uniCloud/cloudfunctions/test2/index.js new file mode 100644 index 00000000..aad1aeaa --- /dev/null +++ b/uni_modules/uni-feedback/uniCloud/cloudfunctions/test2/index.js @@ -0,0 +1,8 @@ +'use strict'; +exports.main = async (event, context) => { + //event为客户端上传的参数 + console.log('event : ', event) + + //返回数据给客户端 + return event +}; -- GitLab