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 lines
12 KiB

{"version":3,"sources":["webpack:///./src/views/details/index.vue?fbed","webpack:///src/views/details/index.vue","webpack:///./src/views/details/index.vue?69ed","webpack:///./src/views/details/index.vue","webpack:///./src/views/details/index.vue?cb3e"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","staticStyle","attrs","path","_v","_s","detailType","articleObj","title","createDate","on","$event","tapFontSize","class","fontSize","domProps","mainBody","_e","staticRenderFns","name","data","detailId","created","$route","query","id","type","getQueryGetLawDetails","getQueryEssayDetail","getPublicNoticeByDetails","getQueryIndustryDynamicDetails","methods","size","essayId","res","lawId","component"],"mappings":"gJAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,MAAM,CAACE,YAAY,mBAAmB,CAACF,EAAG,MAAM,CAACE,YAAY,iBAAiBC,YAAY,CAAC,SAAW,YAAY,CAACH,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,gBAAgB,CAACI,MAAM,CAAC,UAAY,MAAM,CAACJ,EAAG,qBAAqB,CAACI,MAAM,CAAC,GAAK,CAAEC,KAAM,OAAQ,CAACT,EAAIU,GAAG,QAAQN,EAAG,qBAAqB,CAACJ,EAAIU,GAAGV,EAAIW,GAAqB,YAAlBX,EAAIY,WAA2B,MAA0B,SAAlBZ,EAAIY,WAAwB,OAA2B,aAAlBZ,EAAIY,WAA4B,OAAS,WAAWR,EAAG,qBAAqB,CAACJ,EAAIU,GAAG,SAAS,IAAI,GAAIV,EAAc,WAAEI,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,IAAI,CAACE,YAAY,iBAAiB,CAACN,EAAIU,GAAGV,EAAIW,GAAGX,EAAIa,WAAWC,UAAUV,EAAG,KAAK,CA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,CAEPnB,YAFJ,SAEA,GACMjB,KAAKmB,SAAWkB,GAGlBH,yBANJ,WAMA,WACM,OAAN,OAAM,CAAN,mDAEQ,EAAR,kDACQ,EAAR,sBAIID,oBAdJ,WAcA,WACM,OAAN,OAAM,CAAN,CACQK,QAAR,gBACA,kBACQC,EAAId,KAAKX,WAAa,OAA9B,OAA8B,CAA9B,mBACQ,EAAR,sBAIIqB,+BAvBJ,WAuBA,WACM,OAAN,OAAM,CAAN,CACQL,GAAR,gBACA,kBACQS,EAAId,KAAKX,WAAa,OAA9B,OAA8B,CAA9B,mBACQ,EAAR,sBAKIkB,sBAjCJ,WAiCA,WACM,OAAN,OAAM,CAAN,CACQQ,MAAR,gBACA,kBACQD,EAAId,KAAKX,WAAa,OAA9B,OAA8B,CAA9B,mBACQ,EAAR,wBCnH8V,I,wBCQ1V2B,EAAY,eACd,EACA3C,EACAyB,GACA,EACA,KACA,WACA,MAIa,aAAAkB,E,2CCnBf","file":"js/chunk-382785eb.9202c580.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"details\"},[_c('div',{staticClass:\"details-wrapper\"},[_c('div',{staticClass:\"zlxc-container\",staticStyle:{\"overflow\":\"visible\"}},[_c('div',{staticClass:\"bread-crumbs\"},[_c('el-breadcrumb',{attrs:{\"separator\":\"/\"}},[_c('el-breadcrumb-item',{attrs:{\"to\":{ path: '/' }}},[_vm._v(\"首页\")]),_c('el-breadcrumb-item',[_vm._v(_vm._s(_vm.detailType == 'exposure' ? '曝光台' : _vm.detailType == 'about' ? '行业动态' : _vm.detailType == 'knowledge' ? '学驾须知' : '政策法规'))]),_c('el-breadcrumb-item',[_vm._v(\"详情\")])],1)],1),(_vm.articleObj)?_c('div',{staticClass:\"article\"},[_c('p',{staticClass:\"article-title\"},[_vm._v(_vm._s(_vm.articleObj.title))]),_c('ul',{staticClass:\"article-feature\"},[_c('li',{staticClass:\"feature-writing\"},[_c('p',{staticClass:\"writing-branch\"},[_vm._v(\"发布时间:\"+_vm._s(_vm.articleObj.createDate))])]),_c('li',{staticClass:\"feature-operate\"},[_c('p',{staticClass:\"operate-name\"},[_vm._v(\"字体:\")]),_c('p',{staticClass:\"operate-item\",on:{\"click\":function($event){return _vm.tapFontSize('big')}}},[_vm._v(\"大\")]),_c('p',{staticClass:\"operate-item\",on:{\"click\":function($event){return _vm.tapFontSize('middle')}}},[_vm._v(\"中\")]),_c('p',{staticClass:\"operate-item\",on:{\"click\":function($event){return _vm.tapFontSize('small')}}},[_vm._v(\"小\")])])]),_c('ul',{class:['article-body', {'small':_vm.fontSize == 'small'}, {'middle':_vm.fontSize == 'middle'}, {'big':_vm.fontSize == 'big'}]},[_c('li',{staticClass:\"article-part\",domProps:{\"innerHTML\":_vm._s(_vm.articleObj.mainBody)}})])]):_vm._e()])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"details\">\r\n <div class=\"details-wrapper\">\r\n <div class=\"zlxc-container\" style=\"overflow: visible\">\r\n <div class=\"bread-crumbs\">\r\n <el-breadcrumb separator=\"/\">\r\n <el-breadcrumb-item :to=\"{ path: '/' }\">首页</el-breadcrumb-item>\r\n <el-breadcrumb-item>{{detailType == 'exposure' ? '曝光台' : detailType == 'about' ? '行业动态' : detailType == 'knowledge' ? '学驾须知' : '政策法规'}}</el-breadcrumb-item>\r\n <el-breadcrumb-item>详情</el-breadcrumb-item>\r\n </el-breadcrumb>\r\n </div>\r\n <div class=\"article\" v-if=\"articleObj\">\r\n <p class=\"article-title\">{{articleObj.title}}</p>\r\n <ul class=\"article-feature\">\r\n <li class=\"feature-writing\">\r\n <p class=\"writing-branch\">发布时间:{{articleObj.createDate}}</p>\r\n <!-- <p class=\"writing-branch\">发布部门:{{articleObj.source ? articleObj.source : '洛阳市洛阳学车'}}</p> -->\r\n </li>\r\n <li class=\"feature-operate\">\r\n <p class=\"operate-name\">字体:</p>\r\n <p class=\"operate-item\" @click=\"tapFontSize('big')\">大</p>\r\n <p class=\"operate-item\" @click=\"tapFontSize('middle')\">中</p>\r\n <p class=\"operate-item\" @click=\"tapFontSize('small')\">小</p>\r\n </li>\r\n </ul>\r\n <!-- <div class=\"view-attach\">\r\n <strong>点击查看附件:</strong><span>《{{articleObj.title}}》</span>\r\n </div> -->\r\n <ul :class=\"['article-body', {'small':fontSize == 'small'}, {'middle':fontSize == 'middle'}, {'big':fontSize == 'big'}]\">\r\n <li class=\"article-part\" v-html=\"articleObj.mainBody\"></li>\r\n <!-- <li class=\"article-part\">\r\n 机动车驾驶培训教学与考试大纲包括:机动车驾驶培训教学大纲、机动车驾驶人考试大纲和驾驶培训教学日志。\r\n </li> -->\r\n <!-- <li class=\"gap\"></li>\r\n <li class=\"article-coda\">中文名</li> -->\r\n </ul>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { queryIndustryDynamicDetails, queryGetLawDetails, queryEssayDetail ,getPublicNoticeByDetails} from '@/api/herbalMedicine'\r\nimport { formatTime } from '@/utils/common.js'\r\n\r\nexport default {\r\n name: 'Details',\r\n data () {\r\n return {\r\n // 字体大小:默认 middle中\r\n fontSize: 'middle',\r\n // 文章详情ID值\r\n detailId: null,\r\n // 文章详情类型值,默认曝光台\r\n detailType: 'exposure',\r\n // 文章详情\r\n articleObj: null\r\n }\r\n },\r\n created () {\r\n this.detailId = this.$route.query.id\r\n this.detailType = this.$route.query.type\r\n if (this.$route.query.type === 'legislation') {\r\n // 政策法规详情内容\r\n this.getQueryGetLawDetails()\r\n } else if (this.$route.query.type === 'knowledge') {\r\n // 学车须知或者驾驶常识详情接口\r\n this.getQueryEssayDetail()\r\n } else if (this.$route.query.type === 'notice') {\r\n // 公示栏详情接口\r\n this.getPublicNoticeByDetails()\r\n } else {\r\n // 行业动态/曝光台详情内容\r\n this.getQueryIndustryDynamicDetails()\r\n }\r\n },\r\n methods: {\r\n // 改变字体大小\r\n tapFontSize (size) {\r\n this.fontSize = size;\r\n },\r\n //公示栏\r\n getPublicNoticeByDetails(){\r\n getPublicNoticeByDetails('publicNoticeId='+this.detailId).then(res => {\r\n debugger\r\n res.data.createDate = formatTime(res.data.createDate)\r\n this.articleObj = res.data\r\n })\r\n },\r\n // 学车须知或者驾驶常识详情接口\r\n getQueryEssayDetail () {\r\n queryEssayDetail({\r\n essayId : this.detailId\r\n }).then(res => {\r\n res.data.createDate = formatTime(res.data.createTime)\r\n this.articleObj = res.data\r\n })\r\n },\r\n // 行业动态/曝光台详情内容\r\n getQueryIndustryDynamicDetails () {\r\n queryIndustryDynamicDetails({\r\n id : this.detailId\r\n }).then(res => {\r\n res.data.createDate = formatTime(res.data.createTime)\r\n this.articleObj = res.data\r\n console.log(this.articleObj)\r\n })\r\n },\r\n // 政策法规详情内容\r\n getQueryGetLawDetails () {\r\n queryGetLawDetails({\r\n lawId : this.detailId\r\n }).then(res => {\r\n res.data.createDate = formatTime(res.data.createDate)\r\n this.articleObj = res.data\r\n })\r\n },\r\n }\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n@import \"./index.scss\";\r\n</style>","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=3292124f&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=3292124f&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3292124f\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=3292124f&lang=scss&scoped=true&\""],"sourceRoot":""}