e 3 years ago
parent e91d4a4c4f
commit 38c5a4a546
  1. 2
      src/apis/request.js
  2. 13
      src/components/Topbar.vue
  3. 25
      src/views/Home.vue

@ -3,7 +3,7 @@ import axios from 'axios';
// axios.defaults.baseURL='http://139.9.247.137/msdw';
// axios.defaults.baseURL='https://www.feifanhitech.com/msdw';
// axios.defaults.baseURL='http://www.zxyicloud.com/msdw';
axios.defaults.baseURL='http://47.107.237.129/msdw';
axios.defaults.baseURL='http://zxyicloud.com/msdw';
//轮播图信息
export function carousel(parms){
return axios.get('/carouse/carouse/'+parms

@ -44,15 +44,24 @@ export default {
this.$router.push(a);
},
mange() {
location.href = "http://121.37.12.51/mange/#/login";
location.href = "http://zxyicloud.com/mange/#/login";
},
route(id,name) {
console.log(name);
console.log(name)
if (name == '首页') {
const { href } = this.$router.resolve({
path: `/ChuanDa/` + id + "/leftmenu/0",
});
window.open(href, "_self");
this.$store.state.columnmessage.id = id;
location.reload();
} else {
const { href } = this.$router.resolve({
path: `/ChuanDa/` + id + "/leftmenu/0",
});
window.open(href, "_self");
this.$store.state.columnmessage.id = id;
}
},
},
computed: {},

@ -101,8 +101,8 @@
<div
class="columphoto"
@click="
routelink(
homeFormfirst.linkcolumnarticletop.id,
routelinks(
homeFormfirst.linkcolumnarticletop,
homeFormfirst.linkcolumnarticletop.linkUrl
)
"
@ -120,15 +120,24 @@
<div class="columphotoes">
<!-- 新闻公告底部跳转 -->
<div
@click="routelink(item.id,homeFormfirst.linkcolumnarticletop.linkUrl)"
@click="routelinks(item,homeFormfirst.linkcolumnarticletop.linkUrl)"
v-for="item in homeFormfirst.linkcolumnarticlebottom"
:key="item.id"
>
<span v-if="item.columnId == 60">
<a :href="'#/ChuanDa/59/leftmenu/60/description/'+item.id">
<img :src="item.bgImgUrl" alt="" />
<p>{{ item.title }}</p>
<p class="time">{{ item.createTime }}</p>
</a>
</span>
<span v-else>
<a :href="item.linkUrl">
<img :src="item.bgImgUrl" alt="" />
<p>{{ item.title }}</p>
<p class="time">{{ item.createTime }}</p>
</a>
</span>
</div>
</div>
</div>
@ -295,6 +304,14 @@ export default {
link(a) {
this.$router.push(a);//
},
routelinks(item) {
console.log(item)
if (item.columnId == 60) {
window.location = '#/ChuanDa/59/leftmenu/60/description/'+item.id;
} else {
window.location = item.linkUrl
}
},
routelink(id, url) {
console.log(url)
window.location = url
@ -568,6 +585,8 @@ export default {
}
});
}
window.location.hash = '#/ChuanDa/59/leftmenu/60'
location.reload();
},
//
changecolor(column) {

Loading…
Cancel
Save