| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[48],{1006:function(t,e,o){"use strict";o.r(e);o(12),o(13),o(6),o(16),o(11),o(17);var n=o(4),menu=(o(14),o(90),o(22),o(40),o(717)),c=o(716),r=o(237),l=o(5);function d(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,o)}return e}var x={data:function(){return{pay_way:[],money:"",order_pay_id:0,pay_sn:"",isPay:!1,per_page:15,total:0,page:1,id:"0",article_title:"全部",datas:[""],hotArticle:[],categories:[],article_pay:""}},components:{Menu:menu.default,pagination:c.default,payBox:r.default},head:function(){return{title:"文章中心-".concat(this.basicSet.seo.title),meta:[{name:"keywords",content:"文章中心,".concat(this.basicSet.seo.keywords)},{name:"description",content:"".concat(this.basicSet.seo.description)}]}},mounted:function(){this.fun.getKey("class_id")&&(this.id=this.fun.getKey("class_id")),this.getData()},computed:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(e){Object(n.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},Object(l.b)(["basic_info","basicSet"])),methods:{toChangePay:function(t){this.page=1,t?(this.isPay=!0,this.getPayData()):(this.isPay=!1,this.getData())},chooseCategory:function(t){this.id=t.id,this.article_title=t.name,this.page=1,this.getData()},monitorPage:function(t){this.page=t.page,this.getData()},paySuccess:function(){this.toUrl({has_one_article_pay:!1},"articleContent-id",this.order_pay_id)},toUrl:function(t,e,o){t.has_one_article_pay?t.has_one_record?this.$baseURL?window.open(this.fun.getSiteRoot()+"/plugins/shop_server/articleContent?i="+this.fun.getKeyByI()+"&id="+o,"_blank"):window.open(this.fun.getSiteRoot()+"/plugins/shop_server/articleContent/"+o+"?i="+this.fun.getKeyByI(),"_blank"):this.getPay(t.id):this.$baseURL?window.open(this.fun.getSiteRoot()+"/plugins/shop_server/articleContent?i="+this.fun.getKeyByI()+"&id="+o,"_blank"):window.open(this.fun.getSiteRoot()+"/plugins/shop_server/articleContent/"+o+"?i="+this.fun.getKeyByI(),"_blank")},getPay:function(t){var e=this;this.order_pay_id=t,this.fun.$get("plugin.article-pay.api.index.articlePayData",{id:t,art:"detail"},"正在获取").then((function(t){1===t.result?(e.money=t.data.payDetail.money,e.pay_sn=t.data.payDetail.title,e.getPayType()):e.$message.error(t.msg)})).catch((function(t){console.log(t)}))},getPayType:function(){var t=this;this.fun.$get("plugin.article-pay.api.index.getPayType",{},"...").then((function(e){1==e.result&&(t.pay_way=e.data.buttons,t.$refs.payBox.showPay())})).catch((function(t){console.log(t)}))},getPayData:function(){var t=this;this.fun.$get("plugin.article-pay.api.index.articlePayData",{page:this.page,art:"payed"},"正在获取").then((function(e){1===e.result?(t.datas=e.data.getPayed.articles.data,t.total=Number(e.data.getPayed.articles.total),t.per_page=Number(e.data.getPayed.articles.per_page)):(t.$message.error(e.msg),t.datas=[],t.total=0)})).catch((function(t){console.log(t)}))},getData:function(){var t=this;this.fun.$get("plugin.article.api.pc.article.get-articles",{category_id:this.id,pageSize:12,page:this.page},"正在获取").then((function(e){1===e.result?(window.scrollTo(0,0),t.article_pay=e.data.article_pay,t.datas=e.data.articles.data,t.categories=e.data.categories,t.hotArticle=e.data.hotArticle||[],t.total=Number(e.data.articles.total),t.per_page=Number(e.data.articles.per_page)):(t.$message.error(e.msg),t.datas=[],t.total=0)})).catch((function(t){console.log(t)}))}}},h=x,v=(o(895),o(1)),component=Object(v.a)(h,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"notice"},[n("div",{staticClass:"notice-class-box"},[n("el-breadcrumb",{attrs:{separator:"/"}},[n("el-breadcrumb-item",[n("span",{staticClass:"brancumb",class:[t.isPay?"":"active"],on:{click:function(e){return t.toChangePay()}}},[t._v("文章中心")])]),t._v(" "),t.article_pay?n("el-breadcrumb-item",[n("span",{staticClass:"brancumb",class:[t.isPay?"active":""],on:{click:function(e){return t.toChangePay(!0)}}},[t._v("已付费")])]):t._e()],1),t._v(" "),t.isPay?t._e():n("div",{staticClass:"notice-box-warp flex"},[n("div",{staticClass:"notice-title",class:[0==t.id?"active":""],on:{click:function(e){return t.chooseCategory({id:0,name:"全部"})}}},[t._v("全部")]),t._v(" "),t._l(t.categories,(function(e,i){return n("div",{key:i,staticClass:"notice-title",class:[t.id==e.id?"active":""],on:{click:function(o){return t.chooseCategory(e)}}},[t._v(t._s(e.name))])}))],2)],1),t._v(" "),n("div",{staticClass:"notice-box"},[n("div",{staticClass:"notice-class"},[t._l(t.datas,(function(e,i){return n("div",{key:i,staticClass:"notice-item flex",on:{click:function(o){return t.toUrl(e,"articleContent-id",e.id)}}},[n("img",{staticClass:"img",attrs:{src:e.thumb?e.thumb:o(799),alt:""}}),t._v(" "),e.has_one_article_pay?n("span",{staticClass:"pay"},[t._v("付费")]):t._e(),t._v(" "),n("div",{staticClass:"notice-title-box"},[n("div",{staticClass:"notice-left-box"},[n("p",{staticClass:"title text-overflow-2"},[t._v(t._s(e.title))]),t._v(" "),n("p",{staticClass:"desc text-overflow-3"},[t._v(t._s(e.desc))])]),t._v(" "),n("div",{staticClass:"author-box flex"},[n("span",{staticClass:"author overflow-hide"},[t._v(t._s(e.author))]),t._v(" "),n("span",{staticClass:"time"},[t._v(t._s(e.virtual_at?e.virtual_at:e.updated_at))]),t._v(" "),e.belongs_to_category?n("span",{staticClass:"class-name",on:{click:function(o){return o.stopPropagation(),t.chooseCategory(e.belongs_to_category)}}},[t._v(t._s(e.belongs_to_category.name))]):t._e()])])])})),t._v(" "),t.datas.length<=0?n("div",{staticClass:"noTips"},[t._v("暂无文章")]):t._e()],2),t._v(" "),t.hotArticle.length>0?n("div",{staticClass:"hot-article"},[t._m(0),t._v(" "),n("div",{staticClass:"hot-list"},t._l(t.hotArticle,(function(e){return n("div",{staticClass:"hot-item",on:{click:function(o){return t.toUrl(e,"articleContent-id",e.id)}}},[n("img",{staticClass:"img",attrs:{src:e.thumb?e.thumb:o(799),alt:""}}),t._v(" "),e.has_one_article_pay?n("span",{staticClass:"pay"},[t._v("付费")]):t._e(),t._v(" "),n("p",{staticClass:"hot-title text-overflow-2"},[t._v(t._s(e.title))])])})),0)]):t._e()]),t._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total,expression:"total"}],attrs:{total:t.total,pageSize:t.per_page,page:t.page},on:{pagination:t.monitorPage}}),t._v(" "),n("payBox",{ref:"payBox",attrs:{pay_way:t.pay_way,pay_sn:t.pay_sn,order_pay_id:t.order_pay_id,money:t.money,from:"notice"},on:{paySuccess:t.paySuccess}})],1)}),[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"hot-head"},[o("span",{staticClass:"line"}),o("span",[t._v("热门文章")])])}],!1,null,"138713ab",null);e.default=component.exports},799:function(t,e,o){t.exports=o.p+"img/image.738b601.png"},800:function(t,e,o){var content=o(896);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(8).default)("a13bdff6",content,!0,{sourceMap:!1})},895:function(t,e,o){"use strict";o(800)},896:function(t,e,o){var n=o(7)(!1);n.push([t.i,".col_red[data-v-138713ab]{color:#f11111}.col_green[data-v-138713ab]{color:#44be95}.col_white[data-v-138713ab]{color:#fff}.flex-col[data-v-138713ab]{flex-direction:column}.flex-j-c[data-v-138713ab]{justify-content:center}.flex-j-sb[data-v-138713ab]{justify-content:space-between}.flex-j-ar[data-v-138713ab]{justify-content:space-around}.flex-a-c[data-v-138713ab]{align-items:center}.flex-a-e[data-v-138713ab]{align-items:flex-end}.w[data-v-138713ab]{width:1200px}.m-auto[data-v-138713ab]{margin:0 auto}.height-one[data-v-138713ab]{height:100%}.flex[data-v-138713ab]{display:flex}.text-overflow[data-v-138713ab]{-webkit-line-clamp:4}.text-overflow[data-v-138713ab],.text-overflow-2[data-v-138713ab]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.text-overflow-2[data-v-138713ab]{-webkit-line-clamp:2}.text-overflow-3[data-v-138713ab]{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.overflow-hide[data-v-138713ab],.text-overflow-3[data-v-138713ab]{overflow:hidden;text-overflow:ellipsis}.overflow-hide[data-v-138713ab]{white-space:nowrap}.hiddenScroll[data-v-138713ab]{scrollbar-width:none;-ms-overflow-style:none;overflow-x:hidden;overflow-y:scroll}.hiddenScroll[data-v-138713ab]::-webkit-scrollbar{display:none}.finger-point[data-v-138713ab]{cursor:pointer}.cursor-default[data-v-138713ab]{cursor:default}.el-icon-circle-close[data-v-138713ab]{color:#fff}.notice[data-v-138713ab]{width:1200px;margin:10px auto;min-height:500px}.notice .notice-class-box[data-v-138713ab]{box-shadow:2px 2px 4px hsla(0,0%,74.9%,.3);margin:20px 0;padding:15px 20px 5px}.notice .notice-class-box .brancumb[data-v-138713ab]{font-weight:700;cursor:pointer;display:inline-block;margin-bottom:15px}.notice .notice-class-box .notice-box-warp[data-v-138713ab]{flex-wrap:wrap}.notice .notice-class-box .active[data-v-138713ab]{color:var(--color)}.notice .notice-class-box .notice-title[data-v-138713ab]{color:#666;margin:0 15px 10px 0;padding:2px 8px;border-radius:10px;cursor:pointer}.notice .notice-class-box .notice-title.active[data-v-138713ab]{background-color:var(--color);color:#fff}.notice .notice-box[data-v-138713ab]{display:flex}.notice .notice-box .goods_title[data-v-138713ab]{background-color:#f5f5f5;height:60px;font-size:22px;padding:0 38px;margin-bottom:15px;box-sizing:border-box;border-bottom:none}.notice .notice-box .goods_title .all[data-v-138713ab]{cursor:pointer;font-size:18px;color:#333}.notice .notice-box .notice-class[data-v-138713ab]{flex:1}.notice .notice-box .notice-class .notice-item[data-v-138713ab]{position:relative;box-shadow:1px 1px 2px hsla(0,0%,74.9%,.3);margin:0 0 20px;cursor:pointer;overflow:hidden}.notice .notice-box .notice-class .img[data-v-138713ab]{margin:10px;width:200px;height:115px;border-radius:5px}.notice .notice-box .notice-class .notice-item[data-v-138713ab]:hover{opacity:.8;box-shadow:0 4px 8px 0 hsla(0,0%,74.9%,.6)}.notice .notice-box .notice-class .notice-item:hover .img[data-v-138713ab]{transform:scale(1.04);transition:all .5s ease}.notice .notice-box .notice-class .notice-title-box[data-v-138713ab]{flex:1;display:flex;padding:15px 10px}.notice .notice-box .notice-class .notice-title-box .notice-left-box[data-v-138713ab]{flex:1;display:flex;flex-direction:column;margin-right:10px}.notice .notice-box .notice-class .notice-title-box .notice-left-box .desc[data-v-138713ab]{margin-top:10px;font-size:10px;color:#999}.notice .notice-box .notice-class .notice-title-box .author-box[data-v-138713ab]{display:flex;flex-direction:column;width:120px;color:#666}.notice .notice-box .notice-class .notice-title-box .author[data-v-138713ab]{font-size:12px}.notice .notice-box .notice-class .notice-title-box .time[data-v-138713ab]{font-size:10px;padding:8px 0}.notice .notice-box .notice-class .notice-title-box .class-name[data-v-138713ab]{font-size:12px;color:var(--color)}.notice .notice-box .notice-class .noTips[data-v-138713ab]{text-align:center;margin:0 auto;font-size:16px}.notice .notice-box .hot-article[data-v-138713ab]{margin-left:20px;width:300px}.notice .notice-box .hot-article .hot-head[data-v-138713ab]{display:flex;padding:10px 10px 10px 0;font-weight:700;line-height:20px}.notice .notice-box .hot-article .hot-head .line[data-v-138713ab]{width:3px;height:20px;background:var(--color);margin-right:5px}.notice .notice-box .hot-article .hot-item[data-v-138713ab]{position:relative;margin:10px 0;cursor:pointer;overflow:hidden}.notice .notice-box .hot-article .img[data-v-138713ab]{width:300px;height:171px;border-radius:5px}.notice .notice-box .hot-article .hot-title[data-v-138713ab]{font-size:12px;margin:10px}.notice .notice-box .hot-article .hot-item[data-v-138713ab]:hover{opacity:.8;box-shadow:0 4px 8px 0 hsla(0,0%,74.9%,.6)}.notice .notice-box .hot-article .hot-item:hover .img[data-v-138713ab]{transform:scale(1.04);transition:all .5s ease}.notice .notice-box .pay[data-v-138713ab]{position:absolute;top:3px;left:3px;display:inline-block;border-radius:5px;padding:1px 5px;margin-right:10px;background:#f11111;color:#fff;border:1px solid #f11111}",""]),t.exports=n}}]);
|