Commit d3e3d94714017a3741d6fec35faac839d5b7b599

Authored by yvan.ni
1 parent adfe8e5b

包含是要用>0,负-1也是真

components/my_confirm/my_confirm.js
... ... @@ -30,7 +30,7 @@ Component({
30 30 var ck2=content.indexOf('兑换该礼包');
31 31 var ck3=content.indexOf('领取该礼包');
32 32  
33   - if(ck1 || ck2 || ck3){
  33 + if(ck1>0 || ck2>0 || ck3>0){
34 34 this.setData({
35 35 is_show_txt:1
36 36 })
... ...