(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/coupon/details/details"],{5649:function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}));var i=function(){var t=this,e=t.$createElement;t._self._c},r=[]},"66fb":function(t,e,n){"use strict";n.r(e);var o=n("5649"),i=n("6a91");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);var a,c=n("f0c5"),u=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"664d84ed",null,!1,o["a"],a);e["default"]=u.exports},"6a91":function(t,e,n){"use strict";n.r(e);var o=n("d3ce"),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},aed4:function(t,e,n){"use strict";(function(t){n("2d0a");o(n("66fd"));var e=o(n("66fb"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},d3ce:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("2f62");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=function(){Promise.all([n.e("common/vendor"),n.e("pages/coupon/details/app-details")]).then(function(){return resolve(n("1a14"))}.bind(null,n)).catch(n.oe)},u={components:{appDetails:c},data:function(){return{type:0,id:0,list:null}},computed:r({},(0,o.mapState)({couponImg:function(t){return t.mallConfig.__wxapp_img.coupon}})),methods:{getList:function(e){var n=this;n.$showLoading({type:"global",text:"加载中..."});var o=n.$api.coupon.detail,i={coupon_id:e};2===this.type&&(o=n.$api.coupon.user_coupon_detail,i={user_coupon_id:e}),n.$request({url:o,data:i}).then((function(e){n.$hideLoading(),0===e.code?n.list=e.data.list:t.showToast({title:e.msg,icon:"none",duration:1e3})})).catch((function(){n.$hideLoading()}))}},onLoad:function(t){this.$commonLoad.onload(t),this.id=t.id,this.getList(this.id)},onShareAppMessage:function(){return this.$shareAppMessage({title:this.list.app_share_title,imageUrl:this.list.app_share_pic?this.list.app_share_pic:this.couponImg.img_coupon_2,path:"/pages/coupon/give/give",params:{coupon_id:this.id}})}};e.default=u}).call(this,n("543d")["default"])}},[["aed4","common/runtime","common/vendor"]]]);