Commit 7538e5bf by FE

share modify

parent 1529e08f
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{1227:function(e,t,n){"use strict";n.r(t);n(41);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),d=n(22),f=n(3),p=(n(732),n(37)),v=n.n(p),m=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"):f.d.get("".concat(API.home,"/sys/receive/reg/gift")).then(function(e){var t=e.data,n=t.code,c=t.msg;200===n?a.a.info("\u9886\u53d6\u6210\u529f\uff0c\u4f60\u53ef\u524d\u5f80\u4e03\u6708\u5728\u7ebf\u5b98\u7f51/APP\u8fdb\u884c\u67e5\u770b",2):a.a.info(c,2)})},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentWillMount",value:function(){v.a.set("blessing_invite_uid",Object(f.c)("shareuid")),v.a.set("blessing_invite_code",Object(f.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(d.b)(function(e){return{user:e.user}},null)(m)},732:function(e,t,n){}}]);
//# sourceMappingURL=Activity.19eb88a7.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/index.js"],"names":["Activity","props","_this","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_fe_frontCode_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","http","get","concat","API","home","then","res","_res$data","data","code","msg","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,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,0BAA6CC,KAAK,SAAAC,GAAO,IAAAC,EACrCD,EAAIE,KAAjBC,EADkDF,EAClDE,KAAMC,EAD4CH,EAC5CG,IACC,MAATD,EACDE,EAAAC,EAAMC,KAAK,yHAA2B,GAEtCF,EAAAC,EAAMC,KAAKH,EAAK,MAlBLtB,oFAKjB0B,IAASC,IAAI,sBAAuBC,YAAS,aAC7CF,IAASC,IAAI,uBAAwBC,YAAS,gDAmB9C,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,QAAS7B,KAAKI,SAA3C,qCA9Ba0B,aAqCRC,sBACb,SAAAC,GAAK,MAAK,CAAC3B,KAAM2B,EAAM3B,OACvB,KAFa0B,CAGbpC","file":"mrstatic/js/Activity.19eb88a7.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 http.get(`${API.home}/sys/receive/reg/gift`).then(res => {\n let {code, msg} = res.data;\n if(code === 200) {\n Toast.info('领取成功,你可前往七月在线官网/APP进行查看', 2);\n }else{\n Toast.info(msg, 2);\n }\n })\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(41);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.ac6321fd.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/index.js"],"names":["Activity","props","_this","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_fe_frontCode_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.ac6321fd.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(41);var n=a(12),s=a.n(n),i=a(5),c=a(7),l=a(6),r=a(8),o=a(9),m=a(0),u=a.n(m),d=a(22),h=(a(732),a(3)),_=a(37),v=a.n(_),p=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(l.a)(this,Object(r.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,l=t.msg;if(200===i){var r=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(v.a.get("uid"),"&new=1&inviteCode=").concat(r)),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(v.a.get("uid"),"&new=1&inviteCode=").concat(r)),a.setState({showTip:!0}))}else 4030===i||4040===i?n.push("/passport"):s.a.info(l,2)})},a.closeMark=function(){a.setState({showTip:!1})},a.state={isWeiXin:!1,showTip:!1,hotValue:0,hot_schedule:"",userList:[]},a}return Object(o.a)(t,e),Object(c.a)(t,[{key:"componentWillMount",value:function(){var e=v.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())}},{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.2be9603b.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(41);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.377b7717.chunk.js.map
\ 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.
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{1184:function(e,a,t){},1185:function(e,a,t){},1245:function(e,a,t){"use strict";t.r(a);var n,r=t(5),s=t(7),c=t(6),l=t(8),d=t(9),m=t(0),o=t.n(m),i=t(22),u=t(3),_=t(27),p=t(20),f=(t(41),t(12)),b=t.n(f),h=t(42),E=t(19),k=(t(1184),function(e){function a(e){var t;return Object(r.a)(this,a),(t=Object(c.a)(this,Object(l.a)(a).call(this,e))).fetchUserAddress=function(){var e=t.state.addressInfo;u.d.get("".concat(API.home,"/sys/user_address_info")).then(function(a){var n=a.data,r=n.code,s=n.data;n.msg;200===r&&t.setState({addressInfo:Object.assign({},e,{name:s.name,phone:s.phone,address:s.address}),isLoading:!0})})},t.handleToSubmit=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.props.handleToHide;u.d.post("".concat(API.home,"/sys/collect_info"),e).then(function(e){var t=e.data,n=t.code,r=t.msg;200===n?a():b.a.info(r,2,null,!1)})},t.state={isLoading:!1,addressInfo:{name:"",phone:"",address:""}},t}return Object(d.a)(a,e),Object(s.a)(a,[{key:"componentDidMount",value:function(){this.fetchUserAddress()}},{key:"render",value:function(){var e=this,a=this.state,t=a.isLoading,n=a.addressInfo;return o.a.createElement(o.a.Fragment,null,t&&o.a.createElement(E.d,{initialValues:Object(p.a)({},n),validate:function(e){var a=e.name,t=e.phone,n=e.address,r={};return a||(r.name="\u8bf7\u8f93\u5165\u6536\u4ef6\u4eba"),/^1[3-9]\d{9}$/.test(t)||(r.phone="\u8bf7\u586b\u5199\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7"),n||(r.address="\u8bf7\u8f93\u5165\u6536\u8d27\u5730\u5740"),r},onSubmit:function(a){e.handleToSubmit(a)},render:function(e){var a=e.errors;return o.a.createElement(E.c,{className:"address-form"},o.a.createElement("p",{className:"address-form__desc"},"\u8bf7\u53ca\u65f6\u586b\u5199\u6536\u8d27\u4fe1\u606f\uff0c\u83b7\u5f97\u5b9e\u7269\u5956\u54c1\u540e\u5c06\u7b2c\u4e00\u65f6\u95f4\u4e3a\u60a8\u90ae\u5bc4"),o.a.createElement(E.b,{name:"name",render:function(e){var t=e.field;return o.a.createElement("div",{className:"address-form__item"},o.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u4ef6\u4eba"})),a.name&&o.a.createElement("p",{className:"address-form__tip"},a.name))}}),o.a.createElement(E.b,{name:"phone",render:function(e){var t=e.field;return o.a.createElement("div",{className:"address-form__item"},o.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u8054\u7cfb\u65b9\u5f0f"})),a.phone&&o.a.createElement("p",{className:"address-form__tip"},a.phone))}}),o.a.createElement(E.b,{name:"address",render:function(e){var t=e.field;return o.a.createElement("div",{className:"address-form__item"},o.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u8d27\u5730\u5740"})),a.address&&o.a.createElement("p",{className:"address-form__tip"},a.address))}}),o.a.createElement("button",{className:"address-form__submit","data-status":Object(h.isEmpty)(a)?"do":"",type:"submit"},"\u63d0\u4ea4"))}}))}}]),a}(m.Component)),N=(t(1185),Object(i.b)(function(e){return{uid:e.user.data.uid||""}})(n=function(e){function a(e){var t;return Object(r.a)(this,a),(t=Object(c.a)(this,Object(l.a)(a).call(this,e))).popupInstance=null,t.fetchRankData=function(){u.d.get("".concat(API.home,"/sys/blessing/ranking")).then(function(e){var a=e.data,n=a.code,r=a.data;200===n&&t.setState({rankList:r})})},t.handleToSwitch=function(e){var a=t.props,n=a.history,r=a.uid;e&&!r?n.push("/passport"):e&&!t.popupInstance?t.popupInstance=Object(_.h)({title:"\u6536\u8d27\u4fe1\u606f",content:o.a.createElement(k,{handleToHide:function(){return t.handleToSwitch(!1)}})}):(t.popupInstance.close(),t.popupInstance=null)},t.formatString=function(e,a){return e.length>a?"".concat(e.substr(0,a),"..."):e},t.state={rankList:[],rules:["1\u3001\u6392\u884c\u699c\u540d\u6b21\u4ee52019\u5e7411\u670813\u65e524\u70b9\u4e03\u6708\u5728\u7ebf\u516c\u5e03\u7684\u6392\u884c\u699c\u4e3a\u51c6\uff0c\u699c\u5355\u786e\u8ba4\u540e\uff0c\u5f97\u5956\u5c0f\u4f19\u4f34\u8bf7\u53ca\u65f6\u586b\u5199\u90ae\u5bc4\u4fe1\u606f\uff0c7\u4e2a\u81ea\u7136\u65e5\u5185\u4e0d\u586b\u5199\uff0c\u89c6\u4e3a\u4e3b\u52a8\u653e\u5f03\u5956\u54c1\uff1b","2\u3001\u798f\u6c14\u503c\u53ea\u5728\u672c\u6d3b\u52a8\u671f\u95f4\u4eab\u53d7\u62bd\u5956\u3001\u63d0\u9ad8\u4e2d\u5956\u6982\u7387\u3001\u8d2d\u8bfe\u4f18\u5316\u3001\u589e\u52a0AI\u6c34\u5e73\u6d4b\u8bd5\u7b49\u798f\u5229\uff1b","3\u3001\u5982\u6709\u53d1\u73b0\u6076\u610f\u5237\u699c\uff0c\u5237\u865a\u5047\u6570\u636e\u7b49\u884c\u4e3a\u5c06\u53d6\u6d88\u5176\u9886\u5956\u8d44\u683c\uff1b","4\u3001\u672c\u6d3b\u52a8\u89e3\u91ca\u6743\u5f52\u5317\u4eac\u4e03\u6708\u5728\u7ebf\u79d1\u6280\u6709\u9650\u516c\u53f8\u6240\u6709\u3002"]},t}return Object(d.a)(a,e),Object(s.a)(a,[{key:"componentDidMount",value:function(){this.fetchRankData()}},{key:"render",value:function(){var e=this,a=this.state,t=a.rankList,n=a.rules;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"rank__banner"}),o.a.createElement("div",{className:"rank__body"},o.a.createElement("button",{className:"rank__address",onClick:function(){return e.handleToSwitch(!0)}},"\u586b\u5199\u6536\u8d27\u5730\u5740>"),o.a.createElement("div",{className:"rank__table"},o.a.createElement("dl",{className:"rank__table-header"},o.a.createElement("dd",{className:"rank__table-column"},"\u6392\u540d"),o.a.createElement("dd",{className:"rank__table-column"},"\u7528\u6237"),o.a.createElement("dd",{className:"rank__table-column"},"\u6210\u7ee9"),o.a.createElement("dd",{className:"rank__table-column"},"\u5956\u54c1")),t.map(function(a,t){return o.a.createElement("dl",{className:"rank__table-body",key:t},o.a.createElement("dd",{className:"rank__table-column"},t<3?o.a.createElement("i",{className:"rank__table-num","data-num":t+1}):t+1),o.a.createElement("dd",{className:"rank__table-column"},o.a.createElement("div",{className:"rank__table-user"},o.a.createElement("i",{className:"rank__table-portrait",style:{backgroundImage:"url(".concat(a.head_image,")")}}),o.a.createElement("span",null,e.formatString(a.user_name,5)))),o.a.createElement("dd",{className:"rank__table-column"},a.blessing_value),o.a.createElement("dd",{className:"rank__table-column"},e.formatString(a.prize_name,7)))})),o.a.createElement("div",{className:"rank__rule"},o.a.createElement("h2",{className:"rank__rule-title"},"\u6d3b\u52a8\u89c4\u5219"),n.map(function(e,a){return o.a.createElement("p",{className:"rank__rule-desc",key:a},e)}))))}}]),a}(m.Component))||n);a.default=N}}]);
//# sourceMappingURL=blessing-rank.3cd2f40a.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{1184:function(e,a,t){},1185:function(e,a,t){},1245:function(e,a,t){"use strict";t.r(a);var n,r=t(5),s=t(7),c=t(6),l=t(8),d=t(9),m=t(0),o=t.n(m),i=t(22),u=t(3),_=t(27),p=t(20),f=(t(41),t(12)),h=t.n(f),b=(t(42),t(19)),E=(t(1184),function(e){function a(e){var t;return Object(r.a)(this,a),(t=Object(c.a)(this,Object(l.a)(a).call(this,e))).fetchUserAddress=function(){var e=t.state.addressInfo;u.d.get("".concat(API.home,"/sys/user_address_info")).then(function(a){var n=a.data,r=n.code,s=n.data;n.msg;200===r&&t.setState({addressInfo:Object.assign({},e,{name:s.name,phone:s.phone,address:s.address}),isLoading:!0})})},t.handleToSubmit=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.props.handleToHide;u.d.post("".concat(API.home,"/sys/collect_info"),e).then(function(e){var t=e.data,n=t.code,r=t.msg;200===n?a():h.a.info(r,2,null,!1)})},t.state={isLoading:!1,addressInfo:{name:"",phone:"",address:""}},t}return Object(d.a)(a,e),Object(s.a)(a,[{key:"componentDidMount",value:function(){this.fetchUserAddress()}},{key:"render",value:function(){var e=this,a=this.state,t=a.isLoading,n=a.addressInfo;return o.a.createElement(o.a.Fragment,null,t&&o.a.createElement(b.d,{initialValues:Object(p.a)({},n),validate:function(e){var a=e.name,t=e.phone,n=e.address,r={};return a||(r.name="\u8bf7\u8f93\u5165\u6536\u4ef6\u4eba"),/^1[3-9]\d{9}$/.test(t)||(r.phone="\u8bf7\u586b\u5199\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7"),n||(r.address="\u8bf7\u8f93\u5165\u6536\u8d27\u5730\u5740"),r},validateOnBlur:!1,validateOnChange:!1,onSubmit:function(a){e.handleToSubmit(a)},render:function(e){var a=e.errors;return o.a.createElement(b.c,{className:"address-form"},o.a.createElement("p",{className:"address-form__desc"},"\u8bf7\u53ca\u65f6\u586b\u5199\u6536\u8d27\u4fe1\u606f\uff0c\u83b7\u5f97\u5b9e\u7269\u5956\u54c1\u540e\u5c06\u7b2c\u4e00\u65f6\u95f4\u4e3a\u60a8\u90ae\u5bc4"),o.a.createElement(b.b,{name:"name",render:function(e){var t=e.field;return o.a.createElement("div",{className:"address-form__item"},o.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u4ef6\u4eba"})),a.name&&o.a.createElement("p",{className:"address-form__tip"},a.name))}}),o.a.createElement(b.b,{name:"phone",render:function(e){var t=e.field;return o.a.createElement("div",{className:"address-form__item"},o.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u8054\u7cfb\u65b9\u5f0f"})),a.phone&&o.a.createElement("p",{className:"address-form__tip"},a.phone))}}),o.a.createElement(b.b,{name:"address",render:function(e){var t=e.field;return o.a.createElement("div",{className:"address-form__item"},o.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u8d27\u5730\u5740"})),a.address&&o.a.createElement("p",{className:"address-form__tip"},a.address))}}),o.a.createElement("button",{className:"address-form__submit","data-status":"do",type:"submit"},"\u63d0\u4ea4"))}}))}}]),a}(m.Component)),k=(t(1185),Object(i.b)(function(e){return{uid:e.user.data.uid||""}})(n=function(e){function a(e){var t;return Object(r.a)(this,a),(t=Object(c.a)(this,Object(l.a)(a).call(this,e))).popupInstance=null,t.fetchRankData=function(){u.d.get("".concat(API.home,"/sys/blessing/ranking")).then(function(e){var a=e.data,n=a.code,r=a.data;200===n&&t.setState({rankList:r})})},t.handleToSwitch=function(e){var a=t.props,n=a.history,r=a.uid;e&&!r?n.push("/passport"):e&&!t.popupInstance?t.popupInstance=Object(_.h)({title:"\u6536\u8d27\u4fe1\u606f",content:o.a.createElement(E,{handleToHide:function(){return t.handleToSwitch(!1)}})}):(t.popupInstance.close(),t.popupInstance=null)},t.formatString=function(e,a){return e.length>a?"".concat(e.substr(0,a),"..."):e},t.state={rankList:[],rules:["1\u3001\u6392\u884c\u699c\u540d\u6b21\u4ee52019\u5e7411\u670813\u65e524\u70b9\u4e03\u6708\u5728\u7ebf\u516c\u5e03\u7684\u6392\u884c\u699c\u4e3a\u51c6\uff0c\u699c\u5355\u786e\u8ba4\u540e\uff0c\u5f97\u5956\u5c0f\u4f19\u4f34\u8bf7\u53ca\u65f6\u586b\u5199\u90ae\u5bc4\u4fe1\u606f\uff0c7\u4e2a\u81ea\u7136\u65e5\u5185\u4e0d\u586b\u5199\uff0c\u89c6\u4e3a\u4e3b\u52a8\u653e\u5f03\u5956\u54c1\uff1b","2\u3001\u798f\u6c14\u503c\u53ea\u5728\u672c\u6d3b\u52a8\u671f\u95f4\u4eab\u53d7\u62bd\u5956\u3001\u63d0\u9ad8\u4e2d\u5956\u6982\u7387\u3001\u8d2d\u8bfe\u4f18\u5316\u3001\u589e\u52a0AI\u6c34\u5e73\u6d4b\u8bd5\u7b49\u798f\u5229\uff1b","3\u3001\u5982\u6709\u53d1\u73b0\u6076\u610f\u5237\u699c\uff0c\u5237\u865a\u5047\u6570\u636e\u7b49\u884c\u4e3a\u5c06\u53d6\u6d88\u5176\u9886\u5956\u8d44\u683c\uff1b","4\u3001\u672c\u6d3b\u52a8\u89e3\u91ca\u6743\u5f52\u5317\u4eac\u4e03\u6708\u5728\u7ebf\u79d1\u6280\u6709\u9650\u516c\u53f8\u6240\u6709\u3002"]},t}return Object(d.a)(a,e),Object(s.a)(a,[{key:"componentDidMount",value:function(){this.fetchRankData()}},{key:"render",value:function(){var e=this,a=this.state,t=a.rankList,n=a.rules;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"rank__banner"}),o.a.createElement("div",{className:"rank__body"},o.a.createElement("button",{className:"rank__address",onClick:function(){return e.handleToSwitch(!0)}},"\u586b\u5199\u6536\u8d27\u5730\u5740>"),o.a.createElement("div",{className:"rank__table"},o.a.createElement("dl",{className:"rank__table-header"},o.a.createElement("dd",{className:"rank__table-column"},"\u6392\u540d"),o.a.createElement("dd",{className:"rank__table-column"},"\u7528\u6237"),o.a.createElement("dd",{className:"rank__table-column"},"\u6210\u7ee9"),o.a.createElement("dd",{className:"rank__table-column"},"\u5956\u54c1")),t.map(function(a,t){return o.a.createElement("dl",{className:"rank__table-body",key:t},o.a.createElement("dd",{className:"rank__table-column"},t<3?o.a.createElement("i",{className:"rank__table-num","data-num":t+1}):t+1),o.a.createElement("dd",{className:"rank__table-column"},o.a.createElement("div",{className:"rank__table-user"},o.a.createElement("i",{className:"rank__table-portrait",style:{backgroundImage:"url(".concat(a.head_image,")")}}),o.a.createElement("span",null,e.formatString(a.user_name,5)))),o.a.createElement("dd",{className:"rank__table-column"},a.blessing_value),o.a.createElement("dd",{className:"rank__table-column"},e.formatString(a.prize_name,7)))})),o.a.createElement("div",{className:"rank__rule"},o.a.createElement("h2",{className:"rank__rule-title"},"\u6d3b\u52a8\u89c4\u5219"),n.map(function(e,a){return o.a.createElement("p",{className:"rank__rule-desc",key:a},e)}))))}}]),a}(m.Component))||n);a.default=k}}]);
//# sourceMappingURL=blessing-rank.eab5e3bf.chunk.js.map
\ No newline at end of file
......@@ -55,8 +55,7 @@ class CollectBlessing extends Component {
};
}
qqToShare = (e) => {
e.preventDefault();
qqToShare = () => {
const { uid, history } = this.props;
if(getParam('version')) {
if(!uid) {
......@@ -138,6 +137,7 @@ class CollectBlessing extends Component {
const { code, data } = res.data;
if(code === 200) {
if(data.today_shared_platforms.some(item => item === key)) {
handleToShowShare();
Toast.info('今日已分享,记得明天来~', 2, null, false);
}else {
handleToShowShare();
......@@ -288,7 +288,7 @@ class CollectBlessing extends Component {
<a
className="collect-blessing__share-button"
data-type="qq"
onClick={(e) => this.qqToShare(e)}
onClick={this.qqToShare}
></a>
<a
className="collect-blessing__share-button"
......
......@@ -478,7 +478,7 @@ class BlessingPreheat extends Component {
}
{
shareMark &&
<SharePopup/>
<SharePopup toClose={() => this.handleToHide('shareMark')}/>
}
{/*
......
......@@ -5,7 +5,7 @@ import './index.scss'
export default class SharePopup extends Component {
render() {
return (
<div className="share__container">
<div className="share__container" onClick={this.props.toClose}>
{
browser.isWeixin &&
<div className="share__row">
......
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