From b92344ea7d895d0edb8a97042cbce7f7ee9c740c Mon Sep 17 00:00:00 2001 From: aoguai <34203474+aoguai@users.noreply.github.com> Date: Sun, 24 Dec 2023 20:32:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=A5=BF=E4=BA=86=E4=B9=88):=20=E8=A7=84?= =?UTF-8?q?=E5=88=99=E4=BC=98=E5=8C=96(gkd-kit#3216)=20(#3315)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close #3216 --- src/apps/me.ele.ts | 46 +++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 41 insertions(+), 5 deletions(-) diff --git a/src/apps/me.ele.ts b/src/apps/me.ele.ts index 1e4494fc..3f35869f 100644 --- a/src/apps/me.ele.ts +++ b/src/apps/me.ele.ts @@ -45,13 +45,14 @@ export default defineAppConfig({ 'me.ele.shopdetailv2.ShopDetailV2Activity', ], matches: - '@ImageView[clickable=true] - ViewGroup < [id="me.ele:id/id_magex_mistview"][childCount=2]', + '[id="me.ele:id/id_magex_mistview"] >n ViewGroup + ImageView', snapshotUrls: [ 'https://i.gkd.li/import/12650238', 'https://i.gkd.li/import/13294893', 'https://i.gkd.li/import/13331361', 'https://i.gkd.li/import/13362974', 'https://i.gkd.li/import/13376008', + 'https://i.gkd.li/import/13710581', ], }, { @@ -87,10 +88,7 @@ export default defineAppConfig({ }, { key: 2, - activityIds: [ - 'me.ele.application.ui.Launcher.LauncherActivity', - 'me.ele.application.ui.Launcher.LauncherActivity', - ], + activityIds: ['me.ele.application.ui.Launcher.LauncherActivity'], matches: '[id="me.ele:id/fl_render_e_shop"] + FrameLayout >n ViewGroup[childCount=6] > View[index=5]', snapshotUrls: [ @@ -98,6 +96,15 @@ export default defineAppConfig({ 'https://i.gkd.li/import/13523541', ], }, + { + key: 3, + activityIds: ['me.ele.application.ui.Launcher.LauncherActivity'], + matches: 'ViewGroup[clickable=true] - TextView[text="放弃"]', + snapshotUrls: [ + 'https://i.gkd.li/import/13710574', + 'https://i.gkd.li/import/13710591', + ], + }, ], }, { @@ -116,5 +123,34 @@ export default defineAppConfig({ rules: '@View + View >2 [text="买校园版超级吃货卡"]', snapshotUrls: 'https://i.gkd.li/import/13295007', }, + { + key: 7, + name: '首页-底部浮窗广告', + activityIds: 'me.ele.application.ui.Launcher.LauncherActivity', + rules: + 'LinearLayout >n FrameLayout >n ViewGroup[childCount=3] + ViewGroup[clickable=true]', + snapshotUrls: 'https://i.gkd.li/import/13710588', + }, + { + key: 8, + name: '开启定位提醒', + desc: '自动点击X', + enable: false, + quickFind: true, + rules: [ + { + key: 0, + activityIds: 'me.ele.application.ui.Launcher.LauncherActivity', + matches: '[text="去开启"] + [id="me.ele:id/close"]', + snapshotUrls: 'https://i.gkd.li/import/13710588', + }, + { + key: 1, + activityIds: 'me.ele.application.ui.Launcher.LauncherActivity', + matches: '[text="去开启"] + [id="me.ele:id/close_tips"]', + snapshotUrls: 'https://i.gkd.li/import/13710585', + }, + ], + }, ], });