(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/shop/shareF"],{"304b":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return c})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var c=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){e.imgShare=!e.imgShare})},a=[]},"699c":function(e,n,t){"use strict";t.r(n);var o=t("304b"),c=t("9405");for(var a in c)"default"!==a&&function(e){t.d(n,e,(function(){return c[e]}))}(a);t("b530");var i,r=t("f0c5"),s=Object(r["a"])(c["default"],o["b"],o["c"],!1,null,"28e7114c",null,!1,o["a"],i);n["default"]=s.exports},"6b26":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t("b0c9"),c={data:function(){return{code:"",imgShare:!1,userlogo:"",shareId:"",nickname:"",goodimg:"",couldshare:0,jsspan:"立即领取",goodname:""}},onLoad:function(n){this.code=n.code,this.userlogo=n.logo,this.shareId=n.shareid,this.nickname=decodeURI(n.nickname),this.couldshare=n.type,this.goodname=decodeURI(n.goodname),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],c=o.route,a=(o.options,{title:n.nickname+"分享您"+n.goodname,path:c+"?code="+n.code+"&type=2&logo="+n.userlogo+"&nickname="+encodeURI(n.nickname)+"&goodname="+encodeURI(n.goodname),imageUrl:"http://xxl.liuniu946.com/static/image/good.png",success:function(e){console.log(a.path,"path+++++++++++++++++++"),e.errMsg},fail:function(){"shareAppMessage:fail cancel"==res.errMsg||res.errMsg}});return a},methods:{getGift:function(){var n=this;console.log("ddd"),(0,o.getGift)({code:n.code}).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=c}).call(this,t("543d")["default"])},9405:function(e,n,t){"use strict";t.r(n);var o=t("6b26"),c=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=c.a},b530:function(e,n,t){"use strict";var o=t("c35b"),c=t.n(o);c.a},c35b:function(e,n,t){},ff16:function(e,n,t){"use strict";(function(e){t("4c14");o(t("66fd"));var n=o(t("699c"));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"])}},[["ff16","common/runtime","common/vendor"]]]);