(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/service_packs/packs_details"],{5329:function(t,e,n){"use strict";n.r(e);var i=n("b04d"),a=n.n(i);for(var c in i)"default"!==c&&function(t){n.d(e,t,(function(){return i[t]}))}(c);e["default"]=a.a},"954a":function(t,e,n){"use strict";var i=n("d9cf"),a=n.n(i);a.a},"96db":function(t,e,n){"use strict";(function(t){n("02cf");i(n("66fd"));var e=i(n("9a9e"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"9a9e":function(t,e,n){"use strict";n.r(e);var i=n("f5a6"),a=n("5329");for(var c in a)"default"!==c&&function(t){n.d(e,t,(function(){return a[t]}))}(c);n("954a");var s,r=n("f0c5"),o=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],s);e["default"]=o.exports},b04d:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("a34a"));function a(t){return t&&t.__esModule?t:{default:t}}function c(t,e,n,i,a,c,s){try{var r=t[c](s),o=r.value}catch(u){return void n(u)}r.done?e(o):Promise.resolve(o).then(i,a)}function s(t){return function(){var e=this,n=arguments;return new Promise((function(i,a){var s=t.apply(e,n);function r(t){c(s,i,a,r,o,"next",t)}function o(t){c(s,i,a,r,o,"throw",t)}r(void 0)}))}}var r={name:"productdetailspage",onLoad:function(t){this.serviceid=t.id},mounted:function(){this.getservice()},data:function(){return{isfollow:!1,num:1,imgitem:{istrue:!1,name:"https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/xieyi.png"},packs:{},serviceid:""}},methods:{submitCollect:function(){var e=s(i.default.mark((function e(n){var a;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log(n),e.next=3,this.$request.post("/api/v1/collection/submitCollect",{type:1,relation_id:n.currentTarget.dataset.id});case 3:a=e.sent,0==a.status&&(0==a.data.is_collect?(t.showToast({title:"取消成功",icon:"none"}),this.packs.team.docter[n.currentTarget.dataset.index].is_collect=a.data.is_collect):(t.showToast({title:"关注成功",icon:"none"}),this.packs.team.docter[n.currentTarget.dataset.index].is_collect=a.data.is_collect));case 5:case"end":return e.stop()}}),e,this)})));function n(t){return e.apply(this,arguments)}return n}(),getservice:function(){var t=s(i.default.mark((function t(){var e;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$request.post("/api/v1/ServicePack/servicePackDetail",{service_pack_id:this.serviceid});case 2:e=t.sent,console.log(e),0==e.status&&(this.packs=e.data);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),isqueren:function(){this.num++,this.num%2==0?(this.imgitem.name="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/xieyixuan.png",this.imgitem.istrue=!0):(this.imgitem.name="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/xieyi.png",this.imgitem.istrue=!1)},next:function(e){this.imgitem.istrue?t.navigateTo({url:"/pages/service_packs/packs_information?data="+JSON.stringify(this.packs)}):t.showToast({icon:"none",position:"bottom",title:"请先同意《协议》"})}}};e.default=r}).call(this,n("543d")["default"])},d9cf:function(t,e,n){},f5a6:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement;t._self._c},c=[]}},[["96db","common/runtime","common/vendor"]]]);