Commit 229cb6e8 authored by wangwei's avatar wangwei

购买流程优化

parent f9cb5c4b
<!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>.mint-toast{
z-index: 10001 !important;
}</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.99e370eee5de978b6ef9.js></script><script type=text/javascript src=static/js/vendor.f7071ab144d47917b1ae.js></script><script type=text/javascript src=static/js/app.b6e4936bcb8f542ee585.js></script></body></html>
\ No newline at end of file
}</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.4635b201b8312816f340.js></script><script type=text/javascript src=static/js/vendor.f7071ab144d47917b1ae.js></script><script type=text/javascript src=static/js/app.b6e4936bcb8f542ee585.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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.
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,a,o){for(var d,f,b,i=0,u=[];i<r.length;i++)f=r[i],c[f]&&u.push(c[f][0]),c[f]=0;for(d in a)Object.prototype.hasOwnProperty.call(a,d)&&(e[d]=a[d]);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={27: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:"b2eb1ec9d8299221df56",2:"fa22829657cbd48b57a2",3:"8467dbe01952d4a92d84",4:"a2682c6e31a37fe605de",5:"a37b9ee5517eca783c3e",6:"d0a37c7d8cb37b5a174b",7:"e425c40548ba35a8626a",8:"9e56c8f55d448d37cab8",9:"44c210d2092c3697c18d",10:"b8833bb1c5b42c24bf88",11:"d1805b183f4d4f3442ae",12:"b11997c15c7db06080fa",13:"6d70586cdd12c8eeaed6",14:"1148391e7d226d6066c6",15:"0ba19a6db1bf129f5208",16:"51999ddf6c7a6d54de89",17:"df3e2da1a421c147caa2",18:"01e443c19e4b3a3b7a9e",19:"dc2614b3ca5a489beffa",20:"dcf6fb4d43664f468070",21:"611f6b0e632e903d111b",22:"fd1d479796f391b122b0",23:"5339ec0eda272fc1180d",24:"63c6299b0fb80ca9398d"}[e]+".js";var d=setTimeout(f,12e4);function f(){o.onerror=o.onload=null,clearTimeout(d);var n=c[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}return o.onerror=o.onload=f,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.99e370eee5de978b6ef9.js.map
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,o){for(var d,f,b,i=0,u=[];i<r.length;i++)f=r[i],a[f]&&u.push(a[f][0]),a[f]=0;for(d in c)Object.prototype.hasOwnProperty.call(c,d)&&(e[d]=c[d]);for(n&&n(r,c,o);u.length;)u.shift()();if(o)for(i=0;i<o.length;i++)b=t(t.s=o[i]);return b};var r={},a={27:0};function t(n){if(r[n])return r[n].exports;var a=r[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.l=!0,a.exports}t.e=function(e){var n=a[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,t){n=a[e]=[r,t]});n[2]=r;var c=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:"b2eb1ec9d8299221df56",2:"fa22829657cbd48b57a2",3:"8467dbe01952d4a92d84",4:"a2682c6e31a37fe605de",5:"a37b9ee5517eca783c3e",6:"d0a37c7d8cb37b5a174b",7:"cab5e315a850b9939494",8:"e375fb484f404bae0da6",9:"44c210d2092c3697c18d",10:"38c11e82ed4bb352a0ac",11:"d1805b183f4d4f3442ae",12:"b11997c15c7db06080fa",13:"6d70586cdd12c8eeaed6",14:"1148391e7d226d6066c6",15:"0ba19a6db1bf129f5208",16:"51999ddf6c7a6d54de89",17:"df3e2da1a421c147caa2",18:"01e443c19e4b3a3b7a9e",19:"dc2614b3ca5a489beffa",20:"dcf6fb4d43664f468070",21:"611f6b0e632e903d111b",22:"fd1d479796f391b122b0",23:"5339ec0eda272fc1180d",24:"63c6299b0fb80ca9398d"}[e]+".js";var d=setTimeout(f,12e4);function f(){o.onerror=o.onload=null,clearTimeout(d);var n=a[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return o.onerror=o.onload=f,c.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.4635b201b8312816f340.js.map
\ No newline at end of file
......@@ -3,4 +3,4 @@
}
.mint-toast{
z-index: 10001 !important;
}</style><link href=https://static-cdn.changchangenglish.com/new-sing/static/css/app.92fa4d4990ce00a6beb181871a49e6ea.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.4d19fb5f2cd9fa1c6f08.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/vendor.5aef421a70d4d5e6a4f6.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/app.c6798071cd0651e4d3d1.js></script></body></html>
\ No newline at end of file
}</style><link href=https://static-cdn.changchangenglish.com/new-sing/static/css/app.ee8dcc630bdaf6ecabc4b96a1a631ef1.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.4be178cc95ad0be728d2.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/vendor.5aef421a70d4d5e6a4f6.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/app.c6798071cd0651e4d3d1.js></script></body></html>
\ 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.
This diff is collapsed.
This diff is collapsed.
webpackJsonp([8],{"54Ry":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i("5ypk"),s=i.n(o),a=i("LyMh"),n=i.n(a),l=i("CCn6"),c={name:"shareGoods",components:{loginPage:i("WIsT").a},data:function(){return{shareGoodsBg:s.a,title_share_goods:n.a,userDetail:null,bindMobile:{show:!1,mobile:"",img_code:"",verify_code:""},shopId:null,goodsDetail:null,lastTime:{day:3,hour:0,min:0,second:0}}},methods:{lastTimeOut:function(){0===this.lastTime.second?(this.lastTime.second=59,0===this.lastTime.min?(this.lastTime.min=59,0===this.lastTime.hour?(this.lastTime.hour=23,0===this.lastTime.day||this.lastTime.day--):this.lastTime.hour--):this.lastTime.min--):this.lastTime.second--},initPage:function(){var e=this;this.$sa.track("ViewInvitation",{salesID:this.$route.query.userID}),Object(l.s)(this.$route.query.userID).then(function(t){t.user_info.avatar=t.user_info.avatar.replace("http://","https://"),e.userDetail=t}),Object(l.u)().then(function(t){e.shopId=t[0].value,Object(l.h)(e.shopId).then(function(t){t.desc=JSON.parse(t.desc),t.goods_desc=JSON.parse(t.goods_desc),e.goodsDetail=t})})},goToBuyPage:function(){window.location.href="https://wechat.changchangenglish.com/#/buy?shopId="+this.shopId+"&invite_code=CC-UDK-"+this.$route.query.userID},toBuy:function(e){1===e?this.$sa.track("buttonClick",{tabTitle:"打卡商品页",moduleTitle:"功能按钮",buttonType:"购买",buttonName:"马上报名1"}):this.$sa.track("buttonClick",{tabTitle:"打卡商品页",moduleTitle:"功能按钮",buttonType:"购买",buttonName:"马上报名2"}),JSON.parse(localStorage.getItem("userDesc")).mobile&&""!==JSON.parse(localStorage.getItem("userDesc")).mobile?this.goToBuyPage():this.bindMobile.show=!0}},mounted:function(){var e=this;this.initPage(),setInterval(function(){e.lastTimeOut()},1e3),window.onscroll=function(){var t=document.documentElement.scrollTop||document.body.scrollTop;e.$refs.btn_block&&(e.$refs.btn_block.style.opacity=t>500?1:0)}}},r={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.userDetail?i("div",{staticClass:"share-good-head",style:{backgroundImage:"url('"+e.shareGoodsBg+"')"}},[i("img",{staticClass:"head",attrs:{src:e.userDetail.user_info.avatar}}),e._v(" "),i("div",{staticClass:"title",style:{backgroundImage:"url('"+e.title_share_goods+"')"}},[e._v("\n "+e._s(e.userDetail.user_info.nickname)+"\n ")]),e._v(" "),i("div",{staticClass:"day"},[e._v("\n "+e._s(e.userDetail.total_day)+"\n "),i("span",[e._v("\n Days\n ")])]),e._v(" "),i("div",{staticClass:"iknow",on:{click:function(t){e.toBuy(1)}}})]):e._e(),e._v(" "),e.goodsDetail?i("div",{staticClass:"good-content"},[i("div",{staticClass:"content",domProps:{innerHTML:e._s(e.goodsDetail.desc.detail)}}),e._v(" "),i("div",{ref:"btn_block",staticClass:"btn-block"},[i("div",{staticClass:"lastTime"},[e._v("\n 优惠倒计时 "+e._s(e.lastTime.day)+" 天 "+e._s(e.lastTime.hour)+" 时 "+e._s(e.lastTime.min)+" 分 "+e._s(e.lastTime.second)+" 秒\n ")]),e._v(" "),i("div",{staticClass:"btn",on:{click:function(t){e.toBuy(2)}}},[e._v("\n 正在疯抢 · 超值VIP课程\n ")])])]):e._e(),e._v(" "),e.goodsDetail?i("login-page",{attrs:{"bind-mobile":e.bindMobile,groupDetail:e.goodsDetail},on:{goToBuyPage:e.goToBuyPage}}):e._e()],1)},staticRenderFns:[]};var d=i("VU/8")(c,r,!1,function(e){i("R47M"),i("OFRR")},"data-v-4e3c8675",null);t.default=d.exports},"5ypk":function(e,t,i){e.exports=i.p+"static/img/shareGoodsBg2.5bf8cca.png"},LyMh:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcIAAABsBAMAAAALV69cAAAAIVBMVEVHcEwAYkwFl3cFlnYFi2wFl3cFl3cFmHcAYUwGl3cDgWVH8oeMAAAACXRSTlMA/sJIJ+KQaa8h3je6AAACZElEQVR42u2cPUsDQRCGFz0/UooWJlUgUUh3ChbpoiCaLqgp0omNXJdChHQK/oDcp2y6lOZX6iYEIniTmxSy8+69/cE+zM7szOzcKpUr7/VkoCUovXvuqA203dJyFPl8QE8S4A8i34oXWpbu2XtUSxN3n16LI3xgErbEEUbom5S7TbcEEtZZhF2BhAmLcCSQ8JNFGAgkzMBDKTeYDgQSpiXhL2mJKglLwpLQasKbp77GU//0ZQl4rlHVWABeaVw1DeCeRtZQaJLNSsexTWiMuANO2FNtcMJYZDXPq/wDcMKsJAQgxPdD/FjaBSdMVAWccCzyhoKjugN56TY4oS+z+VtcqQv1IfhxYS4VsQvEnhN9GgVNKPa+lxNoFHTunYidLCmes0mdDmJkNFLHEoppObyA64ix4BEvjhsiO6IveT6I44a4jhiLnrXkuCGuI/rCRy8Kpt3IoSYSPk5atLCQOxK8XqtDw5jHRewUIf4uxSfEj6X45yF8ToPaFB46VFvg14fwNT5+nwa/19aGJYyVIz1v/HsL/LunLjBh4sgdsEaWG//MYA8n1p2YiQqgCTPlwGyip7HVUbvghI8OzHlXwAnHDvxREoATZsDlryuEKfiBbwg1uhwgzN+l4exLCMRkViV2aX6kmRzMtdHzrv8mb7HIfFtE1Hk4Nd8eK7v1bhZZo04LIqcJzceHlhOemUVWqZyGyrzNx2+WE+6bRZKZN9XxDq13w4UjEiY0Xe+RpmLNkbJdl1ScmU+cUEacWm9CY8QabULyFaXwQ9mvW2KTNte9hNVQElRg/X+/ZrbyGpjlItf/DUICuUSCELZjAAAAAElFTkSuQmCC"},OFRR:function(e,t){},R47M:function(e,t){},WIsT:function(e,t,i){"use strict";var o=i("mvHQ"),s=i.n(o),a=i("Au9i"),n=i("CCn6"),l={name:"login",props:["bindMobile","groupDetail"],data:function(){return{time:0,payFlag:!0}},methods:{onBindMobile:function(){var e=this;if(this.$sa.track("clickSignUp",{}),this.payFlag){if(this.payFlag=!1,""===this.bindMobile.verify_code||!this.bindMobile.verify_code)return Object(a.Toast)("请填写手机验证码"),!1;var t={verify_code:this.bindMobile.verify_code};if(!this.bindMobile.mobile.match(/^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/))return Object(a.Toast)("请正确填写手机号"),!1;t.mobile=this.bindMobile.mobile,Object(n.c)(t).then(function(t){Object(n.A)().then(function(t){localStorage.setItem("userDesc",s()(t)),e.payFlag=!0,e.$emit("goToBuyPage")}).catch(function(t){e.refImgCode(),e.payFlag=!0})}).catch(function(t){e.refImgCode(),e.payFlag=!0})}},refImgCode:function(){this.$refs.imgCode.src="/api/public/img/verify?flag="+Math.random()},timeO:function(){var e=this;this.time>0&&(this.time--,setTimeout(function(){e.timeO()},1e3))},sendMobileCode:function(){var e=this;if(""===this.bindMobile.img_code||!this.bindMobile.img_code)return Object(a.Toast)({message:"请填写图形验证码"}),!1;var t={img_code:this.bindMobile.img_code};if(!this.bindMobile.mobile.match(/^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/))return Object(a.Toast)("请正确填写手机号"),!1;t.mobile=this.bindMobile.mobile,this.time=30,this.timeO(),this.$sa.track("clickSendcode",{}),Object(n.I)(t).then(function(t){"操作成功"===t?Object(a.Toast)("验证码已发送"):(e.time=0,e.refImgCode(),Object(a.Toast)(t))}).catch(function(t){e.refImgCode()})}}},c={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("mt-popup",{staticClass:"bindMobile-block",attrs:{position:"bottom"},model:{value:e.bindMobile.show,callback:function(t){e.$set(e.bindMobile,"show",t)},expression:"bindMobile.show"}},[i("div",{staticClass:"bindMobile-main"},[i("img",{staticClass:"header",attrs:{src:e.groupDetail.goods_desc.img[0].url}}),e._v(" "),i("div",{staticClass:"title"},[e._v("\n "+e._s(e.groupDetail.name)+"\n "),i("br"),e._v(" "),e.bindMobile.flag&&0===e.bindMobile.flag?e._e():i("span",{staticStyle:{color:"red","font-weight":"normal"}},[e._v("¥"+e._s((e.groupDetail.current_price/100).toFixed(2)))]),e._v(" "),0===e.bindMobile.flag?i("span",{staticStyle:{color:"red","font-weight":"normal"}},[e._v("¥"+e._s((e.groupDetail.original_price/100).toFixed(2)))]):e._e()]),e._v(" "),i("mt-field",{staticStyle:{"font-size":"14px"},attrs:{label:"手机号",placeholder:"请输入手机号"},model:{value:e.bindMobile.mobile,callback:function(t){e.$set(e.bindMobile,"mobile",t)},expression:"bindMobile.mobile"}}),e._v(" "),i("mt-field",{attrs:{label:"图片验证",placeholder:"请输入验证码"},model:{value:e.bindMobile.img_code,callback:function(t){e.$set(e.bindMobile,"img_code",t)},expression:"bindMobile.img_code"}},[i("img",{ref:"imgCode",staticClass:"right-btn",staticStyle:{width:"35vw","margin-left":"5px"},attrs:{src:"/api/public/img/verify"},on:{click:e.refImgCode}})]),e._v(" "),i("mt-field",{attrs:{label:"短信验证",placeholder:"短信验证码"},model:{value:e.bindMobile.verify_code,callback:function(t){e.$set(e.bindMobile,"verify_code",t)},expression:"bindMobile.verify_code"}},[0===e.time?i("button",{staticClass:"codeMsg right-btn",on:{click:e.sendMobileCode}},[e._v("发送验证码")]):e._e(),e._v(" "),e.time>0?i("button",{staticClass:"codeMsg disabled right-btn"},[e._v(e._s(e.time)+"s后重新发送")]):e._e()]),e._v(" "),i("mt-button",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{type:"danger"},on:{click:e.onBindMobile}},[e._v("下一步")])],1)])},staticRenderFns:[]};var r=i("VU/8")(l,c,!1,function(e){i("bA66")},"data-v-5ef86059",null);t.a=r.exports},bA66:function(e,t){}});
//# sourceMappingURL=8.dcff3b7d87ba64fdd246.js.map
\ No newline at end of file
This diff is collapsed.
webpackJsonp([8],{"54Ry":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i("mvHQ"),s=i.n(o),a=i("5ypk"),n=i.n(a),l=i("LyMh"),c=i.n(l),r=i("CCn6"),d={name:"shareGoods",components:{loginPage:i("WIsT").a},data:function(){return{shareGoodsBg:n.a,title_share_goods:c.a,userDetail:null,bindMobile:{show:!1,mobile:"",img_code:"",verify_code:""},shopId:null,goodsDetail:null,lastTime:localStorage.getItem("lastTimeShare")?JSON.parse(localStorage.getItem("lastTimeShare")):{day:0,hour:8,min:0,second:0}}},methods:{lastTimeOut:function(){0===this.lastTime.second?(this.lastTime.second=59,0===this.lastTime.min?(this.lastTime.min=59,0===this.lastTime.hour?this.lastTime.hour=8:this.lastTime.hour--):this.lastTime.min--):this.lastTime.second--,localStorage.setItem("lastTimeShare",s()(this.lastTime))},initPage:function(){var e=this;this.$sa.track("ViewInvitation",{salesID:this.$route.query.userID}),Object(r.s)(this.$route.query.userID).then(function(t){t.user_info.avatar=t.user_info.avatar.replace("http://","https://"),e.userDetail=t}),Object(r.u)().then(function(t){e.shopId=t[0].value,Object(r.h)(e.shopId).then(function(t){t.desc=JSON.parse(t.desc),t.goods_desc=JSON.parse(t.goods_desc),e.goodsDetail=t})})},goToBuyPage:function(){window.location.href="https://wechat.changchangenglish.com/#/buy?shopId="+this.shopId+"&invite_code=CC-UDK-"+this.$route.query.userID},toBuy:function(e){1===e?this.$sa.track("buttonClick",{tabTitle:"打卡商品页",moduleTitle:"功能按钮",buttonType:"购买",buttonName:"马上报名1"}):this.$sa.track("buttonClick",{tabTitle:"打卡商品页",moduleTitle:"功能按钮",buttonType:"购买",buttonName:"马上报名2"}),JSON.parse(localStorage.getItem("userDesc")).mobile&&""!==JSON.parse(localStorage.getItem("userDesc")).mobile?this.goToBuyPage():this.bindMobile.show=!0}},mounted:function(){var e=this;this.initPage(),setInterval(function(){e.lastTimeOut()},1e3),window.onscroll=function(){var t=document.documentElement.scrollTop||document.body.scrollTop;e.$refs.btn_block&&(e.$refs.btn_block.style.opacity=t>500?1:0)}}},b={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.userDetail?i("div",{staticClass:"share-good-head",style:{backgroundImage:"url('"+e.shareGoodsBg+"')"}},[i("img",{staticClass:"head",attrs:{src:e.userDetail.user_info.avatar}}),e._v(" "),i("div",{staticClass:"title",style:{backgroundImage:"url('"+e.title_share_goods+"')"}},[e._v("\n "+e._s(e.userDetail.user_info.nickname)+"\n ")]),e._v(" "),i("div",{staticClass:"day"},[e._v("\n "+e._s(e.userDetail.total_day)+"\n "),i("span",[e._v("\n Days\n ")])]),e._v(" "),i("div",{staticClass:"iknow",on:{click:function(t){e.toBuy(1)}}})]):e._e(),e._v(" "),e.goodsDetail?i("div",{staticClass:"good-content"},[i("div",{staticClass:"content",domProps:{innerHTML:e._s(e.goodsDetail.desc.detail)}}),e._v(" "),i("div",{ref:"btn_block",staticClass:"btn-block"},[i("div",{staticClass:"lastTime"},[e._v("\n 优惠倒计时 "+e._s(e.lastTime.day)+" 天 "+e._s(e.lastTime.hour)+" 时 "+e._s(e.lastTime.min)+" 分 "+e._s(e.lastTime.second)+" 秒\n ")]),e._v(" "),i("div",{staticClass:"btn",on:{click:function(t){e.toBuy(2)}}},[e._v("\n 正在疯抢 · 超值VIP课程\n ")])])]):e._e(),e._v(" "),e.goodsDetail?i("login-page",{attrs:{"bind-mobile":e.bindMobile,groupDetail:e.goodsDetail},on:{goToBuyPage:e.goToBuyPage}}):e._e()],1)},staticRenderFns:[]};var u=i("VU/8")(d,b,!1,function(e){i("92X9"),i("bujB")},"data-v-2f8f61e0",null);t.default=u.exports},"5ypk":function(e,t,i){e.exports=i.p+"static/img/shareGoodsBg2.5bf8cca.png"},"92X9":function(e,t){},LyMh:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcIAAABsBAMAAAALV69cAAAAIVBMVEVHcEwAYkwFl3cFlnYFi2wFl3cFl3cFmHcAYUwGl3cDgWVH8oeMAAAACXRSTlMA/sJIJ+KQaa8h3je6AAACZElEQVR42u2cPUsDQRCGFz0/UooWJlUgUUh3ChbpoiCaLqgp0omNXJdChHQK/oDcp2y6lOZX6iYEIniTmxSy8+69/cE+zM7szOzcKpUr7/VkoCUovXvuqA203dJyFPl8QE8S4A8i34oXWpbu2XtUSxN3n16LI3xgErbEEUbom5S7TbcEEtZZhF2BhAmLcCSQ8JNFGAgkzMBDKTeYDgQSpiXhL2mJKglLwpLQasKbp77GU//0ZQl4rlHVWABeaVw1DeCeRtZQaJLNSsexTWiMuANO2FNtcMJYZDXPq/wDcMKsJAQgxPdD/FjaBSdMVAWccCzyhoKjugN56TY4oS+z+VtcqQv1IfhxYS4VsQvEnhN9GgVNKPa+lxNoFHTunYidLCmes0mdDmJkNFLHEoppObyA64ix4BEvjhsiO6IveT6I44a4jhiLnrXkuCGuI/rCRy8Kpt3IoSYSPk5atLCQOxK8XqtDw5jHRewUIf4uxSfEj6X45yF8ToPaFB46VFvg14fwNT5+nwa/19aGJYyVIz1v/HsL/LunLjBh4sgdsEaWG//MYA8n1p2YiQqgCTPlwGyip7HVUbvghI8OzHlXwAnHDvxREoATZsDlryuEKfiBbwg1uhwgzN+l4exLCMRkViV2aX6kmRzMtdHzrv8mb7HIfFtE1Hk4Nd8eK7v1bhZZo04LIqcJzceHlhOemUVWqZyGyrzNx2+WE+6bRZKZN9XxDq13w4UjEiY0Xe+RpmLNkbJdl1ScmU+cUEacWm9CY8QabULyFaXwQ9mvW2KTNte9hNVQElRg/X+/ZrbyGpjlItf/DUICuUSCELZjAAAAAElFTkSuQmCC"},WIsT:function(e,t,i){"use strict";var o=i("mvHQ"),s=i.n(o),a=i("Au9i"),n=i("CCn6"),l={name:"login",props:["bindMobile","groupDetail"],data:function(){return{time:0,payFlag:!0}},methods:{onBindMobile:function(){var e=this;if(this.$sa.track("clickSignUp",{}),this.payFlag){if(this.payFlag=!1,""===this.bindMobile.verify_code||!this.bindMobile.verify_code)return Object(a.Toast)("请填写手机验证码"),!1;var t={verify_code:this.bindMobile.verify_code};if(!this.bindMobile.mobile.match(/^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/))return Object(a.Toast)("请正确填写手机号"),!1;t.mobile=this.bindMobile.mobile,Object(n.c)(t).then(function(t){Object(n.A)().then(function(t){localStorage.setItem("userDesc",s()(t)),e.payFlag=!0,e.$emit("goToBuyPage")}).catch(function(t){e.refImgCode(),e.payFlag=!0})}).catch(function(t){e.refImgCode(),e.payFlag=!0})}},refImgCode:function(){this.$refs.imgCode.src="/api/public/img/verify?flag="+Math.random()},timeO:function(){var e=this;this.time>0&&(this.time--,setTimeout(function(){e.timeO()},1e3))},sendMobileCode:function(){var e=this;if(""===this.bindMobile.img_code||!this.bindMobile.img_code)return Object(a.Toast)({message:"请填写图形验证码"}),!1;var t={img_code:this.bindMobile.img_code};if(!this.bindMobile.mobile.match(/^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/))return Object(a.Toast)("请正确填写手机号"),!1;t.mobile=this.bindMobile.mobile,this.time=30,this.timeO(),this.$sa.track("clickSendcode",{}),Object(n.I)(t).then(function(t){"操作成功"===t?Object(a.Toast)("验证码已发送"):(e.time=0,e.refImgCode(),Object(a.Toast)(t))}).catch(function(t){e.refImgCode()})}}},c={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("mt-popup",{staticClass:"bindMobile-block",attrs:{position:"bottom"},model:{value:e.bindMobile.show,callback:function(t){e.$set(e.bindMobile,"show",t)},expression:"bindMobile.show"}},[i("div",{staticClass:"bindMobile-main"},[i("img",{staticClass:"header",attrs:{src:e.groupDetail.goods_desc.img[0].url}}),e._v(" "),i("div",{staticClass:"title"},[e._v("\n "+e._s(e.groupDetail.name)+"\n "),i("br"),e._v(" "),0!==e.bindMobile.flag?i("span",{staticStyle:{color:"red","font-weight":"normal"}},[e._v("¥"+e._s((e.groupDetail.current_price/100).toFixed(2)))]):e._e(),e._v(" "),0===e.bindMobile.flag?i("span",{staticStyle:{color:"red","font-weight":"normal"}},[e._v("¥"+e._s((e.groupDetail.original_price/100).toFixed(2)))]):e._e()]),e._v(" "),i("mt-field",{staticStyle:{"font-size":"14px"},attrs:{label:"手机号",placeholder:"请输入手机号"},model:{value:e.bindMobile.mobile,callback:function(t){e.$set(e.bindMobile,"mobile",t)},expression:"bindMobile.mobile"}}),e._v(" "),i("mt-field",{attrs:{label:"图片验证",placeholder:"请输入验证码"},model:{value:e.bindMobile.img_code,callback:function(t){e.$set(e.bindMobile,"img_code",t)},expression:"bindMobile.img_code"}},[i("img",{ref:"imgCode",staticClass:"right-btn",staticStyle:{width:"35vw","margin-left":"5px"},attrs:{src:"/api/public/img/verify"},on:{click:e.refImgCode}})]),e._v(" "),i("mt-field",{attrs:{label:"短信验证",placeholder:"短信验证码",attr:{maxlength:6}},model:{value:e.bindMobile.verify_code,callback:function(t){e.$set(e.bindMobile,"verify_code",t)},expression:"bindMobile.verify_code"}},[0===e.time?i("button",{staticClass:"codeMsg right-btn",on:{click:e.sendMobileCode}},[e._v("发送验证码")]):e._e(),e._v(" "),e.time>0?i("button",{staticClass:"codeMsg disabled right-btn"},[e._v(e._s(e.time)+"s后重新发送")]):e._e()]),e._v(" "),i("mt-button",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{type:"danger"},on:{click:e.onBindMobile}},[e._v("下一步")])],1)])},staticRenderFns:[]};var r=i("VU/8")(l,c,!1,function(e){i("m/UN")},"data-v-4b2ea84d",null);t.a=r.exports},bujB:function(e,t){},"m/UN":function(e,t){}});
//# sourceMappingURL=8.fa7848c120889df659f1.js.map
\ No newline at end of file
This diff is collapsed.
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(c,a,f){for(var o,b,d,i=0,u=[];i<c.length;i++)b=c[i],t[b]&&u.push(t[b][0]),t[b]=0;for(o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o]);for(n&&n(c,a,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)d=r(r.s=f[i]);return d};var c={},t={27:0};function r(n){if(c[n])return c[n].exports;var t=c[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var c=new Promise(function(c,r){n=t[e]=[c,r]});n[2]=c;var a=document.getElementsByTagName("head")[0],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.timeout=12e4,r.nc&&f.setAttribute("nonce",r.nc),f.src=r.p+"static/js/"+e+"."+{0:"f8138779f472b8734556",1:"cf562118bfb069350b6b",2:"b00d3826b27a25730b77",3:"b418e1d10ee79cd8fb5a",4:"77aa4c620f571772432a",5:"0fe20001f4dfd6979b47",6:"9ac6a3785b8dc945f3c1",7:"a9345ec20e51bc06d695",8:"dcff3b7d87ba64fdd246",9:"b38772a637a0b835d57a",10:"cf384071f33c2c84beae",11:"8852ceb181dcc22eb2db",12:"312ac70f2edb38ac136f",13:"00f18aad5b6fd69d0b5a",14:"b3d17f7be63f79b48c70",15:"94dc83a555c61ee39c27",16:"ae624f5327002aaffb2d",17:"0f1571bcdfa699669f5f",18:"618aa416fb9be1dc4752",19:"f231c5215d3f27cf6a43",20:"5bd8b3930bb29ff93018",21:"594f13c961c63e11bd51",22:"9c5678caf56dde402e32",23:"8b4367681705baf3bf9a",24:"75c87a7642286e8e2a8b"}[e]+".js";var o=setTimeout(b,12e4);function b(){f.onerror=f.onload=null,clearTimeout(o);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return f.onerror=f.onload=b,a.appendChild(f),c},r.m=e,r.c=c,r.d=function(e,n,c){r.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:c})},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.p="https://static-cdn.changchangenglish.com/new-sing/",r.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.4d19fb5f2cd9fa1c6f08.js.map
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(t,r,f){for(var o,d,b,i=0,u=[];i<t.length;i++)d=t[i],a[d]&&u.push(a[d][0]),a[d]=0;for(o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);for(n&&n(t,r,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)b=c(c.s=f[i]);return b};var t={},a={27:0};function c(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,c),a.l=!0,a.exports}c.e=function(e){var n=a[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var t=new Promise(function(t,c){n=a[e]=[t,c]});n[2]=t;var r=document.getElementsByTagName("head")[0],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.timeout=12e4,c.nc&&f.setAttribute("nonce",c.nc),f.src=c.p+"static/js/"+e+"."+{0:"f8138779f472b8734556",1:"cf562118bfb069350b6b",2:"b00d3826b27a25730b77",3:"b418e1d10ee79cd8fb5a",4:"77aa4c620f571772432a",5:"0fe20001f4dfd6979b47",6:"9ac6a3785b8dc945f3c1",7:"a2dc085c2ff8df10f24f",8:"fa7848c120889df659f1",9:"b38772a637a0b835d57a",10:"11615d4589c5eb4ada69",11:"8852ceb181dcc22eb2db",12:"312ac70f2edb38ac136f",13:"00f18aad5b6fd69d0b5a",14:"b3d17f7be63f79b48c70",15:"94dc83a555c61ee39c27",16:"ae624f5327002aaffb2d",17:"0f1571bcdfa699669f5f",18:"618aa416fb9be1dc4752",19:"f231c5215d3f27cf6a43",20:"5bd8b3930bb29ff93018",21:"594f13c961c63e11bd51",22:"9c5678caf56dde402e32",23:"8b4367681705baf3bf9a",24:"75c87a7642286e8e2a8b"}[e]+".js";var o=setTimeout(d,12e4);function d(){f.onerror=f.onload=null,clearTimeout(o);var n=a[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return f.onerror=f.onload=d,r.appendChild(f),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.4be178cc95ad0be728d2.js.map
\ No newline at end of file
......@@ -54,7 +54,6 @@
let countriesObj = findChildren(citiesObj, cityValue)
let countries = countriesObj.map(getAddressName)
export default {
name: 'address',
props: {
showAddressPicker: Boolean,
init: String
......
......@@ -20,7 +20,6 @@ import MyAddress from '@/components/address-picker/Address.vue'
import {saveAddressApi,getUserAdressApi} from "../../service/api";
import { Toast } from 'mint-ui'
export default {
name: 'address',
components: {
MyAddress
},
......@@ -148,8 +147,9 @@ export default {
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(255,255,255,1);
position: fixed;
position: absolute;
bottom: 20*@toVw;
z-index: 100;
}
}
......
......@@ -10,8 +10,8 @@
<div class="">{{addressObj.receive_name}}</div>
<div class="address">收货地址:{{addressObj.province_name}}{{addressObj.city}}{{addressObj.area}}{{addressObj.address}}</div>
</div>
<img :src="lineImage" alt="" style="width: 100vw">
</div>
<img :src="lineImage" alt="" style="width: 100vw">
<div class="block-title">订单信息</div>
<div class="shop-block" v-if="groupDetail.goods_desc">
<div class="shop">
......
......@@ -8,14 +8,14 @@
<div class="title">
{{groupDetail.name}}
<br>
<span style="color: red;font-weight: normal" v-if="!bindMobile.flag || bindMobile.flag!==0">{{(groupDetail.current_price/100).toFixed(2)}}</span>
<span style="color: red;font-weight: normal" v-if="bindMobile.flag!==0">{{(groupDetail.current_price/100).toFixed(2)}}</span>
<span style="color: red;font-weight: normal" v-if="bindMobile.flag===0">{{(groupDetail.original_price/100).toFixed(2)}}</span>
</div>
<mt-field style="font-size: 14px" label="手机号" placeholder="请输入手机号" v-model="bindMobile.mobile"></mt-field>
<mt-field label="图片验证" placeholder="请输入验证码" v-model="bindMobile.img_code">
<img src="/api/public/img/verify" style="width: 35vw;margin-left: 5px" class="right-btn" ref="imgCode" @click="refImgCode"/>
</mt-field>
<mt-field label="短信验证" placeholder="短信验证码" v-model="bindMobile.verify_code">
<mt-field label="短信验证" placeholder="短信验证码" :attr="{ maxlength: 6 }" v-model="bindMobile.verify_code">
<button class="codeMsg right-btn" @click="sendMobileCode" v-if="time===0">发送验证码</button>
<button class="codeMsg disabled right-btn" v-if="time>0">{{time}}s后重新发送</button>
</mt-field>
......
......@@ -53,12 +53,7 @@
},
shopId:null,
goodsDetail:null,
lastTime:{
day:3,
hour:0,
min:0,
second:0
}
lastTime:localStorage.getItem('lastTimeShare')?JSON.parse(localStorage.getItem('lastTimeShare')):{day:0,hour:8,min:0,second:0}
}
},
methods:{
......@@ -68,11 +63,7 @@
if(this.lastTime.min === 0 ){
this.lastTime.min = 59;
if(this.lastTime.hour === 0 ){
this.lastTime.hour = 23;
if(this.lastTime.day === 0 ){
}else{
this.lastTime.day--;
}
this.lastTime.hour = 8;
}else{
this.lastTime.hour--;
}
......@@ -82,6 +73,7 @@
}else{
this.lastTime.second--;
}
localStorage.setItem('lastTimeShare',JSON.stringify(this.lastTime))
},
initPage(){
this.$sa.track('ViewInvitation',{
......
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