Commit a20d67fcefbedacdbd42f9c1e8d87d67652988b1
1 parent
ca4defb7
商品分享时的bug优化
Showing
2 changed files
with
15 additions
and
4 deletions
pages/cart/cart2/cart2.js
@@ -4371,7 +4371,6 @@ Page({ | @@ -4371,7 +4371,6 @@ Page({ | ||
4371 | sendsm: function (func) { | 4371 | sendsm: function (func) { |
4372 | let th =this; | 4372 | let th =this; |
4373 | var template_id = this.data.template_id; | 4373 | var template_id = this.data.template_id; |
4374 | - getApp().globalData.no_clear=1; | ||
4375 | // //授权订阅 | 4374 | // //授权订阅 |
4376 | wx.requestSubscribeMessage({ | 4375 | wx.requestSubscribeMessage({ |
4377 | tmplIds: [template_id], | 4376 | tmplIds: [template_id], |
pages/goods/goodsInfo/goodsInfo.js
@@ -271,7 +271,11 @@ Page({ | @@ -271,7 +271,11 @@ Page({ | ||
271 | prom_id = t.prom_id; //活动ID | 271 | prom_id = t.prom_id; //活动ID |
272 | 272 | ||
273 | self = this; | 273 | self = this; |
274 | - | 274 | + |
275 | + | ||
276 | + console.log("gd onload"); | ||
277 | + console.log(t); | ||
278 | + | ||
275 | //-- 自定义海报 -- | 279 | //-- 自定义海报 -- |
276 | getApp().request.promiseGet("/api/weshop/goods/poster/page", { | 280 | getApp().request.promiseGet("/api/weshop/goods/poster/page", { |
277 | data: {store_id: os.stoid, type: 1, is_use: 1} | 281 | data: {store_id: os.stoid, type: 1, is_use: 1} |
@@ -335,8 +339,13 @@ Page({ | @@ -335,8 +339,13 @@ Page({ | ||
335 | this.data.prom_id = prom_id; | 339 | this.data.prom_id = prom_id; |
336 | } | 340 | } |
337 | ee.setData({gid: gid}); | 341 | ee.setData({gid: gid}); |
338 | - if (first_leader) { | ||
339 | - console.log("log---".first_leader); | 342 | + |
343 | + console.log("gd onload--2"); | ||
344 | + console.log(first_leader); | ||
345 | + | ||
346 | + if(first_leader) { | ||
347 | + console.log("gd onload--3"); | ||
348 | + console.log("log---"+first_leader); | ||
340 | getApp().globalData.first_leader = first_leader; | 349 | getApp().globalData.first_leader = first_leader; |
341 | //调用接口判断是不是会员 | 350 | //调用接口判断是不是会员 |
342 | getApp().request.promiseGet("/api/weshop/shoppingGuide/get/" + os.stoid + "/" + first_leader, {}).then(res => { | 351 | getApp().request.promiseGet("/api/weshop/shoppingGuide/get/" + os.stoid + "/" + first_leader, {}).then(res => { |
@@ -2454,6 +2463,9 @@ Page({ | @@ -2454,6 +2463,9 @@ Page({ | ||
2454 | } | 2463 | } |
2455 | //-- 页面不能刷新 -- | 2464 | //-- 页面不能刷新 -- |
2456 | this.data.show_prew_img=1; | 2465 | this.data.show_prew_img=1; |
2466 | + | ||
2467 | + console.log("share.."); | ||
2468 | + console.log(ob); | ||
2457 | return ob; | 2469 | return ob; |
2458 | 2470 | ||
2459 | }, | 2471 | }, |