Commit 0b87a5287ef839437bebcd313df2caa6ad8723a7
1 parent
6946db74
1. 分享朋友圈的处理,不清理
2. 一个商品页的分享
Showing
17 changed files
with
19 additions
and
4 deletions
packageA/pages/goodsInfo/goodsInfo.js
@@ -2777,13 +2777,11 @@ Page({ | @@ -2777,13 +2777,11 @@ Page({ | ||
2777 | }, | 2777 | }, |
2778 | 2778 | ||
2779 | previewImage() { | 2779 | previewImage() { |
2780 | - wx.previewImage({ | ||
2781 | - //将图片预览出来 | ||
2782 | - urls: [this.data.shareImgPath] | ||
2783 | - }); | 2780 | + getApp().pre_img(this.data.shareImgPath); |
2784 | }, | 2781 | }, |
2785 | 2782 | ||
2786 | onShareTimeline() { | 2783 | onShareTimeline() { |
2784 | + getApp().globalData.no_clear=1 | ||
2787 | var store_name=getApp().globalData.config?getApp().globalData.config.store_name:''; | 2785 | var store_name=getApp().globalData.config?getApp().globalData.config.store_name:''; |
2788 | if(!store_name) | 2786 | if(!store_name) |
2789 | store_name=getApp().globalData.setting.appName; | 2787 | store_name=getApp().globalData.setting.appName; |
packageA/pages/jfbuy/jfbuy.js
@@ -270,6 +270,7 @@ Page({ | @@ -270,6 +270,7 @@ Page({ | ||
270 | 270 | ||
271 | 271 | ||
272 | onShareTimeline() { | 272 | onShareTimeline() { |
273 | + getApp().globalData.no_clear=1; | ||
273 | var store_name = getApp().globalData.config ? getApp().globalData.config.store_name:''; | 274 | var store_name = getApp().globalData.config ? getApp().globalData.config.store_name:''; |
274 | 275 | ||
275 | var pagePath = this.route; //当前页面url | 276 | var pagePath = this.route; //当前页面url |
packageA/pages/liveStream/liveStream.js
@@ -362,6 +362,7 @@ Page({ | @@ -362,6 +362,7 @@ Page({ | ||
362 | }, | 362 | }, |
363 | 363 | ||
364 | onShareTimeline: function (res) { | 364 | onShareTimeline: function (res) { |
365 | + getApp().globalData.no_clear=1; | ||
365 | if (res.from === 'button') { | 366 | if (res.from === 'button') { |
366 | // 来自页面内转发按钮 | 367 | // 来自页面内转发按钮 |
367 | // console.log(res.target) | 368 | // console.log(res.target) |
packageA/pages/liveStreamDetails/liveStreamDetails.js
@@ -631,6 +631,7 @@ drawText: function(ctx, str, leftWidth, initHeight, titleHeight, canvasWidth, un | @@ -631,6 +631,7 @@ drawText: function(ctx, str, leftWidth, initHeight, titleHeight, canvasWidth, un | ||
631 | }, | 631 | }, |
632 | 632 | ||
633 | onShareTimeline: function (res) { | 633 | onShareTimeline: function (res) { |
634 | + getApp().globalData.no_clear=1; | ||
634 | if (res.from === 'button') { | 635 | if (res.from === 'button') { |
635 | // 来自页面内转发按钮 | 636 | // 来自页面内转发按钮 |
636 | console.log(res.target) | 637 | console.log(res.target) |
packageB/pages/zuhegou/index/index.js
@@ -467,6 +467,7 @@ Page({ | @@ -467,6 +467,7 @@ Page({ | ||
467 | * 用户分享朋友圈 | 467 | * 用户分享朋友圈 |
468 | */ | 468 | */ |
469 | onShareTimeline() { | 469 | onShareTimeline() { |
470 | + getApp().globalData.no_clear=1; | ||
470 | var title = this.data.act.name; | 471 | var title = this.data.act.name; |
471 | var url = "/packageB/pages/zuhegou/index/index?id=" + this.data.act.id; | 472 | var url = "/packageB/pages/zuhegou/index/index?id=" + this.data.act.id; |
472 | if (getApp().globalData.user_id) { | 473 | if (getApp().globalData.user_id) { |
packageB/pages/zuhegou/preindex/index.js
@@ -468,6 +468,7 @@ Page({ | @@ -468,6 +468,7 @@ Page({ | ||
468 | * 用户分享朋友圈 | 468 | * 用户分享朋友圈 |
469 | */ | 469 | */ |
470 | onShareTimeline() { | 470 | onShareTimeline() { |
471 | + getApp().globalData.no_clear=1; | ||
471 | var title = this.data.act.name; | 472 | var title = this.data.act.name; |
472 | var url = "/packageB/pages/zuhegou/index/index?id=" + this.data.act.id; | 473 | var url = "/packageB/pages/zuhegou/index/index?id=" + this.data.act.id; |
473 | if (getApp().globalData.user_id) { | 474 | if (getApp().globalData.user_id) { |
packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js
@@ -6181,6 +6181,7 @@ Page({ | @@ -6181,6 +6181,7 @@ Page({ | ||
6181 | }, | 6181 | }, |
6182 | 6182 | ||
6183 | onShareTimeline() { | 6183 | onShareTimeline() { |
6184 | + getApp().globalData.no_clear=1; | ||
6184 | var store_name = getApp().globalData.config ? getApp().globalData.config.store_name : ''; | 6185 | var store_name = getApp().globalData.config ? getApp().globalData.config.store_name : ''; |
6185 | if (!store_name) | 6186 | if (!store_name) |
6186 | store_name = getApp().globalData.setting.appName; | 6187 | store_name = getApp().globalData.setting.appName; |
packageC/pages/presell/goodsInfo/goodsInfo.js
@@ -3831,6 +3831,7 @@ Page({ | @@ -3831,6 +3831,7 @@ Page({ | ||
3831 | 3831 | ||
3832 | 3832 | ||
3833 | onShareTimeline() { | 3833 | onShareTimeline() { |
3834 | + getApp().globalData.no_clear=1; | ||
3834 | var store_name = getApp().globalData.config ? getApp().globalData.config.store_name : ''; | 3835 | var store_name = getApp().globalData.config ? getApp().globalData.config.store_name : ''; |
3835 | if (!store_name) | 3836 | if (!store_name) |
3836 | store_name = getApp().globalData.setting.appName; | 3837 | store_name = getApp().globalData.setting.appName; |
packageC/pages/presell/pregoodsInfo/goodsInfo.js
@@ -3795,6 +3795,7 @@ Page({ | @@ -3795,6 +3795,7 @@ Page({ | ||
3795 | 3795 | ||
3796 | 3796 | ||
3797 | onShareTimeline() { | 3797 | onShareTimeline() { |
3798 | + getApp().globalData.no_clear=1; | ||
3798 | var store_name = getApp().globalData.config ? getApp().globalData.config.store_name : ''; | 3799 | var store_name = getApp().globalData.config ? getApp().globalData.config.store_name : ''; |
3799 | if (!store_name) | 3800 | if (!store_name) |
3800 | store_name = getApp().globalData.setting.appName; | 3801 | store_name = getApp().globalData.setting.appName; |
pages/activity/pind_list/pind_list.js
@@ -250,6 +250,7 @@ Page({ | @@ -250,6 +250,7 @@ Page({ | ||
250 | }, | 250 | }, |
251 | 251 | ||
252 | onShareTimeline() { | 252 | onShareTimeline() { |
253 | + getApp().globalData.no_clear=1; | ||
253 | var store_name = getApp().globalData.config ? getApp().globalData.config.store_name : ''; | 254 | var store_name = getApp().globalData.config ? getApp().globalData.config.store_name : ''; |
254 | if (!store_name) | 255 | if (!store_name) |
255 | store_name = getApp().globalData.setting.appName; | 256 | store_name = getApp().globalData.setting.appName; |
pages/activity/seckill_list/seckill_list.js
@@ -268,6 +268,7 @@ Page({ | @@ -268,6 +268,7 @@ Page({ | ||
268 | }, | 268 | }, |
269 | 269 | ||
270 | onShareTimeline() { | 270 | onShareTimeline() { |
271 | + getApp().globalData.no_clear=1; | ||
271 | var store_name = getApp().globalData.config ? getApp().globalData.config.store_name : ''; | 272 | var store_name = getApp().globalData.config ? getApp().globalData.config.store_name : ''; |
272 | if (!store_name) | 273 | if (!store_name) |
273 | store_name = getApp().globalData.setting.appName; | 274 | store_name = getApp().globalData.setting.appName; |
pages/giftpack/mygiftpack/mygiftpack.js
@@ -178,6 +178,7 @@ Page({ | @@ -178,6 +178,7 @@ Page({ | ||
178 | }, | 178 | }, |
179 | 179 | ||
180 | onShareTimeline() { | 180 | onShareTimeline() { |
181 | + getApp().globalData.no_clear=1; | ||
181 | var curPage = this; | 182 | var curPage = this; |
182 | var pagePath = curPage.route; //当前页面url | 183 | var pagePath = curPage.route; //当前页面url |
183 | if (pagePath.indexOf('/') != 0) { | 184 | if (pagePath.indexOf('/') != 0) { |
pages/goods/categoryList/categoryList.js
@@ -1060,6 +1060,7 @@ Page({ | @@ -1060,6 +1060,7 @@ Page({ | ||
1060 | }, | 1060 | }, |
1061 | 1061 | ||
1062 | onShareTimeline(){ | 1062 | onShareTimeline(){ |
1063 | + getApp().globalData.no_clear=1; | ||
1063 | var store_name=getApp().globalData.config?getApp().globalData.config.store_name:''; | 1064 | var store_name=getApp().globalData.config?getApp().globalData.config.store_name:''; |
1064 | if(!store_name) | 1065 | if(!store_name) |
1065 | store_name=getApp().globalData.setting.appName; | 1066 | store_name=getApp().globalData.setting.appName; |
pages/goods/goodsInfo/goodsInfo.js
@@ -6359,6 +6359,7 @@ Page({ | @@ -6359,6 +6359,7 @@ Page({ | ||
6359 | }, | 6359 | }, |
6360 | 6360 | ||
6361 | onShareTimeline() { | 6361 | onShareTimeline() { |
6362 | + getApp().globalData.no_clear=1; | ||
6362 | var store_name = getApp().globalData.config ? getApp().globalData.config.store_name : ''; | 6363 | var store_name = getApp().globalData.config ? getApp().globalData.config.store_name : ''; |
6363 | if (!store_name) | 6364 | if (!store_name) |
6364 | store_name = getApp().globalData.setting.appName; | 6365 | store_name = getApp().globalData.setting.appName; |
pages/index/index/index.js
@@ -1166,6 +1166,8 @@ Page({ | @@ -1166,6 +1166,8 @@ Page({ | ||
1166 | 1166 | ||
1167 | 1167 | ||
1168 | onShareTimeline() { | 1168 | onShareTimeline() { |
1169 | + getApp().globalData.no_clear=1; | ||
1170 | + | ||
1169 | // getApp().getConfig(function(t) { | 1171 | // getApp().getConfig(function(t) { |
1170 | // return { | 1172 | // return { |
1171 | // title: '首页-' + getApp().globalData.config.store_name, | 1173 | // title: '首页-' + getApp().globalData.config.store_name, |
pages/template/index.js
@@ -102,6 +102,7 @@ Page({ | @@ -102,6 +102,7 @@ Page({ | ||
102 | * 用户分享朋友圈 | 102 | * 用户分享朋友圈 |
103 | */ | 103 | */ |
104 | async onShareTimeline(){ | 104 | async onShareTimeline(){ |
105 | + getApp().globalData.no_clear=1; | ||
105 | getApp().getConfig(await function(e){ | 106 | getApp().getConfig(await function(e){ |
106 | this.setData({ | 107 | this.setData({ |
107 | store_config:e | 108 | store_config:e |
pages/user/assistance/assistance.js
@@ -241,6 +241,7 @@ Page({ | @@ -241,6 +241,7 @@ Page({ | ||
241 | }, | 241 | }, |
242 | 242 | ||
243 | onShareTimeline() { | 243 | onShareTimeline() { |
244 | + getApp().globalData.no_clear=1; | ||
244 | var store_name = getApp().globalData.config ? getApp().globalData.config.store_name : ''; | 245 | var store_name = getApp().globalData.config ? getApp().globalData.config.store_name : ''; |
245 | if (!store_name) | 246 | if (!store_name) |
246 | store_name = getApp().globalData.setting.appName; | 247 | store_name = getApp().globalData.setting.appName; |