Merge pull request #7 from dallaslu/patch-1

随机分享文字
This commit is contained in:
小疯子 2020-11-22 13:05:33 +08:00 committed by GitHub
commit ada8417eff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {