提交 d611e810 authored 作者: 王天霸's avatar 王天霸

no message

上级 f63d7a71
差异被折叠。
差异被折叠。
import request from '@/utils/request'
// 获取渠道id
export function indexInfo(params) {
return request({
url: 'http://192.168.26.179:6601/api/v1/oem/webSite/domainChannel',
method: 'get',
params
})
}
// 获取所有域名
export function getdomain(params) {
return request({
url: 'http://192.168.26.179:6601/api/v1/oem/channel/domainFront',
method: 'get',
params
})
}
// 获取官网设置接口
export function webSite(params) {
return request({
url: 'http://192.168.26.179:6601/api/v1/oem/common/counsel',
method: 'get',
params
})
}
// 云仓所有列表——Banner和域名/产品和服务/供应商入驻
export function getallCloudList(params) {
return request({
url: 'http://192.168.26.179:6601/api/v1/oem/front/CloudList',
method: 'get',
params
})
}
......@@ -5,7 +5,8 @@
<div class="header-con">
<ul class="nav">
<li>
<img style="width:114px;height:35px;" src="../../../public/images/logo_white_sm.png" alt="">
<img style="width:114px;height:35px;" :src="settitle.topLogo" alt="">
<!-- <img style="width:114px;height:35px;" src="../../../public/images/logo_white_sm.png" alt=""> -->
</li>
<li v-for="(item,index) in ycList" :key="item.id">
<a :href=" item.src " target="_blank">{{ item.name}}</a>
......@@ -212,13 +213,13 @@
<li>新闻动态</li>
</ul>
<p class="about-gs">
Copyright © 2015 - 2019 北京胜天半子科技有限公司 All Rights Reserved.  京ICP备19033223号-1   京ICP备19033223号-1
{{settitle.bottomCopyright}}   {{settitle.recordNum}}
</p>
</div>
<div class="about-us">
<p class="us-title">联系我们</p>
<p>联系电话:4000-188-199</p>
<p>公司地址:北京市丰台区诺德中心一期四号楼21层</p>
<p>联系电话:{{settitle.contactTel}}</p>
<p>公司地址:{{settitle.companyAddress}}</p>
</div>
</div>
</footer>
......@@ -227,10 +228,14 @@
<script>
import store from '@/store';
import { indexInfo, newsList, companyCounsel ,webSite,getdomain,getallCloudList} from '@/api/webSite'
export default {
name: "newyuncang",
data() {
return {
menurl:{},
settitle:{},
channel_id:0,
isScroll: false,
isAdHover: false,
isHasBorder: false,
......@@ -246,6 +251,7 @@
}
},
mounted() {
this.getIndexInfo()
window.addEventListener('scroll',this.handleScroll,true);
},
destroyed() {
......@@ -253,6 +259,99 @@
},
methods: {
// 获取渠道id
getIndexInfo() {
let op = 'open'
let ssa = window.location.host
const data = {
// domain: 'newsys.jxhh.com',
domain: ssa,
// field: op
}
indexInfo(data).then(res => {
if (res.code == 1) {
this.channel_id = res.data.channel_id
this.getWebSite()
this.getDomain()
this.getAllcloud()
}
})
},
// 获取通用设置
getWebSite() {
let params = {
channel_ids: this.channel_id
}
webSite(params).then(res => {
if (res.code==1) {
if(res.data.universal_lst&&res.data.universal_lst!='null'){
this.settitle = res.data.universal_lst
}else{
this.settitle = {
bottomCopyright: "Copyright © 2015 - 2021 北京胜天半子科技有限公司 All Rights Reserved.",
businessHours: 1,
companyAddress: "北京市丰台区诺德中心一期四号楼21层",
contactTel: "4000-188-199",
custServiceQrcode: "http://excel.jxhh.com/public/upload/1629540531.png",
hotlineTel1: "010-5335 9558",
hotlineTel2: "400-188-199",
onlineTimeEnd: "18:00",
onlineTimeStart: "09:00",
recordNum: "京ICP备19033223号-1",
topLogo: "http://excel.jxhh.com/public/upload/1629540557.png",
}
}
}
})
},
//获取所有域名
getDomain(){
let data = {
channel_ids:this.channel_id
}
getdomain(data).then(res=>{
if(res.code==1){
this.menurl = res.data
if(this.menurl&&this.menurl!='null'){
this.ycList = [
{ name: '首页',id:0,src: '/' },
{ name: '开放平台',id:1,src: '' },
{ name: '云仓',id:2,src: '' },
{ name: '关于我们',id:3,src: '' }
]
this.menurl.forEach((item,index)=>{
if(item.label=='open'){
this.ycList[1].src = item.value
}
if(item.label=='cloud'){
this.ycList[2].src = item.value
}
if(item.label=='official'){
this.ycList[3].src = item.value
}
})
}else{
this.ycList = [
{ name: '首页',id:0,src: '/' },
{ name: '开放平台',id:1,src: 'http://open.jxhh.com' },
{ name: '云仓',id:2,src: 'http://scm.jxhh.com' },
{ name: '关于我们',id:3,src: 'http://www.stbz.net' }
]
}
}
})
},
getAllcloud(){
let data = {
new_channel_id:this.channel_id
}
getallCloudList(data).then(res=>{
})
},
// 监听浏览器滚动
handleScroll() {
let scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论