Commit 6f55ce06 by caixinyu

更新详情时间24格式为48;更改拼团页面为登录不跳转登录页面

parent 90f46553
...@@ -83,8 +83,8 @@ ...@@ -83,8 +83,8 @@
"deposit-pay-order.js": "/mrstaticjs/deposit-pay-order.6afbafef.chunk.js", "deposit-pay-order.js": "/mrstaticjs/deposit-pay-order.6afbafef.chunk.js",
"deposit-pay-order.js.map": "/mrstaticjs/deposit-pay-order.6afbafef.chunk.js.map", "deposit-pay-order.js.map": "/mrstaticjs/deposit-pay-order.6afbafef.chunk.js.map",
"detail.css": "/mrstaticcss/detail.bba8f30f.chunk.css", "detail.css": "/mrstaticcss/detail.bba8f30f.chunk.css",
"detail.js": "/mrstaticjs/detail.814b7bb4.chunk.js", "detail.js": "/mrstaticjs/detail.cc03d6f7.chunk.js",
"detail.js.map": "/mrstaticjs/detail.814b7bb4.chunk.js.map", "detail.js.map": "/mrstaticjs/detail.cc03d6f7.chunk.js.map",
"intelligent-recommend.css": "/mrstaticcss/intelligent-recommend.895d73ce.chunk.css", "intelligent-recommend.css": "/mrstaticcss/intelligent-recommend.895d73ce.chunk.css",
"intelligent-recommend.js": "/mrstaticjs/intelligent-recommend.23f34b7d.chunk.js", "intelligent-recommend.js": "/mrstaticjs/intelligent-recommend.23f34b7d.chunk.js",
"intelligent-recommend.js.map": "/mrstaticjs/intelligent-recommend.23f34b7d.chunk.js.map", "intelligent-recommend.js.map": "/mrstaticjs/intelligent-recommend.23f34b7d.chunk.js.map",
...@@ -115,8 +115,8 @@ ...@@ -115,8 +115,8 @@
"python-class.css": "/mrstaticcss/python-class.af18e67a.chunk.css", "python-class.css": "/mrstaticcss/python-class.af18e67a.chunk.css",
"python-class.js": "/mrstaticjs/python-class.f057d585.chunk.js", "python-class.js": "/mrstaticjs/python-class.f057d585.chunk.js",
"python-class.js.map": "/mrstaticjs/python-class.f057d585.chunk.js.map", "python-class.js.map": "/mrstaticjs/python-class.f057d585.chunk.js.map",
"runtime-main.js": "/mrstaticjs/runtime-main.79f4d1a0.js", "runtime-main.js": "/mrstaticjs/runtime-main.55f77f1b.js",
"runtime-main.js.map": "/mrstaticjs/runtime-main.79f4d1a0.js.map", "runtime-main.js.map": "/mrstaticjs/runtime-main.55f77f1b.js.map",
"search.css": "/mrstaticcss/search.b0c8ab06.chunk.css", "search.css": "/mrstaticcss/search.b0c8ab06.chunk.css",
"search.js": "/mrstaticjs/search.22ac0029.chunk.js", "search.js": "/mrstaticjs/search.22ac0029.chunk.js",
"search.js.map": "/mrstaticjs/search.22ac0029.chunk.js.map", "search.js.map": "/mrstaticjs/search.22ac0029.chunk.js.map",
...@@ -130,8 +130,8 @@ ...@@ -130,8 +130,8 @@
"system-notices.js": "/mrstaticjs/system-notices.8ed83d6f.chunk.js", "system-notices.js": "/mrstaticjs/system-notices.8ed83d6f.chunk.js",
"system-notices.js.map": "/mrstaticjs/system-notices.8ed83d6f.chunk.js.map", "system-notices.js.map": "/mrstaticjs/system-notices.8ed83d6f.chunk.js.map",
"togroup.css": "/mrstaticcss/togroup.3d97fe71.chunk.css", "togroup.css": "/mrstaticcss/togroup.3d97fe71.chunk.css",
"togroup.js": "/mrstaticjs/togroup.2b6688e2.chunk.js", "togroup.js": "/mrstaticjs/togroup.8a6a797b.chunk.js",
"togroup.js.map": "/mrstaticjs/togroup.2b6688e2.chunk.js.map", "togroup.js.map": "/mrstaticjs/togroup.8a6a797b.chunk.js.map",
"treasure-box-home.css": "/mrstaticcss/treasure-box-home.2e425d64.chunk.css", "treasure-box-home.css": "/mrstaticcss/treasure-box-home.2e425d64.chunk.css",
"treasure-box-home.js": "/mrstaticjs/treasure-box-home.c45030e1.chunk.js", "treasure-box-home.js": "/mrstaticjs/treasure-box-home.c45030e1.chunk.js",
"treasure-box-home.js.map": "/mrstaticjs/treasure-box-home.c45030e1.chunk.js.map", "treasure-box-home.js.map": "/mrstaticjs/treasure-box-home.c45030e1.chunk.js.map",
...@@ -279,11 +279,11 @@ ...@@ -279,11 +279,11 @@
"mrstaticmedia/kanjia_cg_icon.png": "/mrstaticmedia/kanjia_cg_icon.81a489ac.png", "mrstaticmedia/kanjia_cg_icon.png": "/mrstaticmedia/kanjia_cg_icon.81a489ac.png",
"mrstaticmedia/video.scss": "/mrstaticmedia/progress-share-bg.80011994.png", "mrstaticmedia/video.scss": "/mrstaticmedia/progress-share-bg.80011994.png",
"mrstaticmedia/tanchuang.png": "/mrstaticmedia/tanchuang.de9468e5.png", "mrstaticmedia/tanchuang.png": "/mrstaticmedia/tanchuang.de9468e5.png",
"precache-manifest.06941c3bef3a1737d043bc089b0ef763.js": "/precache-manifest.06941c3bef3a1737d043bc089b0ef763.js", "precache-manifest.e1b6e4ed7ffb3bc434b5d0236db48a9c.js": "/precache-manifest.e1b6e4ed7ffb3bc434b5d0236db48a9c.js",
"service-worker.js": "/service-worker.js" "service-worker.js": "/service-worker.js"
}, },
"entrypoints": [ "entrypoints": [
"mrstaticjs/runtime-main.79f4d1a0.js", "mrstaticjs/runtime-main.55f77f1b.js",
"mrstaticcss/51.ee6d5e86.chunk.css", "mrstaticcss/51.ee6d5e86.chunk.css",
"mrstaticjs/51.54378fc2.chunk.js", "mrstaticjs/51.54378fc2.chunk.js",
"mrstaticcss/main.a40f1613.chunk.css", "mrstaticcss/main.a40f1613.chunk.css",
......
This source diff could not be displayed because it is too large. You can view the blob instead.
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[45],{1144:function(e,a,t){"use strict";t.r(a);t(135);var n,s=t(71),c=t.n(s),r=(t(83),t(29)),o=t.n(r),i=(t(134),t(34)),l=t.n(i),d=(t(203),t(85)),m=t.n(d),u=(t(36),t(10)),p=t.n(u),_=t(3),E=t(5),f=t(6),h=t(7),v=t(0),N=t.n(v),g=(t(730),t(25)),b=t(1),w=t(20),y=t(15),C=Object(w.b)((function(e){return{user:e.user}}))(n=function(e){Object(f.a)(t,e);var a=Object(h.a)(t);function t(e){var n;return Object(_.a)(this,t),(n=a.call(this,e)).invitedFriends=function(){var e=n.state,a=e.pdd_price,t=e.number,s=e.data;if(b.b.isWeixin){var c=n.state.share;n.setState({share:!c}),Object(b.m)({title:"\u3010\u4ec5\u5269".concat(t,"\u4e2a\u540d\u989d\u3011\u6211").concat(a,"\u5143\u62fc\u4e86\u300a").concat(s.course_title,"\u300b"),desc:s.course_title,link:window.location.href+"&is_originator=1",imgUrl:s.image_name})}else p.a.info("\u8bf7\u5728\u5fae\u4fe1\u4e2d\u4f7f\u7528\u5206\u4eab\u529f\u80fd\uff01",2)},n.toCourseDetail=function(e){return n.props.history.push("/detail?id=".concat(e),{href:"/classify"}),!1},n.handleToGroup=function(){var e=n.state,a=e.isBuy,t=void 0!==a&&a,s=e.data,c=void 0===s?{}:s,r=n.props,o=r.user,i=r.history,l=r.location;if(o.hasError)if(b.b.isWeixin){var d=window.location.href;if(d.includes("code=")&&d.includes("state=STATE")){var m=d.lastIndexOf("code=");d=d.substr(0,m-1)}window.location.assign("https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=".concat(encodeURIComponent(d),"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"))}else i.push("/passport",{from:l});else t?n.setState({modal:!0}):i.push("/order?id=".concat(c.course_id),{group:1,pdd_order_id:n.state.pddOrderId})},n.state={data:{},share:!1,pdd_price:0,groupon_member:[],person_num:0,is_success:!1,number:0,isBuy:!1,modal:!1,pddOrderId:"",is_new_user:!1},n}return Object(E.a)(t,[{key:"componentDidMount",value:function(){var e=this;b.f.get("".concat(API["base-api"],"/pdd/info/").concat(Object(b.c)("id"))).then((function(a){if(0===a.data.errno){if(e.setState({data:a.data.data.course_info,pdd_price:a.data.data.pdd_price,groupon_member:a.data.data.groupon_member,is_success:a.data.data.is_success,person_num:a.data.data.person_num,course_list:a.data.data.course_list,number:a.data.data.number,pddOrderId:a.data.data.pdd_order_id,countdown:"",isBuy:a.data.data.is_buy}),0===a.data.data.is_success){var t=1e3*a.data.data.end_time,n=0,s=0,c=0,r=0;setInterval((function(){t-=1e3,a.data.data.end_time>86400?(n="".concat(parseInt(t/864e5)).padStart(2,0),s="".concat(parseInt((t-36e5*n*24)/36e5)).padStart(2,0),c="".concat(parseInt((t-36e5*n*24-36e5*s)/6e4)).padStart(2,0),e.setState({countdown:"".concat(n,"\u5929").concat(s,"\u65f6").concat(c,"\u5206")})):(s="".concat(parseInt(t/36e5)).padStart(2,0),c="".concat(parseInt((t-36e5*s)/6e4)).padStart(2,0),r="".concat(parseInt((t-36e5*s-6e4*c)/1e3)).padStart(2,0),e.setState({countdown:"".concat(s,":").concat(c,":").concat(r)}))}),1e3)}}else p.a.info(a.data.msg,2)})),b.f.get("".concat(API.home,"/m/user_info_sample/0")).then((function(a){200===a.code?(console.log("\u5df2\u7ecf\u767b\u5f55"),e.setState({is_new_user:a.data.is_new_user})):(console.log("\u53bb\u767b\u5f55"),e.props.history.push("/passport",{from:e.props.location}))}))}},{key:"render",value:function(){var e=this,a=this.state,t=a.data,n=t.course_id,s=t.course_title,c=t.simpledescription,r=t.price0,o=t.price1,i=a.is_success,d=a.course_list,u=(a.is_new_user,N.a.createElement("div",{className:"info"},N.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(n)}},s),N.a.createElement("p",{className:"contact text-overflow-2"},c),N.a.createElement("div",{className:"des"},N.a.createElement("p",{className:"course-price"},N.a.createElement("span",{className:"new"},"\xa5",o),N.a.createElement("span",{className:"old"},"\xa5",r)))));return N.a.createElement("div",{className:"to-group-box"},N.a.createElement(g.e,{title:"\u62fc\u56e2",cart:!1,toHref:"/"}),N.a.createElement(m.a,{transparent:!0,visible:this.state.modal,title:"\u63d0\u793a",footer:[{text:"\u786e\u5b9a",onPress:function(){e.setState({modal:!1}),e.props.history.push("/")}}]},N.a.createElement("p",null,"\u60a8\u5df2\u7ecf\u8d2d\u4e70\u8fc7\u8be5\u8bfe\u7a0b\uff5e")),!i&&N.a.createElement(g.j,{img:this.state.data.image_name,id:this.state.data.course_id,info:u,toDetail:this.toCourseDetail}),N.a.createElement(I,{data:this.state,invitedFriends:this.invitedFriends,handleToGroup:this.handleToGroup,userInfo:this.props.user}),N.a.createElement(l.a,null),N.a.createElement("div",{className:"group-course"},N.a.createElement("div",{className:"top-title"},N.a.createElement("span",null,"\u672c\u5468\u7279\u60e0")),d&&d.length>0&&d[0].course&&d[0].course.length>0&&d[0].course.slice(0,4).map((function(a){var t=N.a.createElement("div",{className:"info"},N.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(a.course_id)}},a.course_title),N.a.createElement("p",{className:"contact text-overflow-2"},a.simpledescription),N.a.createElement("div",{className:"des"},N.a.createElement("p",{className:"course-price"},N.a.createElement("span",{className:"new"},"\xa5",a.pdd_price),N.a.createElement("span",{className:"old"},"\xa5",a.price0))));return N.a.createElement(g.j,{img:a.image_name,key:a.course_id,id:a.course_id,info:t,toDetail:e.toCourseDetail})}))))}}]),t}(v.Component))||n;function I(e){for(var a,t,n,s,r=e.data,i=r.pdd_price,l=r.data,d=r.groupon_member,m=r.is_success,u=r.person_num,p=r.share,_=r.number,E=r.countdown,f=r.is_new_user,h=e.userInfo,v=[],g=_;0!=g;)v.push(g),g--;if(s=N.a.createElement("div",{className:"group-user-list"},N.a.createElement(o.a,{justify:"center",className:"imgList"},d.map((function(e){return N.a.createElement("div",{className:"imgContainer",key:Math.random()},N.a.createElement("img",{className:"imgname",src:e.avatar,alt:""}),1===e.user_type?N.a.createElement("div",{className:"leaderFlag"},N.a.createElement("span",null,"\u56e2\u957f")):null)})),v.map((function(e){return N.a.createElement("div",{className:"imgContainer",key:Math.random()},N.a.createElement("div",{className:"imgname"},N.a.createElement("i",{className:"iconfont iconwode-xianxing no-body"})))})))),d&&d.length>0){var w=!1;!h.hasError&&d.forEach((function(e){e.uid==h.data.uid&&(w=!0)})),w?(a=f?N.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(Math.round(l.price1-i,2),"\u5143")):N.a.createElement("p",null,"\u60a8\u5df2\u662f\u4e03\u6708\u7684\u8001\u670b\u53cb\uff0c\u5feb\u5f00\u56e2\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u5427"),t=N.a.createElement("span",{className:"group-btn",onClick:e.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",E," \u540e\u7ed3\u675f"),n=N.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")):1==Object(b.c)("is_originator")?(a=f?N.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(Math.round(l.price1-i,2),"\u5143")):N.a.createElement("p",null,"\u60a8\u5df2\u662f\u4e03\u6708\u7684\u8001\u670b\u53cb\uff0c\u5feb\u5f00\u56e2\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u5427"),t=N.a.createElement("a",{href:"javascript:;",className:"group-btn",onClick:e.handleToGroup},"\u4e00\u952e\u5f00\u56e2")):(a=f?N.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(Math.round(l.price1-i,2),"\u5143")):N.a.createElement("p",null,"\u60a8\u5df2\u662f\u4e03\u6708\u7684\u8001\u670b\u53cb\uff0c\u5feb\u5f00\u56e2\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u5427"),t=N.a.createElement("span",{className:"group-btn",onClick:e.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",E," \u540e\u7ed3\u675f"),n=N.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%"))}return 1===m&&(a=N.a.createElement("p",{className:"success"},"\u62fc\u56e2\u6210\u529f"),t=N.a.createElement(y.b,{to:"/detail?id=".concat(l.course_id),className:"tostudy"},"\u53bb\u5b66\u4e60")),N.a.createElement("div",{className:"gorup-content"},p?N.a.createElement("div",{className:"groupSuccessMbc",onClick:e.invitedFriends},N.a.createElement("div",{className:"tipContent"},"\u8fd8\u5dee".concat(_,"\u4eba\uff0c\u5206\u4eab\u52303\u4e2a\u7fa4\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")),N.a.createElement("div",{className:"tipArrow"},N.a.createElement("i",{className:"iconfont iconyindao"}))):null,a,N.a.createElement(c.a,null,s),N.a.createElement(c.a,null,t),n,!m&&N.a.createElement("div",{className:"group-dec"},N.a.createElement("span",null,N.a.createElement("i",{className:"iconfont iconiconfront-1"}),"\xb7\u597d\u53cb\u53c2\u56e2 \xb7\u4eba\u6ee1\u6210\u4ea4 \xb7\u4eba\u4e0d\u6ee1\u9000\u6b3e"),N.a.createElement("span",{className:"allNum"},"\u7d2f\u8ba1".concat(u,"\u4eba\u6210\u56e2"))))}a.default=C},730:function(e,a,t){}}]);
//# sourceMappingURL=togroup.2b6688e2.chunk.js.map
\ No newline at end of file
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[45],{1144:function(e,a,t){"use strict";t.r(a);t(135);var n,c=t(71),s=t.n(c),r=(t(83),t(29)),i=t.n(r),o=(t(134),t(34)),l=t.n(o),d=(t(203),t(85)),m=t.n(d),u=(t(36),t(10)),p=t.n(u),_=t(3),E=t(5),f=t(6),h=t(7),v=t(0),N=t.n(v),g=(t(730),t(25)),b=t(1),w=t(20),y=t(15),C=Object(w.b)((function(e){return{user:e.user}}))(n=function(e){Object(f.a)(t,e);var a=Object(h.a)(t);function t(e){var n;return Object(_.a)(this,t),(n=a.call(this,e)).invitedFriends=function(){var e=n.state,a=e.pdd_price,t=e.number,c=e.data;if(b.b.isWeixin){var s=n.state.share;n.setState({share:!s}),Object(b.m)({title:"\u3010\u4ec5\u5269".concat(t,"\u4e2a\u540d\u989d\u3011\u6211").concat(a,"\u5143\u62fc\u4e86\u300a").concat(c.course_title,"\u300b"),desc:c.course_title,link:window.location.href+"&is_originator=1",imgUrl:c.image_name})}else p.a.info("\u8bf7\u5728\u5fae\u4fe1\u4e2d\u4f7f\u7528\u5206\u4eab\u529f\u80fd\uff01",2)},n.toCourseDetail=function(e){return n.props.history.push("/detail?id=".concat(e),{href:"/classify"}),!1},n.handleToGroup=function(){var e=n.state,a=e.isBuy,t=void 0!==a&&a,c=e.data,s=void 0===c?{}:c,r=n.props,i=r.user,o=r.history,l=r.location;if(i.hasError)if(b.b.isWeixin){var d=window.location.href;if(d.includes("code=")&&d.includes("state=STATE")){var m=d.lastIndexOf("code=");d=d.substr(0,m-1)}window.location.assign("https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=".concat(encodeURIComponent(d),"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"))}else o.push("/passport",{from:l});else t?n.setState({modal:!0}):o.push("/order?id=".concat(s.course_id),{group:1,pdd_order_id:n.state.pddOrderId})},n.state={data:{},share:!1,pdd_price:0,groupon_member:[],person_num:0,is_success:!1,number:0,isBuy:!1,modal:!1,pddOrderId:"",is_new_user:!1},n}return Object(E.a)(t,[{key:"componentDidMount",value:function(){var e=this;b.f.get("".concat(API["base-api"],"/pdd/info/").concat(Object(b.c)("id"))).then((function(a){if(0===a.data.errno){if(e.setState({data:a.data.data.course_info,pdd_price:a.data.data.pdd_price,groupon_member:a.data.data.groupon_member,is_success:a.data.data.is_success,person_num:a.data.data.person_num,course_list:a.data.data.course_list,number:a.data.data.number,pddOrderId:a.data.data.pdd_order_id,countdown:"",isBuy:a.data.data.is_buy}),0===a.data.data.is_success){var t=1e3*a.data.data.end_time,n=0,c=0,s=0,r=0;setInterval((function(){t-=1e3,a.data.data.end_time>86400?(n="".concat(parseInt(t/864e5)).padStart(2,0),c="".concat(parseInt((t-36e5*n*24)/36e5)).padStart(2,0),s="".concat(parseInt((t-36e5*n*24-36e5*c)/6e4)).padStart(2,0),e.setState({countdown:"".concat(n,"\u5929").concat(c,"\u65f6").concat(s,"\u5206")})):(c="".concat(parseInt(t/36e5)).padStart(2,0),s="".concat(parseInt((t-36e5*c)/6e4)).padStart(2,0),r="".concat(parseInt((t-36e5*c-6e4*s)/1e3)).padStart(2,0),e.setState({countdown:"".concat(c,":").concat(s,":").concat(r)}))}),1e3)}}else p.a.info(a.data.msg,2)})),b.f.get("".concat(API.home,"/m/user_info_sample/0")).then((function(a){200===a.code?(console.log("\u5df2\u7ecf\u767b\u5f55"),e.setState({is_new_user:a.data.is_new_user})):console.log("\u53bb\u767b\u5f55")}))}},{key:"render",value:function(){var e=this,a=this.state,t=a.data,n=t.course_id,c=t.course_title,s=t.simpledescription,r=t.price0,i=t.price1,o=a.is_success,d=a.course_list,u=(a.is_new_user,N.a.createElement("div",{className:"info"},N.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(n)}},c),N.a.createElement("p",{className:"contact text-overflow-2"},s),N.a.createElement("div",{className:"des"},N.a.createElement("p",{className:"course-price"},N.a.createElement("span",{className:"new"},"\xa5",i),N.a.createElement("span",{className:"old"},"\xa5",r)))));return N.a.createElement("div",{className:"to-group-box"},N.a.createElement(g.e,{title:"\u62fc\u56e2",cart:!1,toHref:"/"}),N.a.createElement(m.a,{transparent:!0,visible:this.state.modal,title:"\u63d0\u793a",footer:[{text:"\u786e\u5b9a",onPress:function(){e.setState({modal:!1}),e.props.history.push("/")}}]},N.a.createElement("p",null,"\u60a8\u5df2\u7ecf\u8d2d\u4e70\u8fc7\u8be5\u8bfe\u7a0b\uff5e")),!o&&N.a.createElement(g.j,{img:this.state.data.image_name,id:this.state.data.course_id,info:u,toDetail:this.toCourseDetail}),N.a.createElement(I,{data:this.state,invitedFriends:this.invitedFriends,handleToGroup:this.handleToGroup,userInfo:this.props.user}),N.a.createElement(l.a,null),N.a.createElement("div",{className:"group-course"},N.a.createElement("div",{className:"top-title"},N.a.createElement("span",null,"\u672c\u5468\u7279\u60e0")),d&&d.length>0&&d[0].course&&d[0].course.length>0&&d[0].course.slice(0,4).map((function(a){var t=N.a.createElement("div",{className:"info"},N.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(a.course_id)}},a.course_title),N.a.createElement("p",{className:"contact text-overflow-2"},a.simpledescription),N.a.createElement("div",{className:"des"},N.a.createElement("p",{className:"course-price"},N.a.createElement("span",{className:"new"},"\xa5",a.pdd_price),N.a.createElement("span",{className:"old"},"\xa5",a.price0))));return N.a.createElement(g.j,{img:a.image_name,key:a.course_id,id:a.course_id,info:t,toDetail:e.toCourseDetail})}))))}}]),t}(v.Component))||n;function I(e){for(var a,t,n,c,r=e.data,o=r.pdd_price,l=r.data,d=r.groupon_member,m=r.is_success,u=r.person_num,p=r.share,_=r.number,E=r.countdown,f=r.is_new_user,h=e.userInfo,v=[],g=_;0!=g;)v.push(g),g--;if(c=N.a.createElement("div",{className:"group-user-list"},N.a.createElement(i.a,{justify:"center",className:"imgList"},d.map((function(e){return N.a.createElement("div",{className:"imgContainer",key:Math.random()},N.a.createElement("img",{className:"imgname",src:e.avatar,alt:""}),1===e.user_type?N.a.createElement("div",{className:"leaderFlag"},N.a.createElement("span",null,"\u56e2\u957f")):null)})),v.map((function(e){return N.a.createElement("div",{className:"imgContainer",key:Math.random()},N.a.createElement("div",{className:"imgname"},N.a.createElement("i",{className:"iconfont iconwode-xianxing no-body"})))})))),d&&d.length>0){var w=!1;!h.hasError&&d.forEach((function(e){e.uid==h.data.uid&&(w=!0)})),w?(a=f?N.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(Math.round(l.price1-o,2),"\u5143")):N.a.createElement("p",null,"\u60a8\u5df2\u662f\u4e03\u6708\u7684\u8001\u670b\u53cb\uff0c\u5feb\u5f00\u56e2\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u5427"),t=N.a.createElement("span",{className:"group-btn",onClick:e.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",E," \u540e\u7ed3\u675f"),n=N.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")):1==Object(b.c)("is_originator")?(a=f?N.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(Math.round(l.price1-o,2),"\u5143")):N.a.createElement("p",null,"\u60a8\u5df2\u662f\u4e03\u6708\u7684\u8001\u670b\u53cb\uff0c\u5feb\u5f00\u56e2\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u5427"),t=N.a.createElement("a",{href:"javascript:;",className:"group-btn",onClick:e.handleToGroup},"\u4e00\u952e\u5f00\u56e2")):(a=f?N.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(Math.round(l.price1-o,2),"\u5143")):N.a.createElement("p",null,"\u60a8\u5df2\u662f\u4e03\u6708\u7684\u8001\u670b\u53cb\uff0c\u5feb\u5f00\u56e2\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u5427"),t=N.a.createElement("span",{className:"group-btn",onClick:e.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",E," \u540e\u7ed3\u675f"),n=N.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%"))}return 1===m&&(a=N.a.createElement("p",{className:"success"},"\u62fc\u56e2\u6210\u529f"),t=N.a.createElement(y.b,{to:"/detail?id=".concat(l.course_id),className:"tostudy"},"\u53bb\u5b66\u4e60")),N.a.createElement("div",{className:"gorup-content"},p?N.a.createElement("div",{className:"groupSuccessMbc",onClick:e.invitedFriends},N.a.createElement("div",{className:"tipContent"},"\u8fd8\u5dee".concat(_,"\u4eba\uff0c\u5206\u4eab\u52303\u4e2a\u7fa4\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")),N.a.createElement("div",{className:"tipArrow"},N.a.createElement("i",{className:"iconfont iconyindao"}))):null,a,N.a.createElement(s.a,null,c),N.a.createElement(s.a,null,t),n,!m&&N.a.createElement("div",{className:"group-dec"},N.a.createElement("span",null,N.a.createElement("i",{className:"iconfont iconiconfront-1"}),"\xb7\u597d\u53cb\u53c2\u56e2 \xb7\u4eba\u6ee1\u6210\u4ea4 \xb7\u4eba\u4e0d\u6ee1\u9000\u6b3e"),N.a.createElement("span",{className:"allNum"},"\u7d2f\u8ba1".concat(u,"\u4eba\u6210\u56e2"))))}a.default=C},730:function(e,a,t){}}]);
//# sourceMappingURL=togroup.8a6a797b.chunk.js.map
\ No newline at end of file
self.__precacheManifest = (self.__precacheManifest || []).concat([ self.__precacheManifest = (self.__precacheManifest || []).concat([
{ {
"revision": "72c0660460d2917db2a5547b66cb1cd3", "revision": "c994b3346ac14ac0893809fe7bcd0ae9",
"url": "/index.html" "url": "/index.html"
}, },
{ {
...@@ -176,7 +176,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ ...@@ -176,7 +176,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticcss/deposit-pay-order.9cd66c02.chunk.css" "url": "/mrstaticcss/deposit-pay-order.9cd66c02.chunk.css"
}, },
{ {
"revision": "f8917619483aeb59c7d0", "revision": "7e8f0d2477fca0f3b804",
"url": "/mrstaticcss/detail.bba8f30f.chunk.css" "url": "/mrstaticcss/detail.bba8f30f.chunk.css"
}, },
{ {
...@@ -236,7 +236,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ ...@@ -236,7 +236,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticcss/system-notices.a84016b5.chunk.css" "url": "/mrstaticcss/system-notices.a84016b5.chunk.css"
}, },
{ {
"revision": "27541ad74e57fa66228e", "revision": "5d9a5a5b1a3b826c40fa",
"url": "/mrstaticcss/togroup.3d97fe71.chunk.css" "url": "/mrstaticcss/togroup.3d97fe71.chunk.css"
}, },
{ {
...@@ -476,8 +476,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ ...@@ -476,8 +476,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticjs/deposit-pay-order.6afbafef.chunk.js" "url": "/mrstaticjs/deposit-pay-order.6afbafef.chunk.js"
}, },
{ {
"revision": "f8917619483aeb59c7d0", "revision": "7e8f0d2477fca0f3b804",
"url": "/mrstaticjs/detail.814b7bb4.chunk.js" "url": "/mrstaticjs/detail.cc03d6f7.chunk.js"
}, },
{ {
"revision": "0a707d3c88b4e1358250", "revision": "0a707d3c88b4e1358250",
...@@ -520,8 +520,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ ...@@ -520,8 +520,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticjs/python-class.f057d585.chunk.js" "url": "/mrstaticjs/python-class.f057d585.chunk.js"
}, },
{ {
"revision": "856bc1dd4031e81182cc", "revision": "2d92dd8b213cc5d5f5e6",
"url": "/mrstaticjs/runtime-main.79f4d1a0.js" "url": "/mrstaticjs/runtime-main.55f77f1b.js"
}, },
{ {
"revision": "eade04b8c861219d43a1", "revision": "eade04b8c861219d43a1",
...@@ -540,8 +540,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ ...@@ -540,8 +540,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticjs/system-notices.8ed83d6f.chunk.js" "url": "/mrstaticjs/system-notices.8ed83d6f.chunk.js"
}, },
{ {
"revision": "27541ad74e57fa66228e", "revision": "5d9a5a5b1a3b826c40fa",
"url": "/mrstaticjs/togroup.2b6688e2.chunk.js" "url": "/mrstaticjs/togroup.8a6a797b.chunk.js"
}, },
{ {
"revision": "c277216450f0b042a248", "revision": "c277216450f0b042a248",
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"); importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
importScripts( importScripts(
"/precache-manifest.06941c3bef3a1737d043bc089b0ef763.js" "/precache-manifest.e1b6e4ed7ffb3bc434b5d0236db48a9c.js"
); );
self.addEventListener('message', (event) => { self.addEventListener('message', (event) => {
......
...@@ -106,7 +106,7 @@ class ToGroup extends Component { ...@@ -106,7 +106,7 @@ class ToGroup extends Component {
} else { } else {
//为登录,去登录 //为登录,去登录
console.log('去登录'); console.log('去登录');
this.props.history.push("/passport", { from: this.props.location }) // this.props.history.push("/passport", { from: this.props.location })
} }
}) })
} }
......
...@@ -474,12 +474,12 @@ class Detail extends Component { ...@@ -474,12 +474,12 @@ class Detail extends Component {
setInterval(() => { setInterval(() => {
date -= 1000 date -= 1000
if (endTime > 86400) { if (endTime > 86400) {
day = `${parseInt(date / (3600000 * 24))}`.padStart(2, 0) day = `${parseInt(date / (3600000 * 48))}`.padStart(2, 0)
hours = `${parseInt( hours = `${parseInt(
(date - day * 3600000 * 24) / 3600000 (date - day * 3600000 * 48) / 3600000
)}`.padStart(2, 0) )}`.padStart(2, 0)
minutes = `${parseInt( minutes = `${parseInt(
(date - day * 3600000 * 24 - hours * 3600000) / 60000 (date - day * 3600000 * 48 - hours * 3600000) / 60000
)}`.padStart(2, 0) )}`.padStart(2, 0)
// seconds = `${parseInt((date - day * 3600000 * 24 - hours * 3600000 - minutes * 60000) / 1000)}`.padStart(2, 0); // seconds = `${parseInt((date - day * 3600000 * 24 - hours * 3600000 - minutes * 60000) / 1000)}`.padStart(2, 0);
......
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