webpackJsonp([20],{"6IIy":function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=t("CCn6"),s=t("/Bxx"),a=t.n(s),r={name:"shareConfig",data:function(){return{desc:"赠你1元领取价值398元课程特权，和我一起快乐启蒙英语吧",shareUrl:a.a,title:"我家宝宝正在【唱唱启蒙英语】挑战童谣，已坚持1天",link:window.location.href.split("#")[0],shareVisible:!1}},methods:{enableShare:function(n){Object(i.F)({api_list:"onMenuShareAppMessage,onMenuShareTimeline",url:window.location.href.split("#")[0]}).then(function(e){wx.config({debug:!1,appId:e.appId,timestamp:parseInt(e.timestamp),nonceStr:e.nonceStr,signature:e.signature,jsApiList:e.jsApiList}),wx.ready(function(){wx.onMenuShareTimeline({title:n.product_title,desc:n.desc,link:n.shareUrl,imgUrl:n.shareIcon||"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){},cancel:function(){}}),wx.onMenuShareAppMessage({title:n.product_title,desc:n.desc,link:n.shareUrl,imgUrl:n.shareIcon||"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){},cancel:function(){}})})})},sharePage:function(){this.enableShare({product_title:this.title,desc:this.desc,shareIcon:"https://cdn.singsingenglish.com/logo/logo.jpg",shareUrl:this.link}),this.shareVisible=!0}}},l=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",[t("mt-popup",{staticClass:"refer-share",staticStyle:{background:"transparent"},attrs:{position:"top"},model:{value:n.shareVisible,callback:function(e){n.shareVisible=e},expression:"shareVisible"}},[t("img",{staticStyle:{width:"80vw"},attrs:{src:n.shareUrl}})]),n._v(" "),t("div",{staticStyle:{padding:"10px"}},[t("mt-field",{attrs:{label:"分享标题",type:"textarea",placeholder:"请输入分享标题",rows:"4"},model:{value:n.title,callback:function(e){n.title=e},expression:"title"}}),n._v(" "),t("mt-field",{attrs:{label:"分享链接",type:"textarea",placeholder:"请输入分享链接",rows:"4"},model:{value:n.link,callback:function(e){n.link=e},expression:"link"}}),n._v(" "),t("mt-field",{attrs:{label:"分享描述",type:"textarea",placeholder:"请输入分享描述",rows:"4"},model:{value:n.desc,callback:function(e){n.desc=e},expression:"desc"}}),n._v(" "),t("div",{staticStyle:{width:"calc(100vw - 20px)",margin:"0"}},[t("mt-button",{attrs:{type:"primary",size:"large"},on:{click:function(e){n.sharePage()}}},[n._v("分享")])],1)],1)],1)};l._withStripped=!0;var o={render:l,staticRenderFns:[]},c=o;var p=!1;var d=t("VU/8")(r,c,!1,function(n){p||t("oiC4")},"data-v-fe968cbe",null);d.options.__file="src/components/shareConfig.vue";e.default=d.exports},oiC4:function(n,e,t){var i=t("xc6X");"string"==typeof i&&(i=[[n.i,i,""]]),i.locals&&(n.exports=i.locals);t("rjj0")("1a2c0be4",i,!1,{})},xc6X:function(n,e,t){(n.exports=t("FZ+f")(!0)).push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","",{version:3,sources:[],names:[],mappings:"",file:"shareConfig.vue",sourceRoot:""}])}});