12 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[79,32,43],{521:function(t,e,n){"use strict";var r=n(2),o=n(26),l=n(10),c=n(6),path=n(317),d=n(4),m=n(117),f=n(13),h=n(215),v=n(59),_=n(116),N=n(316),w=n(3),y=n(97).f,S=n(60).f,C=n(27).f,L=n(522),I=n(318).trim,x="Number",E=c[x],k=path[x],P=E.prototype,$=c.TypeError,z=d("".slice),O=d("".charCodeAt),R=function(t){var e,n,r,o,l,c,d,code,m=N(t,"number");if(_(m))throw new $("Cannot convert a Symbol value to a number");if("string"==typeof m&&m.length>2)if(m=I(m),43===(e=O(m,0))||45===e){if(88===(n=O(m,2))||120===n)return NaN}else if(48===e){switch(O(m,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+m}for(c=(l=z(m,2)).length,d=0;d<c;d++)if((code=O(l,d))<48||code>o)return NaN;return parseInt(l,r)}return+m},T=m(x,!E(" 0o1")||!E("0b1")||E("+0x1")),A=function(t){var e,n=arguments.length<1?0:E(function(t){var e=N(t,"number");return"bigint"==typeof e?e:R(e)}(t));return v(P,e=this)&&w((function(){L(e)}))?h(Object(n),this,A):n};A.prototype=P,T&&!o&&(P.constructor=A),r({global:!0,constructor:!0,wrap:!0,forced:T},{Number:A});var F=function(t,source){for(var e,n=l?y(source):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),r=0;n.length>r;r++)f(source,e=n[r])&&!f(t,e)&&C(t,e,S(source,e))};o&&k&&F(path[x],k),(T||o)&&F(path[x],E)},522:function(t,e,n){"use strict";var r=n(4);t.exports=r(1..valueOf)},524:function(t,e,n){t.exports={}},529:function(t,e,n){"use strict";n(524)},532:function(t,e,n){"use strict";n.r(e);n(521);var r={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:0},limit:{type:Number,default:10},layout:{type:String,default:"prev, pager, next"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&scrollTo(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&scrollTo(0,800)}}},o=(n(529),n(22)),component=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[t._t("slot"),t._v(" "),e("el-pagination",t._b({attrs:{background:t.background,"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],2)}),[],!1,null,"044ef958",null);e.default=component.exports},626:function(t,e,n){t.exports=n.p+"img/Wood.619233b.png"},661:function(t,e,n){t.exports={}},773:function(t,e,n){"use strict";n(661)},841:function(t,e,n){"use strict";n.r(e);var r=n(12),o=(n(11),n(17),n(32),n(61),{data:function(){return{total:0,listQuery:{page:1,limit:12},catalogueList:[],listLoading:!0}},created:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getList();case 2:case"end":return e.stop()}}),e)})))()},methods:{getList:function(){var t=this;this.$axios.post("/resources/catalogue/list",{state:"au",page:this.listQuery.page,limit:this.listQuery.limit}).then((function(e){1===e.code&&(e.result.data.forEach((function(e){e.filepath=t.$mediaRegExp.test(e.filepath)?e.filepath:t.$OSS_PREFIX+e.filepath,e.img=t.$mediaRegExp.test(e.img)?e.img:t.$OSS_PREFIX+e.img})),t.catalogueList=e.result.data,t.total=e.result.total,t.listLoading=!1)})).catch((function(){t.listLoading=!1,t.catalogueList=[]}))}}}),l=(n(773),n(22)),component=Object(l.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"com-main com-width-1400 com-margin-auto"},[e("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[e("el-breadcrumb-item",{attrs:{to:{path:"/"}}},[t._v("Home")]),t._v(" "),e("el-breadcrumb-item",[t._v("Catalogue")])],1),t._v(" "),e("p",{staticClass:"title"},[t._v("Catalogue Library")]),t._v(" "),e("div",{staticClass:"line"}),t._v(" "),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"item"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.catalogueList.length>0,expression:"catalogueList.length > 0"}],staticClass:"backgroung-img-1"},[e("img",{attrs:{src:n(626),alt:""}})]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.catalogueList.length>4,expression:"catalogueList.length > 4"}],staticClass:"backgroung-img-2"},[e("img",{attrs:{src:n(626),alt:""}})]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.catalogueList.length>8,expression:"catalogueList.length > 8"}],staticClass:"backgroung-img-3"},[e("img",{attrs:{src:n(626),alt:""}})]),t._v(" "),e("ul",t._l(t.catalogueList,(function(n){return e("li",{key:n.id},[e("a",{attrs:{href:n.filepath,target:"_blank"}},[e("div",{staticClass:"item-img"},[e("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.$utils.generateResizedImageUrl(n.img,500),fit:"cover"}})],1),t._v(" "),e("div",{staticClass:"item-title"},[e("p",[t._v("Promo Collection")]),t._v(" "),e("p",[t._v(t._s(n.title))])]),t._v(" "),e("p",{staticClass:"item-date"},[t._v(t._s(n.update_time))])])])})),0),t._v(" "),e("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}})],1),t._v(" "),t.catalogueList.length?t._e():e("div",[e("el-empty",{attrs:{description:"No Data"}})],1)],1)}),[],!1,null,"98c8d9ea",null);e.default=component.exports;installComponents(component,{Pagination:n(532).default})}}]);
- //# sourceMappingURL=022b2d6.js.map
|