|
@@ -1,4 +1,5 @@
|
|
|
<script setup>
|
|
|
+import * as dd from 'dingtalk-jsapi'
|
|
|
import { menuList } from './menuData.js'
|
|
|
|
|
|
defineOptions({
|
|
@@ -10,11 +11,26 @@ const route = currentRoute.value
|
|
|
const tag = route.query.tag
|
|
|
let menuListData = {}
|
|
|
for (const item of menuList) {
|
|
|
- if (item.tag === tag)
|
|
|
+ if (item.tag === tag) {
|
|
|
+ dd.ready(() => {
|
|
|
+ dd.biz.navigation.setTitle({
|
|
|
+ title: item.title,
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ // document.title = item.title
|
|
|
menuListData = item
|
|
|
+ }
|
|
|
}
|
|
|
-function linkTo(path) {
|
|
|
- router.push(path)
|
|
|
+function linkTo(child) {
|
|
|
+ dd.ready(() => {
|
|
|
+ dd.biz.navigation.setTitle({
|
|
|
+ title: child.menuName,
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ // document.title = child.menuName
|
|
|
+ router.push(child.path)
|
|
|
}
|
|
|
</script>
|
|
|
|
|
@@ -26,7 +42,7 @@ function linkTo(path) {
|
|
|
<p>{{ menuListData.title }}</p>
|
|
|
</div>
|
|
|
<div class="funcIconCard">
|
|
|
- <div v-for="child of menuListData.list" :key="child.menuName" class="funcIcon" @click="linkTo(child.path)">
|
|
|
+ <div v-for="child of menuListData.list" :key="child.menuName" class="funcIcon" @click="linkTo(child)">
|
|
|
<img :src="child.icon">
|
|
|
<p>{{ child.menuName }}</p>
|
|
|
</div>
|
|
@@ -38,6 +54,8 @@ function linkTo(path) {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.IndexPage {
|
|
|
+ background-color: #f2f2f2;
|
|
|
+
|
|
|
.header {
|
|
|
width: 100vw;
|
|
|
position: fixed;
|
|
@@ -52,10 +70,10 @@ function linkTo(path) {
|
|
|
|
|
|
.bodyContainer {
|
|
|
// margin-top: 2.5vw;
|
|
|
- padding: 2vw;
|
|
|
+ padding: 0 2vw;
|
|
|
|
|
|
.titleCard {
|
|
|
- font-size: 18px;
|
|
|
+ font-size: 20px;
|
|
|
height: 6.7vw;
|
|
|
line-height: 6.7vw;
|
|
|
font-weight: bold;
|
|
@@ -70,7 +88,7 @@ function linkTo(path) {
|
|
|
|
|
|
.funcIcon {
|
|
|
width: 25%;
|
|
|
- font-size: 15px;
|
|
|
+ font-size: 13px;
|
|
|
text-align: center;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|