acb1b05.js 12 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[5],{778:function(t,e,o){var content=o(849);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(8).default)("6484f42c",content,!0,{sourceMap:!1})},779:function(t,e,o){var content=o(851);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(8).default)("52435afc",content,!0,{sourceMap:!1})},848:function(t,e,o){"use strict";o(778)},849:function(t,e,o){var n=o(7)(!1);n.push([t.i,".col_red[data-v-06f0c366]{color:#f11111}.col_green[data-v-06f0c366]{color:#44be95}.col_white[data-v-06f0c366]{color:#fff}.flex-col[data-v-06f0c366]{flex-direction:column}.flex-j-c[data-v-06f0c366]{justify-content:center}.flex-j-sb[data-v-06f0c366]{justify-content:space-between}.flex-j-ar[data-v-06f0c366]{justify-content:space-around}.flex-a-c[data-v-06f0c366]{align-items:center}.flex-a-e[data-v-06f0c366]{align-items:flex-end}.w[data-v-06f0c366]{width:1200px}.m-auto[data-v-06f0c366]{margin:0 auto}.height-one[data-v-06f0c366]{height:100%}.flex[data-v-06f0c366]{display:flex}.text-overflow[data-v-06f0c366]{-webkit-line-clamp:4}.text-overflow[data-v-06f0c366],.text-overflow-2[data-v-06f0c366]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.text-overflow-2[data-v-06f0c366]{-webkit-line-clamp:2}.text-overflow-3[data-v-06f0c366]{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.overflow-hide[data-v-06f0c366],.text-overflow-3[data-v-06f0c366]{overflow:hidden;text-overflow:ellipsis}.overflow-hide[data-v-06f0c366]{white-space:nowrap}.hiddenScroll[data-v-06f0c366]{scrollbar-width:none;-ms-overflow-style:none;overflow-x:hidden;overflow-y:scroll}.hiddenScroll[data-v-06f0c366]::-webkit-scrollbar{display:none}.finger-point[data-v-06f0c366]{cursor:pointer}.cursor-default[data-v-06f0c366]{cursor:default}.el-icon-circle-close[data-v-06f0c366]{color:#fff}.articleContent[data-v-06f0c366]{width:1200px;margin:10px auto;min-height:500px}.articleContent .brancumb[data-v-06f0c366]{color:#666;margin-bottom:30px;font-size:16px}.articleContent .brancumb span[data-v-06f0c366]:last-child{color:var(--color)}.articleContent .all-box[data-v-06f0c366]{width:1200px;align-items:flex-start}.articleContent .right-news-box[data-v-06f0c366]{width:230px;margin-left:10px}.articleContent .right-news-box .line[data-v-06f0c366]{background:var(--color);width:4px;margin-right:5px}.articleContent .right-news-box .black[data-v-06f0c366]{font-weight:700;font-size:18px;display:flex;margin-bottom:5px}.articleContent .right-news-box .hot-news[data-v-06f0c366]{padding:15px 12px;box-shadow:0 4px 8px 0 hsla(0,0%,74.9%,.6)}.articleContent .right-news-box .hot-news-item[data-v-06f0c366]{color:#435176;padding:8px 0;cursor:pointer}.articleContent .right-news-box .news-box[data-v-06f0c366]{padding:15px 12px;margin-top:10px;box-shadow:0 4px 8px 0 hsla(0,0%,74.9%,.6)}.articleContent .right-news-box .news-item[data-v-06f0c366]{padding:8px 0 0;flex-direction:column;cursor:pointer}.articleContent .right-news-box .news-img[data-v-06f0c366]{width:200px;height:150px}.articleContent .right-news-box .news-title[data-v-06f0c366]{margin-top:8px}.articleContent .articleContent-box[data-v-06f0c366]{text-align:center;box-shadow:0 4px 8px 0 hsla(0,0%,74.9%,.6);padding:15px;overflow:hidden;width:960px}.articleContent .articleContent-title[data-v-06f0c366]{font-weight:700;font-size:20px;margin-bottom:10px}.articleContent .author-box[data-v-06f0c366]{margin-bottom:10px;justify-content:center}.articleContent .author-box .iconfont[data-v-06f0c366]{color:var(--color);margin-right:10px}.articleContent .goods_detail_content[data-v-06f0c366]{text-align:left;margin-bottom:10px;padding:10px}.articleContent .read-box[data-v-06f0c366]{justify-content:flex-end;color:#999;margin-bottom:10px}.articleContent .read-box .read[data-v-06f0c366]{margin-right:30px}.articleContent .read-box .like[data-v-06f0c366]{cursor:pointer}.articleContent .read-box .like.active[data-v-06f0c366]{color:var(--color)}.articleContent .qr-code-box[data-v-06f0c366]{flex-direction:column;color:#666}.articleContent .qr-code-box #qrccode-canvas1[data-v-06f0c366]{width:90px!important;height:90px!important;margin:10px auto}.articleContent .qr-code-box img[data-v-06f0c366]{width:90px;height:90px;margin:10px auto}",""]),t.exports=n},850:function(t,e,o){"use strict";o(779)},851:function(t,e,o){var n=o(7)(!1);n.push([t.i,".col_red{color:#f11111}.col_green{color:#44be95}.col_white{color:#fff}.flex-col{flex-direction:column}.flex-j-c{justify-content:center}.flex-j-sb{justify-content:space-between}.flex-j-ar{justify-content:space-around}.flex-a-c{align-items:center}.flex-a-e{align-items:flex-end}.w{width:1200px}.m-auto{margin:0 auto}.height-one{height:100%}.flex{display:flex}.text-overflow{-webkit-line-clamp:4}.text-overflow,.text-overflow-2{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.text-overflow-2{-webkit-line-clamp:2}.text-overflow-3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.overflow-hide,.text-overflow-3{overflow:hidden;text-overflow:ellipsis}.overflow-hide{white-space:nowrap}.hiddenScroll{scrollbar-width:none;-ms-overflow-style:none;overflow-x:hidden;overflow-y:scroll}.hiddenScroll::-webkit-scrollbar{display:none}.finger-point{cursor:pointer}.cursor-default{cursor:default}.el-icon-circle-close{color:#fff}.goods_detail_content img{display:inline-block}.goods_detail_content img,.goods_detail_content video{max-width:100%;height:auto}",""]),t.exports=n},991:function(t,e,o){"use strict";o.r(e);o(12),o(14),o(13),o(6),o(16),o(11),o(17);var n=o(4),c=o(26),menu=(o(91),o(29),o(22),o(34),o(717)),r=o(716),l=o(5),d=o(94),f=o.n(d);function v(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}function h(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?v(Object(source),!0).forEach((function(e){Object(n.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):v(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var canvas="",x={data:function(){return{metaData:{},dataInfo:{belongs_to_category:{}},content:"",is_liked:!1,like_num:0,read_num:0,codeUrl:"",newArticle:[],hotArticle:[]}},components:{Menu:menu.default,pagination:r.default},head:function(){return{title:"".concat(this.dataInfo.title,"-").concat(this.dataInfo.belongs_to_category&&this.dataInfo.belongs_to_category.name?this.dataInfo.belongs_to_category.name:"","-").concat(this.basicSet.shop_name),meta:[{name:"keywords",content:"".concat(this.dataInfo.keyword?this.dataInfo.keyword:this.dataInfo.title+","+this.basicSet.seo.keywords+","+this.basicSet.shop_name)},{name:"description",content:"".concat(this.dataInfo.desc?this.dataInfo.desc:this.dataInfo.title+","+this.basicSet.shop_name)}]}},asyncData:function(t){return Object(c.a)(regeneratorRuntime.mark((function e(){var o,n,c,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.params,o=t.query,n=t.store,c=t.app,e.next=3,c.$axios.post("".concat(n.state.baseUrl,"?route=plugin.article.api.pc.article.get-article&article_id=").concat(o.id),h({},o));case 3:return r=e.sent,e.abrupt("return",{metaData:r,dataInfo:r.data,content:r.data.content,newArticle:r.data.newArticle,hotArticle:r.data.hotArticle});case 5:case"end":return e.stop()}}),e)})))()},mounted:function(){var t=this;if(1!==this.metaData.result)return this.$message.error(this.metaData.msg),void setTimeout((function(){t.$router.push(t.fun.getUrl("notice"))}),2e3);this.id=this.$route.query.id,this.getData(this.dataInfo),this.createQrc()},computed:h({},Object(l.b)(["basic_info","basicSet"])),methods:{toUrl:function(t,e,o){this.$router.push(this.fun.getUrl(t,e,o))},toArticle: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")},createQrc:function(){this.$nextTick((function(){canvas=document.getElementById("qrccode-canvas1"),f.a.toCanvas(canvas,this.fun.toRealURl("articleContent/".concat(this.id)),(function(t){t&&console.log(t)}))}))},getQrCode:function(){var t=this;this.fun.$get("member.member.getArticleQr",{},"").then((function(e){1===e.result?t.codeUrl=e.data:t.codeUrl=!1}),(function(t){console.log(t)}))},like:function(t){var e=this,o={article_id:this.id};this.fun.$get("plugin.article.api.article.like",o,"").then((function(o){1===o.result&&(1==o.data.liked?(e.is_liked=!0,e.like_num=t+1,e.$message.success("点赞成功")):(e.is_liked=!1,e.like_num=t-1,e.like_num<0&&(e.like_num=0),e.$message.success("取消点赞")))}),(function(t){console.log(t)}))},getData:function(data){this.like_num=data.like_num+data.virtual_like_num,this.read_num=data.read_num+data.virtual_read_num,this.is_liked=0!=data.liked}}},_=(o(848),o(850),o(1)),component=Object(_.a)(x,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"articleContent"},[o("div",{staticClass:"brancumb"},[o("span",{staticStyle:{cursor:"pointer"},on:{click:function(e){return t.toUrl("notice")}}},[t._v("全部 >")]),t._v(" "),t.dataInfo.belongs_to_category&&t.dataInfo.belongs_to_category.name?o("span",{staticStyle:{cursor:"pointer"},on:{click:function(e){return t.toUrl("notice",{},{class_id:t.dataInfo.belongs_to_category.id})}}},[t._v(t._s(t.dataInfo.belongs_to_category.name)+" >")]):t._e(),t._v(" "),o("span",[t._v(t._s(t.dataInfo.title))])]),t._v(" "),o("div",{staticClass:"flex all-box"},[o("div",{staticClass:"articleContent-box"},[o("p",{staticClass:"articleContent-title"},[t._v(t._s(t.dataInfo.title))]),t._v(" "),o("div",{staticClass:"author-box flex"},[o("div",{staticClass:"flex",staticStyle:{"margin-right":"30px"}},[o("i",{staticClass:"iconfont icon-fontclass-zuozhe"}),t._v(t._s(t.dataInfo.author)+"\n ")]),t._v(" "),o("div",{staticClass:"flex"},[o("i",{staticClass:"iconfont icon-fontclass-rili"}),t._v(t._s(t.dataInfo.virtual_at?t.dataInfo.virtual_at:t.dataInfo.updated_at)+"\n ")])]),t._v(" "),o("div",{staticClass:"goods_detail_content"},[o("div",{domProps:{innerHTML:t._s(t.content)}})]),t._v(" "),o("div",{staticClass:"read-box flex"},[o("span",{staticClass:"read"},[t._v("阅读 "+t._s(t.read_num))]),t._v(" "),o("span",{staticClass:"like",class:[t.is_liked?"active":""],on:{click:function(e){return t.like(t.like_num)}}},[t._v(t._s(t.is_liked?"已点赞":"点赞")+" "+t._s(t.like_num))])]),t._v(" "),t._m(0)]),t._v(" "),o("div",{staticClass:"right-news-box"},[o("div",{staticClass:"hot-news"},[t._m(1),t._v(" "),t._l(t.hotArticle,(function(e){return o("div",{staticClass:"hot-news-item overflow-hide",on:{click:function(o){return t.toArticle(e,"articleContent-id",e.id)}}},[t._v(t._s(e.title))])}))],2),t._v(" "),o("div",{staticClass:"news-box"},[t._m(2),t._v(" "),t._l(t.newArticle,(function(e){return o("div",{staticClass:"news-item flex",on:{click:function(o){return t.toArticle(e,"articleContent-id",e.id)}}},[o("img",{staticClass:"news-img",attrs:{src:e.thumb,alt:""}}),t._v(" "),o("p",{staticClass:"news-title text-overflow-2"},[t._v(t._s(e.title))])])}))],2)])])])}),[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"qr-code-box flex"},[o("canvas",{attrs:{id:"qrccode-canvas1"}}),t._v(" "),o("span",[t._v("扫码分享")])])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",{staticClass:"black"},[o("span",{staticClass:"line"}),o("span",[t._v("热门文章")])])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",{staticClass:"black"},[o("span",{staticClass:"line"}),o("span",[t._v("最新动态")])])}],!1,null,"06f0c366",null);e.default=component.exports}}]);