系统跳转更改

main
许宏杰 1 month ago
parent 38922df465
commit 3cbd59b529

@ -5,7 +5,7 @@
<script setup> <script setup>
import useSettingsStore from "@/store/modules/settings"; import useSettingsStore from "@/store/modules/settings";
import { handleThemeStyle } from "@/utils/theme"; import { handleThemeStyle } from "@/utils/theme";
import autofit from "autofit.js"; // import autofit from "autofit.js";
onMounted(() => { onMounted(() => {
nextTick(() => { nextTick(() => {
// autofit.init({ // autofit.init({
@ -13,6 +13,7 @@ onMounted(() => {
// dw: 1920, // dw: 1920,
// ignore: ['div[id*="el-popper-container"]'], // ignore: ['div[id*="el-popper-container"]'],
// resize: true, // resize: true,
// }); // });
// //

@ -30,8 +30,14 @@
class="block-item" class="block-item"
v-for="blockItem in item.itemJson" v-for="blockItem in item.itemJson"
:key="blockItem.id" :key="blockItem.id"
@click="goLink(blockItem.link)"
> >
<div
class="go-sys"
:style="{ backgroundColor: theme }"
@click="goLink(blockItem.link)"
>
进入系统
</div>
<div class="is-private" v-show="blockItem.isPrivate == 1"></div> <div class="is-private" v-show="blockItem.isPrivate == 1"></div>
<img :src="baseUrl + blockItem.cover" alt="" /> <img :src="baseUrl + blockItem.cover" alt="" />
<div class="video-icon"> <div class="video-icon">
@ -64,10 +70,9 @@ import useSettingsStore from "@/store/modules/settings";
import { getList, getInfo } from "@/api/jichuang/model.js"; import { getList, getInfo } from "@/api/jichuang/model.js";
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const baseUrl = import.meta.env.VITE_APP_BASE_API; const baseUrl = import.meta.env.VITE_APP_BASE_API;
const { jc_technology, jc_item_type, sys_yes_no } = proxy.useDict( const { jc_technology, jc_item_type } = proxy.useDict(
"jc_item_type", "jc_item_type",
"jc_technology", "jc_technology"
"sys_yes_no"
); );
const loading = ref(true); const loading = ref(true);
let currentIndex = ref(0); let currentIndex = ref(0);
@ -195,6 +200,15 @@ const activeStyle = (index) => {
& > div { & > div {
margin-top: 6px; margin-top: 6px;
} }
.go-sys {
margin: 0;
position: absolute;
top: 0;
left: 0;
font-size: 12px;
color: #fff;
padding: 3px;
}
.is-private { .is-private {
margin: 0; margin: 0;
position: absolute; position: absolute;

Loading…
Cancel
Save