mirror of
https://github.com/ProudMuBai/GoFilm.git
synced 2026-03-17 04:07:31 +08:00
fix film build
This commit is contained in:
@@ -48,18 +48,27 @@
|
|||||||
<Search/>
|
<Search/>
|
||||||
</el-icon>
|
</el-icon>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<!--Mobile bottom Btn Group-->
|
||||||
|
<div v-if="global.isMobile" class="nav-bottom" >
|
||||||
|
<a href=""></a>
|
||||||
|
<a href=""></a>
|
||||||
|
<a href=""></a>
|
||||||
|
<a href=""></a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--弹窗模块,显示按钮对应信息-->
|
<!--弹窗模块,显示按钮对应信息-->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import {onMounted, reactive, ref, watch} from "vue";
|
import {inject, onMounted, reactive, ref, watch} from "vue";
|
||||||
import {useRouter} from "vue-router";
|
import {useRouter} from "vue-router";
|
||||||
import {Search, CircleClose} from '@element-plus/icons-vue'
|
import {Search, CircleClose} from '@element-plus/icons-vue'
|
||||||
import {ElMessage} from "element-plus";
|
import {ElMessage} from "element-plus";
|
||||||
import {ApiGet} from "../../utils/request";
|
import {ApiGet} from "../../utils/request";
|
||||||
import {cookieUtil, COOKIE_KEY_MAP} from "../../utils/cookie";
|
import {cookieUtil, COOKIE_KEY_MAP} from "../../utils/cookie";
|
||||||
|
|
||||||
// 搜索关键字
|
// 搜索关键字
|
||||||
const keyword = ref<string>('')
|
const keyword = ref<string>('')
|
||||||
// 弹窗隐藏显示
|
// 弹窗隐藏显示
|
||||||
@@ -69,6 +78,9 @@ const data = reactive({
|
|||||||
nav: Array,
|
nav: Array,
|
||||||
site: Object,
|
site: Object,
|
||||||
})
|
})
|
||||||
|
// 获取全局状态对象
|
||||||
|
const global = inject('global')
|
||||||
|
|
||||||
// 加载观看历史记录信息
|
// 加载观看历史记录信息
|
||||||
const handleHistory = (flag: boolean) => {
|
const handleHistory = (flag: boolean) => {
|
||||||
data.historyFlag = flag
|
data.historyFlag = flag
|
||||||
@@ -130,9 +142,14 @@ onMounted(() => {
|
|||||||
})
|
})
|
||||||
getBasicInfo()
|
getBasicInfo()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--移动端适配-->
|
<!--移动端适配-->
|
||||||
<style>
|
<style>
|
||||||
/*小尺寸时隐藏状态栏*/
|
/*小尺寸时隐藏状态栏*/
|
||||||
|
|||||||
@@ -16,9 +16,16 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import Header from "../components/index/Header.vue";
|
import Header from "../components/index/Header.vue";
|
||||||
import Footer from "../components/index/Footer.vue";
|
import Footer from "../components/index/Footer.vue";
|
||||||
import NewHeader from "../components/index/NewHeader.vue";
|
import {provide} from "vue";
|
||||||
|
// import NewHeader from "../components/index/NewHeader.vue";
|
||||||
|
|
||||||
|
|
||||||
|
// 在全局注入一个当前是pc还是wrap的状态
|
||||||
|
const userAgent = navigator.userAgent.toLowerCase()
|
||||||
|
let isMobile = /mobile|android|iphone|ipad|phone/i.test(userAgent)
|
||||||
|
// 传递一个全局状态对象
|
||||||
|
provide('global', {isMobile: isMobile})
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -44,9 +44,9 @@ func DefaultDataInit() {
|
|||||||
SystemInit.TableInIt()
|
SystemInit.TableInIt()
|
||||||
// 初始化网站基本配置信息
|
// 初始化网站基本配置信息
|
||||||
SystemInit.BasicConfigInit()
|
SystemInit.BasicConfigInit()
|
||||||
// 初始化影视来源列表信息
|
|
||||||
SystemInit.SpiderInit()
|
|
||||||
// 初始化轮播组件信息
|
// 初始化轮播组件信息
|
||||||
SystemInit.BannersInit()
|
SystemInit.BannersInit()
|
||||||
}
|
}
|
||||||
|
// 初始化影视来源列表信息, 并回复恢复定时任务
|
||||||
|
SystemInit.SpiderInit()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user