mirror of
https://github.com/ProudMuBai/GoFilm.git
synced 2026-02-12 21:14:41 +08:00
fix film build
This commit is contained in:
@@ -48,18 +48,27 @@
|
||||
<Search/>
|
||||
</el-icon>
|
||||
</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>
|
||||
</template>
|
||||
|
||||
<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 {Search, CircleClose} from '@element-plus/icons-vue'
|
||||
import {ElMessage} from "element-plus";
|
||||
import {ApiGet} from "../../utils/request";
|
||||
import {cookieUtil, COOKIE_KEY_MAP} from "../../utils/cookie";
|
||||
|
||||
// 搜索关键字
|
||||
const keyword = ref<string>('')
|
||||
// 弹窗隐藏显示
|
||||
@@ -69,6 +78,9 @@ const data = reactive({
|
||||
nav: Array,
|
||||
site: Object,
|
||||
})
|
||||
// 获取全局状态对象
|
||||
const global = inject('global')
|
||||
|
||||
// 加载观看历史记录信息
|
||||
const handleHistory = (flag: boolean) => {
|
||||
data.historyFlag = flag
|
||||
@@ -130,9 +142,14 @@ onMounted(() => {
|
||||
})
|
||||
getBasicInfo()
|
||||
})
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
<!--移动端适配-->
|
||||
<style>
|
||||
/*小尺寸时隐藏状态栏*/
|
||||
|
||||
@@ -16,9 +16,16 @@
|
||||
<script setup lang="ts">
|
||||
import Header from "../components/index/Header.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>
|
||||
|
||||
|
||||
|
||||
@@ -44,9 +44,9 @@ func DefaultDataInit() {
|
||||
SystemInit.TableInIt()
|
||||
// 初始化网站基本配置信息
|
||||
SystemInit.BasicConfigInit()
|
||||
// 初始化影视来源列表信息
|
||||
SystemInit.SpiderInit()
|
||||
// 初始化轮播组件信息
|
||||
SystemInit.BannersInit()
|
||||
}
|
||||
// 初始化影视来源列表信息, 并回复恢复定时任务
|
||||
SystemInit.SpiderInit()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user