Commit 89c32ddec2f4221a5adeaa4a14e2874128006a57
Merge branch 'dev' into 'test'
自测一个bug See merge request !1093
Showing
1 changed file
with
8 additions
and
2 deletions
pages/goods/categoryList/categoryList.js
... | ... | @@ -376,15 +376,21 @@ Page({ |
376 | 376 | var item=arr[0]; |
377 | 377 | |
378 | 378 | var name = item.items.name; |
379 | - var cid = item.items.cid; | |
379 | + var cid = item.items.id; | |
380 | 380 | var arr = item.array; |
381 | 381 | |
382 | + console.log("11111",item); | |
383 | + | |
382 | 384 | |
383 | 385 | if (arr.length == 0) { |
384 | 386 | t.setData({ |
385 | - select_classify_on: indexs, index: indexs, classify_name: name, cat_id: cid, | |
387 | + select_classify_on: 0, index: 0, classify_name: name, cat_id: cid, | |
386 | 388 | goodslist: null, is_level_three: 0 |
387 | 389 | }); |
390 | + | |
391 | + if(t.data.is_used_share == 2) | |
392 | + t.style(t.data.stylePage, cid) | |
393 | + | |
388 | 394 | return false; |
389 | 395 | } |
390 | 396 | if (arr.length != 0) { | ... | ... |