(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/article/richdetail"],{"1b6b":function(n,t,e){"use strict";e.r(t);var o=e("a6d8"),i=e.n(o);for(var r in o)"default"!==r&&function(n){e.d(t,n,(function(){return o[n]}))}(r);t["default"]=i.a},"3fe3":function(n,t,e){"use strict";(function(n){e("630e");o(e("66fd"));var t=o(e("ddfc"));function o(n){return n&&n.__esModule?n:{default:n}}n(t.default)}).call(this,e("f266")["createPage"])},"7c6f":function(n,t,e){},"7fd7":function(n,t,e){"use strict";e.d(t,"b",(function(){return i})),e.d(t,"c",(function(){return r})),e.d(t,"a",(function(){return o}));var o={faNavbar:function(){return e.e("components/fa-navbar/fa-navbar").then(e.bind(null,"6858"))},uAvatar:function(){return e.e("uview-ui/components/u-avatar/u-avatar").then(e.bind(null,"3108"))},uIcon:function(){return e.e("uview-ui/components/u-icon/u-icon").then(e.bind(null,"ba52"))},uImage:function(){return e.e("uview-ui/components/u-image/u-image").then(e.bind(null,"9406"))},uGap:function(){return e.e("uview-ui/components/u-gap/u-gap").then(e.bind(null,"71a3"))},uParse:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-parse/u-parse")]).then(e.bind(null,"fb53"))},uTag:function(){return e.e("uview-ui/components/u-tag/u-tag").then(e.bind(null,"a8f0"))},uButton:function(){return e.e("uview-ui/components/u-button/u-button").then(e.bind(null,"6829"))},uAlertTips:function(){return e.e("uview-ui/components/u-alert-tips/u-alert-tips").then(e.bind(null,"bcd1"))},uInput:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-input/u-input")]).then(e.bind(null,"b3e3"))},uEmpty:function(){return e.e("uview-ui/components/u-empty/u-empty").then(e.bind(null,"34ad"))},faPayment:function(){return e.e("components/fa-payment/fa-payment").then(e.bind(null,"4409"))},uModal:function(){return e.e("uview-ui/components/u-modal/u-modal").then(e.bind(null,"165c"))},uLink:function(){return e.e("uview-ui/components/u-link/u-link").then(e.bind(null,"da55"))},uBackTop:function(){return e.e("uview-ui/components/u-back-top/u-back-top").then(e.bind(null,"ad8f"))},faTabbar:function(){return Promise.all([e.e("common/vendor"),e.e("components/fa-tabbar/fa-tabbar")]).then(e.bind(null,"ecd8"))}},i=function(){var n=this,t=n.$createElement,e=(n._self._c,n.isRender?{backgroundColor:n.theme.bgColor,color:n.theme.color}:null),o=n.isRender?{backgroundColor:n.theme.bgColor,color:n.theme.color}:null,i=n.isRender&&3==n.archivesInfo.model_id&&(n.archivesInfo.ispaid||0==n.archivesInfo.price)?n.__map(n.downloadurl,(function(t,e){var o=n.__get_orig(t),i={backgroundColor:n.theme.bgColor,color:n.theme.color};return{$orig:o,a2:i}})):null,r=n.isRender&&n.archivesInfo.price>0&&!n.archivesInfo.ispaid&&!n.vuex_token?{backgroundColor:n.theme.bgColor,color:n.theme.color,width:"60vw"}:null,u=n.isRender&&n.archivesInfo.price>0&&!n.archivesInfo.ispaid&&n.vuex_token?{backgroundColor:n.theme.bgColor,color:n.theme.color,width:"60vw"}:null,a=n.isRender&&!n.vuex_token?{backgroundColor:n.theme.bgColor,color:n.theme.color,width:"60vw"}:null,c=n.isRender&&n.vuex_token?{backgroundColor:n.theme.bgColor,color:n.theme.color,width:"60vw"}:null,s={color:n.theme.bgColor};n._isMounted||(n.e0=function(t){n.downtips=!1}),n.$mp.data=Object.assign({},{$root:{a0:e,a1:o,l0:i,a3:r,a4:u,a5:a,a6:c,a7:s}})},r=[]},a6d8:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(e("a34a")),i=e("59de");function r(n){return n&&n.__esModule?n:{default:n}}function u(n){return l(n)||s(n)||c(n)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(n,t){if(n){if("string"===typeof n)return d(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?d(n,t):void 0}}function s(n){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(n))return Array.from(n)}function l(n){if(Array.isArray(n))return d(n)}function d(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,o=new Array(t);e0}},watch:{content:function(n,t){n||(this.pid=0)}},data:function(){return{id:0,archivesInfo:{},channelInfo:{},commentList:[],imagesList:[],downloadurl:{},content:"",isRender:!1,dowshow:!1,downtips:!1,pid:0,description:"",downkey:"",downurl:"",baucode:"",diyname:"",scrollTop:0,page:1,has_more:!0}},methods:{getArchivesDetail:function(){var t=h(o.default.mark((function t(){var e;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$api.getArchivesDetail({id:this.id,diyname:this.diyname});case 2:if(e=t.sent,e.code){t.next=5;break}return t.abrupt("return");case 5:this.archivesInfo=e.data.archivesInfo||{},this.channelInfo=e.data.channelInfo||[],this.commentList=e.data.commentList||[],this.downloadurl=e.data.archivesInfo.downloadurl||{},this.imagesList=e.data.archivesInfo.images.split(","),this.$u.mpShare.title=e.data.archivesInfo.title,this.isRender=!0,this.$u.vuex("vuex__token__",e.data.__token__),n.setNavigationBarTitle({title:this.archivesInfo.title});case 14:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),goCommentIndex:function(){var n=this;this.$api.goCommentIndex({page:this.page,aid:this.archivesInfo.id}).then((function(t){1==t.code&&(n.has_more=t.data.commentList.length>0,n.commentList=[].concat(u(n.commentList),u(t.data.commentList)))}))},replay:function(n){n.user?(this.content="@".concat(n.user.nickname," "),this.pid=n.id):this.$u.toast("用户不存在")},submit:function(){var n=h(o.default.mark((function n(){var t;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(this.content){n.next=3;break}return this.$u.toast("请输入评论内容!"),n.abrupt("return");case 3:return n.next=5,this.$api.goCommentPost({content:this.content,aid:this.id,pid:this.pid});case 5:if(t=n.sent,this.$u.toast(t.msg),t.code){n.next=9;break}return n.abrupt("return");case 9:this.content="",t.data&&t.data.comment&&(this.commentList=[t.data.comment].concat(u(this.commentList)));case 11:case"end":return n.stop()}}),n,this)})));function t(){return n.apply(this,arguments)}return t}(),goLogin:function(){this.$Router.push("/pages/login/mobilelogin")},toUser:function(n){this.$Router.push("/pages/user/user?user_id="+n)},goPay:function(){this.$refs.faPayment.show()},paySuccess:function(){this.getArchivesDetail()},download:function(t){var e=this;switch(t.name){case"local":n.downloadFile({url:t.url,success:function(t){200===t.statusCode&&n.saveFile({tempFilePath:t.tempFilePath,success:function(n){e.downtips=!0,e.description=n.savedFilePath},fail:function(n){}})}});break;case"baidu":this.dowshow=!0,this.downurl=t.url,this.baucode=t.password;break}},copydown:function(){var n=this;this.$util.uniCopy({content:this.baucode,success:function(){n.$u.toast("提取码复制成功!")}})},goTag:function(n){this.$Router.push({path:"/pages/tag/tag",query:{name:n}})}},onPageScroll:function(n){this.scrollTop=n.scrollTop},onReachBottom:function(){this.has_more&&(this.page+=1,this.goCommentIndex())}};t.default=m}).call(this,e("f266")["default"])},c244:function(n,t,e){"use strict";var o=e("7c6f"),i=e.n(o);i.a},ddfc:function(n,t,e){"use strict";e.r(t);var o=e("7fd7"),i=e("1b6b");for(var r in i)"default"!==r&&function(n){e.d(t,n,(function(){return i[n]}))}(r);e("c244");var u,a=e("f0c5"),c=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);t["default"]=c.exports}},[["3fe3","common/runtime","common/vendor"]]]);