chunk-34403f76.c5870d8c.js 3.2 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-34403f76"],{"3ba1":function(i,t,e){"use strict";e("a3d0")},"5bd2":function(i,t,e){"use strict";e.r(t);var n=function(){var i=this,t=i._self._c;return t("div",{staticClass:"wrap"},[t("div",{staticClass:"header-wrap"},[t("div",{staticClass:"header"},[t("img",{staticClass:"return-img",attrs:{src:e("f5a4")},on:{click:function(t){return i.$router.back()}}}),t("p",{staticClass:"header-title"},[i._v(i._s(i.info.title))])])]),t("ul",{staticClass:"list"},i._l(i.info.item_list||[],(function(e,n){return t("li",{key:n,on:{click:function(t){return i.toDetail(i.info.id,e.id,e.is_vip)}}},[t("img",{staticClass:"img",attrs:{src:e.cover}}),t("div",{staticClass:"item-sidebar"},[t("p",{staticClass:"item-name"},[i._v(i._s(e.title))])])])})),0),t("van-overlay",{attrs:{show:i.showOpenVip,"z-index":"99999"},on:{click:function(t){i.showOpenVip=!1}}},[t("div",{staticClass:"open-vip"},[t("p",[i._v("仅支持VIP查看")]),t("p",[i._v("开通VIP查看本材料")]),t("button",{on:{click:function(t){return i.$router.push("/member")}}},[i._v("开通VIP会员")])])])],1)},s=[],a=(e("a481"),e("f523")),r=e("2241"),o={components:{},data:function(){return{showOpenVip:!1,info:{id:0},isLogin:!1,isVip:!1}},mounted:function(){var i=this.$route.query;this.info.id=parseInt(i.id||0),this.info.id>0&&this.getArticleDetail(),this.getUserInfo()},methods:{getArticleDetail:function(){var i=this;a["d"].getArticleDetail({id:this.info.id}).then((function(t){var e=t.data,n=e.detail.title||"";e.detail["title"]=n.length>10?n.substring(0,9)+"...":n,i.info=e.detail}))},getUserInfo:function(){var i=this;a["v"].getUserInfo().then((function(t){var e=t.data;i.isLogin=!0;var n=e.user_level;if(n&&n.id>0){var s=(new Date).getTime(),a=new Date(n.end_date.replace(/-/g,"/")).getTime();i.isVip=s<a}}))},toDetail:function(i,t,e){var n=this;if(1===e){if(!this.isLogin)return r["a"].confirm({message:"VIP图文请登录后查看",confirmButtonText:"去登录"}).then((function(){n.$router.push("/login")}));if(!this.isVip)return this.showOpenVip=!0}this.$router.push("/image-text-details?id=".concat(i,"&item_id=").concat(t))}}},c=o,f=(e("3ba1"),e("2877")),l=Object(f["a"])(c,n,s,!1,null,"7983b932",null);t["default"]=l.exports},a3d0:function(i,t,e){},f5a4:function(i,t){i.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAm5JREFUWEft2MnLTlEYAPDfZx4yK8WCWLBgwQIbSobIkMiwYiMbJX+JWLFRSmJBUoYyLCjDQoREQgghikQiQ4/OW8eXvPfe976fV31ne8+9z+8+59xzn3O6dHjr6nCfXmCrI9RTGeyH2XiEl2XQPQEci5MJ+AlLcKkost3AcTiH6RloN3Z0AnACzmNqhvmBFTj1r4ETE25KBvmObdhbFBf92jHEgYrMBbLRvmEL9pfBtQM4LeHGZ5Cv2ITDZXF1A2fgLOLDaLQv2IhjVXB1AmfhDMZkkM9YW+aD+NNL1DEH5+I0RmYBPmJ1WmKqJu/Xfa0C5+MEhmWKD2kpudiSLN3cCnARjmNIBnmHZbhaB66VDC7HEQzKIG/Tb+x6XbiqwDU4hAEZ5BUW43aduCrA9TiIqE4a7TliuO/VjSsLjA8hSqV8zj3BQjxsB64scDRiKPPs3UzZe9MJwDBEmbSz2/J0JyFLFaJFX6jKMrMdu7oh76ehflY0cNF+VYDx7K3Ygz5ZoCjnYz4+Lhq8SL+qwHj2ZuxD3yzQ04R8UCR4kT6tAOP5G3AA/bNgL9KcvFsE0KxPq8B4fhQFUesNzIK9Tgv3rWaAZtfrAEaM+P8exeAsYPz6luJaM8TfrtcFjBjxgUTxMDQL+D7hr1RF1gkMw7xUfg3PQFF+rcSFKsi6gWGYkwrYURkoNuwxV2NLUKq1AxiAmWkLEKcKjRZbgHUpw4WR7QIGIE4T4lSh+yZqAS4XFbYTGIY4VYg9cpwyNFrHHH00QJMTchLidGFVOkwqlMR2Z7CBGIHYJsTf5UYhWerUU8Aypt/69gIrp+5/GeKfiUBcKeCBb1YAAAAASUVORK5CYII="}}]);
  2. //# sourceMappingURL=chunk-34403f76.c5870d8c.js.map