(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["user/page/shareEx"],{"0d2d":function(e,n,t){"use strict";t.r(n);var o=t("70ed"),a=t("e8e7");for(var c in a)"default"!==c&&function(e){t.d(n,e,(function(){return a[e]}))}(c);t("3faf");var i,r=t("f0c5"),s=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"dc601b24",null,!1,o["a"],i);n["default"]=s.exports},"3faf":function(e,n,t){"use strict";var o=t("e1fa"),a=t.n(o);a.a},"70ed":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return a})),t.d(n,"c",(function(){return c})),t.d(n,"a",(function(){return o}));var a=function(){var e=this,n=e.$createElement;e._self._c},c=[]},b2c2:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t("307c"),a={data:function(){return{userlogo:"",shareId:"",nickname:"",goodimg:"",couldshare:0,jsspan:"立即领取"}},onLoad:function(n){this.userlogo=n.logo,this.shareId=n.shareid,this.nickname=n.nickname,this.goodimg=n.goodimg,this.couldshare=n.type,2==n.type&&n.scene&&e.setStorage({key:"spread_code",data:n.scene})},onShareAppMessage:function(e){var n=this,t=getCurrentPages(),o=t[t.length-1],a=o.route,c=o.options,i={title:n.nickname+"分享您一张子臣鸭汤兑换券",path:a+"?shareid="+c.shareid+"&scene="+c.scene+"&goodimg="+c.goodimg+"&logo="+c.logo+"&type=2&nickname="+c.nickname,imageUrl:c.goodimg,success:function(e){console.log(i.path,"path+++++++++++++++++++"),e.errMsg},fail:function(){"shareAppMessage:fail cancel"==res.errMsg||res.errMsg}};return i},methods:{getGift:function(){var n=this;console.log("ddd"),(0,o.getGift)({},this.shareId).then((function(t){console.log(t),e.showToast({title:"领取成功",duration:2e3}),n.jsspan="已领取",setTimeout((function(){e.switchTab({url:"/pages/index/index"})}),1500)})).catch((function(e){console.log(e)}))}}};n.default=a}).call(this,t("543d")["default"])},c021:function(e,n,t){"use strict";(function(e){t("5935");o(t("66fd"));var n=o(t("0d2d"));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=t,e(n.default)}).call(this,t("543d")["createPage"])},e1fa:function(e,n,t){},e8e7:function(e,n,t){"use strict";t.r(n);var o=t("b2c2"),a=t.n(o);for(var c in o)"default"!==c&&function(e){t.d(n,e,(function(){return o[e]}))}(c);n["default"]=a.a}},[["c021","common/runtime","common/vendor"]]]);