|
@@ -3,9 +3,15 @@
|
|
|
<div class="top">
|
|
|
<el-row :gutter="20" align="middle">
|
|
|
<el-col :span="6" class="top_1">
|
|
|
- <el-image class="image" :src="siteInfo.logoUrl" fit="fill" />
|
|
|
+ <el-image
|
|
|
+ class="image"
|
|
|
+ v-if="configInfo && configInfo.logoUrl && configInfo.logoUrl.length > 0"
|
|
|
+ :src="configInfo.logoUrl[0].url"
|
|
|
+ fit="fill"
|
|
|
+ />
|
|
|
+ <el-image class="image" v-else :src="siteInfo.logoUrl" fit="fill" />
|
|
|
<div class="content">
|
|
|
- <text class="title">{{ siteInfo.zhTitle }}</text>
|
|
|
+ <text class="title">{{ configInfo.zhTitle || siteInfo.zhTitle }}</text>
|
|
|
<!-- <text class="english">{{ siteInfo.zhBrief }}</text> -->
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -79,31 +85,50 @@
|
|
|
</div>
|
|
|
<div class="bottom">
|
|
|
<div class="w_1200 footflex">
|
|
|
- <el-image class="image" :src="footInfo.Unit" fit="fill" />
|
|
|
+ <el-image
|
|
|
+ class="image"
|
|
|
+ v-if="foot && foot.Unit && foot.Unit.length > 0"
|
|
|
+ :src="foot.Unit[0].url"
|
|
|
+ fit="fill"
|
|
|
+ />
|
|
|
+ <el-image class="image" v-else :src="footInfo.Unit" fit="fill" />
|
|
|
<el-col :span="12" class="foot_1">
|
|
|
<div class="footTitle">
|
|
|
- <span>业务洽谈:{{ footInfo.Phone }}</span>
|
|
|
+ <span>业务洽谈:{{ foot.Phone || footInfo.Phone }}</span>
|
|
|
|
|
|
- <span>企业邮箱:{{ footInfo.Email }}</span>
|
|
|
+ <span>企业邮箱:{{ foot.Email || footInfo.Email }}</span>
|
|
|
</div>
|
|
|
- <div class="footTitle">地 址:{{ footInfo.Address }}</div>
|
|
|
- <div class="footTitle">版权所有:{{ footInfo.Copyright }}</div>
|
|
|
- <div class="footTitle">技术支持:{{ footInfo.Company }}</div>
|
|
|
+ <div class="footTitle">地 址:{{ foot.Address || footInfo.Address }}</div>
|
|
|
+ <div class="footTitle">版权所有:{{ foot.Copyright || footInfo.Copyright }}</div>
|
|
|
+ <div class="footTitle">技术支持:{{ foot.Company || footInfo.Company }}</div>
|
|
|
</el-col>
|
|
|
<el-col :span="3" class="foot_2">
|
|
|
<div class="footTop">关于我们</div>
|
|
|
<div class="footTitle footflex1">
|
|
|
<span class="footSpan" @click="toHelp('1')">关于我们</span>
|
|
|
- <span class="footSpan" @click="toHelp('2')">意见反馈</span>
|
|
|
+ <span class="footSpan" @click="toHelp('3')">联系我们</span>
|
|
|
+ <!-- <span class="footSpan" @click="toHelp('2')">意见反馈</span> -->
|
|
|
</div>
|
|
|
- <div class="footTitle footflex1">
|
|
|
+ <!-- <div class="footTitle footflex1">
|
|
|
<span class="footSpan" @click="toHelp('3')">联系我们</span>
|
|
|
<span class="footSpan" @click="toHelp('4')">法律条款</span>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</el-col>
|
|
|
<el-col :span="4" class="foot_3 footflex">
|
|
|
- <el-image class="image" :src="footInfo.Code" fit="fill" />
|
|
|
- <el-image class="image" :src="footInfo.Code" fit="fill" />
|
|
|
+ <el-image
|
|
|
+ class="image"
|
|
|
+ v-if="foot && foot.Code && foot.Code.length > 0"
|
|
|
+ :src="foot.Code[0].url"
|
|
|
+ fit="fill"
|
|
|
+ />
|
|
|
+ <el-image class="image" v-else :src="footInfo.Code" fit="fill" />
|
|
|
+ <el-image
|
|
|
+ class="image"
|
|
|
+ v-if="foot && foot.Code && foot.Code.length > 0"
|
|
|
+ :src="foot.Code[0].url"
|
|
|
+ fit="fill"
|
|
|
+ />
|
|
|
+ <el-image class="image" v-else :src="footInfo.Code" fit="fill" />
|
|
|
</el-col>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -116,6 +141,8 @@ import { Search, Edit, User, Bell } from '@element-plus/icons-vue'
|
|
|
// 接口
|
|
|
import { TagsStore } from '@/store/api/system/tags'
|
|
|
const store = TagsStore()
|
|
|
+import { DesignStore } from '@/store/api/platform/design'
|
|
|
+const designStore = DesignStore()
|
|
|
const router = useRouter()
|
|
|
const route = useRoute()
|
|
|
const current = ref(route.name || 'home')
|
|
@@ -123,7 +150,8 @@ import { UserStore } from '@/store/user'
|
|
|
const userStore = UserStore()
|
|
|
const user = computed(() => userStore.user)
|
|
|
const data = ref([])
|
|
|
-
|
|
|
+const configInfo = ref({ logoUrl: [], Unit: [], Code: [] })
|
|
|
+const foot = ref({})
|
|
|
// 请求
|
|
|
onMounted(async () => {
|
|
|
await search()
|
|
@@ -133,6 +161,12 @@ const search = async () => {
|
|
|
const res = await store.query({ is_use: '0' })
|
|
|
if (res.errcode == '0' && res.total > 0) data.value = res.data
|
|
|
else data.value = menuList
|
|
|
+ // 基础设置
|
|
|
+ const result = await designStore.query({})
|
|
|
+ if (res.errcode == '0' && res.total > 0) {
|
|
|
+ configInfo.value = result.data[0] || {}
|
|
|
+ foot.value = result.data[0].footInfo || {}
|
|
|
+ }
|
|
|
}
|
|
|
const selectMenu = (item) => {
|
|
|
current.value = item
|