Commit 889dbdb8cad6f672549738e896bdfbc288e33d45
1 parent
511867f4
页面增加可以转发权限
Showing
5 changed files
with
31 additions
and
2 deletions
pages/activity/pind_list/pind_list.js
| ... | ... | @@ -126,6 +126,13 @@ Page({ |
| 126 | 126 | this.reloadGoodList(); |
| 127 | 127 | }, |
| 128 | 128 | |
| 129 | + //---------分享配置-------- | |
| 130 | + onShareAppMessage: function (e) { | |
| 131 | + return { | |
| 132 | + title: "限时团购", | |
| 133 | + } | |
| 134 | + }, | |
| 135 | + | |
| 129 | 136 | //图片失败,默认图片 |
| 130 | 137 | bind_bnerr2: function (e) { |
| 131 | 138 | var _errImg = e.target.dataset.errorimg; | ... | ... |
pages/activity/seckill_list/seckill_list.js
| ... | ... | @@ -123,6 +123,12 @@ Page({ |
| 123 | 123 | this.setData({type:a,goodlist:null}); |
| 124 | 124 | this.reloadGoodList(); |
| 125 | 125 | }, |
| 126 | + //---------分享配置-------- | |
| 127 | + onShareAppMessage: function (e) { | |
| 128 | + return { | |
| 129 | + title: "疯狂秒杀", | |
| 130 | + } | |
| 131 | + }, | |
| 126 | 132 | //图片失败,默认图片 |
| 127 | 133 | bind_bnerr2: function (e) { |
| 128 | 134 | var _errImg = e.target.dataset.errorimg; | ... | ... |
pages/goods/categoryList/categoryList.js
| ... | ... | @@ -417,7 +417,12 @@ Page({ |
| 417 | 417 | } |
| 418 | 418 | }); |
| 419 | 419 | }, |
| 420 | - | |
| 420 | + //---------分享配置-------- | |
| 421 | + onShareAppMessage: function (e) { | |
| 422 | + return { | |
| 423 | + title: "商品分类", | |
| 424 | + } | |
| 425 | + }, | |
| 421 | 426 | //图片失败,默认图片 |
| 422 | 427 | bind_bnerr: function (e) { |
| 423 | 428 | var _errImg = e.target.dataset.errorimg; | ... | ... |
pages/goods/goodsList/goodsList.js
| ... | ... | @@ -137,7 +137,12 @@ Page({ |
| 137 | 137 | }); |
| 138 | 138 | this.data.currentPage = 2; |
| 139 | 139 | }, |
| 140 | - | |
| 140 | +//---------分享配置-------- | |
| 141 | + onShareAppMessage: function (e) { | |
| 142 | + return { | |
| 143 | + title: "商品列表", | |
| 144 | + } | |
| 145 | + }, | |
| 141 | 146 | //---图片失败,默认图片--- |
| 142 | 147 | bind_bnerr2: function (e) { |
| 143 | 148 | var _errImg = e.target.dataset.errorimg; | ... | ... |
pages/goods/search/search.js
| ... | ... | @@ -175,6 +175,12 @@ Page({ |
| 175 | 175 | if ("string" != typeof t || "" == t) return a.showWarning("请输入搜索关键词"); |
| 176 | 176 | this.resetData(), this.requestSearch(this.data.baseUrl + "&key_str=" + encodeURIComponent(t)); |
| 177 | 177 | }, |
| 178 | + //---------分享配置-------- | |
| 179 | + onShareAppMessage: function (e) { | |
| 180 | + return { | |
| 181 | + title: "商品分类", | |
| 182 | + } | |
| 183 | + }, | |
| 178 | 184 | //---------图片失败,默认图片-------- |
| 179 | 185 | bind_bnerr: function (e) { |
| 180 | 186 | var _errImg = e.target.dataset.errorimg; | ... | ... |