mirror of
https://github.com/yuanwangokk-1/TV-BOX.git
synced 2025-10-24 11:31:22 +00:00
50 lines
1.4 KiB
HTML
50 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
|
<title>TyrantGenesis</title>
|
|
<link href="https://unpkg.com/element-ui/lib/theme-chalk/index.css" rel="stylesheet">
|
|
<style>
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
height: 48px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="app">
|
|
<el-carousel :interval="4000" height="200px" type="card">
|
|
<el-carousel-item :key="item" v-for="item in images">
|
|
<img :alt="item" :src="item">
|
|
</el-carousel-item>
|
|
</el-carousel>
|
|
</div>
|
|
<script src="https://unpkg.com/vue@2.6/dist/vue.min.js"></script>
|
|
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
|
|
<script>
|
|
new Vue({
|
|
el: '#app',
|
|
data() {
|
|
return {
|
|
images: []
|
|
}
|
|
},
|
|
mounted() {
|
|
this.getFetchImages()
|
|
},
|
|
methods: {
|
|
getFetchImages() {
|
|
const html = fy_bridge_app.fetch("https://pic.tjsky.net/pixiv/pic/2021/05/24_daily/")
|
|
const list = fy_bridge_app.parseDomForArray(html, '.mdui-list&&.file')
|
|
list.forEach(item => {
|
|
this.images.push(fy_bridge_app.parseDomForHtml(item, 'a&&href'))
|
|
})
|
|
},
|
|
},
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|