Commit c21d8712 authored by wangwei's avatar wangwei

星星推广

parent 808d8a8c
<!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.92f778daa836fdefa7db.js></script><script type=text/javascript src=static/js/vendor.0ea40f4e123674fe71dc.js></script><script type=text/javascript src=static/js/app.e83bab7b7b6784306764.js></script></body></html>
\ 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></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.26e874c36687af9bfa0b.js></script><script type=text/javascript src=static/js/vendor.0ea40f4e123674fe71dc.js></script><script type=text/javascript src=static/js/app.cf0a0018b4d0bea22d86.js></script></body></html>
\ No newline at end of file
dev/static/img/no.4e27c3e.png

76.8 KB

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.
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.
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,f,o){for(var a,d,b,i=0,u=[];i<r.length;i++)d=r[i],t[d]&&u.push(t[d][0]),t[d]=0;for(a in f)Object.prototype.hasOwnProperty.call(f,a)&&(e[a]=f[a]);for(n&&n(r,f,o);u.length;)u.shift()();if(o)for(i=0;i<o.length;i++)b=c(c.s=o[i]);return b};var r={},t={25:0};function c(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,c),t.l=!0,t.exports}c.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,c){n=t[e]=[r,c]});n[2]=r;var f=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,c.nc&&o.setAttribute("nonce",c.nc),o.src=c.p+"static/js/"+e+"."+{0:"dd7a4a4d6f66f918b161",1:"da3e06916afac8c89525",2:"dc702f0c67e8da0334cd",3:"df882a2034deca64b145",4:"b3f50c3dd18a8ff96dcf",5:"c62d86e64759356ff1ba",6:"04d38e5348254f618428",7:"66bfd4a1cdeec8c8e9d0",8:"875eecd562d66bd65b8d",9:"45bbb64a997890335ce6",10:"fa60de166cbca7e85d05",11:"60f4b116867854040185",12:"75a80f4f133f79b0f941",13:"4df98b2dfc616f8b1e94",14:"cb4bd739b5365e3122f0",15:"2442636bb47d64ef25a7",16:"e3468245e2980686acf1",17:"be8b52ae5c775dab0208",18:"10f814fdfd8134e1a911",19:"73f6c511d32bbf66bf73",20:"27d0609e44cb6c1f2166",21:"55b6f35d1568d6f6e229",22:"cc052ebf236f74a5edfc"}[e]+".js";var a=setTimeout(d,12e4);function d(){o.onerror=o.onload=null,clearTimeout(a);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return o.onerror=o.onload=d,f.appendChild(o),r},c.m=e,c.c=r,c.d=function(e,n,r){c.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},c.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(n,"a",n),n},c.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},c.p="",c.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.26e874c36687af9bfa0b.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap b6b132ba8f99711d247e"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","25","exports","module","l","e","installedChunkData","Promise","resolve","promise","reject","head","document","getElementsByTagName","script","createElement","type","charset","async","timeout","nc","setAttribute","src","p","0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","setTimeout","onScriptComplete","onerror","onload","clearTimeout","chunk","Error","undefined","appendChild","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","oe","err","console","error"],"mappings":"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","file":"static/js/manifest.26e874c36687af9bfa0b.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t25: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData === 0) {\n \t\t\treturn new Promise(function(resolve) { resolve(); });\n \t\t}\n\n \t\t// a Promise means \"currently loading\".\n \t\tif(installedChunkData) {\n \t\t\treturn installedChunkData[2];\n \t\t}\n\n \t\t// setup Promise in chunk cache\n \t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t});\n \t\tinstalledChunkData[2] = promise;\n\n \t\t// start chunk loading\n \t\tvar head = document.getElementsByTagName('head')[0];\n \t\tvar script = document.createElement('script');\n \t\tscript.type = \"text/javascript\";\n \t\tscript.charset = 'utf-8';\n \t\tscript.async = true;\n \t\tscript.timeout = 120000;\n\n \t\tif (__webpack_require__.nc) {\n \t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t}\n \t\tscript.src = __webpack_require__.p + \"static/js/\" + chunkId + \".\" + {\"0\":\"dd7a4a4d6f66f918b161\",\"1\":\"da3e06916afac8c89525\",\"2\":\"dc702f0c67e8da0334cd\",\"3\":\"df882a2034deca64b145\",\"4\":\"b3f50c3dd18a8ff96dcf\",\"5\":\"c62d86e64759356ff1ba\",\"6\":\"04d38e5348254f618428\",\"7\":\"66bfd4a1cdeec8c8e9d0\",\"8\":\"875eecd562d66bd65b8d\",\"9\":\"45bbb64a997890335ce6\",\"10\":\"fa60de166cbca7e85d05\",\"11\":\"60f4b116867854040185\",\"12\":\"75a80f4f133f79b0f941\",\"13\":\"4df98b2dfc616f8b1e94\",\"14\":\"cb4bd739b5365e3122f0\",\"15\":\"2442636bb47d64ef25a7\",\"16\":\"e3468245e2980686acf1\",\"17\":\"be8b52ae5c775dab0208\",\"18\":\"10f814fdfd8134e1a911\",\"19\":\"73f6c511d32bbf66bf73\",\"20\":\"27d0609e44cb6c1f2166\",\"21\":\"55b6f35d1568d6f6e229\",\"22\":\"cc052ebf236f74a5edfc\"}[chunkId] + \".js\";\n \t\tvar timeout = setTimeout(onScriptComplete, 120000);\n \t\tscript.onerror = script.onload = onScriptComplete;\n \t\tfunction onScriptComplete() {\n \t\t\t// avoid mem leaks in IE.\n \t\t\tscript.onerror = script.onload = null;\n \t\t\tclearTimeout(timeout);\n \t\t\tvar chunk = installedChunks[chunkId];\n \t\t\tif(chunk !== 0) {\n \t\t\t\tif(chunk) {\n \t\t\t\t\tchunk[1](new Error('Loading chunk ' + chunkId + ' failed.'));\n \t\t\t\t}\n \t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t}\n \t\t};\n \t\thead.appendChild(script);\n\n \t\treturn promise;\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap b6b132ba8f99711d247e"],"sourceRoot":""}
\ 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>*{
-webkit-overflow-scrolling:touch;
}</style><link href=https://static-cdn.changchangenglish.com/new-sing/static/css/app.3d27f76ceabd9db336ef7345a1fa166e.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.3d33ba7190bfdf25f46d.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/vendor.636c56193251aff45e55.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/app.e1c04223bf4e38de5d0a.js></script></body></html>
\ No newline at end of file
}</style><link href=https://static-cdn.changchangenglish.com/new-sing/static/css/app.0a7ac116a6abab71fa902072b6a4d961.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.f9bb354caea514672115.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/vendor.636c56193251aff45e55.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/app.f0804d679c0caf161806.js></script></body></html>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
dist/static/img/no.4e27c3e.png

