Commit a20d67fcefbedacdbd42f9c1e8d87d67652988b1
1 parent
ca4defb7
商品分享时的bug优化
Showing
2 changed files
with
15 additions
and
4 deletions
pages/cart/cart2/cart2.js
pages/goods/goodsInfo/goodsInfo.js
... | ... | @@ -271,7 +271,11 @@ Page({ |
271 | 271 | prom_id = t.prom_id; //活动ID |
272 | 272 | |
273 | 273 | self = this; |
274 | - | |
274 | + | |
275 | + | |
276 | + console.log("gd onload"); | |
277 | + console.log(t); | |
278 | + | |
275 | 279 | //-- 自定义海报 -- |
276 | 280 | getApp().request.promiseGet("/api/weshop/goods/poster/page", { |
277 | 281 | data: {store_id: os.stoid, type: 1, is_use: 1} |
... | ... | @@ -335,8 +339,13 @@ Page({ |
335 | 339 | this.data.prom_id = prom_id; |
336 | 340 | } |
337 | 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 | 349 | getApp().globalData.first_leader = first_leader; |
341 | 350 | //调用接口判断是不是会员 |
342 | 351 | getApp().request.promiseGet("/api/weshop/shoppingGuide/get/" + os.stoid + "/" + first_leader, {}).then(res => { |
... | ... | @@ -2454,6 +2463,9 @@ Page({ |
2454 | 2463 | } |
2455 | 2464 | //-- 页面不能刷新 -- |
2456 | 2465 | this.data.show_prew_img=1; |
2466 | + | |
2467 | + console.log("share.."); | |
2468 | + console.log(ob); | |
2457 | 2469 | return ob; |
2458 | 2470 | |
2459 | 2471 | }, | ... | ... |