系统跳转更改

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

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

@ -30,8 +30,14 @@
class="block-item"
v-for="blockItem in item.itemJson"
: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>
<img :src="baseUrl + blockItem.cover" alt="" />
<div class="video-icon">
@ -64,10 +70,9 @@ import useSettingsStore from "@/store/modules/settings";
import { getList, getInfo } from "@/api/jichuang/model.js";
const { proxy } = getCurrentInstance();
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_technology",
"sys_yes_no"
"jc_technology"
);
const loading = ref(true);
let currentIndex = ref(0);
@ -195,6 +200,15 @@ const activeStyle = (index) => {
& > div {
margin-top: 6px;
}
.go-sys {
margin: 0;
position: absolute;
top: 0;
left: 0;
font-size: 12px;
color: #fff;
padding: 3px;
}
.is-private {
margin: 0;
position: absolute;

Loading…
Cancel
Save