Commit f5eaf58e by wangshuo

邀请好友注册

parent 43fcf314
......@@ -7,8 +7,8 @@
"mrstatic/js/2.c0bbc2c0.chunk.js": "/mrstatic/js/2.c0bbc2c0.chunk.js",
"mrstatic/js/2.c0bbc2c0.chunk.js.map": "/mrstatic/js/2.c0bbc2c0.chunk.js.map",
"Activity.css": "/mrstatic/css/Activity.b3920f14.chunk.css",
"Activity.js": "/mrstatic/js/Activity.cc329a45.chunk.js",
"Activity.js.map": "/mrstatic/js/Activity.cc329a45.chunk.js.map",
"Activity.js": "/mrstatic/js/Activity.2e662398.chunk.js",
"Activity.js.map": "/mrstatic/js/Activity.2e662398.chunk.js.map",
"BargainMiddlePage.css": "/mrstatic/css/BargainMiddlePage.98ff5f85.chunk.css",
"BargainMiddlePage.js": "/mrstatic/js/BargainMiddlePage.2c1299ad.chunk.js",
"BargainMiddlePage.js.map": "/mrstatic/js/BargainMiddlePage.2c1299ad.chunk.js.map",
......@@ -28,8 +28,8 @@
"Examination.js": "/mrstatic/js/Examination.ff3c2d12.chunk.js",
"Examination.js.map": "/mrstatic/js/Examination.ff3c2d12.chunk.js.map",
"Invite.css": "/mrstatic/css/Invite.b3920f14.chunk.css",
"Invite.js": "/mrstatic/js/Invite.9d89bbe0.chunk.js",
"Invite.js.map": "/mrstatic/js/Invite.9d89bbe0.chunk.js.map",
"Invite.js": "/mrstatic/js/Invite.cdd67739.chunk.js",
"Invite.js.map": "/mrstatic/js/Invite.cdd67739.chunk.js.map",
"MyEdit.js": "/mrstatic/js/MyEdit.307d7a24.chunk.js",
"MyEdit.js.map": "/mrstatic/js/MyEdit.307d7a24.chunk.js.map",
"Order.css": "/mrstatic/css/Order.0ab178ef.chunk.css",
......@@ -85,8 +85,8 @@
"purchased.css": "/mrstatic/css/purchased.28c23daa.chunk.css",
"purchased.js": "/mrstatic/js/purchased.82ed1aea.chunk.js",
"purchased.js.map": "/mrstatic/js/purchased.82ed1aea.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.712439e5.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.712439e5.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.e9e60764.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.e9e60764.js.map",
"search.css": "/mrstatic/css/search.85280180.chunk.css",
"search.js": "/mrstatic/js/search.02ed6860.chunk.js",
"search.js.map": "/mrstatic/js/search.02ed6860.chunk.js.map",
......@@ -166,6 +166,6 @@
"mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.e0655d4d.woff",
"mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png",
"mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png",
"precache-manifest.0a055534161520c9ce8eab417f848dd4.js": "/precache-manifest.0a055534161520c9ce8eab417f848dd4.js",
"precache-manifest.43294615bf4111679b626c6c6e913327.js": "/precache-manifest.43294615bf4111679b626c6c6e913327.js",
"service-worker.js": "/service-worker.js"
}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{1227:function(e,t,n){"use strict";n.r(t);n(39);var c=n(12),a=n.n(c),i=n(5),o=n(7),s=n(6),r=n(8),u=n(9),l=n(0),d=n.n(l),b=n(22),m=n(3),p=(n(732),n(37)),f=n.n(p),v=function(e){function t(e){var n;return Object(i.a)(this,t),(n=Object(s.a)(this,Object(r.a)(t).call(this,e))).getGift=function(){n.props.user.hasError?n.props.history.push("/passport"):a.a.info("\u9886\u53d6\u6210\u529f\uff0c\u4f60\u53ef\u524d\u5f80\u4e03\u6708\u5728\u7ebf\u5b98\u7f51/APP\u8fdb\u884c\u67e5\u770b",2)},n}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentWillMount",value:function(){f.a.set("blessing_invite_uid",Object(m.c)("shareuid"),{domain:".julyedu.com"}),f.a.set("blessing_invite_code",Object(m.c)("inviteCode"),{domain:".julyedu.com"})}},{key:"render",value:function(){return d.a.createElement("div",{className:"activity__con"},d.a.createElement("div",{className:"banner__con"}),d.a.createElement("div",{className:"content__con"},d.a.createElement("div",{className:"button__get",onClick:this.getGift},"\u7acb\u5373\u9886\u53d6")))}}]),t}(l.Component);t.default=Object(b.b)(function(e){return{user:e.user}},null)(v)},732:function(e,t,n){}}]);
//# sourceMappingURL=Activity.2e662398.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/index.js"],"names":["Activity","props","_this","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","getGift","user","hasError","history","push","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","jsCookie","set","getParam","domain","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","onClick","Component","connect","state"],"mappings":"yNAOMA,cACJ,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACjBE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAQRQ,QAAU,WACLP,EAAKD,MAAMS,KAAKC,SACjBT,EAAKD,MAAMW,QAAQC,KAAK,aAExBC,EAAAC,EAAMC,KAAK,yHAA2B,IAbvBd,oFAKjBe,IAASC,IAAI,sBAAuBC,YAAS,YAAa,CAACC,OAAQ,iBACnEH,IAASC,IAAI,uBAAwBC,YAAS,cAAe,CAACC,OAAQ,kDAYtE,OACEC,EAAAN,EAAAO,cAAA,OAAKC,UAAU,iBACbF,EAAAN,EAAAO,cAAA,OAAKC,UAAU,gBACfF,EAAAN,EAAAO,cAAA,OAAKC,UAAU,gBACbF,EAAAN,EAAAO,cAAA,OAAKC,UAAU,cAAcC,QAASnB,KAAKI,SAA3C,qCAvBagB,aA8BRC,sBACb,SAAAC,GAAK,MAAK,CAACjB,KAAMiB,EAAMjB,OACvB,KAFagB,CAGb1B","file":"mrstatic/js/Activity.2e662398.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport {connect} from \"react-redux\";\nimport { http, getParam } from '@/utils';\nimport './index.scss';\nimport {Toast} from \"antd-mobile\";\nimport jsCookie from 'js-cookie';\n\nclass Activity extends Component {\n constructor(props) {\n super(props);\n }\n\n componentWillMount() {\n jsCookie.set('blessing_invite_uid', getParam('shareuid'), {domain: '.julyedu.com'});\n jsCookie.set('blessing_invite_code', getParam('inviteCode'), {domain: '.julyedu.com'});\n }\n\n getGift = () => {\n if(this.props.user.hasError) {\n this.props.history.push('/passport');\n } else {\n Toast.info('领取成功,你可前往七月在线官网/APP进行查看', 2);\n }\n }\n\n render() {\n return (\n <div className=\"activity__con\">\n <div className='banner__con'></div>\n <div className='content__con'>\n <div className=\"button__get\" onClick={this.getGift}>立即领取</div>\n </div>\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Activity);\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{1227:function(e,t,n){"use strict";n.r(t);n(39);var c=n(12),a=n.n(c),i=n(5),s=n(7),o=n(6),r=n(8),u=n(9),l=n(0),b=n.n(l),p=n(22),d=n(3),f=(n(732),n(37)),v=n.n(f),_=function(e){function t(e){var n;return Object(i.a)(this,t),(n=Object(o.a)(this,Object(r.a)(t).call(this,e))).getGift=function(){n.props.user.hasError?n.props.history.push("/passport"):a.a.info("\u9886\u53d6\u6210\u529f\uff0c\u4f60\u53ef\u524d\u5f80\u4e03\u6708\u5728\u7ebf\u5b98\u7f51/APP\u8fdb\u884c\u67e5\u770b",2)},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentWillMount",value:function(){v.a.set("blessing_invite_uid",Object(d.c)("shareuid")),v.a.set("blessing_invite_code",Object(d.c)("inviteCode"))}},{key:"render",value:function(){return b.a.createElement("div",{className:"activity__con"},b.a.createElement("div",{className:"banner__con"}),b.a.createElement("div",{className:"content__con"},b.a.createElement("div",{className:"button__get",onClick:this.getGift},"\u7acb\u5373\u9886\u53d6")))}}]),t}(l.Component);t.default=Object(p.b)(function(e){return{user:e.user}},null)(_)},732:function(e,t,n){}}]);
//# sourceMappingURL=Activity.cc329a45.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/index.js"],"names":["Activity","props","_this","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","getGift","user","hasError","history","push","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","jsCookie","set","getParam","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","onClick","Component","connect","state"],"mappings":"yNAOMA,cACJ,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACjBE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAQRQ,QAAU,WACLP,EAAKD,MAAMS,KAAKC,SACjBT,EAAKD,MAAMW,QAAQC,KAAK,aAExBC,EAAAC,EAAMC,KAAK,yHAA2B,IAbvBd,oFAKjBe,IAASC,IAAI,sBAAuBC,YAAS,aAC7CF,IAASC,IAAI,uBAAwBC,YAAS,gDAY9C,OACEC,EAAAL,EAAAM,cAAA,OAAKC,UAAU,iBACbF,EAAAL,EAAAM,cAAA,OAAKC,UAAU,gBACfF,EAAAL,EAAAM,cAAA,OAAKC,UAAU,gBACbF,EAAAL,EAAAM,cAAA,OAAKC,UAAU,cAAcC,QAASlB,KAAKI,SAA3C,qCAvBae,aA8BRC,sBACb,SAAAC,GAAK,MAAK,CAAChB,KAAMgB,EAAMhB,OACvB,KAFae,CAGbzB","file":"mrstatic/js/Activity.cc329a45.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport {connect} from \"react-redux\";\nimport { http, getParam } from '@/utils';\nimport './index.scss';\nimport {Toast} from \"antd-mobile\";\nimport jsCookie from 'js-cookie';\n\nclass Activity extends Component {\n constructor(props) {\n super(props);\n }\n\n componentWillMount() {\n jsCookie.set('blessing_invite_uid', getParam('shareuid'));\n jsCookie.set('blessing_invite_code', getParam('inviteCode'));\n }\n\n getGift = () => {\n if(this.props.user.hasError) {\n this.props.history.push('/passport');\n } else {\n Toast.info('领取成功,你可前往七月在线官网/APP进行查看', 2);\n }\n }\n\n render() {\n return (\n <div className=\"activity__con\">\n <div className='banner__con'></div>\n <div className='content__con'>\n <div className=\"button__get\" onClick={this.getGift}>立即领取</div>\n </div>\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Activity);\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{1228:function(e,t,a){"use strict";a.r(t);a(39);var n=a(12),s=a.n(n),i=a(5),c=a(7),o=a(6),l=a(8),r=a(9),m=a(0),u=a.n(m),d=a(22),h=(a(732),a(3)),v=a(37),_=a.n(v),p=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(o.a)(this,Object(l.a)(t).call(this,e))).getUserList=function(){h.d.get("".concat(API.home,"/sys/user/invite/list")).then(function(e){var t=e.data,n=t.code,i=t.data,c=t.msg;200===n?a.setState({userList:i}):s.a.info(c,2)})},a.getHotValue=function(){h.d.get("".concat(API.home,"/sys/user/hot/value")).then(function(e){var t=e.data,n=t.code,i=t.data,c=t.msg;200===n?a.setState({hot_schedule:i.hot_schedule,hotValue:i.hot_value}):s.a.info(c,2)})},a.inviteFriends=function(){var e=a.props,t=e.user,n=e.history;if(Object(h.c)("version"))if(t.hasError)Object(h.a)("toLogin");else{Object(h.a)("toShare",{title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:"https://m.julyedu.com/blessingPreheat",imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"})}else t.hasError?n.push("/passport"):h.d.get("".concat(API.home,"/sys/user/invite/link")).then(function(e){var t=e.data,i=t.code,c=t.data,o=t.msg;if(200===i){var l=c.blessing_invite_code;Object(h.f)()?(Object(h.i)({title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:encodeURI(location.origin+"/invite?shareuid=".concat(_.a.get("uid"),"&new=1&inviteCode=").concat(l)),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"}),a.setState({showTip:!0,isWeiXin:!0})):(n.push("/invite?shareuid=".concat(_.a.get("uid"),"&new=1&inviteCode=").concat(l)),a.setState({showTip:!0}))}else 4030===i||4040===i?n.push("/passport"):s.a.info(o,2)})},a.closeMark=function(){a.setState({showTip:!1})},a.state={isWeiXin:!1,showTip:!1,hotValue:0,hot_schedule:"",userList:[]},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"componentWillMount",value:function(){var e=_.a.get("uid"),t=Object(h.c)("shareuid");e===t||Object(h.c)("new")&&this.props.history.push("/activity?shareuid=".concat(t,"&inviteCode=").concat(Object(h.c)("inviteCode")))}},{key:"componentDidMount",value:function(){this.props.user.hasError||(this.getUserList(),this.getHotValue()),Object(h.i)({title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:encodeURI(location.origin+"/invite?shareuid=".concat(_.a.get("uid"),"&new=1&inviteCode=").concat(inviteCode)),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"})}},{key:"componentWillReceiveProps",value:function(e){e.user.hasError||(this.getUserList(),this.getHotValue())}},{key:"render",value:function(){var e=this.state,t=e.userList,a=e.showTip,n=e.hotValue,s=e.hot_schedule,i=e.isWeiXin;return u.a.createElement("div",{className:"activity__con"},u.a.createElement("div",{className:"banner__con"}),u.a.createElement("div",{className:"invite__content"},u.a.createElement("div",{className:"content__one"},u.a.createElement("p",null,"\u9080\u8bf7\u597d\u53cb\u6ce8\u518c\uff0c\u6bcf\u589e\u52a01\u4eba\u53ef"),u.a.createElement("div",{className:"img__con"})),u.a.createElement("div",{className:"content__two"},"\u798f\u6c14\u503c\u8d8a\u9ad8\uff0c\u70ed\u529b\u503c\u8d8a\u9ad8\uff0c\u4e2d\u5956\u6982\u7387\u8d8a\u5927\uff01"),u.a.createElement("div",{className:"box__out"},u.a.createElement("div",{className:"box__middle"},u.a.createElement("div",{className:"box__inner"},u.a.createElement("p",null,"\u5f53\u524d\u4e2d\u5956\u70ed\u529b\u503c:"),u.a.createElement("p",{className:"hot__value"},n),u.a.createElement("div",{className:"hot__progress"},u.a.createElement("div",{className:"progress__bar"},u.a.createElement("div",{className:"progress__point",style:{width:s}})))))),u.a.createElement("div",{className:"but__con"},u.a.createElement("div",{className:"button__content",onClick:this.inviteFriends},"\u7acb\u5373\u9080\u8bf7")),t.length>0?u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:"list__title"},u.a.createElement("span",null,"\u9080\u8bf7\u597d\u53cb\u5217\u8868")),u.a.createElement("p",{className:"show__new"},"(\u4ec5\u663e\u793a\u65b0\u7528\u6237)")):null,t.length>0?u.a.createElement("div",{className:"list__con"},1===t.length&&t.map(function(e,t){return u.a.createElement("div",{className:"user__item-info item__con-only",key:t},u.a.createElement("div",{className:"item__con"},u.a.createElement("img",{className:"user_avatar",src:e.avatar}),u.a.createElement("div",{className:"user_name"},e.name)))}),t.length>1&&t.map(function(e,t){return u.a.createElement("div",{className:"user__item-info",key:t},u.a.createElement("div",{className:"item__con"},u.a.createElement("img",{className:"user_avatar",src:e.avatar}),u.a.createElement("div",{className:"user_name"},e.name)))})):null),a&&u.a.createElement("div",{className:"share__mark",onClick:this.closeMark},u.a.createElement("div",{className:"share__tip"},"\u7acb\u5373\u5206\u4eab\u7ed9\u597d\u53cb\u589e\u52a0\u4e2d\u5956\u6982\u7387"),i?u.a.createElement("div",{className:"share__row"}):null))}}]),t}(m.Component);t.default=Object(d.b)(function(e){return{user:e.user}},null)(p)},732:function(e,t,a){}}]);
//# sourceMappingURL=Invite.9d89bbe0.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{1228:function(e,t,a){"use strict";a.r(t);a(39);var n=a(12),i=a.n(n),s=a(5),c=a(7),o=a(6),l=a(8),r=a(9),m=a(0),u=a.n(m),d=a(22),h=(a(732),a(3)),v=a(37),_=a.n(v),p=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(o.a)(this,Object(l.a)(t).call(this,e))).getUserList=function(){h.d.get("".concat(API.home,"/sys/user/invite/list")).then(function(e){var t=e.data,n=t.code,s=t.data,c=t.msg;200===n?a.setState({userList:s}):i.a.info(c,2)})},a.getHotValue=function(){h.d.get("".concat(API.home,"/sys/user/hot/value")).then(function(e){var t=e.data,n=t.code,s=t.data,c=t.msg;200===n?a.setState({hot_schedule:s.hot_schedule,hotValue:s.hot_value}):i.a.info(c,2)})},a.getInviteCode=function(){h.d.get("".concat(API.home,"/sys/user/invite/link")).then(function(e){var t=e.data,n=t.code,s=t.data,c=t.msg;if(200===n){var o=s.blessing_invite_code;Object(h.f)()&&Object(h.i)({title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:encodeURI(location.origin+"/invite?shareuid=".concat(_.a.get("uid"),"&new=1&inviteCode=").concat(o)),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"}),a.setState(function(){return{inviteCode:o}})}else 4030===n||4040===n?history.push("/passport"):i.a.info(c,2)})},a.inviteFriends=function(){var e=a.props,t=e.user,n=e.history,i=a.state.inviteCode;if(Object(h.c)("version"))if(t.hasError)Object(h.a)("toLogin");else{Object(h.a)("toShare",{title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:"https://m.julyedu.com/blessingPreheat",imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"})}else t.hasError?n.push("/passport"):Object(h.f)()?(Object(h.i)({title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:encodeURI(location.origin+"/invite?shareuid=".concat(_.a.get("uid"),"&new=1&inviteCode=").concat(i)),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"}),a.setState({showTip:!0,isWeiXin:!0})):(n.push("/invite?shareuid=".concat(_.a.get("uid"),"&new=1&inviteCode=").concat(i)),a.setState({showTip:!0}))},a.closeMark=function(){a.setState({showTip:!1})},a.state={isWeiXin:!1,showTip:!1,hotValue:0,hot_schedule:"",userList:[],inviteCode:""},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"componentWillMount",value:function(){var e=_.a.get("uid"),t=Object(h.c)("shareuid");e===t||Object(h.c)("new")&&this.props.history.push("/activity?shareuid=".concat(t,"&inviteCode=").concat(Object(h.c)("inviteCode")))}},{key:"componentDidMount",value:function(){this.props.user.hasError||(this.getUserList(),this.getHotValue(),this.getInviteCode())}},{key:"componentWillReceiveProps",value:function(e){console.log("componentWillReceiveProps"),e.user.hasError||(this.getUserList(),this.getHotValue(),this.getInviteCode())}},{key:"render",value:function(){var e=this.state,t=e.userList,a=e.showTip,n=e.hotValue,i=e.hot_schedule,s=e.isWeiXin;return u.a.createElement("div",{className:"activity__con"},u.a.createElement("div",{className:"banner__con"}),u.a.createElement("div",{className:"invite__content"},u.a.createElement("div",{className:"content__one"},u.a.createElement("p",null,"\u9080\u8bf7\u597d\u53cb\u6ce8\u518c\uff0c\u6bcf\u589e\u52a01\u4eba\u53ef"),u.a.createElement("div",{className:"img__con"})),u.a.createElement("div",{className:"content__two"},"\u798f\u6c14\u503c\u8d8a\u9ad8\uff0c\u70ed\u529b\u503c\u8d8a\u9ad8\uff0c\u4e2d\u5956\u6982\u7387\u8d8a\u5927\uff01"),u.a.createElement("div",{className:"box__out"},u.a.createElement("div",{className:"box__middle"},u.a.createElement("div",{className:"box__inner"},u.a.createElement("p",null,"\u5f53\u524d\u4e2d\u5956\u70ed\u529b\u503c:"),u.a.createElement("p",{className:"hot__value"},n),u.a.createElement("div",{className:"hot__progress"},u.a.createElement("div",{className:"progress__bar"},u.a.createElement("div",{className:"progress__point",style:{width:i}})))))),u.a.createElement("div",{className:"but__con"},u.a.createElement("div",{className:"button__content",onClick:this.inviteFriends},"\u7acb\u5373\u9080\u8bf7")),t.length>0?u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:"list__title"},u.a.createElement("span",null,"\u9080\u8bf7\u597d\u53cb\u5217\u8868")),u.a.createElement("p",{className:"show__new"},"(\u4ec5\u663e\u793a\u65b0\u7528\u6237)")):null,t.length>0?u.a.createElement("div",{className:"list__con"},1===t.length&&t.map(function(e,t){return u.a.createElement("div",{className:"user__item-info item__con-only",key:t},u.a.createElement("div",{className:"item__con"},u.a.createElement("img",{className:"user_avatar",src:e.avatar}),u.a.createElement("div",{className:"user_name"},e.name)))}),t.length>1&&t.map(function(e,t){return u.a.createElement("div",{className:"user__item-info",key:t},u.a.createElement("div",{className:"item__con"},u.a.createElement("img",{className:"user_avatar",src:e.avatar}),u.a.createElement("div",{className:"user_name"},e.name)))})):null),a&&u.a.createElement("div",{className:"share__mark",onClick:this.closeMark},u.a.createElement("div",{className:"share__tip"},"\u7acb\u5373\u5206\u4eab\u7ed9\u597d\u53cb\u589e\u52a0\u4e2d\u5956\u6982\u7387"),s?u.a.createElement("div",{className:"share__row"}):null))}}]),t}(m.Component);t.default=Object(d.b)(function(e){return{user:e.user}},null)(p)},732:function(e,t,a){}}]);
//# sourceMappingURL=Invite.cdd67739.chunk.js.map
\ No newline at end of file
......@@ -20,8 +20,8 @@ self.__precacheManifest = [
"url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png"
},
{
"revision": "3672c817b7b0234b5c05",
"url": "/mrstatic/js/Activity.cc329a45.chunk.js"
"revision": "3a30e7b96ece9e66dac5",
"url": "/mrstatic/js/Activity.2e662398.chunk.js"
},
{
"revision": "c79abf5cb7ae8a82009cf68fe44d1078",
......@@ -76,8 +76,8 @@ self.__precacheManifest = [
"url": "/mrstatic/media/iconfont.b9b072e1.svg"
},
{
"revision": "20082b07ec4886b26320",
"url": "/mrstatic/js/Invite.9d89bbe0.chunk.js"
"revision": "1bcc4935796b1c27bc45",
"url": "/mrstatic/js/Invite.cdd67739.chunk.js"
},
{
"revision": "c882032768d6909dc551",
......@@ -208,8 +208,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/myorders.290219ae.chunk.js"
},
{
"revision": "c301ea9cee4a61cffed3",
"url": "/mrstatic/js/runtime~main.712439e5.js"
"revision": "8997b20c307edb705fc3",
"url": "/mrstatic/js/runtime~main.e9e60764.js"
},
{
"revision": "e3668977a2b9b6d1c65c",
......@@ -336,7 +336,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/Order.0ab178ef.chunk.css"
},
{
"revision": "20082b07ec4886b26320",
"revision": "1bcc4935796b1c27bc45",
"url": "/mrstatic/css/Invite.b3920f14.chunk.css"
},
{
......@@ -364,7 +364,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/BargainMiddlePage.98ff5f85.chunk.css"
},
{
"revision": "3672c817b7b0234b5c05",
"revision": "3a30e7b96ece9e66dac5",
"url": "/mrstatic/css/Activity.b3920f14.chunk.css"
},
{
......@@ -372,7 +372,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/2.fd1b61f1.chunk.css"
},
{
"revision": "8450be351940cd58052d61ade106003b",
"revision": "daab6d7b671bc34aa3d20c3e921f6fb8",
"url": "/index.html"
}
];
\ No newline at end of file
......@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts(
"/precache-manifest.0a055534161520c9ce8eab417f848dd4.js"
"/precache-manifest.43294615bf4111679b626c6c6e913327.js"
);
workbox.clientsClaim();
......
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