| 12 |
- require('./common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_company/couponDetails"],{802:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var i=o(t(803));e.__webpack_require_UNI_MP_PLUGIN__=t,n(i.default)}).call(this,t(1)["default"],t(2)["createPage"])},803:function(e,n,t){"use strict";t.r(n);var o=t(804),i=t(806);for(var c in i)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(c);t(808);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},804:function(e,n,t){"use strict";t.r(n);var o=t(805);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"]}))},805: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},806:function(e,n,t){"use strict";t.r(n);var o=t(807),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},807: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"])},808:function(e,n,t){"use strict";t.r(n);var o=t(809),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},809:function(e,n,t){}},[[802,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../.sourcemap/mp-weixin/pages_company/couponDetails.js.map
|