Commit 93ca5c8773b5a2b6dd17e22dc17aabc445748755

Authored by yvan.ni
1 parent 326d5cb8

首页分享给朋友

Showing 1 changed file with 9 additions and 1 deletions
pages/index/index/index.js
... ... @@ -582,7 +582,15 @@ Page({
582 582 url: "/pages/goods/search/search"
583 583 });
584 584 },
585   - onShareAppMessage: function(e) {
  585 + onShareAppMessage: function(e) {
  586 + var url="/pages/index/index/index";
  587 + if(getApp().globalData.user_id){
  588 + url+="&first_leader="+getApp().globalData.user_id;
  589 + }
  590 + var ob={
  591 + title: getApp().globalData.config.store_name,,
  592 + path:url,
  593 + };
586 594 return o.share;
587 595 },
588 596  
... ...