(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/common_tools/collection/collection_details"],{"23b1":function(t,n,e){"use strict";e.r(n);var i=e("7782"),a=e("2a5d");for(var r in a)"default"!==r&&function(t){e.d(n,t,(function(){return a[t]}))}(r);e("e5ba");var c,o=e("f0c5"),s=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],c);n["default"]=s.exports},"2a5d":function(t,n,e){"use strict";e.r(n);var i=e("98f9"),a=e.n(i);for(var r in i)"default"!==r&&function(t){e.d(n,t,(function(){return i[t]}))}(r);n["default"]=a.a},7782:function(t,n,e){"use strict";var i;e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return r})),e.d(n,"a",(function(){return i}));var a=function(){var t=this,n=t.$createElement;t._self._c},r=[]},"84c1":function(t,n,e){"use strict";(function(t){e("02cf");i(e("66fd"));var n=i(e("23b1"));function i(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},"98f9":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=a(e("a34a"));function a(t){return t&&t.__esModule?t:{default:t}}function r(t,n,e,i,a,r,c){try{var o=t[r](c),s=o.value}catch(u){return void e(u)}o.done?n(s):Promise.resolve(s).then(i,a)}function c(t){return function(){var n=this,e=arguments;return new Promise((function(i,a){var c=t.apply(n,e);function o(t){r(c,i,a,o,s,"next",t)}function s(t){r(c,i,a,o,s,"throw",t)}o(void 0)}))}}var o={data:function(){return{title:"",id:"",info:{},imgsrc:"../../../static/img/start_gray.png"}},mounted:function(){this.getdetailes()},methods:{sc:function(){var n=c(i.default.mark((function n(){var e;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,this.$request.post("/api/v1/collection/submitCollect",{type:2,relation_id:this.info.id});case 2:e=n.sent,console.log(e),0==e.status&&(0==e.data.is_collect?(this.imgsrc="../../../static/img/start_gray.png",t.showToast({title:"取消成功",icon:"none"})):(this.imgsrc="../../../static/img/start.png",t.showToast({title:"收藏成功",icon:"none"})));case 5:case"end":return n.stop()}}),n,this)})));function e(){return n.apply(this,arguments)}return e}(),getdetailes:function(){var t=c(i.default.mark((function t(){var n;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$request.post("/api/v1/article/articleDetail",{article_id:this.id});case 2:n=t.sent,0==n.status&&(this.info=n.data),0==this.info.is_collect?this.imgsrc="../../../static/img/start_gray.png":this.imgsrc="../../../static/img/start.png";case 5:case"end":return t.stop()}}),t,this)})));function n(){return t.apply(this,arguments)}return n}()},onLoad:function(n){this.title=n.title,t.setNavigationBarTitle({title:this.title}),this.id=n.id}};n.default=o}).call(this,e("543d")["default"])},d6d9:function(t,n,e){},e5ba:function(t,n,e){"use strict";var i=e("d6d9"),a=e.n(i);a.a}},[["84c1","common/runtime","common/vendor"]]]);