|
@@ -2,7 +2,7 @@
|
|
|
<div class="home">
|
|
|
<el-carousel height="100px" class="hfbox" direction="vertical" autoplay :interval="3000">
|
|
|
<el-carousel-item>
|
|
|
- <a class="hf" @click="imgClick('ztjy1', '02')">
|
|
|
+ <a class="hf" @click="imgClick('ztjy')">
|
|
|
<img src="../assets/hf1.jpg" class="hfimg">
|
|
|
</a>
|
|
|
</el-carousel-item>
|
|
@@ -12,7 +12,7 @@
|
|
|
</a>
|
|
|
</el-carousel-item>
|
|
|
<el-carousel-item>
|
|
|
- <a class="hf" @click="imgClick('ztjy1', '02')">
|
|
|
+ <a class="hf" @click="imgClick('ztjy')">
|
|
|
<img src="../assets/hf1.jpg" class="hfimg">
|
|
|
</a>
|
|
|
</el-carousel-item>
|
|
@@ -175,6 +175,11 @@ export default {
|
|
|
},
|
|
|
// 图片点击
|
|
|
imgClick(code, parentCode) {
|
|
|
+ if (code == 'ztjy') {
|
|
|
+ const routeUrl = this.$router.resolve(`/templates/ztjy/${code}`);
|
|
|
+ window.open(routeUrl.href, '_blank');
|
|
|
+ return;
|
|
|
+ }
|
|
|
const item = this.$last({ menus: this.menusall, code: code });
|
|
|
this.$setParentsetSession({ menus: this.menusall, iscode: item });
|
|
|
this.$router.push(`/list/${code}?parentCode=${parentCode}`);
|