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
13 KiB
1 lines
13 KiB
{"version":3,"sources":["webpack:///./src/views/driveKnowledge/index.vue?d126","webpack:///src/views/driveKnowledge/index.vue","webpack:///./src/views/driveKnowledge/index.vue?16ae","webpack:///./src/views/driveKnowledge/index.vue","webpack:///./src/assets/zlxcimgs/second_icon_xuanzhong@2x.png","webpack:///./src/views/driveKnowledge/index.vue?b5d4"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","staticStyle","attrs","path","_v","_s","curAtom","class","action","on","$event","tapAtom","_m","_l","item","key","id","tapJumpDetail","title","createTime","pageObj","total","pageIndex","handleCurrentChange","staticRenderFns","name","data","pageSize","dataSheetList","computed","created","$route","query","atomtype","getQueryEssayList","methods","type","res","length","forEach","ele","curPage","$router","push","component","module","exports"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,MAAM,CAACE,YAAY,qBAAqB,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,GAAG,UAAUN,EAAG,qBAAqB,CAACJ,EAAIU,GAAGV,EAAIW,GAAkB,SAAfX,EAAIY,QAAqB,OAAS,YAAY,IAAI,GAAGR,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,MAAM,CAACS,MAAM,CAAC,OAAQ,CAAEC,OAAwB,UAAhBd,EAAIY,UAAuBG,GAAG,CAAC,MAA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eACd,EACAnD,EACA+B,GACA,EACA,KACA,WACA,MAIa,aAAAoB,E,qDCnBfC,EAAOC,QAAU,8mB,kCCAjB","file":"js/chunk-18eb34de.22d1ef74.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"knowledge\"},[_c('div',{staticClass:\"knowledge-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(\"学驾服务\")]),_c('el-breadcrumb-item',[_vm._v(_vm._s(_vm.curAtom == 'drive' ? '学车须知' : '驾驶常识'))])],1)],1),_c('div',{staticClass:\"cutover\"},[_c('div',{class:['atom', { action: _vm.curAtom === 'drive' }],on:{\"click\":function($event){return _vm.tapAtom('drive')}}},[_c('p',{staticClass:\"atom-title\"},[_vm._v(\"学车须知\")]),_vm._m(0)]),_c('div',{class:['atom', { action: _vm.curAtom === 'pilot' }],on:{\"click\":function($event){return _vm.tapAtom('pilot')}}},[_c('p',{staticClass:\"atom-title\"},[_vm._v(\"驾驶常识\")]),_vm._m(1)])]),_c('div',{staticClass:\"download-concrete\"},[_c('div',{staticClass:\"list-content\"},[_vm._m(2),_c('ul',{staticClass:\"list-ul\"},_vm._l((_vm.dataSheetList),function(item){return _c('li',{key:item.id,staticClass:\"list-li\",on:{\"click\":function($event){return _vm.tapJumpDetail(item.id)}}},[_c('p',{staticClass:\"li-caption\"},[_vm._v(_vm._s(item.title))]),_c('p',{staticClass:\"li-time\"},[_vm._v(_vm._s(item.createTime))])])}),0)])]),_c('div',{staticClass:\"newest-page\"},[_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"prev, pager, next\",\"total\":_vm.pageObj.total,\"current-page\":_vm.pageObj.pageIndex},on:{\"current-change\":_vm.handleCurrentChange}})],1)])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',{staticClass:\"atom-footer\"},[_c('img',{staticClass:\"img\",attrs:{\"src\":require(\"../../assets/zlxcimgs/second_icon_xuanzhong@2x.png\")}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',{staticClass:\"atom-footer\"},[_c('img',{staticClass:\"img\",attrs:{\"src\":require(\"../../assets/zlxcimgs/second_icon_xuanzhong@2x.png\")}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"content-title\"},[_c('p',{staticClass:\"caption\"},[_vm._v(\"标题\")]),_c('p',{staticClass:\"time\"},[_vm._v(\"发布时间\")])])}]\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"knowledge\">\r\n <div class=\"knowledge-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>学驾服务</el-breadcrumb-item>\r\n <el-breadcrumb-item>{{curAtom == 'drive' ? '学车须知' : '驾驶常识'}}</el-breadcrumb-item>\r\n </el-breadcrumb>\r\n </div>\r\n <div class=\"cutover\">\r\n <div\r\n :class=\"['atom', { action: curAtom === 'drive' }]\"\r\n @click=\"tapAtom('drive')\"\r\n >\r\n <p class=\"atom-title\">学车须知</p>\r\n <p class=\"atom-footer\">\r\n <img\r\n class=\"img\"\r\n src=\"../../assets/zlxcimgs/second_icon_xuanzhong@2x.png\"\r\n />\r\n </p>\r\n </div>\r\n <div\r\n :class=\"['atom', { action: curAtom === 'pilot' }]\"\r\n @click=\"tapAtom('pilot')\"\r\n >\r\n <p class=\"atom-title\">驾驶常识</p>\r\n <p class=\"atom-footer\">\r\n <img\r\n class=\"img\"\r\n src=\"../../assets/zlxcimgs/second_icon_xuanzhong@2x.png\"\r\n />\r\n </p>\r\n </div>\r\n </div>\r\n <div class=\"download-concrete\">\r\n <div class=\"list-content\">\r\n <div class=\"content-title\">\r\n <p class=\"caption\">标题</p>\r\n <p class=\"time\">发布时间</p>\r\n </div>\r\n <ul class=\"list-ul\">\r\n <li class=\"list-li\" v-for=\"item in dataSheetList\" :key=\"item.id\" @click=\"tapJumpDetail(item.id)\">\r\n <p class=\"li-caption\">{{item.title}}</p>\r\n <p class=\"li-time\">{{item.createTime}}</p>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div class=\"newest-page\">\r\n <el-pagination\r\n background\r\n layout=\"prev, pager, next\"\r\n :total=\"pageObj.total\"\r\n :current-page=\"pageObj.pageIndex\"\r\n @current-change=\"handleCurrentChange\">\r\n </el-pagination>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { queryEssayList } from '@/api/herbalMedicine'\r\nimport { formatTime } from '@/utils/common.js'\r\n\r\nexport default {\r\n name: \"DriveKnowledge\",\r\n data() {\r\n return {\r\n // 当前Atom栏目\r\n curAtom: \"drive\", // drive/pilot\r\n // 分页信息\r\n pageObj: {\r\n pageIndex: 1,\r\n pageSize: 10,\r\n total: 0,\r\n },\r\n // 列表\r\n dataSheetList: [],\r\n };\r\n },\r\n computed: {},\r\n created() {\r\n this.curAtom = this.$route.query.atomtype\r\n // 列表\r\n this.getQueryEssayList();\r\n },\r\n methods: {\r\n tapAtom(atom) {\r\n if (atom === this.curAtom) return\r\n this.curAtom = atom\r\n this.pageObj.pageIndex = 1\r\n this.getQueryEssayList()\r\n },\r\n // 列表 type 1: 学车须知 2:驾驶常识\r\n getQueryEssayList() {\r\n queryEssayList({\r\n pageIndex: this.pageObj.pageIndex,\r\n pageSize: this.pageObj.pageSize,\r\n type: this.curAtom == 'drive' ? 1 : 2,\r\n }).then((res) => {\r\n if (res.data.length > 0) {\r\n res.data.forEach((ele) => {\r\n ele.createTime = formatTime(ele.createTime);\r\n });\r\n this.dataSheetList = res.data;\r\n this.pageObj.total = res.count;\r\n }\r\n });\r\n },\r\n // 当前currentPage 改变时会触发\r\n handleCurrentChange(curPage) {\r\n this.pageObj.pageIndex = curPage;\r\n this.getQueryEssayList();\r\n },\r\n // 跳转详情页\r\n tapJumpDetail(id) {\r\n this.$router.push({\r\n name: \"Details\",\r\n query: {\r\n id,\r\n type: \"knowledge\",\r\n },\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>\r\n","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=4e6f7bf8&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=4e6f7bf8&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 \"4e6f7bf8\",\n null\n \n)\n\nexport default component.exports","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASIAAAAWCAMAAABT/GGLAAAAAXNSR0IArs4c6QAAAJNQTFRFAAAA/5Ur/5I3/5kz/5Yt/54x/5s3/5kz/5s3/5c4/5Y1/5wy/5Y0/5g3+Zo1+pg2+psy+5c0/Jg0/Jo0/Jg0/Jo0/Jo0/Jg0/Zk0/Zk0/Jk0/Jg1/Jo0/Jk0/Jk0/Jk0/Zk0/Zk0/Zk0+5k0/Jk0/Jk0/Jk0/Jk0/Jk0/Jk1/Jk0/Jk0/Jk0/Jk0/Jk0/Jk0/Jk0F557eQAAADB0Uk5TAAwODxEVFxkcICIkJyorLzhASk5UWF1jZ3HAwsTFyMrNztLY3OLj5eju8vb5+/z+QSmIXgAAAJ5JREFUGBntwVdSAgEURcEDQxxJBhBJSlAMhLv/1VkURZFm3i983G6QhQBZCJCFAFkIkIUAWQiQhQBZCEhvrzVVnu1bemPch9K7sm372F4yUpbNK3ZQGOrapocdFUa6tO5ip4pjnVu9YOeSiU6tnrFLyYeO/p6wa+WZDn4fsSyVufZ+Oli22kI7320sT/1T0lcDy/ew1KKORZqDKnflH/PK3xXnN6WQAAAAAElFTkSuQmCC\"","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=4e6f7bf8&lang=scss&scoped=true&\""],"sourceRoot":""}
|