forked from bjc5233/autojs
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path支付宝-签到积分.js
35 lines (32 loc) · 860 Bytes
/
支付宝-签到积分.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
auto.waitFor();
var Maid = require("./common/Maid.js");
var maid = new Maid("com.eg.android.AlipayGphone");
var Unlock = require("./common/Unlock.js");
var unlock = new Unlock();
maid.before();
unlock.unlock();
maid.sleep(2);
maid.kill();
maid.sleep(2);
maid.launchActivity("com.eg.android.AlipayGphone.AlipayLogin");
maid.sleep(5);
if (id("update_cancel_tv").exists()) { // 关闭更新弹窗
maid.clickIdCenter("update_cancel_tv");
maid.sleep(2);
}
maid.clickTextCenter("我的");
maid.sleep(4);
maid.clickTextCenter("支付宝会员");
maid.sleep(4);
if (desc("弹屏").exists()) {
maid.clickDescCenter("关闭"); // 支付宝会员日弹窗
maid.sleep(1);
}
maid.clickDescCenter("领积分");
maid.sleep(4);
while (desc("点击领取").exists()) {
maid.clickDescCenter("点击领取");
maid.sleep(6);
}
maid.kill();
maid.after();