diff --git a/src/components/DashBoard.vue b/src/components/DashBoard.vue
index 674cf60..9e78764 100644
--- a/src/components/DashBoard.vue
+++ b/src/components/DashBoard.vue
@@ -18,8 +18,9 @@
当前页查询
-
+
打开面板
+ 里站搜索
修改授权码
删除本地授权码
@@ -33,7 +34,7 @@
-
+
本子名字:{{chosenGallery.name}}
本子页数:{{chosenGallery.pages}}
@@ -49,15 +50,45 @@
下载
-
+
在线预览
查看封面图
删除
-
-
+
+
+
+ 查询
+
+
+
+
+
+
{{gallery.name}}
+
上传时间:{{gallery.uploadTime}}
+
页数:{{gallery.page}}
+
类型:{{gallery.type}}
+
链接
+
下载
+
+
+
+
+ 首页
+ 上一页
+ 下一页
+ 尾页
+
+
+
+
当前授权码
@@ -83,10 +114,11 @@
-
-
-
是否记住授权码
+
+
+ 是否记住授权码
验证
+
@@ -94,6 +126,7 @@
import store from "../store";
import {computed, ref, onMounted} from "vue";
import {ElMessage} from "element-plus"
+import axios from "axios";
//授权码相关
let AuthCode = ref("")
@@ -102,6 +135,11 @@ let isAlterAuthCode = ref(false)
let newAuthCode = ref("")
let tempAuthCode = ref("")
+let isQuerying = ref(false)
+let keyword = ref("furry yaoi")
+let galleries = ref([])
+let queryPage = ref({})
+
//查询相关
let type = ref("link")
let param = ref("")
@@ -186,6 +224,30 @@ function resetLocalQuery(){
store.commit("_searchLocalByTag", [''])
param.value = ""
}
+function queryGalleries(link){
+ let tempParam
+ if(link !== null) {
+ let url = new URL(link)
+ tempParam = url.search.replace("?f_search=", "")
+ }else{
+ tempParam = keyword.value
+ }
+ tempParam = tempParam.replace(" ", "+")
+
+ axios.get("http://downloader.lionwebsite.xyz/query?keyword=" + tempParam)
+ .then((res) => {
+ let tempGalleries = JSON.parse(res.data.data)
+ queryPage.value.first = 'first' in res.data? res.data.first: undefined
+ queryPage.value.previous = 'previous' in res.data? res.data.previous: undefined
+ queryPage.value.next = 'next' in res.data? res.data.next: undefined
+ queryPage.value.last = 'last' in res.data? res.data.last: undefined
+
+ galleries.value.splice(0)
+ tempGalleries.forEach((gallery) => {
+ galleries.value.push(gallery)
+ })
+ })
+}
//删除任务
function deleteGallery(){
@@ -244,7 +306,7 @@ onMounted(() => {
})
-
\ No newline at end of file
diff --git a/src/components/Side.vue b/src/components/Side.vue
index c88be41..2066612 100644
--- a/src/components/Side.vue
+++ b/src/components/Side.vue
@@ -104,7 +104,7 @@
-
+
diff --git a/src/store/index.js b/src/store/index.js
index 6ac7793..a019778 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -417,6 +417,8 @@ const mutations = {
state.chosenGallery.fileSize = "等待下载完成后再查看"
state.chosenGallery.createTimeDisplay = "等待下载完成后再查看"
state.chosenGallery.progress = "已提交"
+ state.chosenGallery.tag = ""
+ state.chosenGallery.downloader = state.userId
state.totalGalleryTask.push(state.chosenGallery)
state.downloadGallery.push(state.chosenGallery)
}