From 7b5ab70481f577b0f915d52b8bc798d7990c02bb Mon Sep 17 00:00:00 2001 From: cjy0812 Date: Thu, 12 Feb 2026 07:43:59 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E7=94=A8=E8=8D=AF=E5=8A=A9?= =?UTF-8?q?=E6=89=8B=20=E6=9B=B4=E6=96=B0=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/cn.dxy.medicinehelper.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/apps/cn.dxy.medicinehelper.ts diff --git a/src/apps/cn.dxy.medicinehelper.ts b/src/apps/cn.dxy.medicinehelper.ts new file mode 100644 index 000000000..c920022f0 --- /dev/null +++ b/src/apps/cn.dxy.medicinehelper.ts @@ -0,0 +1,19 @@ +import { defineGkdApp } from '@gkd-kit/define'; + +export default defineGkdApp({ + id: 'cn.dxy.medicinehelper', + name: '用药助手', + groups: [ + { + key: 1, + name: '更新提示', + rules: [ + { + fastQuery: true, + activityIds: 'cn.dxy.medicinehelper.activity.MainComposeActivity', + matches: '[vid="blankForClose"] + [vid="iv_close"]', + }, + ], + }, + ], +}); From 6df6a16ac046eb83f1a2eee7cb11ff87fca75dad Mon Sep 17 00:00:00 2001 From: cjy0812 Date: Thu, 12 Feb 2026 08:53:26 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E5=88=86=E6=AE=B5=E5=B9=BF?= =?UTF-8?q?=E5=91=8A=20=E5=B1=80=E9=83=A8=E5=B9=BF=E5=91=8A=20=E5=85=A8?= =?UTF-8?q?=E5=B1=8F=E5=B9=BF=E5=91=8A=20=E5=8A=9F=E8=83=BD=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/cn.dxy.medicinehelper.ts | 81 +++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/src/apps/cn.dxy.medicinehelper.ts b/src/apps/cn.dxy.medicinehelper.ts index c920022f0..8ec7033a8 100644 --- a/src/apps/cn.dxy.medicinehelper.ts +++ b/src/apps/cn.dxy.medicinehelper.ts @@ -15,5 +15,86 @@ export default defineGkdApp({ }, ], }, + { + key: 2, + name: '分段广告', + rules: [ + { + key: 0, + activityIds: + 'cn.dxy.medicinehelper.article.dailylearn.DailyLearnComposeActivity', + matches: '[text="去学习"] + [text^="+"][text$="丁当"]', + snapshotUrls: 'https://i.gkd.li/i/25246837', + }, + { + preKeys: [0], + key: 1, + action: 'back', + }, + ], + }, + { + key: 3, + name: '局部广告', + rules: [ + { + key: 0, + activityIds: [ + '.article.dailylearn.DailyLearnComposeActivity', + 'cn.dxy.drugscomm.business.ebm.EbmContentComposeActivity', + 'cn.dxy.drugscomm.business.drug.detail.DrugDetailComposeActivity', + ], + matches: ['[text="展开"][visibleToUser=true]'], + snapshotUrls: [ + 'https://i.gkd.li/i/25246982', //展开完整信息 + 'https://i.gkd.li/i/25247361', + 'https://i.gkd.li/i/25247525', + ], + }, + ], + }, + { + key: 4, + name: '功能类-药品说明书-表格全屏自动横屏观看', + rules: [ + { + key: 0, + activityIds: + 'cn.dxy.drugscomm.business.drug.detail.DrugDetailComposeActivity', + matches: '@TextView[text="横屏"]', + snapshotUrls: 'https://i.gkd.li/i/25247591', + }, + ], + }, + { + key: 5, + name: '全屏广告', + rules: [ + { + key: 0, + activityIds: + 'cn.dxy.drugscomm.business.medadviser.detail.MedAdviserDetailComposeActivity', + matches: + '[text*="有帮助吗"] + [text*="参与反馈"] +n ImageView[clickable=true][width<100 && height<100]', + snapshotUrls: 'https://i.gkd.li/i/25247634', + }, + { + key: 1, + activityIds: + 'cn.dxy.drugscomm.business.ebm.EbmContentComposeActivity', + matches: + '@ImageView[clickable=true][visibleToUser=true][width<102 && height<102] - View < View[childCount=2]', + snapshotUrls: 'https://i.gkd.li/i/25247624', + }, + { + key: 2, + activityIds: + 'cn.dxy.drugscomm.business.guide.detail.GuideDetailComposeActivity', + matches: + '@ImageView[desc="用药助手"][clickable=true][visibleToUser=true][width<102 && height<102] - ImageView < View[childCount=5]', + snapshotUrls: 'https://i.gkd.li/i/25247659', + }, + ], + }, ], });