76.8 KB

This source diff could not be displayed because it is too large. You can view the blob instead.
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"},"+3Lk":function(t,e){},"2Ihx":function(t,e,s){t.exports=s.p+"static/img/no.4e27c3e.png"},"4L2i":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"},"f+ht":function(t,e,s){t.exports=s.p+"static/img/actBg2.b47e39b.png"},lYn3:function(t,e,s){t.exports=s.p+"static/img/share_bg.220036b.png"},oSXS:function(t,e,s){t.exports=s.p+"static/img/actBg3.ac3af12.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("lYn3"),v=s.n(f),b=s("2Ihx"),w=s.n(b),A=s("CCn6"),y=s("MJLE"),x=s.n(y),C=s("2Pnh"),L=s.n(C),E=s("Au9i"),R={name:"index",data:function(){return{starbg_1:o.a,share_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(A.t)().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)}),Object(A.A)().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})},enableShare:function(t){Object(A.E)({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 x.a("qrcode",{width:140,height:140,text:t,image:""})},refshow:function(){var t=this;this.share_show=!0,this.dataURL||(E.Indicator.open(),Object(A.u)({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;Object(A.B)({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")}}},k={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:function(e){t.qr_show=!0}}}),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("img",{staticClass:"qr-img",attrs:{src:t.qr_url},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_url+"')"},attrs:{id:"capture"}},[s("div",{staticClass:"qrcode",attrs:{id:"qrcode"}})])])]):t._e()],1)},staticRenderFns:[]};var B=s("VU/8")(R,k,!1,function(t){s("+3Lk"),s("4L2i")},"data-v-06eabdce",null);e.default=B.exports},yniu:function(t,e,s){t.exports=s.p+"static/img/actBg4.a3e9193.png"}});
//# sourceMappingURL=3.14bb3b27a2c948b166b1.js.map
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(t,a,o){for(var f,b,d,i=0,u=[];i<t.length;i++)b=t[i],r[b]&&u.push(r[b][0]),r[b]=0;for(f in a)Object.prototype.hasOwnProperty.call(a,f)&&(e[f]=a[f]);for(n&&n(t,a,o);u.length;)u.shift()();if(o)for(i=0;i<o.length;i++)d=c(c.s=o[i]);return d};var t={},r={25:0};function c(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,c),r.l=!0,r.exports}c.e=function(e){var n=r[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var t=new Promise(function(t,c){n=r[e]=[t,c]});n[2]=t;var a=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,c.nc&&o.setAttribute("nonce",c.nc),o.src=c.p+"static/js/"+e+"."+{0:"f8138779f472b8734556",1:"90070079fcb29fe331bb",2:"3dd397ee08bb80aaadd9",3:"14bb3b27a2c948b166b1",4:"0d6540278255bbb4a84b",5:"ee4aac2c7da363d18609",6:"7426c9c5af23e11b62f2",7:"f0d9c2a990a54dbfdfbe",8:"5c2a88d9d10d532dcb8c",9:"5e2f30be7de895eee65e",10:"b02efe8173b60e971f30",11:"4e61754fe8b43a301e32",12:"056bf2465a886912a9fc",13:"d3b93d52e1fdf01bb989",14:"5c4d6c85fb1840e0c151",15:"b1fd54f107ba9b3a336b",16:"1b079a9c88fe84670f2a",17:"85efd9e39a8ef43ab995",18:"67937db20e622d6a5d9b",19:"9795770bcdd2cb38b12e",20:"bcaff06b2861d3f04d12",21:"d19ed768c263cfc634f4",22:"10578970eb1751ffa086"}[e]+".js";var f=setTimeout(b,12e4);function b(){o.onerror=o.onload=null,clearTimeout(f);var n=r[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),r[e]=void 0)}return o.onerror=o.onload=b,a.appendChild(o),t},c.m=e,c.c=t,c.d=function(e,n,t){c.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:t})},c.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(n,"a",n),n},c.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},c.p="https://static-cdn.changchangenglish.com/new-sing/",c.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.f9bb354caea514672115.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap 780469deb7cddb4bfe37"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","25","exports","module","l","e","installedChunkData","Promise","resolve","promise","reject","head","document","getElementsByTagName","script","createElement","type","charset","async","timeout","nc","setAttribute","src","p","0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","setTimeout","onScriptComplete","onerror","onload","clearTimeout","chunk","Error","undefined","appendChild","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","oe","err","console","error"],"mappings":"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","file":"static/js/manifest.f9bb354caea514672115.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t25: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData === 0) {\n \t\t\treturn new Promise(function(resolve) { resolve(); });\n \t\t}\n\n \t\t// a Promise means \"currently loading\".\n \t\tif(installedChunkData) {\n \t\t\treturn installedChunkData[2];\n \t\t}\n\n \t\t// setup Promise in chunk cache\n \t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t});\n \t\tinstalledChunkData[2] = promise;\n\n \t\t// start chunk loading\n \t\tvar head = document.getElementsByTagName('head')[0];\n \t\tvar script = document.createElement('script');\n \t\tscript.type = \"text/javascript\";\n \t\tscript.charset = 'utf-8';\n \t\tscript.async = true;\n \t\tscript.timeout = 120000;\n\n \t\tif (__webpack_require__.nc) {\n \t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t}\n \t\tscript.src = __webpack_require__.p + \"static/js/\" + chunkId + \".\" + {\"0\":\"f8138779f472b8734556\",\"1\":\"90070079fcb29fe331bb\",\"2\":\"3dd397ee08bb80aaadd9\",\"3\":\"14bb3b27a2c948b166b1\",\"4\":\"0d6540278255bbb4a84b\",\"5\":\"ee4aac2c7da363d18609\",\"6\":\"7426c9c5af23e11b62f2\",\"7\":\"f0d9c2a990a54dbfdfbe\",\"8\":\"5c2a88d9d10d532dcb8c\",\"9\":\"5e2f30be7de895eee65e\",\"10\":\"b02efe8173b60e971f30\",\"11\":\"4e61754fe8b43a301e32\",\"12\":\"056bf2465a886912a9fc\",\"13\":\"d3b93d52e1fdf01bb989\",\"14\":\"5c4d6c85fb1840e0c151\",\"15\":\"b1fd54f107ba9b3a336b\",\"16\":\"1b079a9c88fe84670f2a\",\"17\":\"85efd9e39a8ef43ab995\",\"18\":\"67937db20e622d6a5d9b\",\"19\":\"9795770bcdd2cb38b12e\",\"20\":\"bcaff06b2861d3f04d12\",\"21\":\"d19ed768c263cfc634f4\",\"22\":\"10578970eb1751ffa086\"}[chunkId] + \".js\";\n \t\tvar timeout = setTimeout(onScriptComplete, 120000);\n \t\tscript.onerror = script.onload = onScriptComplete;\n \t\tfunction onScriptComplete() {\n \t\t\t// avoid mem leaks in IE.\n \t\t\tscript.onerror = script.onload = null;\n \t\t\tclearTimeout(timeout);\n \t\t\tvar chunk = installedChunks[chunkId];\n \t\t\tif(chunk !== 0) {\n \t\t\t\tif(chunk) {\n \t\t\t\t\tchunk[1](new Error('Loading chunk ' + chunkId + ' failed.'));\n \t\t\t\t}\n \t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t}\n \t\t};\n \t\thead.appendChild(script);\n\n \t\treturn promise;\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"https://static-cdn.changchangenglish.com/new-sing/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 780469deb7cddb4bfe37"],"sourceRoot":""}
\ No newline at end of file
src/assets/starActivity/no.png

