From 223e4438a88bf9ebe1820041a3a36f6d6eecf848 Mon Sep 17 00:00:00 2001 From: Ge Hao Date: Mon, 9 Jan 2017 17:06:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5share?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/index/index.js b/pages/index/index.js index 0382040..245e0c8 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -16,6 +16,14 @@ Page({ promotions: [] }, + onShareAppMessage: function () { + return { + title: "巴爷供销社", + desc: "商城首页", + path: `pages/index/index` + } + }, + bindShowProduct: function (e) { wx.navigateTo({ url: `../show_product/show_product?id=${e.currentTarget.dataset.id}`