京东自动叠蛋糕|淘宝自动领喵币,叠列车|618全民购物|JavaScript
行环境 安卓
JavaScript运行软件 Auto.js
"ui";
var color = "#009688";
main();
function main() {
ui.layout(
<drawer id="drawer">
<vertical>
<appbar>
<toolbar id="toolbar" title="618小助手" />
<tabs id="tabs" />
</appbar>
<viewpager id="viewpager">
{
/* 淘宝页面 */}
<frame>
<vertical>
<card w="*" h="85" margin="10 5" cardCornerRadius="2dp"
cardElevation="1dp" gravity="center_vertical">
<vertical padding="18 8" h="auto">
<text text="执行速度(默认正常速度50,越大越快)" textColor="#222222" textSize="18sp" />
<input id="taobaoSpeed" inputType="number" hint="最小为1,最大为100" />
</vertical>
<View bg="#f44336" h="*" w="10" />
</card>
<list id="taobaoList">
<card w="*" h="50" margin="10 5" cardCornerRadius="2dp"
cardElevation="1dp" foreground="?selectableItemBackground">
<horizontal gravity="center_vertical">
<View bg="{
{this.color}}" h="*" w="10" />
<vertical padding="10 8" h="auto" w="0" layout_weight="1">
<text id="title" text="{
{this.title}}" textColor="#222222" textSize="18sp" maxLines="1" />
</vertical>
<checkbox id="done" marginLeft="4" marginRight="6" checked="{
{this.done}}" />
</horizontal>
</card>
</list>
<horizontal gravity="center">
<button style="Widget.AppCompat.Button.Colored" w="auto" h="auto" id="gototb" text="开始任务" textSize="26sp" />
</horizontal>
</vertical>
</frame>
{
/* 京东界面 */}
<frame>
<vertical>
<card w="*" h="85" margin="10 5" cardCornerRadius="2dp"
cardElevation="1dp" gravity="center_vertical">
<vertical padding="18 8" h="auto">
<text text="执行速度(默认正常速度50,越大越快)" textColor="#222222" textSize="18sp" />
<input id="jdSpeed" inputType="number" hint="最小为1,最大为100" />
</vertical>
<View bg="#f44336" h="*" w="10" />
</card>
<card w="*" h="85" margin="10 5" cardCornerRadius="2dp"
cardElevation="1dp" gravity="center_vertical">
<vertical padding="18 8" h="auto">
<text text="设置小金人任务次数" textColor="#222222" textSize="18sp" />
<input id="goldTime" inputType="number" hint="最小为1,最大为50" />
</vertical>
<View bg="#78909c" h="*" w="10" />
</card>
<list id="jdList">
<card w="*" h="50" margin="10 5" cardCornerRadius="2dp"
cardElevation="1dp" foreground="?selectableItemBackground">
<horizontal gravity="center_vertical">
<View bg="{
{this.color}}" h="*" w="10" />
<vertical padding="10 8" h="auto" w="0" layout_weight="1">
<text id="title" text="{
{this.title}}" textColor="#222222" textSize="18sp" maxLines="1" />
</vertical>
<checkbox id="done" marginLeft="4" marginRight="6" checked="{
{this.done}}" />
</horizontal>
</card>
</list>
<horizontal gravity="center">
<button style="Widget.AppCompat.Button.Colored" w="auto" h="auto" id="gotojd" text="开始任务" textSize="26sp" />
<button style="Widget.AppCompat.Button.Colored" w="auto" h="auto" id="gotojdGold" text="小金人" textSize="26sp" />
</horizontal>
</vertical>
</frame>
{
/* 关于 */}
<frame>
<ScrollView>
<vertical>
<horizontal gravity="center" margin="10 5" w="*" h="auto">
<text text="使用方法" textStyle="bold" textColor="#222222" textSize="22sp" maxLines="1" />
</horizontal>
<card w="*" h="auto" margin="10 5" cardCornerRadius="2dp"
cardElevation="1dp" foreground="?selectableItemBackground">
<horizontal gravity="center_vertical">
<vertical padding="15 8" h="auto" w="auto" layout_weight="1">
<text id="help" text="" textColor="#222222" textSize="18sp" maxLines="50" />
</vertical>
</horizontal>
</card>
<horizontal gravity="center" margin="10 5" w="*" h="auto">
<text text="常见问题" textStyle="bold" textColor="#222222" textSize="22sp" maxLines="1" />
</horizontal>
<card w="*" h="auto" margin="10 5" cardCornerRadius="2dp"
cardElevation="1dp" foreground="?selectableItemBackground">
<horizontal gravity="center_vertical">
<vertical padding="15 8" h="auto" w="auto" layout_weight="1">
<text id="question" text="" textColor="#222222" textSize="18sp" maxLines="100" />
</vertical>
</horizontal>
</card>
<horizontal gravity="center" margin="10 5" w="*" h="auto">
<text text="关于软件" textStyle="bold" textColor="#222222" textSize="22sp" maxLines="1" />
</horizontal>
<card w="*" h="auto" margin="10 5" cardCornerRadius="2dp"
cardElevation="1dp" foreground="?selectableItemBackground">
<horizontal gravity="center_vertical">
<vertical padding="15 8" h="auto" w="auto" layout_weight="1">
<text id="about" text="" textColor="#222222" textSize="18sp" maxLines=