From d3e3d94714017a3741d6fec35faac839d5b7b599 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Thu, 5 Dec 2024 10:52:01 +0800 Subject: [PATCH] 包含是要用>0,负-1也是真 --- components/my_confirm/my_confirm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/my_confirm/my_confirm.js b/components/my_confirm/my_confirm.js index 5795d99..2e60957 100644 --- a/components/my_confirm/my_confirm.js +++ b/components/my_confirm/my_confirm.js @@ -30,7 +30,7 @@ Component({ var ck2=content.indexOf('兑换该礼包'); var ck3=content.indexOf('领取该礼包'); - if(ck1 || ck2 || ck3){ + if(ck1>0 || ck2>0 || ck3>0){ this.setData({ is_show_txt:1 }) -- libgit2 0.21.4