54.184cf645f082caab1a88.js 2.74 KB
webpackJsonp([54],{"6IIy":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,s=n("bOdI"),a=n.n(s),l=(n("y+mr"),n("3JdW")),r=n.n(l),c=(n("f1Vh"),n("ZQVe")),o=n.n(c),d=(n("q/am"),n("4VPn")),p=n.n(d),h=n("CCn6"),u=n("/Bxx"),g=n.n(u),m={name:"shareConfig",components:(i={},a()(i,p.a.name,p.a),a()(i,o.a.name,o.a),a()(i,r.a.name,r.a),i),data:function(){return{desc:"赠你1元领取价值398元课程特权,和我一起快乐启蒙英语吧",shareUrl:g.a,title:"我家宝宝正在【唱唱启蒙英语】挑战童谣,已坚持1天",link:window.location.href.split("#")[0],shareVisible:!1}},methods:{enableShare:function(e){Object(h.V)({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}}},f={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 b=n("VU/8")(m,f,!1,function(e){n("YyOl")},"data-v-0535b5da",null);t.default=b.exports},YyOl:function(e,t){}});