You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
1.6 KiB

"use strict";(self["webpackChunkagile_portal_front"]=self["webpackChunkagile_portal_front"]||[]).push([[356],{58356:(t,n,e)=>{e.r(n),e.d(n,{default:()=>d});var a=function(){var t=this,n=t._self._c;return n("div",{staticClass:"container"},[n("div",{staticClass:"news-detail-container container"},[n("div",{staticClass:"wrapper"},[n("div",{staticClass:"content"},[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:4,xs:24}},[n("div",{staticClass:"routerList"},[n("h2",[t._v("数据产品")]),n("ul",t._l(t.carouselItems,(function(e){return n("li",{key:e.index,class:t.contentId==e.contentId?"on":""},[n("router-link",{attrs:{to:{name:"ProductsDetail",params:{contentId:e.contentId}}}},[t._v(t._s(e.contentTitle))])],1)})),0)])]),n("el-col",{attrs:{span:20,xs:24}},[n("div",{staticStyle:{padding:"40px 30px"}},[n("div",{staticClass:"news-title"},[t._v(t._s(t.detail.contentTitle))]),n("div",{staticClass:"news-detail",domProps:{innerHTML:t._s(t.detail.contentText)}})])])],1)],1)])])])},s=[],i=e(47121);const o={name:"NewsDetail",data:function(){return{carouselItems:null,contentId:null,detail:{}}},computed:{},mounted:function(){this.$parent.$parent.$parent.$refs.topnav.topbg="",this.backToTop()},created:function(){var t=this.$route.params.contentId;this.contentId=t,this.getBanner(),this.getDetail(t)},methods:{backToTop:function(){window.scrollTo({top:0,behavior:"smooth"})},getBanner:function(){var t=this;this.carouselItems=null,(0,i.iA)().then((function(n){t.carouselItems=n.data}))},getDetail:function(t){var n=this;(0,i.Cm)(t).then((function(t){n.detail=t.data}))}}},l=o;var r=e(43736),c=(0,r.Z)(l,a,s,!1,null,"4e64d802",null);const d=c.exports}}]);