e 3 years ago
parent e91d4a4c4f
commit 38c5a4a546
  1. 2
      src/apis/request.js
  2. 15
      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='http://139.9.247.137/msdw';
// axios.defaults.baseURL='https://www.feifanhitech.com/msdw'; // axios.defaults.baseURL='https://www.feifanhitech.com/msdw';
// axios.defaults.baseURL='http://www.zxyicloud.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){ export function carousel(parms){
return axios.get('/carouse/carouse/'+parms return axios.get('/carouse/carouse/'+parms

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

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

Loading…
Cancel
Save