5.16

parent 27edc777
...@@ -6,4 +6,4 @@ ...@@ -6,4 +6,4 @@
overflow: hidden; overflow: hidden;
position: fixed; position: fixed;
background: #f4f4f4; background: #f4f4f4;
}</style><link href=static/css/app.a33637a3392be2fde512aa6031b6e4df.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 src=static/vconsole/vconsole.min.js></script><script type=text/javascript src=static/js/manifest.80cd932daa250efca7e7.js></script><script type=text/javascript src=static/js/vendor.971a89734ef51957abe6.js></script><script type=text/javascript src=static/js/app.436f01e1569fecfb6bca.js></script></body></html> }</style><link href=static/css/app.a33637a3392be2fde512aa6031b6e4df.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 src=static/vconsole/vconsole.min.js></script><script type=text/javascript src=static/js/manifest.fd3a18b916a67a13c7fb.js></script><script type=text/javascript src=static/js/vendor.971a89734ef51957abe6.js></script><script type=text/javascript src=static/js/app.436f01e1569fecfb6bca.js></script></body></html>
\ No newline at end of file \ 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 diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(n,c,o){for(var f,d,b,i=0,u=[];i<n.length;i++)d=n[i],r[d]&&u.push(r[d][0]),r[d]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(a&&a(n,c,o);u.length;)u.shift()();if(o)for(i=0;i<o.length;i++)b=t(t.s=o[i]);return b};var n={},r={34:0};function t(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.e=function(e){var a=r[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var n=new Promise(function(n,t){a=r[e]=[n,t]});a[2]=n;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:"c3215ea3d0f4b9203928",1:"499f1dc6161662ac03a1",2:"88eb6979ee991170dd43",3:"49b5451bf0ef02f66b49",4:"973d1cc7b086ea345be4",5:"09e142b4a9093fd2d98c",6:"73b674d514da9a1cdaeb",7:"75e6c06eb09e98ab3b3f",8:"96e00676211b990557c0",9:"9c6596cb1371f67d909c",10:"827fb93ad16992519742",11:"b2db1db9ac9ab09a90ef",12:"20990e7a965aa0c5c0b4",13:"956b095c0a0e2fe38264",14:"d478ab3287fedb08f004",15:"998182336d150a64c64f",16:"94c57d9b4532d295fd17",17:"205c3c21ebcb4df60d2b",18:"1953d2930aae0ad3e34e",19:"9ce5c5235725211384e3",20:"768213446401f107d3dd",21:"81b8f5f4ff3a42b5e563",22:"18aa9096fdaa1b39e26d",23:"abd000c2d42590325658",24:"7d513d80b42dc2d2f825",25:"189a4ab5e51684f6c908",26:"f688ad0a42f7f2456842",27:"990bec66a2b0a8e0f57a",28:"30feeb113b054e94eca0",29:"7747cb8246f34a64535b",30:"f0b7c3e8e83425f55d19",31:"f6611d39d1dda1664e79"}[e]+".js";var f=setTimeout(d,12e4);function d(){o.onerror=o.onload=null,clearTimeout(f);var a=r[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),r[e]=void 0)}return o.onerror=o.onload=d,c.appendChild(o),n},t.m=e,t.c=n,t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},t.p="",t.oe=function(e){throw console.error(e),e}}([]); !function(e){var a=window.webpackJsonp;window.webpackJsonp=function(n,c,f){for(var o,d,b,i=0,u=[];i<n.length;i++)d=n[i],r[d]&&u.push(r[d][0]),r[d]=0;for(o in c)Object.prototype.hasOwnProperty.call(c,o)&&(e[o]=c[o]);for(a&&a(n,c,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)b=t(t.s=f[i]);return b};var n={},r={34:0};function t(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.e=function(e){var a=r[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var n=new Promise(function(n,t){a=r[e]=[n,t]});a[2]=n;var c=document.getElementsByTagName("head")[0],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.timeout=12e4,t.nc&&f.setAttribute("nonce",t.nc),f.src=t.p+"static/js/"+e+"."+{0:"c3215ea3d0f4b9203928",1:"c210ba9652199433aba2",2:"88eb6979ee991170dd43",3:"49b5451bf0ef02f66b49",4:"973d1cc7b086ea345be4",5:"09e142b4a9093fd2d98c",6:"ecff242195849c51892f",7:"75e6c06eb09e98ab3b3f",8:"96e00676211b990557c0",9:"9c6596cb1371f67d909c",10:"827fb93ad16992519742",11:"b2db1db9ac9ab09a90ef",12:"20990e7a965aa0c5c0b4",13:"956b095c0a0e2fe38264",14:"d478ab3287fedb08f004",15:"929b80643377a6bd8412",16:"94c57d9b4532d295fd17",17:"205c3c21ebcb4df60d2b",18:"1953d2930aae0ad3e34e",19:"9ce5c5235725211384e3",20:"768213446401f107d3dd",21:"81b8f5f4ff3a42b5e563",22:"18aa9096fdaa1b39e26d",23:"abd000c2d42590325658",24:"7d513d80b42dc2d2f825",25:"189a4ab5e51684f6c908",26:"f688ad0a42f7f2456842",27:"990bec66a2b0a8e0f57a",28:"30feeb113b054e94eca0",29:"7747cb8246f34a64535b",30:"e8f9124f83677fb6d1ae",31:"f6611d39d1dda1664e79"}[e]+".js";var o=setTimeout(d,12e4);function d(){f.onerror=f.onload=null,clearTimeout(o);var a=r[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),r[e]=void 0)}return f.onerror=f.onload=d,c.appendChild(f),n},t.m=e,t.c=n,t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},t.p="",t.oe=function(e){throw console.error(e),e}}([]);
\ 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.255a2052bc3cb303ed748e13d918b1fe.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.d6083a2f34e268d4ade5.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/vendor.46262833f7fc058ac130.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/app.154e3217e31ff9418b04.js></script></body></html> }</style><link href=https://static-cdn.changchangenglish.com/new-sing/static/css/app.7f1f4b3add23e3bc9fb49ea4321db92c.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.84c36ca99f700799ac7d.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/vendor.46262833f7fc058ac130.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/app.05be740d63872c05b005.js></script></body></html>
\ No newline at end of file \ 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.
webpackJsonp([14],{"DhZ+":function(s,t,e){s.exports=e.p+"static/img/orderless.961cec0.png"},Fw0K:function(s,t){},R7Pr:function(s,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});e("eqfM");var i=e("/QYm"),n=e("CCn6"),o={0:"待付款",1:"付款成功",2:"付款失败",3:"退款成功",4:"拼团成功"},r=e("az9f"),a=e.n(r),c=e("DhZ+"),d=e.n(c),u=e("/Bxx"),l=e.n(u),g={name:"order",data:function(){return{orderList:[],showShare:!1,shareTipsUrl:l.a,shareUrl:a.a,mok4:d.a,shopId:""}},filters:{orderType:function(s){return o[s]}},mounted:function(){this.initPage()},methods:{goDetail:function(s){1==this.orderList[s].buy_type?this.$router.push({name:"buySuccess",query:{out_trade_no:this.orderList[s].out_trade_no}}):this.$router.push({name:"success",query:{out_trade_no:this.orderList[s].out_trade_no}})},goIndex:function(){this.$router.push({name:"index"})},initPage:function(){var s=this;Object(n.G)({api_list:"onMenuShareAppMessage,onMenuShareTimeline",url:window.location.href.split("#")[0]}).then(function(s){wx.config({debug:!1,appId:s.appId,timestamp:parseInt(s.timestamp),nonceStr:s.nonceStr,signature:s.signature,jsApiList:s.jsApiList})}),Object(n.t)({status:1}).then(function(t){t.list.forEach(function(s){s.goods_desc&&(s.goods_desc=JSON.parse(s.goods_desc))}),s.orderList=t.list})},shareOrder:function(s){this.$sa.track("buttonClick",{tabTitle:"订单",moduleTitle:"订单",buttonType:"分享",buttonName:"团购分享"}),this.showShare=!0;var t=void 0;t=s.invite_id&&""!=s.invite_id?"TEACHER"===s.invite_type?"CC-USER-"+s.user_id:"CC-"+s.invite_type+"-"+s.user_id:"CC-USER-"+s.user_id;var e=JSON.parse(s.share_desc),n=this,o="https://wechat.changchangenglish.com/#/buyDetail?shopId="+s.goods_id+"&groupId="+s.order_group_id+"&invite_code="+t+"'";wx.onMenuShareAppMessage({title:e.title,desc:e.content,link:o,imgUrl:e.img[0]?e.img[0].url:"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){Object(i.a)("分享成功"),n.showShare=!1}}),wx.onMenuShareTimeline({title:e.title,desc:e.content,link:o,imgUrl:e.img[0]?e.img[0].url:"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){Object(i.a)("分享成功"),n.showShare=!1}})}}},m={render:function(){var s=this,t=s.$createElement,e=s._self._c||t;return e("div",[e("van-popup",{staticClass:"refer-share",attrs:{position:"top"},model:{value:s.showShare,callback:function(t){s.showShare=t},expression:"showShare"}},[e("img",{attrs:{src:s.shareTipsUrl}})]),s._v(" "),s.orderList.length<1?e("div",{staticClass:"unStart"},[e("img",{attrs:{src:s.mok4,alt:""}}),s._v(" "),e("p",[s._v("还没有订单哦~")]),s._v(" "),e("div",{on:{click:s.goIndex}},[s._v("去逛逛吧")])]):s._e(),s._v(" "),s._l(s.orderList,function(t,i){return e("div",{staticClass:"list"},[e("div",{staticClass:"head",on:{click:function(t){s.goDetail(i)}}},[t.goods_desc?e("div",{staticClass:"bg-img",style:{backgroundImage:"url("+t.goods_desc.img[0].url+")"}}):s._e(),s._v(" "),e("div",{staticClass:"content"},[e("div",{staticClass:"title"},[s._v(s._s(t.goods_name))]),s._v(" "),t.goods_desc?e("div",{staticClass:"desc"},[s._v(s._s(t.goods_desc.desc))]):s._e(),s._v(" "),e("div",{staticClass:"time"},[s._v("付款时间:"+s._s(t.pay_at))])])]),s._v(" "),e("div",{staticClass:"footer"},[e("span",{staticClass:"payMoney"},[s._v("实付:"+s._s(t.money/100)+"元")]),s._v(" "),2===t.buy_type&&4!==t.status?e("span",{staticClass:"share",on:{click:function(e){s.shareOrder(t)}}},[e("img",{attrs:{src:s.shareUrl}}),s._v("点击分享\n ")]):s._e(),s._v(" "),e("span",{class:{red:1===t.status}},[s._v(s._s(s._f("orderType")(t.status)))])])])})],2)},staticRenderFns:[]};var h=e("VU/8")(g,m,!1,function(s){e("Fw0K")},"data-v-a4f052b4",null);t.default=h.exports},az9f:function(s,t){s.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaBAMAAABbZFH9AAAAMFBMVEVHcExmZmZmZmZmZmZmZmZmZmZlZWVkZGRmZmZmZmZmZmZkZGRmZmZmZmZmZmZmZmY+CoHcAAAAD3RSTlMAuEMrdt5eC4/KhRvwnK0VbnSZAAAA2klEQVQY02NgAAIr0Z8McGD4//+fAhiH4//XZdowDrv8TwUwDSYZ/zuARbk+glT3f4Mo2fJfnIGBGSJld/7//y9AhWDDWf4DAVCR/ScQT/+jdtn/CwwM/gEg3vwHDCx/gbR8AwNI8wYGBiBiiE8AEmwQlxUwnAdZygVSxcB9EsLj/QHiMf2HqOT9BeKxfYWa0g1xG9QGMGD9BbUdDPQ/M/AhvD1fAOZqsFsNGBjWf4Mp/IHkW5b/AoiQYJoP9jsD1/+vbUoZ8f8bIBrsQF79Lwwz2kT0TKAziAEAvsROXdc3HlsAAAAASUVORK5CYII="}});
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
webpackJsonp([26],{"6IIy":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("CCn6"),s=n("/Bxx"),a=n.n(s),l={name:"shareConfig",data:function(){return{desc:"赠你1元领取价值398元课程特权,和我一起快乐启蒙英语吧",shareUrl:a.a,title:"我家宝宝正在【唱唱启蒙英语】挑战童谣,已坚持1天",link:window.location.href.split("#")[0],shareVisible:!1}},methods:{enableShare:function(e){Object(i.G)({api_list:"onMenuShareAppMessage,onMenuShareTimeline",url:window.location.href.split("#")[0]}).then(function(t){wx.config({debug:!1,appId:t.appId,timestamp:parseInt(t.timestamp),nonceStr:t.nonceStr,signature:t.signature,jsApiList:t.jsApiList}),wx.ready(function(){wx.onMenuShareTimeline({title:e.product_title,desc:e.desc,link:e.shareUrl,imgUrl:e.shareIcon||"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){},cancel:function(){}}),wx.onMenuShareAppMessage({title:e.product_title,desc:e.desc,link:e.shareUrl,imgUrl:e.shareIcon||"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){},cancel:function(){}})})})},sharePage:function(){this.enableShare({product_title:this.title,desc:this.desc,shareIcon:"https://cdn.singsingenglish.com/logo/logo.jpg",shareUrl:this.link}),this.shareVisible=!0}}},r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("mt-popup",{staticClass:"refer-share",staticStyle:{background:"transparent"},attrs:{position:"top"},model:{value:e.shareVisible,callback:function(t){e.shareVisible=t},expression:"shareVisible"}},[n("img",{staticStyle:{width:"80vw"},attrs:{src:e.shareUrl}})]),e._v(" "),n("div",{staticStyle:{padding:"10px"}},[n("mt-field",{attrs:{label:"分享标题",type:"textarea",placeholder:"请输入分享标题",rows:"4"},model:{value:e.title,callback:function(t){e.title=t},expression:"title"}}),e._v(" "),n("mt-field",{attrs:{label:"分享链接",type:"textarea",placeholder:"请输入分享链接",rows:"4"},model:{value:e.link,callback:function(t){e.link=t},expression:"link"}}),e._v(" "),n("mt-field",{attrs:{label:"分享描述",type:"textarea",placeholder:"请输入分享描述",rows:"4"},model:{value:e.desc,callback:function(t){e.desc=t},expression:"desc"}}),e._v(" "),n("div",{staticStyle:{width:"calc(100vw - 20px)",margin:"0"}},[n("mt-button",{attrs:{type:"primary",size:"large"},on:{click:function(t){e.sharePage()}}},[e._v("分享")])],1)],1)],1)},staticRenderFns:[]};var c=n("VU/8")(l,r,!1,function(e){n("T5TJ")},"data-v-80e37a0c",null);t.default=c.exports},T5TJ:function(e,t){}}); webpackJsonp([27],{"6IIy":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("CCn6"),s=n("/Bxx"),a=n.n(s),l={name:"shareConfig",data:function(){return{desc:"赠你1元领取价值398元课程特权,和我一起快乐启蒙英语吧",shareUrl:a.a,title:"我家宝宝正在【唱唱启蒙英语】挑战童谣,已坚持1天",link:window.location.href.split("#")[0],shareVisible:!1}},methods:{enableShare:function(e){Object(i.G)({api_list:"onMenuShareAppMessage,onMenuShareTimeline",url:window.location.href.split("#")[0]}).then(function(t){wx.config({debug:!1,appId:t.appId,timestamp:parseInt(t.timestamp),nonceStr:t.nonceStr,signature:t.signature,jsApiList:t.jsApiList}),wx.ready(function(){wx.onMenuShareTimeline({title:e.product_title,desc:e.desc,link:e.shareUrl,imgUrl:e.shareIcon||"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){},cancel:function(){}}),wx.onMenuShareAppMessage({title:e.product_title,desc:e.desc,link:e.shareUrl,imgUrl:e.shareIcon||"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){},cancel:function(){}})})})},sharePage:function(){this.enableShare({product_title:this.title,desc:this.desc,shareIcon:"https://cdn.singsingenglish.com/logo/logo.jpg",shareUrl:this.link}),this.shareVisible=!0}}},r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("mt-popup",{staticClass:"refer-share",staticStyle:{background:"transparent"},attrs:{position:"top"},model:{value:e.shareVisible,callback:function(t){e.shareVisible=t},expression:"shareVisible"}},[n("img",{staticStyle:{width:"80vw"},attrs:{src:e.shareUrl}})]),e._v(" "),n("div",{staticStyle:{padding:"10px"}},[n("mt-field",{attrs:{label:"分享标题",type:"textarea",placeholder:"请输入分享标题",rows:"4"},model:{value:e.title,callback:function(t){e.title=t},expression:"title"}}),e._v(" "),n("mt-field",{attrs:{label:"分享链接",type:"textarea",placeholder:"请输入分享链接",rows:"4"},model:{value:e.link,callback:function(t){e.link=t},expression:"link"}}),e._v(" "),n("mt-field",{attrs:{label:"分享描述",type:"textarea",placeholder:"请输入分享描述",rows:"4"},model:{value:e.desc,callback:function(t){e.desc=t},expression:"desc"}}),e._v(" "),n("div",{staticStyle:{width:"calc(100vw - 20px)",margin:"0"}},[n("mt-button",{attrs:{type:"primary",size:"large"},on:{click:function(t){e.sharePage()}}},[e._v("分享")])],1)],1)],1)},staticRenderFns:[]};var c=n("VU/8")(l,r,!1,function(e){n("T5TJ")},"data-v-80e37a0c",null);t.default=c.exports},T5TJ:function(e,t){}});
\ No newline at end of file \ No newline at end of file
This diff is collapsed.
webpackJsonp([27],{SSGl:function(t,s){},"sj+b":function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("CCn6"),a={name:"med",components:{audioPage:i("mkI/").a},data:function(){return{medList:[],showObj:{audio:[],audioIndex:0,show:!1}}},created:function(){this.getBannerListApi()},methods:{getBannerListApi:function(){var t=this;Object(e.c)(2,{limit:999,page:1}).then(function(s){t.medList=s.list,t.showObj.audio=s.list})},goMed:function(t){this.showObj.audioIndex=t,this.showObj.show=!0,this.$refs.audioPage.onPlay(),this.$sa.quick("trackHeatMap",this.$refs.item)},toOut:function(){this.$sa.quick("trackHeatMap",this.$refs.btn),window.location.href="https://appanqlfkth3717.h5.xiaoeknow.com/content_page/eyJ0eXBlIjozLCJhcHBfaWQiOiJhcHBhTlFMZmt0SDM3MTciLCJyZXNvdXJjZV90eXBlIjoiIiwicHJvZHVjdF9pZCI6InBfNWJhMWU3OGE3MTgwMl9MOEF2cXBmaSIsImNoYW5uZWxfaWQiOiIiLCJyZXNvdXJjZV9pZCI6IiJ9"}}},n={render:function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",[t.medList.length>0?i("div",{staticClass:"contentBox med"},[t._m(0),t._v(" "),i("div",{staticClass:"content"},[t._l(t.medList,function(s,e){return i("div",{ref:"item",refInFor:!0,staticClass:"contentItem",on:{click:function(s){t.goMed(e)}}},[i("img",{attrs:{src:s.url,alt:""}}),t._v(" "),i("div",{staticClass:"white"}),t._v(" "),i("div",{staticClass:"text"},[i("div",{staticClass:"title"},[t._v(t._s(s.title))]),t._v(" "),i("div",{staticClass:"enTitle"},[t._v(t._s(s.sub_title))]),t._v(" "),i("div",{staticClass:"lookData"},[i("i",{staticClass:"iconfont icon-yanjing"}),t._v(t._s(s.watch_num)+"人")])])])}),t._v(" "),i("div",{ref:"btn",staticClass:"btn",on:{click:t.toOut}},[t._v("\r\n 获取更多资源\r\n ")])],2)]):t._e(),t._v(" "),t.showObj.audio.length>0?i("audio-page",{directives:[{name:"show",rawName:"v-show",value:t.showObj.show,expression:"showObj.show"}],ref:"audioPage",attrs:{sc:"1",showObj:t.showObj}}):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"commonTitle"},[s("span",{staticClass:"line"}),this._v(" "),s("span",{staticClass:"title"},[this._v("磨耳朵")]),this._v(" "),s("span",{staticClass:"tip"},[this._v("每天10分钟 成长看得见")]),this._v(" "),s("div",{staticClass:"more"})])}]};var o=i("VU/8")(a,n,!1,function(t){i("SSGl")},"data-v-76fc0e1a",null);s.default=o.exports}}); webpackJsonp([28],{SSGl:function(t,s){},"sj+b":function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("CCn6"),a={name:"med",components:{audioPage:i("mkI/").a},data:function(){return{medList:[],showObj:{audio:[],audioIndex:0,show:!1}}},created:function(){this.getBannerListApi()},methods:{getBannerListApi:function(){var t=this;Object(e.c)(2,{limit:999,page:1}).then(function(s){t.medList=s.list,t.showObj.audio=s.list})},goMed:function(t){this.showObj.audioIndex=t,this.showObj.show=!0,this.$refs.audioPage.onPlay(),this.$sa.quick("trackHeatMap",this.$refs.item)},toOut:function(){this.$sa.quick("trackHeatMap",this.$refs.btn),window.location.href="https://appanqlfkth3717.h5.xiaoeknow.com/content_page/eyJ0eXBlIjozLCJhcHBfaWQiOiJhcHBhTlFMZmt0SDM3MTciLCJyZXNvdXJjZV90eXBlIjoiIiwicHJvZHVjdF9pZCI6InBfNWJhMWU3OGE3MTgwMl9MOEF2cXBmaSIsImNoYW5uZWxfaWQiOiIiLCJyZXNvdXJjZV9pZCI6IiJ9"}}},n={render:function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",[t.medList.length>0?i("div",{staticClass:"contentBox med"},[t._m(0),t._v(" "),i("div",{staticClass:"content"},[t._l(t.medList,function(s,e){return i("div",{ref:"item",refInFor:!0,staticClass:"contentItem",on:{click:function(s){t.goMed(e)}}},[i("img",{attrs:{src:s.url,alt:""}}),t._v(" "),i("div",{staticClass:"white"}),t._v(" "),i("div",{staticClass:"text"},[i("div",{staticClass:"title"},[t._v(t._s(s.title))]),t._v(" "),i("div",{staticClass:"enTitle"},[t._v(t._s(s.sub_title))]),t._v(" "),i("div",{staticClass:"lookData"},[i("i",{staticClass:"iconfont icon-yanjing"}),t._v(t._s(s.watch_num)+"人")])])])}),t._v(" "),i("div",{ref:"btn",staticClass:"btn",on:{click:t.toOut}},[t._v("\r\n 获取更多资源\r\n ")])],2)]):t._e(),t._v(" "),t.showObj.audio.length>0?i("audio-page",{directives:[{name:"show",rawName:"v-show",value:t.showObj.show,expression:"showObj.show"}],ref:"audioPage",attrs:{sc:"1",showObj:t.showObj}}):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"commonTitle"},[s("span",{staticClass:"line"}),this._v(" "),s("span",{staticClass:"title"},[this._v("磨耳朵")]),this._v(" "),s("span",{staticClass:"tip"},[this._v("每天10分钟 成长看得见")]),this._v(" "),s("div",{staticClass:"more"})])}]};var o=i("VU/8")(a,n,!1,function(t){i("SSGl")},"data-v-76fc0e1a",null);s.default=o.exports}});
\ No newline at end of file \ No newline at end of file
This diff is collapsed.
This diff is collapsed.
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,r,f){for(var o,d,i,b=0,u=[];b<a.length;b++)d=a[b],n[d]&&u.push(n[d][0]),n[d]=0;for(o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);for(c&&c(a,r,f);u.length;)u.shift()();if(f)for(b=0;b<f.length;b++)i=t(t.s=f[b]);return i};var a={},n={34:0};function t(c){if(a[c])return a[c].exports;var n=a[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,t),n.l=!0,n.exports}t.e=function(e){var c=n[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,t){c=n[e]=[a,t]});c[2]=a;var r=document.getElementsByTagName("head")[0],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.timeout=12e4,t.nc&&f.setAttribute("nonce",t.nc),f.src=t.p+"static/js/"+e+"."+{0:"56715f58455ac5fcfa98",1:"fce2ba88dcdf95c40357",2:"d912e90da56ffe83e816",3:"2a2c2fd7e681a2d82028",4:"732353acd050116b32af",5:"859de000bac7afea17d2",6:"d729f6a76069d102b946",7:"6e7c1baf55c785685808",8:"479f0949904abb083c39",9:"6c0f6a0dabf60a307c3d",10:"ac78c9d65ffd5c0f1a4c",11:"4638c140153ee40c01f4",12:"a01d02655b0b1dca002f",13:"ac1a8883104e709ce1ec",14:"7d765aa763eae4f9b99e",15:"1eb6cc7d23dfe5f3e91f",16:"eacc590d6a7abb7c650b",17:"f8f84cfa4b191f48271d",18:"27810984a2ab79690cc9",19:"3e06c7e9646ebe26de4a",20:"af95c97c8a8c2c1421b3",21:"3f31027b2bc9b31c23ef",22:"a3728b7411c5e89aef21",23:"9f60147a0140625d3e93",24:"f8c8d8245371c429836a",25:"7ec0eebf2bc062261cf7",26:"7666b30658fa47c11856",27:"3f17efe9421b9d53694c",28:"9618b2461c5e8998137a",29:"b592a072a8ae796cf8c2",30:"6a64a586bf7736813683",31:"41dd1fbe5e60f242080e"}[e]+".js";var o=setTimeout(d,12e4);function d(){f.onerror=f.onload=null,clearTimeout(o);var c=n[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return f.onerror=f.onload=d,r.appendChild(f),a},t.m=e,t.c=a,t.d=function(e,c,a){t.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(c,"a",c),c},t.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},t.p="https://static-cdn.changchangenglish.com/new-sing/",t.oe=function(e){throw console.error(e),e}}([]); !function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,f,r){for(var o,d,b,i=0,u=[];i<a.length;i++)d=a[i],n[d]&&u.push(n[d][0]),n[d]=0;for(o in f)Object.prototype.hasOwnProperty.call(f,o)&&(e[o]=f[o]);for(c&&c(a,f,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)b=t(t.s=r[i]);return b};var a={},n={34:0};function t(c){if(a[c])return a[c].exports;var n=a[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,t),n.l=!0,n.exports}t.e=function(e){var c=n[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,t){c=n[e]=[a,t]});c[2]=a;var f=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,t.nc&&r.setAttribute("nonce",t.nc),r.src=t.p+"static/js/"+e+"."+{0:"56715f58455ac5fcfa98",1:"b280caa120d119107eeb",2:"d912e90da56ffe83e816",3:"2a2c2fd7e681a2d82028",4:"732353acd050116b32af",5:"859de000bac7afea17d2",6:"ad5fe664fa06481539b4",7:"6e7c1baf55c785685808",8:"479f0949904abb083c39",9:"6c0f6a0dabf60a307c3d",10:"ac78c9d65ffd5c0f1a4c",11:"4638c140153ee40c01f4",12:"a01d02655b0b1dca002f",13:"ac1a8883104e709ce1ec",14:"47f308c5e4826d911558",15:"1eb6cc7d23dfe5f3e91f",16:"eacc590d6a7abb7c650b",17:"f8f84cfa4b191f48271d",18:"27810984a2ab79690cc9",19:"3e06c7e9646ebe26de4a",20:"af95c97c8a8c2c1421b3",21:"3f31027b2bc9b31c23ef",22:"a3728b7411c5e89aef21",23:"9f60147a0140625d3e93",24:"f8c8d8245371c429836a",25:"7ec0eebf2bc062261cf7",26:"08d80bdff38f967e8933",27:"d3845d046ab7d50b271d",28:"afc284cefa81b9c3523a",29:"b592a072a8ae796cf8c2",30:"6a64a586bf7736813683",31:"41dd1fbe5e60f242080e"}[e]+".js";var o=setTimeout(d,12e4);function d(){r.onerror=r.onload=null,clearTimeout(o);var c=n[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return r.onerror=r.onload=d,f.appendChild(r),a},t.m=e,t.c=a,t.d=function(e,c,a){t.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(c,"a",c),c},t.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},t.p="https://static-cdn.changchangenglish.com/new-sing/",t.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file \ No newline at end of file
src/assets/share.png

5.27 KB | W: | H:

src/assets/share.png

362 Bytes | W: | H:

src/assets/share.png
src/assets/share.png
src/assets/share.png
src/assets/share.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
</div> </div>
</div> </div>
<div class="orderBox" v-if="orderList&&orderList.length" > <div class="orderBox" v-if="orderList&&orderList.length" >
<div class="item" v-for="(data,index) in orderList" @click="goDetail(index)"> <div class="item" v-for="(data,index) in orderList" @click="goDetail(index)">
<div class="top"> <div class="top">
<img :src="data.goods_desc.img[0].url" alt=""> <img :src="data.goods_desc.img[0].url" alt="">
<div class="info"> <div class="info">
...@@ -75,8 +75,8 @@ ...@@ -75,8 +75,8 @@
<span class="btn">去邀请</span> <span class="btn">去邀请</span>
</div> </div>
</div> </div>
<div class="shadow" v-if="pt&&orderList.length"></div> <div class="shadow" v-if="!pt&&orderList.length" @click="pt=true" ></div>
<div class="imgbox" v-if="pt&&orderList.length"> <div class="imgbox" v-if="!pt&&orderList.length" @click="pt=true" >
<div class="text"> <div class="text">
快去邀请好友完成拼团吧~ 快去邀请好友完成拼团吧~
</div> </div>
...@@ -213,15 +213,17 @@ export default { ...@@ -213,15 +213,17 @@ export default {
mounted() { mounted() {
window.scrollTo(0,0); window.scrollTo(0,0);
this.unlook = localStorage.getItem('unlook'); this.unlook = localStorage.getItem('unlook');
this.pt = sessionStorage.getItem('pt');
}, },
methods: { methods: {
goDetail(){ goDetail(index){
this.$router.push({ this.$router.push({
name: 'success', name: 'success',
query:{ query:{
out_trade_no:this.orderList[index].out_trade_no out_trade_no:this.orderList[index].out_trade_no
} }
}); });
sessionStorage.setItem('pt',true);
}, },
onReachBottom(){ onReachBottom(){
}, },
...@@ -370,22 +372,23 @@ export default { ...@@ -370,22 +372,23 @@ export default {
} }
} }
}) })
// 未成团订单
// getOrderListApi().then(res=>{ // getOrderListApi().then(res=>{
// // debugger
// let that = this // let that = this
// let arr = [] // let arr = []
// res.list.forEach(el => { // res.list.forEach(el => {
// if(el.buy_type==2&&el.status==1){ // if(el.buy_type==2&&el.status==1){
// el.goods_desc= JSON.parse(el.goods_desc) // if(new Date(el.group_info.deadline.replace(/-/g, '/')).getTime()>=new Date().getTime()){
// arr.push(el) // el.goods_desc= JSON.parse(el.goods_desc)
// let Interval = setInterval(function () { // arr.push(el)
// that.countTime = commom.leftTimer(new Date(el.group_info.deadline.replace(/-/g, '/')),Interval) // let Interval = setInterval(function () {
// }, 1000) // that.countTime = commom.leftTimer(new Date(el.group_info.deadline.replace(/-/g, '/')),Interval)
// }, 1000)
// }
// } // }
// }); // });
// this.orderList = arr // this.orderList = arr
// console.log(arr) // console.log(arr)
// sessionStorage.getItem("pt")
// }) // })
}, },
dateParse(dateString) { dateParse(dateString) {
......
...@@ -565,7 +565,7 @@ export default { ...@@ -565,7 +565,7 @@ export default {
this.thisLesson.star_num = data.star_num; this.thisLesson.star_num = data.star_num;
this.popupVisible = true; this.popupVisible = true;
let query = { let query = {
periods_id:this.secActions.id, periods_id:'999999999',
// periods_id:undefined, // periods_id:undefined,
category_id:this.thisLesson.categoryId, category_id:this.thisLesson.categoryId,
elementId:this.thisLesson.id, elementId:this.thisLesson.id,
......
...@@ -137,6 +137,7 @@ import {Toast} from 'vant' ...@@ -137,6 +137,7 @@ import {Toast} from 'vant'
// debugger // debugger
}, },
enableShare: function(option) { enableShare: function(option) {
let query = JSON.parse(sessionStorage.getItem('classQuery'))
let that = this; let that = this;
getwechatParam({ getwechatParam({
api_list: 'onMenuShareAppMessage,onMenuShareTimeline', api_list: 'onMenuShareAppMessage,onMenuShareTimeline',
...@@ -168,7 +169,7 @@ import {Toast} from 'vant' ...@@ -168,7 +169,7 @@ import {Toast} from 'vant'
classID:JSON.parse(localStorage.getItem('lessonDetail')).classID, classID:JSON.parse(localStorage.getItem('lessonDetail')).classID,
buttonName:'完成分享', buttonName:'完成分享',
partName:that.contentData.partName, partName:that.contentData.partName,
elementID:that.$route.query.elementId.toString(), elementID:query.elementId.toString(),
}); });
let lessonDetail = JSON.parse(localStorage.getItem('lessonDetail')); let lessonDetail = JSON.parse(localStorage.getItem('lessonDetail'));
let nowTime = Date.parse(new Date()); let nowTime = Date.parse(new Date());
...@@ -177,7 +178,7 @@ import {Toast} from 'vant' ...@@ -177,7 +178,7 @@ import {Toast} from 'vant'
page_id:4, page_id:4,
stay_time:0, stay_time:0,
}; };
subUserLessonApi(that.$route.query.elementId,that.$route.query.category_id,that.$route.query.periods_id,json).then(res=>{ subUserLessonApi(query.elementId,query.category_id,query.periods_id,json).then(res=>{
lessonDetail.total_watch_time = res; lessonDetail.total_watch_time = res;
lessonDetail.nowTime = nowTime; lessonDetail.nowTime = nowTime;
localStorage.setItem('lessonDetail',JSON.stringify(lessonDetail)); localStorage.setItem('lessonDetail',JSON.stringify(lessonDetail));
...@@ -196,7 +197,7 @@ import {Toast} from 'vant' ...@@ -196,7 +197,7 @@ import {Toast} from 'vant'
classID:JSON.parse(localStorage.getItem('lessonDetail')).classID, classID:JSON.parse(localStorage.getItem('lessonDetail')).classID,
buttonName:'取消分享', buttonName:'取消分享',
partName:that.contentData.partName, partName:that.contentData.partName,
elementID:that.$route.query.elementId.toString(), elementID:query.elementId.toString(),
}); });
that.$emit('backList') that.$emit('backList')
} }
...@@ -217,7 +218,7 @@ import {Toast} from 'vant' ...@@ -217,7 +218,7 @@ import {Toast} from 'vant'
classID:JSON.parse(localStorage.getItem('lessonDetail')).classID, classID:JSON.parse(localStorage.getItem('lessonDetail')).classID,
buttonName:'完成分享', buttonName:'完成分享',
partName:that.contentData.partName, partName:that.contentData.partName,
elementID:that.$route.query.elementId.toString(), elementID:query.elementId.toString(),
}); });
let lessonDetail = JSON.parse(localStorage.getItem('lessonDetail')); let lessonDetail = JSON.parse(localStorage.getItem('lessonDetail'));
let nowTime = Date.parse(new Date()); let nowTime = Date.parse(new Date());
...@@ -226,7 +227,7 @@ import {Toast} from 'vant' ...@@ -226,7 +227,7 @@ import {Toast} from 'vant'
page_id:4, page_id:4,
stay_time:0, stay_time:0,
}; };
subUserLessonApi(that.$route.query.elementId,that.$route.query.category_id,that.$route.query.periods_id,json).then(res=>{ subUserLessonApi(query.elementId,query.category_id,query.periods_id,json).then(res=>{
lessonDetail.total_watch_time = res; lessonDetail.total_watch_time = res;
lessonDetail.nowTime = nowTime; lessonDetail.nowTime = nowTime;
localStorage.setItem('lessonDetail',JSON.stringify(lessonDetail)); localStorage.setItem('lessonDetail',JSON.stringify(lessonDetail));
...@@ -244,7 +245,7 @@ import {Toast} from 'vant' ...@@ -244,7 +245,7 @@ import {Toast} from 'vant'
classID:JSON.parse(localStorage.getItem('lessonDetail')).classID, classID:JSON.parse(localStorage.getItem('lessonDetail')).classID,
buttonName:'取消分享', buttonName:'取消分享',
partName:that.contentData.partName, partName:that.contentData.partName,
elementID:that.$route.query.elementId.toString(), elementID:query.elementId.toString(),
}); });
} }
}); });
......
<template>
<div>
<van-popup class="refer-share" position="top" v-model="showShare"><img :src="shareTipsUrl"></van-popup>
<!-- <div class="tips" v-if="orderList.length < 1">
暂无订单
</div> -->
<div v-if="orderList.length < 1" class="unStart">
<img :src="mok4" alt="">
<p>还没有订单哦~</p>
<div @click="goIndex">去逛逛吧</div>
</div>
<div class="listBox">
<div v-for="(data,index) in orderList" class="list">
<div class="head" @click="goDetail(index)">
<div class="bg-img" v-if="data.goods_desc" :style="{backgroundImage: `url(${data.goods_desc.img[0].url})`}">
</div>
<div class="content">
<div class="title">{{data.goods_name}}</div>
<div v-if="data.goods_desc" class="desc">{{data.goods_desc.desc}}</div>
<div class="time">付款时间:{{data.pay_at}}</div>
<div class="bottom"><span class="payMoney">实付:{{data.money/100}}</span><span class="share" v-if="data.buy_type === 2 && data.status !== 4" @click="shareOrder(data)">
<img :src="shareUrl"/>点击分享
</span></div>
</div>
</div>
<!-- <div class="footer">
<span :class="{red:data.status === 1}">{{data.status | orderType}}</span>
</div> -->
</div>
</div>
</div>
</template>
<script>
import {getOrderListApi,getwechatParam} from "../service/api";
import {ORDERTYPE} from "../util/wordbook";
import shareUrl from '../assets/share.png'
import mok4 from '../assets/orderless.png'
import { Toast } from 'vant';
import shareTipsUrl from '../assets/Bitmap@2x.png'
export default {
name: "order",
data(){
return {
orderList:[],
showShare:false,
shareTipsUrl:shareTipsUrl,
shareUrl:shareUrl,
mok4:mok4,
shopId:''
}
},
filters:{
orderType(value){
return ORDERTYPE[value]
}
},
mounted(){
this.initPage()
},
methods:{
goDetail(index){
if(this.orderList[index].buy_type==1){
this.$router.push({
name: 'buySuccess',
query:{
out_trade_no:this.orderList[index].out_trade_no
}
});
}else{
this.$router.push({
name: 'success',
query:{
out_trade_no:this.orderList[index].out_trade_no
}
});
}
},
goIndex(){
this.$router.push({
name: "index"
});
},
initPage(){
getwechatParam({
api_list:'onMenuShareAppMessage,onMenuShareTimeline',
url:window.location.href.split('#')[0]
}).then(res=>{
wx.config({
debug: false,
appId: res.appId,
timestamp: parseInt(res.timestamp),
nonceStr: res.nonceStr,
signature: res.signature,
jsApiList: res.jsApiList
});
});
getOrderListApi({status:1}).then(res=>{
res.list.forEach(i=>{
if(i.goods_desc){
i.goods_desc= JSON.parse(i.goods_desc)
}
});
this.orderList = res.list
})
},
shareOrder(data){
this.$sa.track('buttonClick',{
tabTitle:'订单',
moduleTitle:'订单',
buttonType:'分享',
buttonName:'团购分享'
});
this.showShare = true;
let invite_code;
if(!data.invite_id || data.invite_id == '') {
invite_code = 'CC-USER-' + data.user_id;
}else if(data.invite_type === 'TEACHER'){
invite_code = `CC-USER-${data.user_id}`;
}else{
invite_code = `CC-${data.invite_type}-${data.user_id}`;
}
let shareData = JSON.parse(data.share_desc);
let that =this;
let shareUrl = `${process.env.BUY_URL}shopId=${data.goods_id}&groupId=${data.order_group_id}&invite_code=${invite_code}'`;
wx.onMenuShareAppMessage({
title: shareData.title, // 分享标题
desc: shareData.content,// 分享描述
link: shareUrl, // 分享链接
imgUrl: shareData.img[0]?shareData.img[0].url : 'https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png', // 分享图标
success: function() {
Toast('分享成功');
that.showShare = false
},
});
wx.onMenuShareTimeline({
title: shareData.title, // 分享标题
desc: shareData.content,// 分享描述
link: shareUrl, // 分享链接
imgUrl: shareData.img[0]?shareData.img[0].url : 'https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png', // 分享图标
success: function() {
Toast('分享成功');
that.showShare = false
},
});
}
}
}
</script>
<style scoped lang="less">
@import "../util/public";
.child-view{background: white;}
.unStart{
text-align: center;
img{width:300*@toVw; }
p{line-height: 22px;font-size: 16px;color: #666666;}
div{width:250*@toVw;height: 40*@toVw;line-height:40*@toVw;background: #40A9FF;color: white;border-radius: 20*@toVw;margin-top: 72*@toVw }
}
.refer-share {
width: 100%;overflow-y:visible;
}
.refer-share img {
position: absolute;
width: 80%;
right: 0;
z-index: 2002;
}
.tips{
padding: 20 * @toVw;
font-size: 24px;
text-align: center;
color: #888888;
}
.listBox{padding: 15*@toVw;}
.list{
box-shadow:0px 3px 8px 0px rgba(0,0,0,0.1);
border-radius:15px;
overflow: hidden;
.bg-img{
width: 108*@toVw;
height:108*@toVw ;
margin-right: 5 * @toVw;
margin-left: 0 * @toVw;
background-size:100% 100%;
}
.head{
display: flex;
display: -webkit-flex;
justify-content: center;
align-items: center;
line-height: 1.4em;
position: relative;
flex-flow: row nowrap;
// margin-right: 10px;
.content{
font-size: 12* @toVw;
color: #999;
.title{
width: 160* @toVw;margin-left: 0; overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
color: #666;
}
.desc{width: 160* @toVw;margin-left: 0; overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap}
.bottom{display: flex;display: -webkit-flex;justify-content: space-between;
.share{
img{
width: 16 *@toVw;
display: inline-block;
margin-right: 3 * @toVw;
vertical-align: text-bottom;
}
}
.payMoney{margin-left: 0;}
}
}
}
.footer{
display: flex;
display: -webkit-flex;
flex-flow: row nowrap;
justify-content: space-between;
align-items: center;
margin-left: 10px;
margin-right: 10px;
padding: 6px 12px;
color: #999;
font-size: 12 * @toVw;
border: 1px solid #ccc;
border-top: none;
border-bottom-left-radius: 9px;
border-bottom-right-radius: 9px;
box-shadow: 0px 2px 1px 0px rgba(0,0,0,0.1);
span{
margin: 0;
line-height: 20 * @toVw;
}
.red{
color: #f06a33;
}
}
}
</style>
...@@ -55,39 +55,39 @@ export default { ...@@ -55,39 +55,39 @@ export default {
// 倒计时 // 倒计时
leftTimer(enddate,Interval) { leftTimer(enddate,Interval) {
if (enddate > new Date()) { if (enddate > new Date()) {
var leftTime = (enddate) - new Date(); //计算剩余的毫秒数 var leftTime = (enddate) - new Date(); //计算剩余的毫秒数
}else{ }else{
if(Interval){ if(Interval){
clearInterval(Interval) clearInterval(Interval)
}
// console.log(enddate)
// console.log(new Date())
var leftTime = 0
} }
// console.log(enddate)
// console.log(new Date())
var leftTime = 0
}
var days = parseInt(leftTime / 1000 / 60 / 60 / 24, 10); //计算剩余的天数 var days = parseInt(leftTime / 1000 / 60 / 60 / 24, 10); //计算剩余的天数
var hours = parseInt(leftTime / 1000 / 60 / 60 % 24, 10); //计算剩余的小时 var hours = parseInt(leftTime / 1000 / 60 / 60 % 24, 10); //计算剩余的小时
var minutes = parseInt(leftTime / 1000 / 60 % 60, 10);//计算剩余的分钟 var minutes = parseInt(leftTime / 1000 / 60 % 60, 10);//计算剩余的分钟
var seconds = parseInt(leftTime / 1000 % 60, 10);//计算剩余的秒数 var seconds = parseInt(leftTime / 1000 % 60, 10);//计算剩余的秒数
days = this.checkTime(days); days = this.checkTime(days);
hours = this.checkTime(hours); hours = this.checkTime(hours);
minutes = this.checkTime(minutes); minutes = this.checkTime(minutes);
seconds = this.checkTime(seconds); seconds = this.checkTime(seconds);
// console.log(hours) // console.log(hours)
// console.log(minutes) // console.log(minutes)
// console.log(seconds) // console.log(seconds)
if(days > 0){ if(days > 0){
return days + "天" return days + "天"
}else if(hours >= 0 || minutes >= 0 || seconds >= 0){ }else if(hours >= 0 || minutes >= 0 || seconds >= 0){
return hours + ":" + minutes + ":" + seconds; return hours + ":" + minutes + ":" + seconds;
} }
// if (days >= 0 || hours >= 0 || minutes >= 0 || seconds >= 0) return days + "天" + hours + ":" + minutes + ":" + seconds; // if (days >= 0 || hours >= 0 || minutes >= 0 || seconds >= 0) return days + "天" + hours + ":" + minutes + ":" + seconds;
// if (days >= 0 || hours >= 0 || minutes >= 0 || seconds >= 0) return "<span>" + days + "</span>天<span>" + hours + "</span>时<span>" + minutes + "</span>分<span>" + seconds + "</span>秒"; // if (days >= 0 || hours >= 0 || minutes >= 0 || seconds >= 0) return "<span>" + days + "</span>天<span>" + hours + "</span>时<span>" + minutes + "</span>分<span>" + seconds + "</span>秒";
// if (days <= 0 && hours <= 0 && minutes <= 0 && seconds <= 0) { // if (days <= 0 && hours <= 0 && minutes <= 0 && seconds <= 0) {
// window.clearInterval(_ordertimer); // window.clearInterval(_ordertimer);
// _ordertimer = null; // _ordertimer = null;
// } // }
}, },
checkTime(i) { //将0-9的数字前面加上0,例1变为01 checkTime(i) { //将0-9的数字前面加上0,例1变为01
if (i < 10) { if (i < 10) {
......
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