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