Browse Source

ddd

shibei_master
dai 3 years ago
parent
commit
76aba99be6
  1. BIN
      src/assets/img/unopen-hint.png
  2. 14
      src/router/index.js
  3. 51
      src/views/modules/unopen.vue

BIN
src/assets/img/unopen-hint.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

14
src/router/index.js

@ -67,6 +67,15 @@ export const moduleRoutes = {
isTab: true,
},
},
{
path: "unopen",
component: () => import("@/views/modules/unopen"),
name: "unopen",
meta: {
title: "未开放功能",
isTab: true,
},
},
],
};
@ -397,7 +406,10 @@ function fnAddDynamicMenuRoutes(menuList = [], routes = []) {
route["meta"]["iframeURL"] = URL;
} else {
URL = URL.replace(/^\//, "").replace(/_/g, "-");
if (menuList[i].children && menuList[i].children.length >= 1) {
if (URL.startsWith("unopen")) {
route["path"] = route["name"] = URL.replace(/\//g, "-");
route["component"] = () => import(`@/views/modules/unopen`);
} else if (menuList[i].children && menuList[i].children.length >= 1) {
route["path"] = route["name"] = URL;
route["redirect"] = URL.replace(/\//g, "-");
} else {

51
src/views/modules/unopen.vue

@ -0,0 +1,51 @@
<template>
<div>
<div class="m-hint">
<div class="wrap">
<img src="@/assets/img/unopen-hint.png" alt="" />
<span>功能暂未开放</span>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {};
},
components: {},
mounted() {},
methods: {
changeCustomerName(customerName) {},
},
};
</script>
<style lang="scss" scoped>
.m-hint {
position: relative;
background-color: #ffffff;
height: calc(100vh - 150px);
.wrap {
position: absolute;
display: block;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
width: 271px;
height: 240px;
font-size: 20px;
line-height: 30px;
font-weight: bold;
color: #aaa;
text-align: center;
img {
margin-bottom: 10px;
}
}
}
</style>
Loading…
Cancel
Save