From 910fb187f41b3c9b4f9814998fe7a34d9d376ad6 Mon Sep 17 00:00:00 2001 From: Dallas Lu <914202+dallaslu@users.noreply.github.com> Date: Sat, 21 Nov 2020 17:52:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=8F=E6=9C=BA=E5=88=86=E4=BA=AB=E6=96=87?= =?UTF-8?q?=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 8514669..1905ae6 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -137,10 +137,14 @@ export default { this.changeTab(this.current) }, onShareAppMessage(res) { - return { - title: '美团饿了么大额红包,每日可领', + var messages = [{ + title: '美团饿了么大额红包,每日可领!', path: '/pages/index/index' - } + },{ + title: '吃了这么多年外卖,你知道这个秘密吗?', + path: '/pages/index/index' + }]; + return messages[Math.floor(Math.random()*messages.length)]; }, methods: { changeTab(index) {