/*
软件作者:https://xuhss.com/oxox/pro
*/
/*
2019年5月28日 更新
脚本仅供代码学习,请勿分享。非法传播照成法律问题与作者无关。
by:iPhone 8、小良
https://ae85.cn/
*/
$cache.set("id", "5")
$cache.set("pg", 1)
var urlt = "http://w1.97xzjpzz.info/"
var data = [{ "name": "亚洲無碼", "id": "5" }, { "name": "日本騎兵", "id": "22" }, { "name": "歐美新片", "id": "7" }, { "name": " 三級寫真", "id": "18" },]
$ui.render({
props: {
title: "1024下载"
},
views: [{
type: "menu",
props: {
id: "meun",
items: data.map(function (item) {
return item.name
}),
},
layout: function (make) {
make.left.top.right.equalTo(0)
make.height.equalTo(50)
},
events: {
changed: function (sender) {
$cache.set("id", data[sender.index].id)
$cache.set("pg", 1)
getdata()
}
}
},
{
type: "list",
layout: function (make) {
make.right.left.bottom.inset(0)
make.top.equalTo($("meun").bottom)
},
events: {
didSelect: function (sender, indexPath, data) {
var id = data.split("\n")
geting(id[1], id[0])
},
didReachBottom: function (sender) {
sender.endFetchingMore()
var page = $cache.get("pg") + 1
$cache.set("pg", page)
getdata()
}
}
},]
})
function getdata() {
var id = $cache.get("id")
var pg = $cache.get("pg")
$ui.loading(true)
$http.get({
url: urlt + "pw/thread.php?fid=" + id + "&page=" + pg,
handler: function (resp) {
$ui.loading(false)
var text = resp.data.replace(/\n|\s|\r/g, "")
if (text.indexOf('普通主题') !== -1) {
text = text.split("普通主题")[1]
}
var shu = text.match(/class=\"tr3t_one\">(\S*?)<\/h3>/g)
if (pg == 1) {
var data = []
} else {
var data = $("list").data
}
for (i in shu) {
var a = shu[i]
if (a.indexOf('href=') !== -1) {
var txt = a.split("<h3>")[1]
var mc = txt.match(/\">(\S*?)<\/a>/)[1]
var id = a.match(/href=\"(\S*?)\"/)[1]
data.push(mc + "\n" + id)
}
}
$("list").data = data
$("list").endFetchingMore()
}
})
}
getdata()
function geting(id, mc) {
$ui.loading(true)
$http.get({
url: urlt + "pw/" + id,
handler: function (resp) {
$ui.loading(false)
var text = resp.data.match(/id=\"read_tpc\">.*?<\/div>/)
text = text[0].replace('id=\"read_tpc\">', "")
var shu = $detector.link(text);
var url = shu[shu.length - 2]
var html = `<html><head><meta charset="UTF-8"><title>${mc}</title><style> body,div{ font-size:42px;} </style> </head><body><div>${text}</body></html>`
$ui.push({
props: {
title: mc
},
views: [{
type: "web",
props: {
html: html,
},
layout: $layout.fill
}, {
type: "button",
props: {
id: "hb_img",
src: "https://ae85.cn/jsbox/img/xun.jpg",
radius: 30
},
events: {
tapped: function (sender) {
geturl(url, 1)
},
longPressed: function (sender) {
geturl(url, 2)
}
},
layout: function (make, view) {
make.top.inset(30)
make.width.height.equalTo(60)
make.right.inset(15)
}
},]
})
}
})
}
function geturl(url, dian) {
$http.get({
url: url,
handler: function (resp) {
$ui.loading(false)
var text = resp.data.replace(/\n|\s|\r/g, "")
var url = text.match(/<aclass=\"uk-button\"onclick=\"setpos\(\);\"href=\"(\S*?)\"/)[1]
url = url.replace(/amp;/g, "")
$clipboard.text = url
if (dian == 1) {
var canOpen = $app.openURL("thunder://" + url);
if (!canOpen) {
$ui.alert({
message: "请先安装迅雷",
actions: [{
title: "跳转安装",
handler: function () {
$app.openURL("https://ae85.cn/yy.html");
}
},
{
title: "复制磁力链接",
handler: function () {
alert("已复制\n"+url)
}
}
]
})
}
}else{
alert("已复制磁力链接")
}
}
})
}
没有合适的资源?快使用搜索试试~ 我知道了~
AutoJs源码-1024下载
共1个文件
js:1个
需积分: 1 0 下载量 57 浏览量
2022-11-14
21:45:34
上传
评论
收藏 2KB 7Z 举报
温馨提示
AutoJs源码-1024下载。本资源购买前提醒:本源码都是实际autojs项目模板,安装好autojs直接运行即可打开。1、支持低版本autojs。2、资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!。3、安装过程详见具体资源,不会使用autojs谨慎下载
资源推荐
资源详情
资源评论
收起资源包目录
AutoJs源码-1024下载.7z (1个子文件)
AutoJs源码-1024下载.js 6KB
共 1 条
- 1
资源评论
[虚幻私塾】
- 粉丝: 335
- 资源: 1559
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功