|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <Page styleReset="headerClass">
|
|
|
+ <Page styleReset="headerNoBack">
|
|
|
<template v-slot:headerLeft>
|
|
|
<div class="homeheaderleft">
|
|
|
<img src="/src/assets/image/home_logo.png">
|
|
@@ -8,12 +8,13 @@
|
|
|
</template>
|
|
|
|
|
|
<template v-slot:body>
|
|
|
+ <div class="home-theBack"></div>
|
|
|
<div class="home-theContent">
|
|
|
<!-- 固定头部 -->
|
|
|
<div class="home-theContent-title">
|
|
|
<div class="item" v-for="(item, index) in addQuickList" :key="index">
|
|
|
<div class="item-img" @click="jumpAdd(item)">
|
|
|
- <img :src="getRouterImg(item.path)" alt="">
|
|
|
+ <img :src="getRouterImg(item.path, 'newPng')" alt="">
|
|
|
</div>
|
|
|
<div class="item-text">建{{ item.name }}</div>
|
|
|
</div>
|
|
@@ -60,16 +61,16 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<!-- 弹出层 -->
|
|
|
- <van-popup v-model:show="showBottom" position="bottom">
|
|
|
- <div class="bg-[#eceeef]">
|
|
|
- <div class="w-full text-center bg-white leading-10" @click="quickListShow = true">快捷新建设置</div>
|
|
|
- <div class="w-full text-center bg-white leading-10 biankuang" @click="modulesListShow = true">常用功能设置</div>
|
|
|
- <div class="w-full text-center mt-2 text-[red] bg-white leading-10" @click="showBottom = false">取消</div>
|
|
|
+ <van-popup v-model:show="showBottom" position="bottom" :overlay-style="{ backgroundColor: 'rgba(0, 0, 0, 0.4)' }">
|
|
|
+ <div class="bg-[#f6f6fa]">
|
|
|
+ <div class="w-full text-center bg-white block-div" @click="quickListShow = true">快捷新建设置</div>
|
|
|
+ <div class="w-full text-center bg-white block-div biankuang" @click="modulesListShow = true">常用功能设置</div>
|
|
|
+ <div class="w-full text-center mt-4 text-[red] bg-white block-div" @click="showBottom = false">取消</div>
|
|
|
</div>
|
|
|
</van-popup>
|
|
|
-
|
|
|
+
|
|
|
<!-- 快捷入口设置 -->
|
|
|
<van-popup v-model:show="quickListShow" position="bottom" :style="{ height: '100%' }" closeable>
|
|
|
<QuickEntrance :allModulesList="allModulesList" :selectModule="addQuickList" @save-value="refreshData" />
|
|
@@ -107,13 +108,12 @@ import CommonFunctions from './component/commonFunctions.vue'
|
|
|
const { toastText, toastSuccess, toastFail, toastLoading } = useToast()
|
|
|
const router = useRouterStore()
|
|
|
const useInfo = useInfoStore()
|
|
|
-const user = useInfo.userInfo
|
|
|
|
|
|
const showBottom = ref(false)
|
|
|
const quickListShow = ref(false)
|
|
|
const modulesListShow = ref(false)
|
|
|
const topContactsList = ref([])
|
|
|
-const allModulesList = [...useInfo.modularList.filter(item => item.path !== '/biReport'), { id: -1, path: '/visitor', name: '访客计划' }]
|
|
|
+const allModulesList = [...(useInfo?.modularList || []).filter(item => item.path !== '/biReport'), { id: -1, path: '/visitor', name: '访客计划' }]
|
|
|
const addQuickList = ref([])
|
|
|
const addCommonlyUsedList = ref([])
|
|
|
|
|
@@ -144,7 +144,7 @@ function getFrequentlyUsedContacts() {
|
|
|
}
|
|
|
|
|
|
function jumpAdd(rows) {
|
|
|
- if(rows.path == '/addEditorVisitor') {
|
|
|
+ if(rows.path == '/visitor') {
|
|
|
router.navigateTo({
|
|
|
pathName: 'addEditorVisitor',
|
|
|
success: () => {}
|
|
@@ -190,6 +190,7 @@ function refreshData() {
|
|
|
}
|
|
|
|
|
|
function obtainEnterpriseWeChatParameters(data = {}) {
|
|
|
+ console.log(data, '<=== data')
|
|
|
const token = data.id
|
|
|
// const curUrl = window.location.href.split('home')[0]
|
|
|
const curUrl = window.location.href
|
|
@@ -250,7 +251,7 @@ useLifecycle({
|
|
|
const currentEnvironment = navigator.userAgent.toLowerCase();
|
|
|
const isCorpWX = currentEnvironment.indexOf("wxwork") > 0 ? true : false
|
|
|
if (isCorpWX) {
|
|
|
- obtainEnterpriseWeChatParameters(userInfo.userInfo)
|
|
|
+ obtainEnterpriseWeChatParameters(useInfo.userInfo)
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -268,6 +269,14 @@ useLifecycle({
|
|
|
background-color: $themeColor;
|
|
|
}
|
|
|
|
|
|
+.home-theBack {
|
|
|
+ width: 100%;
|
|
|
+ height: 147px;
|
|
|
+ background: linear-gradient(to top right, rgba($color: $themeColor, $alpha: 0.8), $themeColor, rgba($color: $themeColor, $alpha: 0.8));
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+}
|
|
|
+
|
|
|
.homeheaderleft {
|
|
|
font-size: 20px;
|
|
|
font-weight: bold;
|
|
@@ -288,9 +297,11 @@ useLifecycle({
|
|
|
height: 100%;
|
|
|
flex-direction: column;
|
|
|
|
|
|
+
|
|
|
.home-theContent-title {
|
|
|
padding: 25px;
|
|
|
- background-color: $themeColor;
|
|
|
+ // background-color: $themeColor;
|
|
|
+ // background: linear-gradient(to top right, #4985e0, $themeColor, #1965db);
|
|
|
display: flex;
|
|
|
|
|
|
.item {
|
|
@@ -373,4 +384,8 @@ useLifecycle({
|
|
|
.biankuang {
|
|
|
border-top: 1px solid #eceeef;
|
|
|
}
|
|
|
+
|
|
|
+.block-div {
|
|
|
+ padding: 14px 0;
|
|
|
+}
|
|
|
</style>
|