76.8 KB

......@@ -139,11 +139,33 @@
link: option.shareUrl, // 分享链接
imgUrl: option.shareIcon || 'https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png', // 分享图标
success: function() {
console.log('分享成功');
that.$sa.track('watchClick',{
dayModule:JSON.parse(localStorage.getItem('lessonDetail')).domTitle.slice(0,9),
weekName:JSON.parse(localStorage.getItem('lessonDetail')).domTitle.slice(10,JSON.parse(localStorage.getItem('lessonDetail')).domTitle.length),
elementName:JSON.parse(localStorage.getItem('lessonDetail')).domTitle.slice(0,9) + '-'+ JSON.parse(localStorage.getItem('lessonDetail')).domTitle.slice(10,JSON.parse(localStorage.getItem('lessonDetail')).domTitle.length),
themeID:JSON.parse(localStorage.getItem('lessonDetail')).themeID,
themeName:JSON.parse(localStorage.getItem('lessonDetail')).themeName,
goodsID:JSON.parse(localStorage.getItem('lessonDetail')).goodsID,
classID:JSON.parse(localStorage.getItem('lessonDetail')).classID,
buttonName:'完成分享',
partName:that.contentData.partName,
elementID:that.$route.query.elementId.toString(),
});
that.$emit('backList')
},
cancel: function() {
console.log('分享失败');
that.$sa.track('watchClick',{
dayModule:JSON.parse(localStorage.getItem('lessonDetail')).domTitle.slice(0,9),
weekName:JSON.parse(localStorage.getItem('lessonDetail')).domTitle.slice(10,JSON.parse(localStorage.getItem('lessonDetail')).domTitle.length),
elementName:JSON.parse(localStorage.getItem('lessonDetail')).domTitle.slice(0,9) + '-'+ JSON.parse(localStorage.getItem('lessonDetail')).domTitle.slice(10,JSON.parse(localStorage.getItem('lessonDetail')).domTitle.length),
themeID:JSON.parse(localStorage.getItem('lessonDetail')).themeID,
themeName:JSON.parse(localStorage.getItem('lessonDetail')).themeName,
goodsID:JSON.parse(localStorage.getItem('lessonDetail')).goodsID,
classID:JSON.parse(localStorage.getItem('lessonDetail')).classID,
buttonName:'取消分享',
partName:that.contentData.partName,
elementID:that.$route.query.elementId.toString(),
});
that.$emit('backList')
}
});
......
......@@ -18,9 +18,13 @@
<img :src="qr_url" class="qr-img" @click="qr_show=false"/>
</mt-popup>
<mt-popup v-model="log_show" style="background: transparent">
<mt-popup v-model="log_show" style="background: transparent" :closeOnClickModal="false">
<div :style="{backgroundImage:`url('${log_url}')`}" class="log-img">
<div class="content">
<div class="no-list" v-if="no_list">
<img :src="no_url"/>
—— 暂无记录 ——
</div>
<div class="list" v-for="data in logList">
<span class="time-text">
{{data.created_at | substrTime}}
......@@ -36,7 +40,7 @@
</span>
</div>
</div>
<div class="btn" @click="log_show = false">
<div class="btn" @click="closeLog">
知道了
</div>
</div>
......@@ -63,10 +67,11 @@
import log_url from '../../assets/starActivity/log.png'
import qr_url from '../../assets/starActivity/qr.png'
import share_url from '../../assets/starActivity/share_bg.png'
import {getUserIntegralApi,getUserIntegralListApi,getShortApi,getShareGoodsApi} from "../../service/api";
import no_url from '../../assets/starActivity/no.png'
import {getUserIntegralApi,getUserIntegralListApi,getShortApi,getShareGoodsApi,getwechatParam} from "../../service/api";
import QRCode from 'qrcodejs2'
import html2canvas from 'html2canvas'
import { Indicator } from 'mint-ui'
export default {
name: "index",
data(){
......@@ -74,10 +79,12 @@
starbg_1:starbg_1,
share_url:share_url,
log_url:log_url,
no_list:false,
log_show:false,
share_show:false,
qr_show:false,
dataURL:null,
no_url:no_url,
qr_url:qr_url,
starbg_2:starbg_2,
starbg_3:starbg_3,
......@@ -85,25 +92,79 @@
x_url:x_url,
star_total:0,
logList:[],
shopId:null
shopId:null,
share_URL:null
}
},
methods:{
initPage(){
getShareGoodsApi().then(res=>{
this.shopId = res[0].value;
})
this.share_URL = process.env.API_URL+'#/buyDetail?shopId='+ this.shopId + '&invite_code=CC-ZKHB-'+JSON.parse(localStorage.getItem('userDesc')).user_id;
this.onShare(this.share_URL)
});
getUserIntegralApi().then(res=>{
this.star_total = res.last_value
})
},
closeLog(){
window.removeEventListener("scroll",this.scrollFix);
this.log_show = false
},
onShare(URL) {
this.enableShare({
product_title: `赠您【1元领取398元英语启蒙课程特权】,限时福利,立即领取`, // 分享标题
desc: `学习另赠价值58元实物绘本,包邮送到家~`,//
shareIcon:'https://cdn.singsingenglish.com/logo/logo.jpg',
shareUrl:URL
})
},
enableShare: function(option) {
getwechatParam({
api_list: 'onMenuShareAppMessage,onMenuShareTimeline',
url:window.location.href.split('#')[0]
}).then(wechatRes => {
wx.config({
debug: false,
appId: wechatRes.appId,
timestamp: parseInt(wechatRes.timestamp),
nonceStr: wechatRes.nonceStr,
signature: wechatRes.signature,
jsApiList: wechatRes.jsApiList
});
wx.ready(function() {
wx.onMenuShareTimeline({
title: option.product_title, // 分享标题
desc: option.desc,// 分享描述
link: option.shareUrl, // 分享链接
imgUrl: option.shareIcon || 'https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png', // 分享图标
success: function() {
console.log('分享成功');
},
cancel: function() {
console.log('分享失败');
}
});
wx.onMenuShareAppMessage({
title: option.product_title, // 分享标题
desc: option.desc,// 分享描述
link: option.shareUrl, // 分享链接
imgUrl: option.shareIcon || 'https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png', // 分享图标
success: function() {
},
cancel: function() {
}
});
})
})
},
qrcode(data){
if(this.QRCodeB){
this.QRCodeB.makeCode(data)
}else{
this.QRCodeB = new QRCode('qrcode', {
width: 70,
height: 70, // 高度
width: 140,
height: 140, // 高度
text: data, // 二维码内容
image: ''
});
......@@ -112,32 +173,31 @@
refshow(){
this.share_show = true;
if(this.dataURL){}else{
let URL = process.env.API_URL+'#/buyDetail?shopId='+ this.shopId + '&invite_code=CC-ZKHB-'+JSON.parse(localStorage.getItem('userDesc')).user_id;
getShortApi({url:URL}).then(res=>{
Indicator.open();
getShortApi({url:this.share_URL}).then(res=>{
this.qrcode(res.url);
this.$nextTick(()=>{
let {
width,
} = document.getElementById('capture').getClientRects()[0];
document.getElementById('capture').style.width = width + 'px';
let {
height1,
width1
} = document.getElementById('capture').getClientRects()[0];
document.getElementById('capture').style.width = document.getElementById('capture').getClientRects()[0].width*2 + 'px';
document.getElementById('capture').style.height = document.getElementById('capture').getClientRects()[0].height*2 + 'px';
setTimeout(()=>{
html2canvas(document.getElementById('capture'),{
async: true,
timeout: 500,
scrollX:1,
scale: 4,
width: width1,
height: height1,
scale: 2,
letterRendering: true,
}).then((canvas) => {
let dataURL = canvas.toDataURL("image/jpg");
this.dataURL = dataURL;
}).catch(res=>{alert(res);console.log()});},500)
document.getElementById('capture').style.display="none"
Indicator.close();
}).catch(res=>{
alert(res);console.log();
document.getElementById('capture').style.display="none"
Indicator.close();
});
},500)
})
})
}
......@@ -172,9 +232,18 @@
xhttp.open('GET', src, true);
xhttp.send()
},
scrollFix(data){
window.scrollTo(0, data)
},
showLog(){
getUserIntegralListApi({limit:1000}).then(res=>{
this.logList = res.list;
if(!res.list || res.list.length <1 ){
this.no_list = true
}else{
this.logList = res.list;
}
let t =document.documentElement.scrollTop||document.body.scrollTop;
window.addEventListener("scroll",this.scrollFix);
this.log_show = true;
})
}
......@@ -185,7 +254,7 @@
}
},
mounted(){
this.initPage()
this.initPage();
window.onscroll= ()=>{
//变量t是滚动条滚动时,距离顶部的距离
let t = document.documentElement.scrollTop||document.body.scrollTop;
......@@ -317,12 +386,12 @@
background-size: 100% 100%;
position: relative;
.qrcode{
width: 80*@toVw;
height: 80*@toVw;
width: 160*@toVw;
height: 160*@toVw;
position: absolute;
bottom: 17*@toVw;
bottom: 34*@toVw;
left: 50%;
margin-left: -41*@toVw;
margin-left: -82*@toVw;
}
}
.cvs-img{
......@@ -349,6 +418,15 @@
margin-top: -232.5*@toVw;
}
}
.no-list{
text-align: center;
color: #aaaaaa;
img{
display: block;
margin-bottom: 10*@toVw;
width: 150*@toVw;
}
}
</style>
<style>
.qrcode 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