Commit 53f3ace1 authored by wangwei's avatar wangwei

分销页面修改

parent 4439913c
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"><meta name=screen-orientation content=portrait><meta name=x5-orientation content=portrait><title>唱唱启蒙英语</title><link rel=stylesheet href=https://at.alicdn.com/t/font_822651_g9r2j7kybxu.css><style></style><link href=static/css/app.9f631d4069047acf4ee994f5d9f958c3.css rel=stylesheet></head><body><div id=app></div><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js></script><script type=text/javascript src=static/js/manifest.563ab2ca3d7621f39b4a.js></script><script type=text/javascript src=static/js/vendor.0302137f3a6bb59dc95e.js></script><script type=text/javascript src=static/js/app.27f6d66832e880eee87b.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"><meta name=screen-orientation content=portrait><meta name=x5-orientation content=portrait><title>唱唱启蒙英语</title><link rel=stylesheet href=https://at.alicdn.com/t/font_822651_g9r2j7kybxu.css><style></style><link href=static/css/app.9f631d4069047acf4ee994f5d9f958c3.css rel=stylesheet></head><body><div id=app></div><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js></script><script type=text/javascript src=static/js/manifest.27a8c3aad17c81cbef0b.js></script><script type=text/javascript src=static/js/vendor.0302137f3a6bb59dc95e.js></script><script type=text/javascript src=static/js/app.6633b983627ae8a01353.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,a,o){for(var f,d,b,i=0,u=[];i<r.length;i++)d=r[i],c[d]&&u.push(c[d][0]),c[d]=0;for(f in a)Object.prototype.hasOwnProperty.call(a,f)&&(e[f]=a[f]);for(n&&n(r,a,o);u.length;)u.shift()();if(o)for(i=0;i<o.length;i++)b=t(t.s=o[i]);return b};var r={},c={26:0};function t(n){if(r[n])return r[n].exports;var c=r[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,t),c.l=!0,c.exports}t.e=function(e){var n=c[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,t){n=c[e]=[r,t]});n[2]=r;var a=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,t.nc&&o.setAttribute("nonce",t.nc),o.src=t.p+"static/js/"+e+"."+{0:"dd7a4a4d6f66f918b161",1:"74db0273aa29f9b44da4",2:"fa22829657cbd48b57a2",3:"27772a4c2090178fd73f",4:"a7c218178e7c608c375f",5:"abfa207e290b68cb040d",6:"2b98e3e2316b1706e760",7:"656557af56134992379f",8:"be4ed60496a08edbe14e",9:"84d52b2bfd66d01562b8",10:"fb904dd92fba2806640c",11:"96117a04205622d8c49a",12:"6b7a9a473eb005cfd1b0",13:"d1a375ca87ee0099c55f",14:"50eb8c907d3c981316c0",15:"8016506c55a85edfab62",16:"d65597b9762dcc1cd0ed",17:"e8ffb1f4ac658fec0e7e",18:"f63413591b9bdc9cb4ce",19:"c778bfb2475fb9071e71",20:"cc3848989c6b0e891bdc",21:"3e29f0466acabc459f5b",22:"4930019ea0011ef68ac8",23:"8d337c794f25767b4793"}[e]+".js";var f=setTimeout(d,12e4);function d(){o.onerror=o.onload=null,clearTimeout(f);var n=c[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}return o.onerror=o.onload=d,a.appendChild(o),r},t.m=e,t.c=r,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t.oe=function(e){throw console.error(e),e}}([]); !function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,a,o){for(var f,d,b,i=0,u=[];i<r.length;i++)d=r[i],c[d]&&u.push(c[d][0]),c[d]=0;for(f in a)Object.prototype.hasOwnProperty.call(a,f)&&(e[f]=a[f]);for(n&&n(r,a,o);u.length;)u.shift()();if(o)for(i=0;i<o.length;i++)b=t(t.s=o[i]);return b};var r={},c={26:0};function t(n){if(r[n])return r[n].exports;var c=r[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,t),c.l=!0,c.exports}t.e=function(e){var n=c[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,t){n=c[e]=[r,t]});n[2]=r;var a=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,t.nc&&o.setAttribute("nonce",t.nc),o.src=t.p+"static/js/"+e+"."+{0:"dd7a4a4d6f66f918b161",1:"74db0273aa29f9b44da4",2:"fa22829657cbd48b57a2",3:"1015dd307a652402a370",4:"bac027cd6447dac2b252",5:"a37b9ee5517eca783c3e",6:"2b98e3e2316b1706e760",7:"656557af56134992379f",8:"be4ed60496a08edbe14e",9:"84d52b2bfd66d01562b8",10:"fb904dd92fba2806640c",11:"96117a04205622d8c49a",12:"6b7a9a473eb005cfd1b0",13:"d1a375ca87ee0099c55f",14:"50eb8c907d3c981316c0",15:"8016506c55a85edfab62",16:"d65597b9762dcc1cd0ed",17:"e8ffb1f4ac658fec0e7e",18:"f63413591b9bdc9cb4ce",19:"c778bfb2475fb9071e71",20:"cc3848989c6b0e891bdc",21:"3e29f0466acabc459f5b",22:"4930019ea0011ef68ac8",23:"8d337c794f25767b4793"}[e]+".js";var f=setTimeout(d,12e4);function d(){o.onerror=o.onload=null,clearTimeout(f);var n=c[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}return o.onerror=o.onload=d,a.appendChild(o),r},t.m=e,t.c=r,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.563ab2ca3d7621f39b4a.js.map //# sourceMappingURL=manifest.27a8c3aad17c81cbef0b.js.map
\ No newline at end of file \ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"><meta name=screen-orientation content=portrait><meta name=x5-orientation content=portrait><title>唱唱启蒙英语</title><link rel=stylesheet href=https://at.alicdn.com/t/font_822651_g9r2j7kybxu.css><style>*{ <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"><meta name=screen-orientation content=portrait><meta name=x5-orientation content=portrait><title>唱唱启蒙英语</title><link rel=stylesheet href=https://at.alicdn.com/t/font_822651_g9r2j7kybxu.css><style>*{
-webkit-overflow-scrolling:touch; -webkit-overflow-scrolling:touch;
}</style><link href=https://static-cdn.changchangenglish.com/new-sing/static/css/app.5128640a853304ede916a1f1223be4b0.css rel=stylesheet></head><body><div id=app></div><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js></script><script></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/manifest.f68e2e9447a71f2bc0bf.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/vendor.3a0087e50012f11a0897.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/app.be84b6af48f55c263a9d.js></script></body></html> }</style><link href=https://static-cdn.changchangenglish.com/new-sing/static/css/app.6bac524ac4e6b011b5da844f1dd00aba.css rel=stylesheet></head><body><div id=app></div><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js></script><script></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/manifest.9a19a40ade7513a46e4e.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/vendor.3a0087e50012f11a0897.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/app.ffa85dd8c034f8f69338.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This diff is collapsed.
webpackJsonp([3],{"+2W0":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAAd9JREFUOBGVk00uREEUhZ9/EQZiYECMzCUSAwswZR92YDFC9wYQhPhbhAXQE1vwTztfpU67r9973elKvq5bt+45dV+910VRHmNawo54EodiWjjvmdyReBbUOq+wOrxJ4avoZk40R3Pi07BPbaO5TcdV1AmiaD6rPERT76OZEPZR+L9gY0q0hQVxPlMeYs7xsfJoS+acQqeTgo4WxYWwaNh8njVo8cALz/TDghPnBMar4koMM6WGWjRo8SgZ8wi8lHmxJFbEurgRTebsUUMtGrR4JGN+GIj7B3t1+Vhnfcz1Yt9xvIo17V6Lpm6dp4baxqvAnOuYETzWKC/vMmvQVr4KG3NHLeGO4vygPMSc47byaAcad2rE98ptZYht6Lmj3EBjHmdXvAmL7hRvio0MMTnvvyveE6WriK0T84G/iEexLejuQHyJ38yP5luxLBbEvuCK2Pdhvf82d4wpj8PJ/IuYybGHACGDT8y5b8Ufgq6ZPwW5LsKmgVEq0kyX0dhP6lzFIxq7Kxu6mDXGwMAU/OfgcGoAjzTqjLlPBgLGMGP2/Q4qxiTAXVHsjmxsEQfGjtmPNamOl8Dw7BfD2jkKEcbhOnLsG9d1LabAcZzT6VlIjcegmqRxQb/A61FnN1L8AQ0BxfTPbexRAAAAAElFTkSuQmCC"},"2Ihx":function(t,e,s){t.exports=s.p+"static/img/no.4e27c3e.png"},"3CuV":function(t,e,s){t.exports=s.p+"static/img/share_bg.bad35f5.jpg"},FRDK:function(t,e,s){t.exports=s.p+"static/img/actBg1.f48d135.png"},JK9h:function(t,e,s){t.exports=s.p+"static/img/log.8c70e94.png"},UEMf:function(t,e,s){t.exports=s.p+"static/img/qr.f968b9d.png"},ZjJ6:function(t,e){},"f+ht":function(t,e,s){t.exports=s.p+"static/img/actBg2.b47e39b.png"},oSXS:function(t,e,s){t.exports=s.p+"static/img/actBg3.53dd5e6.png"},rPUm:function(t,e){},riDf:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=s("FRDK"),o=s.n(n),i=s("f+ht"),a=s.n(i),c=s("oSXS"),l=s.n(c),r=s("yniu"),u=s.n(r),d=s("+2W0"),g=s.n(d),h=s("JK9h"),p=s.n(h),m=s("UEMf"),_=s.n(m),f=s("3CuV"),v=s.n(f),b=s("2Ihx"),w=s.n(b),C=s("CCn6"),y=s("MJLE"),A=s.n(y),x=s("2Pnh"),L=s.n(x),E=s("Au9i"),R={name:"index",data:function(){return{starbg_1:o.a,share_img_url:v.a,log_url:p.a,no_list:!1,log_show:!1,share_show:!1,qr_show:!1,dataURL:null,no_url:w.a,qr_url:_.a,starbg_2:a.a,starbg_3:l.a,starbg_4:u.a,x_url:g.a,star_total:0,logList:[],shopId:null,share_URL:null}},methods:{initPage:function(){var t=this;Object(C.u)().then(function(e){t.shopId=e[0].value,t.share_URL="https://wechat.changchangenglish.com/#/buyDetail?shopId="+t.shopId+"&invite_code=CC-ZKHB-"+JSON.parse(localStorage.getItem("userDesc")).user_id,t.onShare(t.share_URL),t.toDataURLBase64(t.share_img_url,function(e){t.share_img_url=e})}),Object(C.B)().then(function(e){t.star_total=e.last_value})},closeLog:function(){window.removeEventListener("scroll",this.scrollFix),this.log_show=!1},onShare:function(t){this.enableShare({product_title:"赠您【1元领取398元英语启蒙课程特权】,限时福利,立即领取",desc:"学习另赠价值58元实物绘本,包邮送到家~",shareIcon:"https://cdn.singsingenglish.com/logo/logo.jpg",shareUrl:t})},showQr:function(){this.qr_show=!0,this.$sa.track("buttonClick",{tabTitle:"星星活动页",moduleTitle:"星星活动页",buttonType:"功能",buttonName:"小助手二维码"})},enableShare:function(t){Object(C.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:t.product_title,desc:t.desc,link:t.shareUrl,imgUrl:t.shareIcon||"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){console.log("分享成功")},cancel:function(){console.log("分享失败")}}),wx.onMenuShareAppMessage({title:t.product_title,desc:t.desc,link:t.shareUrl,imgUrl:t.shareIcon||"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){},cancel:function(){}})})})},qrcode:function(t){this.QRCodeB?this.QRCodeB.makeCode(t):this.QRCodeB=new A.a("qrcode",{width:140,height:140,text:t,image:""})},refshow:function(){var t=this;this.$sa.track("buttonClick",{tabTitle:"星星活动页",moduleTitle:"星星活动页",buttonType:"功能",buttonName:"生成海报"}),this.share_show=!0,this.dataURL||(E.Indicator.open(),Object(C.v)({url:this.share_URL}).then(function(e){t.qrcode(e.url),t.$nextTick(function(){document.getElementById("capture").getClientRects()[0].width;document.getElementById("capture").style.width=2*document.getElementById("capture").getClientRects()[0].width+"px",document.getElementById("capture").style.height=2*document.getElementById("capture").getClientRects()[0].height+"px",setTimeout(function(){L()(document.getElementById("capture"),{async:!0,scale:2,letterRendering:!0}).then(function(e){var s=e.toDataURL("image/jpg");t.dataURL=s,document.getElementById("capture").style.display="none",E.Indicator.close()}).catch(function(t){alert(t),console.log(),document.getElementById("capture").style.display="none",E.Indicator.close()})},500)})}))},getOffsetRect:function(t){var e=t.getBoundingClientRect(),s=document.body,n=document.documentElement,o=window.pageYOffset||n.scrollTop||s.scrollTop,i=window.pageXOffset||n.scrollLeft||s.scrollLeft,a=n.clientTop||s.clientTop,c=n.clientLeft||s.clientLeft,l=e.top+o-a,r=e.left+i-c;return{top:Math.round(l),left:Math.round(r)}},toDataURLBase64:function(t,e){var s=new XMLHttpRequest;s.onload=function(){var t=new FileReader;t.onloadend=function(){e(t.result)},t.readAsDataURL(s.response)},s.responseType="blob",s.open("GET",t,!0),s.send()},scrollFix:function(t){window.scrollTo(0,t)},showLog:function(){var t=this;this.$sa.track("buttonClick",{tabTitle:"星星活动页",moduleTitle:"星星活动页",buttonType:"功能",buttonName:"查看积分"}),Object(C.C)({limit:1e3}).then(function(e){!e.list||e.list.length<1?t.no_list=!0:t.logList=e.list;document.documentElement.scrollTop||document.body.scrollTop;window.addEventListener("scroll",t.scrollFix),t.log_show=!0})}},filters:{substrTime:function(t){return t.substr(0,10).replace(/-/g,".")}},mounted:function(){var t=this;this.initPage(),window.onscroll=function(){(document.documentElement.scrollTop||document.body.scrollTop)>300?(t.$refs.btn_block.style.opacity=1,t.$refs.btn_block.style.display="block"):(t.$refs.btn_block.style.opacity=0,t.$refs.btn_block.style.display="none")}}},T={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"star-activity-page"},[s("div",[s("img",{staticClass:"bg",attrs:{src:t.starbg_1}}),t._v(" "),s("div",{staticClass:"star-total",on:{click:t.showLog}},[t._v("\n 我的星星 "),s("img",{staticClass:"x-img",attrs:{src:t.x_url}}),t._v(t._s(t.star_total)+"\n ")]),t._v(" "),s("img",{staticClass:"bg",attrs:{src:t.starbg_2}}),t._v(" "),s("img",{staticClass:"bg",attrs:{src:t.starbg_3},on:{click:t.showQr}}),t._v(" "),s("img",{staticClass:"bg",attrs:{src:t.starbg_4}})]),t._v(" "),s("div",{ref:"btn_block",staticClass:"btn-block"},[s("div",{staticClass:"btn",on:{click:t.refshow}},[t._v("\n 生成赠课海报\n ")])]),t._v(" "),s("mt-popup",{staticStyle:{background:"transparent"},model:{value:t.qr_show,callback:function(e){t.qr_show=e},expression:"qr_show"}},[s("div",{staticClass:"qr-img"},[s("img",{staticClass:"qr-img",attrs:{src:t.qr_url}}),t._v(" "),s("div",{staticClass:"qr-close",on:{click:function(e){t.qr_show=!1}}})])]),t._v(" "),s("mt-popup",{staticStyle:{background:"transparent"},attrs:{closeOnClickModal:!1},model:{value:t.log_show,callback:function(e){t.log_show=e},expression:"log_show"}},[s("div",{staticClass:"log-img",style:{backgroundImage:"url('"+t.log_url+"')"}},[s("div",{staticClass:"content"},[t.no_list?s("div",{staticClass:"no-list"},[s("img",{attrs:{src:t.no_url}}),t._v("\n —— 暂无记录 ——\n ")]):t._e(),t._v(" "),t._l(t.logList,function(e){return s("div",{staticClass:"list"},[s("span",{staticClass:"time-text"},[t._v("\n "+t._s(t._f("substrTime")(e.created_at))+"\n ")]),t._v(" "),s("span",{staticClass:"desc-text"},[t._v("\n "+t._s(e.desc)+"\n ")]),t._v(" "),1===e.is_add?s("span",{staticClass:"star-num",staticStyle:{color:"#7ED321"}},[t._v("\n 星星+"+t._s(e.value)+"\n ")]):t._e(),t._v(" "),1!==e.is_add?s("span",{staticClass:"star-num",staticStyle:{color:"#D0021B"}},[t._v("\n 星星-"+t._s(e.value)+"\n ")]):t._e()])})],2),t._v(" "),s("div",{staticClass:"btn",on:{click:t.closeLog}},[t._v("\n 知道了\n ")])])]),t._v(" "),t.share_show?s("div",{staticClass:"share-show-block",on:{click:function(e){t.share_show=!1}}},[s("div",{staticClass:"share-show-content"},[s("img",{staticClass:"cvs-img",attrs:{src:t.dataURL,id:"cvs-img"}}),t._v(" "),s("div",{ref:"imageWrapper",staticClass:"share_img",style:{backgroundImage:"url('"+t.share_img_url+"')"},attrs:{id:"capture"}},[s("div",{staticClass:"qrcode",attrs:{id:"qrcode"}})]),t._v(" "),t._m(0)])]):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tips"},[e("b",[this._v("长按保存海报 或发送给好友")]),this._v(" "),e("br"),this._v("\n 越多朋友报名,您可得越多星星\n ")])}]};var k=s("VU/8")(R,T,!1,function(t){s("ZjJ6"),s("rPUm")},"data-v-e2e56c76",null);e.default=k.exports},yniu:function(t,e,s){t.exports=s.p+"static/img/actBg4.74aadcc.png"}});
//# sourceMappingURL=3.1cae61d6239a1b32d241.js.map
\ No newline at end of file
webpackJsonp([3],{"1UEi":function(e,t,i){e.exports=i.p+"static/img/refIcon.2a798e4.png"},"3qnG":function(e,t,i){e.exports=i.p+"static/img/3.030a9b0.jpg"},AlL1:function(e,t,i){e.exports=i.p+"static/img/invite_result.641aca1.png"},G3B8:function(e,t,i){e.exports=i.p+"static/img/btn.9815b8e.png"},IVww:function(e,t){},PHFB:function(e,t,i){e.exports=i.p+"static/img/no_data.4aee76a.png"},XZ4o:function(e,t,i){e.exports=i.p+"static/img/2.b35a13e.jpg"},bqId:function(e,t,i){e.exports=i.p+"static/img/1.f524dc1.jpg"},dfbj:function(e,t){},eZSB:function(e,t,i){e.exports=i.p+"static/img/4.fea6bc0.jpg"},qVuA:function(e,t,i){e.exports=i.p+"static/img/more.72d57b0.png"},yYpN:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i("MJLE"),o=i.n(n),s=i("Au9i"),r=i("CCn6"),a=i("E26C"),c=i.n(a),d=i("kXdI"),u=i.n(d),l=i("1UEi"),p=i.n(l),h=i("XaoW"),g=i.n(h),f=i("zpE/"),m=i.n(f),_=i("0ZjB"),v=i.n(_),I=i("2Pnh"),w=i.n(I),b=i("bqId"),y=i.n(b),D=i("XZ4o"),q=i.n(D),x=i("3qnG"),C=i.n(x),R=i("eZSB"),T=i.n(R),O=i("AlL1"),L=i.n(O),S=i("qVuA"),B=i.n(S),$=i("G3B8"),E=i.n($),j=i("PHFB"),U=i.n(j),k={name:"index",data:function(){return{header1:y.a,header2:q.a,header3:C.a,header4:T.a,inviteResultTitle:L.a,moreResult:B.a,inviteBtn:E.a,refBg:c.a,join:!1,popType:!1,popFill:!1,popupVisible:!1,refVisible:!1,tabType:!0,popcontentW:"您已经购买过课程,无需重复<br>购买,您可以添加微信公众号了解更多",popcontentT:"为了更好地为您进行课程服务,<br>请扫码添加老师二维码",qrCode:m.a,weChatIcon:g.a,closeUrl:v.a,moreUrl:u.a,refIcon:p.a,noData:U.a,swiperOption:{pagination:{el:".swiper-pagination"}},QRCodeB:!1,dataURL:null,user_id:null,invite_code_f:!0,invite_code:"",shopId:"",groupId:null,groupDetail:!1,groupData:null,earnings:0,userNum:0,inviteList:[],total:0,shareTitle:"唱唱启蒙英语邀友返现金",shareDesc:"唱唱英语90天成长营,每成功邀请1人即可返现金88元,多邀多得,速来~"}},filters:{formatDate:function(e){return e?e.split(" ")[0]:""}},mounted:function(){this.getInviteResult(),this.getInviteList(),this.enableShare()},methods:{goToInvite:function(){var e={};window.location.href.indexOf("shopId")>-1&&(e.shopId=this.$route.query.shopId),window.location.href.indexOf("groupId")>-1&&(e.groupId=this.$route.query.groupId),window.location.href.indexOf("invite_code")>-1&&(e.invite_code=this.$route.query.invite_code),this.$router.push({name:"activityInvite",query:e})},goToInviteList:function(){var e={};window.location.href.indexOf("shopId")>-1&&(e.shopId=this.$route.query.shopId),window.location.href.indexOf("groupId")>-1&&(e.groupId=this.$route.query.groupId),window.location.href.indexOf("invite_code")>-1&&(e.invite_code=this.$route.query.invite_code),this.$router.push({name:"inviteList",query:e})},refshow:function(){var e=this;if(s.Indicator.open(),document.body.scrollTop<10&&(document.body.scrollTop=20,document.documentElement.scrollTop=20),localStorage.getItem("cc_token")&&""!==localStorage.getItem("cc_token"))setTimeout(function(){s.Indicator.close(),e.invite_code||(e.invite_code="CC-USER"),e.user_id=JSON.parse(localStorage.getItem("userDesc")).user_id;var t=e.invite_code.split("-");t.length>2&&"TEACHER"===t[1]&&(t[1]="USER");var i=t[0]+"-"+t[1],n="https://wechat.changchangenglish.com/#/buyDetail?shopId="+e.shopId+"&invite_code="+i+"-"+e.user_id;e.groupId&&"null"!==e.groupId&&(n+="&groupId="+e.groupId),e.qrcode(n),e.refVisible=!0,e.$nextTick(function(){e.dataURL||setTimeout(function(){var t=document.getElementById("capture").getClientRects()[0],i=(t.height,t.width);document.getElementById("capture").style.width=i+"px";e.getOffsetRect(e.$refs.imageWrapper);var n=document.getElementById("capture").getClientRects()[0],o=n.height1,s=n.width1;w()(document.getElementById("capture"),{async:!0,timeout:500,scrollX:1,scale:3,width:s,height:o,letterRendering:!0}).then(function(t){var i=t.toDataURL("image/jpg");e.dataURL=i}).catch(function(e){alert(e),console.log()})},500)})},500);else{var t={retUrl:this.$route.fullPath,is_new_user_url:"1"};this.$router.push({name:"author",query:t})}},getOffsetRect:function(e){var t=e.getBoundingClientRect(),i=document.body,n=document.documentElement,o=window.pageYOffset||n.scrollTop||i.scrollTop,s=window.pageXOffset||n.scrollLeft||i.scrollLeft,r=n.clientTop||i.clientTop,a=n.clientLeft||i.clientLeft,c=t.top+o-r,d=t.left+s-a;return{top:Math.round(c),left:Math.round(d)}},qrcode:function(e){this.QRCodeB?this.QRCodeB.makeCode(e):this.QRCodeB=new o.a("qrcode",{width:80,height:80,text:e,image:""})},enableShare:function(){var e=this;Object(r.F)({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.shareTitle,desc:e.shareDesc,link:window.location.href,imgUrl:"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){console.log("分享成功"),window._hmt.push(["_trackEvent","分享","商品页好友分享","id"+e.shopId,e.invite_code])},cancel:function(){console.log("分享失败")}}),wx.onMenuShareAppMessage({title:e.shareTitle,desc:e.shareDesc,link:window.location.href,imgUrl:"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){window._hmt.push(["_trackEvent","分享","商品页朋友圈分享","id"+e.shopId,e.invite_code])},cancel:function(){}})})})},onShare:function(e){this.shopId,this.groupId,this.invite_code;1===e&&(this.shopId,this.invite_code)},toDataURLBase64:function(e,t){var i=new XMLHttpRequest;i.onload=function(){var e=new FileReader;e.onloadend=function(){t(e.result)},e.readAsDataURL(i.response)},i.responseType="blob",i.open("GET",e,!0),i.send()},getDetail:function(){var e=this;window.location.href.indexOf("invite_code")>-1&&(this.invite_code=this.$route.query.invite_code,this.invite_code.split("-").length<3&&(this.invite_code_f=!1));window.location.href.indexOf("shopId")>-1&&(this.shopId=this.$route.query.shopId,Object(r.h)(this.shopId).then(function(t){if(t.desc=JSON.parse(t.desc),t.goods_desc=JSON.parse(t.goods_desc),t.share_desc=JSON.parse(t.share_desc),2===t.status&&t.bind_goods_id)return e.$router.push({name:"buyDetail",query:{shopId:t.bind_goods_id}}),void e.getDetail();e.groupDetail=t;for(var i=0;i<e.groupDetail.header_url.length;i++)e.groupDetail.header_url[i]=e.groupDetail.header_url[i].replace("http://","https://");if(e.groupDetail.desc.detail=e.groupDetail.desc.detail.replace(/http:\/\//g,"https://"),e.groupDetail.desc.qa=e.groupDetail.desc.qa.replace(/http:\/\//g,"https://"),e.groupDetail.share_desc.refImg&&1===e.groupDetail.share_desc.refImg.length){e.groupDetail.share_desc.refImg[0].url=e.groupDetail.share_desc.refImg[0].url.replace("http://","https://");var n=e;e.toDataURLBase64(e.groupDetail.share_desc.refImg[0].url,function(e){n.groupDetail.share_desc.refImg[0].url=e})}2===e.groupDetail.goods_type&&(localStorage.getItem("cc_token")&&Object(r.w)({goods_id:e.shopId}).then(function(t){t.out_trade_no&&e.$router.push({name:"success",query:{out_trade_no:t.out_trade_no}})}),window.location.href.indexOf("groupId")>-1?(e.groupId=e.$route.query.groupId,Object(r.j)(e.groupId).then(function(t){e.groupData=t}),e.onShare(0)):e.onShare(1))}))},getInviteResult:function(){var e=this,t=this.$route.query.shopId;Object(r.m)({},t).then(function(t){e.earnings=t.earnings,e.userNum=t.user_num})},getInviteList:function(){var e=this,t=this.$route.query.shopId;Object(r.l)({page:1,limit:3},t).then(function(t){e.inviteList=t.list,e.total=t.total})}}},A={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"activity"},[i("img",{staticClass:"headerImg",attrs:{src:e.header1}}),e._v(" "),i("img",{staticClass:"headerImg",attrs:{src:e.header2}}),e._v(" "),i("div",{staticClass:"inviteContainer",style:{backgroundImage:"url("+e.header3+")"}},[i("div",{staticClass:"invite-list"},[e._m(0),e._v(" "),i("div",{staticClass:"flex-center i-num red"},[i("span",[e._v(e._s(e.userNum)+"人")]),e._v(" "),i("span",[e._v(e._s(e.earnings/100)+"元")])])]),e._v(" "),0===e.userNum?i("img",{staticClass:"noData",attrs:{src:e.noData}}):e._e(),e._v(" "),0!=e.userNum?[i("img",{staticClass:"moreBtn",attrs:{src:e.moreResult},on:{click:e.goToInviteList}})]:e._e()],2),e._v(" "),i("img",{staticClass:"headerImg",attrs:{src:e.header4}}),e._v(" "),i("div",{staticClass:"invite-btn"},[i("img",{attrs:{src:e.inviteBtn},on:{click:e.goToInvite}})])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"flex-center i-title"},[t("span",[this._v("受邀购买")]),this._v(" "),t("span",[this._v("已获奖金")])])}]};var M=i("VU/8")(k,A,!1,function(e){i("IVww"),i("dfbj")},"data-v-d74b8642",null);t.default=M.exports}});
//# sourceMappingURL=3.a29a8284c46cf503777e.js.map
\ No newline at end of file
This diff is collapsed.
webpackJsonp([4],{"+2W0":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAAd9JREFUOBGVk00uREEUhZ9/EQZiYECMzCUSAwswZR92YDFC9wYQhPhbhAXQE1vwTztfpU67r9973elKvq5bt+45dV+910VRHmNawo54EodiWjjvmdyReBbUOq+wOrxJ4avoZk40R3Pi07BPbaO5TcdV1AmiaD6rPERT76OZEPZR+L9gY0q0hQVxPlMeYs7xsfJoS+acQqeTgo4WxYWwaNh8njVo8cALz/TDghPnBMar4koMM6WGWjRo8SgZ8wi8lHmxJFbEurgRTebsUUMtGrR4JGN+GIj7B3t1+Vhnfcz1Yt9xvIo17V6Lpm6dp4baxqvAnOuYETzWKC/vMmvQVr4KG3NHLeGO4vygPMSc47byaAcad2rE98ptZYht6Lmj3EBjHmdXvAmL7hRvio0MMTnvvyveE6WriK0T84G/iEexLejuQHyJ38yP5luxLBbEvuCK2Pdhvf82d4wpj8PJ/IuYybGHACGDT8y5b8Ufgq6ZPwW5LsKmgVEq0kyX0dhP6lzFIxq7Kxu6mDXGwMAU/OfgcGoAjzTqjLlPBgLGMGP2/Q4qxiTAXVHsjmxsEQfGjtmPNamOl8Dw7BfD2jkKEcbhOnLsG9d1LabAcZzT6VlIjcegmqRxQb/A61FnN1L8AQ0BxfTPbexRAAAAAElFTkSuQmCC"},"2Ihx":function(t,e,s){t.exports=s.p+"static/img/no.4e27c3e.png"},"3CuV":function(t,e,s){t.exports=s.p+"static/img/share_bg.bad35f5.jpg"},"3HcX":function(t,e){},FRDK:function(t,e,s){t.exports=s.p+"static/img/actBg1.f48d135.png"},JK9h:function(t,e,s){t.exports=s.p+"static/img/log.8c70e94.png"},UEMf:function(t,e,s){t.exports=s.p+"static/img/qr.f968b9d.png"},ZMqZ:function(t,e){},"f+ht":function(t,e,s){t.exports=s.p+"static/img/actBg2.b47e39b.png"},oSXS:function(t,e,s){t.exports=s.p+"static/img/actBg3.53dd5e6.png"},riDf:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=s("FRDK"),o=s.n(n),i=s("f+ht"),a=s.n(i),c=s("oSXS"),l=s.n(c),r=s("yniu"),u=s.n(r),d=s("+2W0"),g=s.n(d),h=s("JK9h"),p=s.n(h),m=s("UEMf"),_=s.n(m),f=s("3CuV"),v=s.n(f),b=s("2Ihx"),w=s.n(b),C=s("CCn6"),y=s("MJLE"),A=s.n(y),x=s("2Pnh"),L=s.n(x),E=s("Au9i"),R={name:"index",data:function(){return{starbg_1:o.a,share_img_url:v.a,log_url:p.a,no_list:!1,log_show:!1,share_show:!1,qr_show:!1,dataURL:null,no_url:w.a,qr_url:_.a,starbg_2:a.a,starbg_3:l.a,starbg_4:u.a,x_url:g.a,star_total:0,logList:[],shopId:null,share_URL:null}},methods:{initPage:function(){var t=this;Object(C.u)().then(function(e){t.shopId=e[0].value,t.share_URL="https://wechat.changchangenglish.com/#/buyDetail?shopId="+t.shopId+"&invite_code=CC-ZKHB-"+JSON.parse(localStorage.getItem("userDesc")).user_id,t.onShare(t.share_URL),t.toDataURLBase64(t.share_img_url,function(e){t.share_img_url=e})}),Object(C.B)().then(function(e){t.star_total=e.last_value})},closeLog:function(){window.removeEventListener("scroll",this.scrollFix),this.log_show=!1},onShare:function(t){this.enableShare({product_title:"赠您【1元领取398元英语启蒙课程特权】,限时福利,立即领取",desc:"学习另赠价值58元实物绘本,包邮送到家~",shareIcon:"https://cdn.singsingenglish.com/logo/logo.jpg",shareUrl:t})},showQr:function(){this.qr_show=!0,this.$sa.track("buttonClick",{tabTitle:"星星活动页",moduleTitle:"星星活动页",buttonType:"功能",buttonName:"小助手二维码"})},enableShare:function(t){Object(C.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:t.product_title,desc:t.desc,link:t.shareUrl,imgUrl:t.shareIcon||"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){console.log("分享成功")},cancel:function(){console.log("分享失败")}}),wx.onMenuShareAppMessage({title:t.product_title,desc:t.desc,link:t.shareUrl,imgUrl:t.shareIcon||"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){},cancel:function(){}})})})},qrcode:function(t){this.QRCodeB?this.QRCodeB.makeCode(t):this.QRCodeB=new A.a("qrcode",{width:140,height:140,text:t,image:""})},refshow:function(){var t=this;this.$sa.track("buttonClick",{tabTitle:"星星活动页",moduleTitle:"星星活动页",buttonType:"功能",buttonName:"生成海报"}),this.share_show=!0,this.dataURL||(E.Indicator.open(),Object(C.v)({url:this.share_URL}).then(function(e){t.qrcode(e.url),t.$nextTick(function(){document.getElementById("capture").getClientRects()[0].width;document.getElementById("capture").style.width=2*document.getElementById("capture").getClientRects()[0].width+"px",document.getElementById("capture").style.height=2*document.getElementById("capture").getClientRects()[0].height+"px",setTimeout(function(){L()(document.getElementById("capture"),{async:!0,scale:2,letterRendering:!0}).then(function(e){var s=e.toDataURL("image/jpg");t.dataURL=s,document.getElementById("capture").style.display="none",E.Indicator.close()}).catch(function(t){alert(t),console.log(),document.getElementById("capture").style.display="none",E.Indicator.close()})},500)})}))},getOffsetRect:function(t){var e=t.getBoundingClientRect(),s=document.body,n=document.documentElement,o=window.pageYOffset||n.scrollTop||s.scrollTop,i=window.pageXOffset||n.scrollLeft||s.scrollLeft,a=n.clientTop||s.clientTop,c=n.clientLeft||s.clientLeft,l=e.top+o-a,r=e.left+i-c;return{top:Math.round(l),left:Math.round(r)}},toDataURLBase64:function(t,e){var s=new XMLHttpRequest;s.onload=function(){var t=new FileReader;t.onloadend=function(){e(t.result)},t.readAsDataURL(s.response)},s.responseType="blob",s.open("GET",t,!0),s.send()},scrollFix:function(t){window.scrollTo(0,t)},showLog:function(){var t=this;this.$sa.track("buttonClick",{tabTitle:"星星活动页",moduleTitle:"星星活动页",buttonType:"功能",buttonName:"查看积分"}),Object(C.C)({limit:1e3}).then(function(e){!e.list||e.list.length<1?t.no_list=!0:t.logList=e.list;document.documentElement.scrollTop||document.body.scrollTop;window.addEventListener("scroll",t.scrollFix),t.log_show=!0})}},filters:{substrTime:function(t){return t.substr(0,10).replace(/-/g,".")}},mounted:function(){var t=this;this.initPage(),window.onscroll=function(){(document.documentElement.scrollTop||document.body.scrollTop)>300?(t.$refs.btn_block.style.opacity=1,t.$refs.btn_block.style.display="block"):(t.$refs.btn_block.style.opacity=0,t.$refs.btn_block.style.display="none")}}},T={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"star-activity-page"},[s("div",[s("img",{staticClass:"bg",attrs:{src:t.starbg_1}}),t._v(" "),s("div",{staticClass:"star-total",on:{click:t.showLog}},[t._v("\n 我的星星 "),s("img",{staticClass:"x-img",attrs:{src:t.x_url}}),t._v(t._s(t.star_total)+"\n ")]),t._v(" "),s("img",{staticClass:"bg",attrs:{src:t.starbg_2}}),t._v(" "),s("img",{staticClass:"bg",attrs:{src:t.starbg_3},on:{click:t.showQr}}),t._v(" "),s("img",{staticClass:"bg",attrs:{src:t.starbg_4}})]),t._v(" "),s("div",{ref:"btn_block",staticClass:"btn-block"},[s("div",{staticClass:"btn",on:{click:t.refshow}},[t._v("\n 生成赠课海报\n ")])]),t._v(" "),s("mt-popup",{staticStyle:{background:"transparent"},model:{value:t.qr_show,callback:function(e){t.qr_show=e},expression:"qr_show"}},[s("div",{staticClass:"qr-img"},[s("img",{staticClass:"qr-img",attrs:{src:t.qr_url}}),t._v(" "),s("div",{staticClass:"qr-close",on:{click:function(e){t.qr_show=!1}}})])]),t._v(" "),s("mt-popup",{staticStyle:{background:"transparent"},attrs:{closeOnClickModal:!1},model:{value:t.log_show,callback:function(e){t.log_show=e},expression:"log_show"}},[s("div",{staticClass:"log-img",style:{backgroundImage:"url('"+t.log_url+"')"}},[s("div",{staticClass:"content"},[t.no_list?s("div",{staticClass:"no-list"},[s("img",{attrs:{src:t.no_url}}),t._v("\n —— 暂无记录 ——\n ")]):t._e(),t._v(" "),t._l(t.logList,function(e){return s("div",{staticClass:"list"},[s("span",{staticClass:"time-text"},[t._v("\n "+t._s(t._f("substrTime")(e.created_at))+"\n ")]),t._v(" "),s("span",{staticClass:"desc-text"},[t._v("\n "+t._s(e.desc)+"\n ")]),t._v(" "),1===e.is_add?s("span",{staticClass:"star-num",staticStyle:{color:"#7ED321"}},[t._v("\n 星星+"+t._s(e.value)+"\n ")]):t._e(),t._v(" "),1!==e.is_add?s("span",{staticClass:"star-num",staticStyle:{color:"#D0021B"}},[t._v("\n 星星-"+t._s(e.value)+"\n ")]):t._e()])})],2),t._v(" "),s("div",{staticClass:"btn",on:{click:t.closeLog}},[t._v("\n 知道了\n ")])])]),t._v(" "),t.share_show?s("div",{staticClass:"share-show-block",on:{click:function(e){t.share_show=!1}}},[s("div",{staticClass:"share-show-content"},[s("img",{staticClass:"cvs-img",attrs:{src:t.dataURL,id:"cvs-img"}}),t._v(" "),s("div",{ref:"imageWrapper",staticClass:"share_img",style:{backgroundImage:"url('"+t.share_img_url+"')"},attrs:{id:"capture"}},[s("div",{staticClass:"qrcode",attrs:{id:"qrcode"}})]),t._v(" "),t._m(0)])]):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tips"},[e("b",[this._v("长按保存海报 或发送给好友")]),this._v(" "),e("br"),this._v("\n 越多朋友报名,您可得越多星星\n ")])}]};var k=s("VU/8")(R,T,!1,function(t){s("3HcX"),s("ZMqZ")},"data-v-7fcd027a",null);e.default=k.exports},yniu:function(t,e,s){t.exports=s.p+"static/img/actBg4.74aadcc.png"}});
//# sourceMappingURL=4.7a7724475dae404da2ee.js.map
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
src/assets/activity/more.png

4.62 KB | W: | H:

src/assets/activity/more.png

10.6 KB | W: | H:

src/assets/activity/more.png
src/assets/activity/more.png
src/assets/activity/more.png
src/assets/activity/more.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/activity/no_data.png

106 KB | W: | H:

src/assets/activity/no_data.png

40.4 KB | W: | H:

src/assets/activity/no_data.png
src/assets/activity/no_data.png
src/assets/activity/no_data.png
src/assets/activity/no_data.png
  • 2-up
  • Swipe
  • Onion skin
This diff is collapsed.
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
生成赠课海报 生成赠课海报
</div> </div>
</div> </div>
<mt-popup v-model="qr_show" style="background: transparent"> <mt-popup v-model="qr_show" style="background: transparent">
<div class="qr-img"> <div class="qr-img">
<img :src="qr_url" class="qr-img" /> <img :src="qr_url" class="qr-img" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment