couponDetails.js 3.2 KB

12
  1. require('./common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_company/couponDetails"],{791:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var i=o(t(792));e.__webpack_require_UNI_MP_PLUGIN__=t,n(i.default)}).call(this,t(1)["default"],t(2)["createPage"])},792:function(e,n,t){"use strict";t.r(n);var o=t(793),i=t(795);for(var c in i)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(c);t(797);var u,r=t(34),s=Object(r["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"660e495e",null,!1,o["components"],u);s.options.__file="pages_company/couponDetails.vue",n["default"]=s.exports},793:function(e,n,t){"use strict";t.r(n);var o=t(794);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},794:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return i})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return c})),t.d(n,"components",(function(){return o}));var i=function(){var e=this,n=e.$createElement;e._self._c},c=!1,u=[];i._withStripped=!0},795:function(e,n,t){"use strict";t.r(n);var o=t(796),i=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(c);n["default"]=i.a},796:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t(314),i={name:"getCoupon",props:{},data:function(){return{id:null,item:null,code:null,type:0}},onLoad:function(n){console.log(n.id),console.log(n.code),this.type=n.type,this.id=JSON.parse(n.id),this.utils.isEmpty(n.code)||(this.code=n.code),e.showShareMenu({withShareTicket:!0,menus:["shareAppMessage"]}),this.getCouponIssueById()},onShareAppMessage:function(e){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 n=["https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20221116/99f6dedb47394b43adb61a1aa1b2e7e2.jpg"];e.previewImage({urls:n,current:n[0]})},getCouponIssueById:function(){var n=this,t={id:this.id};(0,o.getCouponIssueById)(t).then((function(e){n.item=e.data,console.log(n.code),n.utils.isEmpty(n.code)&&(n.code=e.code),console.log(n.code)})).catch((function(n){e.showToast({title:n.msg,icon:"none",duration:2e3})}))},receive:function(){if(this.utils.isLogin()){var n={id:this.item.id,code:this.code};(0,o.companyReceive)(n).then((function(n){200==n.code?e.showToast({title:"领取成功",icon:"success",duration:2e3}):e.showToast({title:n.msg,duration:2e3})})).catch((function(n){e.showToast({title:n.msg,icon:"none",duration:2e3})}))}}}};n.default=i}).call(this,t(2)["default"])},797:function(e,n,t){"use strict";t.r(n);var o=t(798),i=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(c);n["default"]=i.a},798:function(e,n,t){}},[[791,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../.sourcemap/mp-weixin/pages_company/couponDetails.js.map