From a3b9420836d5b1e86df2358dadc93dde9caf39c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E5=B9=B3=E8=89=BA?= <52643018@qq.com> Date: Thu, 8 Jul 2021 17:45:42 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=20=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E5=88=86=E5=8F=91=E9=A1=B5=E9=9D=A2=EF=BC=8C=E5=B9=B6=E5=B0=86?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=BC=80=E6=94=BE=E8=BD=AC=E5=8F=91=E5=88=86?= =?UTF-8?q?=E4=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 6 +++++ pages/index/index.vue | 7 ++++++ pages/route/index.vue | 51 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 pages/route/index.vue diff --git a/pages.json b/pages.json index 34f2eac..f50df39 100644 --- a/pages.json +++ b/pages.json @@ -136,6 +136,12 @@ "style": { "navigationBarTitleText": "商品列表" } + }, + { + "path": "pages/route/index", + "style": { + "navigationBarTitleText": "海南旅游" + } } ], "globalStyle": { diff --git a/pages/index/index.vue b/pages/index/index.vue index 9f55693..1d2984f 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -201,6 +201,13 @@ }, onPullDownRefresh(){ uni.stopPullDownRefresh(); + }, + onShareAppMessage(){ + let shareInfo = { + title: '欢迎使用海南旅游小程序', + path: '/pages/route/index?route=home' + } + return shareInfo; } } diff --git a/pages/route/index.vue b/pages/route/index.vue new file mode 100644 index 0000000..e9c215e --- /dev/null +++ b/pages/route/index.vue @@ -0,0 +1,51 @@ + + +