diff --git a/app/pages/index/index.js b/app/pages/index/index.js index eef7e7e..c96cfcd 100644 --- a/app/pages/index/index.js +++ b/app/pages/index/index.js @@ -118,5 +118,11 @@ Page({ callback(address) { getApp().setCurrentAddress(address) this.initAddress() + }, + onShareAppMessage() { + return { + title: '首页', + path: '/pages/index/index' + } } }) diff --git a/app/pages/mine/mine.js b/app/pages/mine/mine.js index 2edba3e..937085d 100644 --- a/app/pages/mine/mine.js +++ b/app/pages/mine/mine.js @@ -59,5 +59,11 @@ Page({ this.setData({ loginInfo: loginInfo.user_info }) + }, + onShareAppMessage() { + return { + title: '我的信息', + path: '/pages/mine/mine' + } } }) \ No newline at end of file diff --git a/app/pages/order/list.js b/app/pages/order/list.js index 8453be3..46e1244 100644 --- a/app/pages/order/list.js +++ b/app/pages/order/list.js @@ -147,5 +147,11 @@ Page({ if (this.data.list) { this.onLoad() } + }, + onShareAppMessage() { + return { + title: '我的订单', + path: '/pages/order/list' + } } }) \ No newline at end of file diff --git a/app/pages/shop/show.js b/app/pages/shop/show.js index 3e310d3..019864d 100644 --- a/app/pages/shop/show.js +++ b/app/pages/shop/show.js @@ -370,5 +370,12 @@ Page({ } }) }) + }, + onShareAppMessage() { + var {info:{seller_id, seller_name}} = this.data + return { + title: seller_name, + path: `/pages/shop/show?id=${seller_id}` + } } }) \ No newline at end of file