From 28bfea34b20507fd7035085f2bd997971540b079 Mon Sep 17 00:00:00 2001 From: duanxiaohai <1812246227@qq.com> Date: Tue, 6 Aug 2024 11:16:30 +0800 Subject: [PATCH] gx --- src/view/guide.vue | 99 +++++++++++++++++++++++----------------------- 1 file changed, 50 insertions(+), 49 deletions(-) diff --git a/src/view/guide.vue b/src/view/guide.vue index b112297..6ee7aa2 100644 --- a/src/view/guide.vue +++ b/src/view/guide.vue @@ -27,7 +27,7 @@ class="image-wall" style="transition: transform 1s ease 0.5s" :style="{ - transform: `rotateY(${45 * indexP}deg) translateZ(450px)`, + transform: `rotateY(${91.25 * indexP}deg) translateZ(350px)`, }" @click.stop="toPage(itemP.url)" > @@ -137,13 +137,13 @@ const reset_font = () => { "scale(" + width / 1920 + "," + height / 1080 + ")"; }; onMounted(() => { - let token = tools.data.get("token"); - // console.log(token, "token"); - if (token == null) { - ElMessage.error("请重新登录!"); - window.location.href = - "http://220.191.238.50:996/api/login?returnURL=" + window.location.href; - } + // let token = tools.data.get("token"); + // // console.log(token, "token"); + // if (token == null) { + // ElMessage.error("请重新登录!"); + // window.location.href = + // "http://220.191.238.50:996/api/login?returnURL=" + window.location.href; + // } reset_font(); reset_font(); }); @@ -157,6 +157,10 @@ const tabData = reactive({ tabNum: 0, PageUrl: "/home/index/table", tabList: [ + { + name: "总体概况", + img: tab1, + }, { name: "评估模型", img: tab7, @@ -165,32 +169,32 @@ const tabData = reactive({ name: "要素一张图", img: tab8, }, - { - name: "总体概况", - img: tab1, - }, - { - name: "养老体系", - img: tab2, - }, - { - name: "卫生体系", - img: tab3, - }, - { - name: "教育体系", - img: tab4, - }, - { - name: "救助体系", - img: tab5, - }, + // { + // name: "养老体系", + // img: tab2, + // }, + // { + // name: "卫生体系", + // img: tab3, + // }, + // { + // name: "教育体系", + // img: tab4, + // }, + // { + // name: "救助体系", + // img: tab5, + // }, { name: "智能分析", img: tab6, }, ], scenList: [ + { + img: png3, + url: "/home/index", + }, { img: png1, url: "/home/index/table", @@ -199,26 +203,23 @@ const tabData = reactive({ img: png2, url: "/home/index/map", }, - { - img: png3, - url: "/home/index", - }, - { - img: png4, - url: "/home/yl", - }, - { - img: png5, - url: "/home/hygiene", - }, - { - img: png6, - url: "/home/education", - }, - { - img: png7, - url: "/home/work", - }, + + // { + // img: png4, + // url: "/home/yl", + // }, + // { + // img: png5, + // url: "/home/hygiene", + // }, + // { + // img: png6, + // url: "/home/education", + // }, + // { + // img: png7, + // url: "/home/work", + // }, { img: png8, url: "/home/analyze", @@ -230,7 +231,7 @@ const changeTab = (val) => { tabData.PageUrl = tabData.scenList[val].url; transTime.value = 0.8; tabData.tabNum = val; - rotateY.value = 360 - 45 * val; + rotateY.value = 360 - 91.25 * val; rotateX.value = 0; setTimeout(() => { transTime.value = 0;