require('./common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_company/couponDetails"],{3698:function(t,e,o){"use strict";(function(t,e){var n=o("47a9");o("584a");n(o("3240"));var c=n(o("f2ed"));t.__webpack_require_UNI_MP_PLUGIN__=o,e(c.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},7092:function(t,e,o){"use strict";var n=o("cbc6"),c=o.n(n);c.a},7852:function(t,e,o){"use strict";o.r(e);var n=o("cf08"),c=o.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(i);e["default"]=c.a},a6a4:function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return c})),o.d(e,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},c=[]},cbc6:function(t,e,o){},cf08:function(t,e,o){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o("a678"),c={name:"getCoupon",props:{},data:function(){return{id:null,item:null,code:null,type:0}},onLoad:function(e){console.log(e.id),console.log(e.code),this.type=e.type,this.id=JSON.parse(e.id),this.utils.isEmpty(e.code)||(this.code=e.code),t.showShareMenu({withShareTicket:!0,menus:["shareAppMessage"]}),this.getCouponIssueById()},onShareAppMessage:function(t){return{title:this.item.couponName,path:"/pages_company/couponDetails?id=".concat(this.item.id,"&type=2&code=").concat(this.code)}},mounted:function(){},onShow:function(){},methods:{showImg:function(){var e=["https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20221116/99f6dedb47394b43adb61a1aa1b2e7e2.jpg"];t.previewImage({urls:e,current:e[0]})},getCouponIssueById:function(){var e=this,o={id:this.id};(0,n.getCouponIssueById)(o).then((function(t){e.item=t.data,console.log(e.code),e.utils.isEmpty(e.code)&&(e.code=t.code),console.log(e.code)})).catch((function(e){t.showToast({title:e.msg,icon:"none",duration:2e3})}))},receive:function(){if(this.utils.isLogin()){var e={id:this.item.id,code:this.code};(0,n.companyReceive)(e).then((function(e){200==e.code?t.showToast({title:"领取成功",icon:"success",duration:2e3}):t.showToast({title:e.msg,duration:2e3})})).catch((function(e){t.showToast({title:e.msg,icon:"none",duration:2e3})}))}}}};e.default=c}).call(this,o("df3c")["default"])},f2ed:function(t,e,o){"use strict";o.r(e);var n=o("a6a4"),c=o("7852");for(var i in c)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return c[t]}))}(i);o("7092");var a=o("828b"),s=Object(a["a"])(c["default"],n["b"],n["c"],!1,null,"6cedc0a8",null,!1,n["a"],void 0);e["default"]=s.exports}},[["3698","common/runtime","common/vendor"]]]);