feat(京东): 广告弹窗(补充规则)、我的界面-悬浮广告(补充规则) (#1767)

* feat 广告弹窗(补充规则)

* feat 我的界面-悬浮广告(补充规则)
This commit is contained in:
Kun Jinkao
2023-11-04 00:25:42 +08:00
committed by GitHub
parent 3b4193256c
commit fae51a4cc2

View File

@@ -26,15 +26,28 @@ export default defineAppConfig({
{ {
enable: false, enable: false,
key: 2, key: 2,
name: '我的界面-参与调研', name: '我的界面-悬浮广告',
activityIds: 'com.jingdong.app.mall.MainFrameActivity', activityIds: 'com.jingdong.app.mall.MainFrameActivity',
rules: rules: [
{
key: 0,
desc: '参与调研',
matches:
'FrameLayout + RelativeLayout > RelativeLayout > ImageView + ImageView[desc!="返回"][visibleToUser=true]', 'FrameLayout + RelativeLayout > RelativeLayout > ImageView + ImageView[desc!="返回"][visibleToUser=true]',
snapshotUrls: [ snapshotUrls: [
'https://gkd-kit.gitee.io/import/12642270', 'https://gkd-kit.gitee.io/import/12642270',
'https://i.gkd.li/import/12774910', // 使用 [desc!="返回"] 进行限定,防止在进入商品详情页时点击返回按钮 'https://i.gkd.li/import/12774910', // 使用 [desc!="返回"] 进行限定,防止在进入商品详情页时点击返回按钮
], ],
}, },
{
key: 1,
desc: '邀好友得红包',
matches:
'@ImageView[id!=null] + FrameLayout[childCount=3] > ImageView + LinearLayout + TextView',
snapshotUrls: 'https://i.gkd.li/import/13242002',
},
],
},
{ {
enable: false, enable: false,
key: 3, key: 3,
@@ -84,6 +97,12 @@ export default defineAppConfig({
'[id="com.jingdong.app.mall:id/webview"] + [id="com.jingdong.app.mall:id/close"][desc="关闭页面"]', '[id="com.jingdong.app.mall:id/webview"] + [id="com.jingdong.app.mall:id/close"][desc="关闭页面"]',
snapshotUrls: 'https://i.gkd.li/import/13218034', snapshotUrls: 'https://i.gkd.li/import/13218034',
}, },
{
key: 2,
activityIds: 'com.jingdong.app.mall.MainFrameActivity',
matches: '[desc="弹窗"] + [desc="关闭按钮"]',
snapshotUrls: 'https://i.gkd.li/import/13241883',
},
], ],
}, },
{ {