1 line
8.2 KiB
JavaScript
1 line
8.2 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[30,5],{452:function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return l}));var r=n(34);n(39),n(274),n(100),n(61),n(11),n(40),n(62),n(46),n(20),n(63),n(64),n(47);var c=function(t){var time=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,e=arguments.length>2?arguments[2]:void 0,n=new Date(0).getTime();return function(){var r=(new Date).getTime();if(r-n>time){for(var c=arguments.length,l=new Array(c),o=0;o<c;o++)l[o]=arguments[o];t.apply(e,l),n=r}}};function l(t){var p="";if("object"==Object(r.a)(t)){for(var e in p="?",t)p+="".concat(e,"=").concat(t[e],"&");p=p.slice(0,-1)}return p}},454:function(t,e,n){var content=n(463);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(15).default)("532bec65",content,!0,{sourceMap:!1})},459:function(t,e,n){"use strict";var r=n(7),c=n(460);r({target:"String",proto:!0,forced:n(461)("link")},{link:function(t){return c(this,"a","href",t)}})},460:function(t,e,n){var r=n(3),c=n(33),l=n(17),o=/"/g,d=r("".replace);t.exports=function(t,e,n,r){var v=l(c(t)),h="<"+e;return""!==n&&(h+=" "+n+'="'+d(l(r),o,""")+'"'),h+">"+v+"</"+e+">"}},461:function(t,e,n){var r=n(5);t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},462:function(t,e,n){"use strict";n(454)},463:function(t,e,n){var r=n(14)(!1);r.push([t.i,".ad-item[data-v-368017b1]{width:100%;height:100%;cursor:pointer}",""]),t.exports=r},465:function(t,e,n){"use strict";n.r(e);n(459),n(82);var r=n(452),c={components:{},props:{item:{type:Object,default:function(){return{}}}},methods:{goPage:function(t){var e=t.link_type,link=t.link,n=t.params;if(3===e)window.open(t.link);else["/goods_details"].includes(link)?link+="/".concat(n.id):link+=Object(r.a)(n),this.$router.push({path:link})}}},l=(n(462),n(9)),component=Object(l.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ad-item",on:{click:function(e){return e.stopPropagation(),t.goPage(t.item)}}},[n("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.item.image,fit:"cover"}})],1)}),[],!1,null,"368017b1",null);e.default=component.exports},470:function(t,e,n){t.exports=n.p+"img/news_null.856b3f3.png"},525:function(t,e,n){var content=n(572);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(15).default)("2d087e1d",content,!0,{sourceMap:!1})},571:function(t,e,n){"use strict";n(525)},572:function(t,e,n){var r=n(14)(!1);r.push([t.i,".help-center-container .help-center-banner[data-v-a4d4b5a2]{margin-top:16px}.help-center-container .help-center-box[data-v-a4d4b5a2]{margin-top:16px;display:flex;flex-direction:row}.help-center-container .help-center-box .help-center-aside[data-v-a4d4b5a2]{width:160px;padding:20px 30px}.help-center-container .help-center-box .help-center-aside .nav li[data-v-a4d4b5a2]{margin:10px 0;padding:0 30px;cursor:pointer}.help-center-container .help-center-box .help-center-aside .nav .active-item[data-v-a4d4b5a2]{padding-left:27px;color:#ff2c3c;border-left:3px solid #ff2c3c}.help-center-container .help-center-box .article-lists-container[data-v-a4d4b5a2]{width:1004px;display:flex;flex-direction:column;justify-content:space-between}.help-center-container .help-center-box .article-lists-container .article-item[data-v-a4d4b5a2]{margin:0 20px;padding:15px 0;border-bottom:1px solid #e5e5e5;cursor:pointer}.help-center-container .help-center-box .article-lists-container .article-item .article-name[data-v-a4d4b5a2]{margin-bottom:11px;margin-top:13px;max-width:720px}.help-center-container .help-center-box .article-lists-container .help-center-pagination[data-v-a4d4b5a2]{padding-top:38px;margin-bottom:30px}.help-center-container .help-center-box .article-lists-container .data-null[data-v-a4d4b5a2]{padding-top:150px}[data-v-a4d4b5a2] .el-pagination.is-background .btn-next,[data-v-a4d4b5a2] .el-pagination.is-background .btn-prev,[data-v-a4d4b5a2] .el-pagination.is-background .el-pager li{background:#fff;padding:0 10px}",""]),t.exports=r},654:function(t,e,n){"use strict";n.r(e);var r=n(6),c=(n(53),{head:function(){return{title:this.$store.getters.headTitle,link:[{rel:"icon",type:"image/x-icon",href:this.$store.getters.favicon}]}},asyncData:function(t){return Object(r.a)(regeneratorRuntime.mark((function e(){var n,r,c,l,o,d,v,h,f,x,m;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.$get,t.$post,r=[],c=0,l=[],o=0,d=!0,v=n("ad_content/lists",{params:{pid:29,terminal:2}}),e.next=9,n("help/category");case 9:return h=e.sent,e.next=12,v;case 12:if(f=e.sent,x=f.data,1!=h.code){e.next=21;break}return r=h.data,c=0,e.next=19,n("help/lists",{params:{cid:c,page_size:10}});case 19:1==(m=e.sent).code&&(l=m.data.list,o=m.data.count,d=o<=0);case 21:return e.abrupt("return",{categoryList:r,articleList:l,count:o,currentId:c,bannerList:x,dataNull:d});case 22:case"end":return e.stop()}}),e)})))()},data:function(){return{categoryList:[],articleList:[],currentId:-1,count:0,swiperOptions:{width:1180}}},mounted:function(){console.log(this.articleList,"articleList")},methods:{changePage:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.$get("help/lists",{params:{cid:e.currentId,page_no:t,page_size:10}});case 2:1==(r=n.sent).code&&(e.articleList=r.data.list,e.articleList.length<=0?dataNull=!0:dataNull=!1);case 4:case"end":return n.stop()}}),n)})))()},changeList:function(t){this.currentId=t,this.changePage(1)}}}),l=(n(571),n(9)),component=Object(l.a)(c,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"help-center-container"},[r("div",{staticClass:"help-center-banner"},[r("client-only",[r("swiper",{ref:"mySwiper",attrs:{options:t.swiperOptions}},t._l(t.bannerList,(function(t,e){return r("swiper-slide",{key:e,staticClass:"swiper-item"},[r("ad-item",{attrs:{item:t}})],1)})),1)],1)],1),t._v(" "),r("div",{staticClass:"help-center-box"},[r("div",{staticClass:"help-center-aside bg-white"},[r("ul",{staticClass:"nav flex-col col-center"},[r("li",{staticClass:"flex",class:{"active-item":t.currentId<=0},on:{click:function(e){return t.changeList(0)}}},[t._v("全部")]),t._v(" "),t._l(t.categoryList,(function(e){return r("li",{key:e.id,staticClass:"flex",class:{"active-item":e.id==t.currentId},on:{click:function(n){return t.changeList(e.id)}}},[t._v(t._s(e.name))])}))],2)]),t._v(" "),r("div",{staticClass:"article-lists-container m-l-16 bg-white"},[r("div",{directives:[{name:"show",rawName:"v-show",value:!t.dataNull,expression:"!dataNull"}]},[r("div",t._l(t.articleList,(function(e){return r("nuxt-link",{key:e.id,staticClass:"article-item flex row-between bg-white",attrs:{to:"/help_center/help_center_detail?id="+e.id}},[r("div",[r("div",{staticClass:"lg article-name line2"},[t._v(t._s(e.title))]),t._v(" "),r("div",{staticClass:"lighter"},[t._v(t._s(e.intro))]),t._v(" "),r("div",{staticClass:"flex",staticStyle:{"margin-top":"56px"}},[r("div",{staticClass:"sm muted"},[t._v("发布时间:"+t._s(e.create_time))]),t._v(" "),r("div",{staticClass:"flex m-l-16"},[r("i",{staticClass:"el-icon-view muted"}),t._v(" "),r("div",{staticClass:"muted",staticStyle:{"margin-left":"3px"}},[t._v(t._s(e.visit)+" 人浏览")])])])]),t._v(" "),r("el-image",{staticStyle:{width:"200px",height:"150px","border-radius":"6px"},attrs:{fit:"cover",src:e.image}})],1)})),1),t._v(" "),r("div",{staticClass:"help-center-pagination row-center"},[r("el-pagination",{attrs:{background:"","hide-on-single-page":"",layout:"prev, pager, next",total:t.count,"prev-text":"上一页","next-text":"下一页","page-size":10},on:{"current-change":t.changePage}})],1)]),t._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:t.dataNull,expression:"dataNull"}],staticClass:"data-null column-center"},[r("img",{staticStyle:{width:"150px",height:"150px"},attrs:{src:n(470)}}),t._v(" "),r("div",{staticClass:"xs muted"},[t._v("\n 暂无消息记录~\n ")])])])])])}),[],!1,null,"a4d4b5a2",null);e.default=component.exports;installComponents(component,{AdItem:n(465).default})}}]); |