Commit dca6f6b7 by FE

tip modify

parent adb5a7ff
(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{1171:function(n,m,e){},1192:function(n,m,e){"use strict";e.r(m);var a=e(8),u=e(9),t=e(10),c=e(7),r=e(11),o=e(0),l=e.n(o),i=e(22),s=e(24),p=e(15),y=e.n(p),d=e(3),v=e(162),f=e(30),E=(e(1171),function(n){function m(n){var e;return Object(a.a)(this,m),(e=Object(t.a)(this,Object(c.a)(m).call(this,n))).judgeCurrentPosition=function(){var n=e.state.navs,m=document.documentElement.scrollTop||document.body.scrollTop;n.map(function(n){var m=document.querySelector('[data-type="'.concat(n,'"]'));return m?m.offsetTop:""}).map(function(a,u){a&&m+200>a&&e.setState({currentNav:n[u]})})},e.toParentPage=function(n,m){var a=e.props,u=a.history;(0,a.addCountryNum)({num:m,code:Object(d.c)("share_code")}),u.push("/detail?id=".concat(Object(d.c)("id"))),n.preventDefault()},e.scrollTo=function(n){var m=document.querySelector('[data-type="'.concat(n,'"]'));m&&(e.setState({currentNav:n}),m.scrollIntoView({behavior:"smooth"}))},e.state={navs:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],currentNav:"A"},e}return Object(r.a)(m,n),Object(u.a)(m,[{key:"componentDidMount",value:function(){document.addEventListener("scroll",this.judgeCurrentPosition)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("scroll",this.judgeCurrentPosition)}},{key:"render",value:function(){var n=this,m=this.state,e=m.currentNav,a=m.navs;return l.a.createElement(l.a.Fragment,null,l.a.createElement(f.e,{title:"\u9009\u62e9\u56fd\u5bb6\u548c\u5730\u533a"}),l.a.createElement("ul",{className:"letter-nav"},a.map(function(m,a){return l.a.createElement("li",{key:"nav-".concat(a),className:y()("letter-nav__item",{"letter-nav__item--active":e===m}),onClick:function(){return n.scrollTo(m)}},m)})),l.a.createElement("div",{className:"page-body"},[{type:"0",list:[{name:"\u4e2d\u56fd\u5927\u9646",num:"86"},{name:"\u4e2d\u56fd\u6fb3\u95e8",num:"853"},{name:"\u4e2d\u56fd\u9999\u6e2f",num:"852"},{name:"\u4e2d\u56fd\u53f0\u6e7e",num:"886"}]},{type:"A",list:[{name:"\u963f\u5bcc\u6c57",num:"93"},{name:"\u963f\u5c14\u5df4\u5c3c\u4e9a",num:"355"},{name:"\u963f\u5c14\u53ca\u5229\u4e9a",num:"213"},{name:"\u5b89\u9053\u5c14",num:"376"},{name:"\u5b89\u54e5\u62c9",num:"244"},{name:"\u5b89\u572d\u62c9",num:"1264"},{name:"\u5b89\u63d0\u74dc\u548c\u5df4\u5e03\u8fbe",num:"1268"},{name:"\u963f\u6839\u5ef7",num:"54"},{name:"\u963f\u9c81\u5df4",num:"297"},{name:"\u963f\u585e\u62dc\u7586",num:"994"},{name:"\u57c3\u53ca",num:"20"},{name:"\u7231\u6c99\u5c3c\u4e9a",num:"372"},{name:"\u57c3\u585e\u4fc4\u6bd4\u4e9a",num:"251"},{name:"\u7231\u5c14\u5170",num:"353"},{name:"\u963f\u66fc",num:"968"},{name:"\u963f\u62c9\u4f2f\u8054\u5408\u914b\u957f\u56fd",num:"971"},{name:"\u7231\u6c99\u5c3c\u4e9a",num:"372"},{name:"\u7231\u6c99\u5c3c\u4e9a",num:"372"},{name:"\u7231\u6c99\u5c3c\u4e9a",num:"372"}]},{type:"B",list:[{name:"\u5df4\u54c8\u9a6c",num:"1242"},{name:"\u5df4\u6797",num:"973"},{name:"\u5df4\u5df4\u591a\u65af",num:"1246"},{name:"\u767d\u4fc4\u7f57\u65af",num:"375"},{name:"\u6bd4\u5229\u65f6",num:"32"},{name:"\u4f2f\u5229\u5179",num:"501"},{name:"\u8d1d\u5b81",num:"229"},{name:"\u767e\u6155\u5927\u7fa4\u5c9b",num:"1441"},{name:"\u4e0d\u4e39",num:"975"},{name:"\u73bb\u5229\u7ef4\u4e9a",num:"591"},{name:"\u6ce2\u65af\u5c3c\u4e9a\u548c\u9ed1\u585e\u54e5\u7ef4\u90a3",num:"387"},{name:"\u535a\u8328\u74e6\u7eb3",num:"267"},{name:"\u5df4\u897f",num:"55"},{name:"\u4fdd\u52a0\u5229\u4e9a",num:"359"},{name:"\u5e03\u57fa\u7eb3\u6cd5\u7d22",num:"226"},{name:"\u5e03\u9686\u8fea",num:"257"},{name:"\u51b0\u5c9b",num:"354"},{name:"\u5df4\u57fa\u65af\u5766",num:"92"},{name:"\u5df4\u52d2\u65af\u5766",num:"970"},{name:"\u5df4\u62ff\u9a6c",num:"507"},{name:"\u5df4\u5e03\u4e9a\u65b0\u51e0\u5185\u4e9a",num:"675"},{name:"\u5df4\u62c9\u572d",num:"51"},{name:"\u79d8\u9c81",num:"354"},{name:"\u6ce2\u5170",num:"48"},{name:"\u6ce2\u591a\u9ece\u5404",num:"1787"}]},{type:"C",list:[{name:"\u8d64\u9053\u51e0\u5185\u4e9a",num:"240"}]},{type:"D",list:[{name:"\u4e39\u9ea6",num:"45"},{name:"\u591a\u7c73\u5c3c\u52a0",num:"1767"},{name:"\u591a\u7c73\u5c3c\u52a0\u5171\u548c\u56fd",num:"1809"},{name:"\u5fb7\u56fd",num:"49"},{name:"\u4e1c\u5e1d\u6c76",num:"670"},{name:"\u591a\u54e5",num:"228"}]},{type:"E",list:[{name:"\u5384\u74dc\u591a\u5c14",num:"593"},{name:"\u5384\u7acb\u7279\u91cc\u4e9a",num:"291"},{name:"\u4fc4\u7f57\u65af",num:"7"}]},{type:"F",list:[{name:"\u6cd5\u7f57\u7fa4\u5c9b",num:"298"},{name:"\u6590\u6d4e",num:"679"},{name:"\u82ac\u5170",num:"358"},{name:"\u6cd5\u56fd",num:"594"},{name:"\u6cd5\u5c5e\u572d\u4e9a\u90a3",num:"45"},{name:"\u6cd5\u5c5e\u6ce2\u5229\u5c3c\u897f\u4e9a",num:"689"},{name:"\u83f2\u5f8b\u5bbe",num:"63"}]},{type:"G",list:[{name:"\u54e5\u4f26\u6bd4\u4e9a",num:"57"},{name:"\u54e5\u65af\u8fbe\u9ece\u52a0",num:"506"},{name:"\u53e4\u5df4",num:"53"},{name:"\u521a\u679c\u6c11\u4e3b\u5171\u548c\u56fd",num:"243"},{name:"\u5188\u6bd4\u4e9a",num:"220"},{name:"\u683c\u9c81\u5409\u4e9a",num:"995"},{name:"\u683c\u9675\u5170\u5c9b",num:"299"},{name:"\u683c\u6797\u7eb3\u8fbe",num:"1473"},{name:"\u74dc\u5fb7\u7f57\u666e\u5c9b",num:"590"},{name:"\u5173\u5c9b",num:"299"},{name:"\u74dc\u5730\u9a6c\u62c9",num:"502"},{name:"\u572d\u4e9a\u90a3",num:"592"},{name:"\u521a\u679c\u5171\u548c\u56fd",num:"242"}]},{type:"H",list:[{name:"\u6d77\u5730",num:"509"},{name:"\u6d2a\u90fd\u62c9\u65af",num:"504"},{name:"\u9ed1\u5c71",num:"382"},{name:"\u8377\u5170",num:"31"},{name:"\u97e9\u56fd",num:"82"}]},{type:"J",list:[{name:"\u52a0\u62ff\u5927",num:"1"},{name:"\u65e5\u672c",num:"81"},{name:"\u67ec\u57d4\u5be8",num:"855"},{name:"\u6377\u514b",num:"420"},{name:"\u5409\u5e03\u63d0",num:"253"},{name:"\u52a0\u84ec",num:"241"},{name:"\u52a0\u7eb3",num:"233"},{name:"\u51e0\u5185\u4e9a",num:"224"},{name:"\u51e0\u5185\u4e9a\u6bd4\u7ecd\u5171\u548c\u56fd",num:"245"},{name:"\u57fa\u91cc\u5df4\u65af",num:"686"},{name:"\u5409\u5c14\u5409\u65af\u65af\u5766",num:"996"},{name:"\u6d25\u5df4\u5e03\u97e6",num:"263"}]},{type:"K",list:[{name:"\u5580\u9ea6\u9686",num:"237"},{name:"\u5f00\u666e",num:"238"},{name:"\u5f00\u66fc\u7fa4\u5c9b",num:"1345"},{name:"\u79d1\u6469\u7f57",num:"269"},{name:"\u5e93\u514b\u7fa4\u5c9b",num:"682"},{name:"\u514b\u7f57\u5730\u4e9a",num:"385"},{name:"\u5e93\u62c9\u7d22",num:"599"},{name:"\u80af\u5c3c\u4e9a",num:"254"},{name:"\u79d1\u5a01\u7279",num:"965"},{name:"\u5361\u5854\u5c14",num:"974"},{name:"\u79d1\u7279\u8fea\u74e6",num:"225"}]},{type:"L",list:[{name:"\u8001\u631d",num:"856"},{name:"\u62c9\u8131\u7ef4\u4e9a",num:"371"},{name:"\u9ece\u5df4\u5ae9",num:"961"},{name:"\u83b1\u7d22\u6258",num:"266"},{name:"\u5229\u6bd4\u91cc\u4e9a",num:"231"},{name:"\u5229\u6bd4\u4e9a",num:"218"},{name:"\u5217\u652f\u6566\u58eb\u767b",num:"423"},{name:"\u7acb\u9676\u5b9b",num:"370"},{name:"\u5362\u68ee\u5821",num:"352"},{name:"\u7559\u5c3c\u6c6a",num:"262"},{name:"\u7f57\u9a6c\u5c3c\u4e9a",num:"40"},{name:"\u5362\u65fa\u8fbe",num:"423"}]},{type:"M",list:[{name:"\u7f8e\u5c5e\u8428\u6469\u4e9a",num:"1684"},{name:"\u5b5f\u52a0\u62c9\u56fd",num:"880"},{name:"\u9a6c\u5176\u987f",num:"389"},{name:"\u9a6c\u8fbe\u52a0\u65af\u52a0",num:"261"},{name:"\u9a6c\u62c9\u7ef4",num:"265"},{name:"\u9a6c\u6765\u897f\u4e9a",num:"60"},{name:"\u9a6c\u5c14\u4ee3\u592b",num:"960"},{name:"\u9a6c\u91cc",num:"223"},{name:"\u9a6c\u8033\u4ed6",num:"356"},{name:"\u9a6c\u63d0\u5c3c\u514b",num:"596"},{name:"\u6bdb\u91cc\u5854\u5c3c\u4e9a",num:"222"},{name:"\u6bdb\u91cc\u6c42\u65af",num:"230"},{name:"\u58a8\u897f\u54e5",num:"52"},{name:"\u6469\u5c14\u591a\u74e6",num:"373"},{name:"\u6469\u7eb3\u54e5",num:"377"},{name:"\u8499\u53e4",num:"976"},{name:"\u8499\u7279\u585e\u62c9\u7279\u5c9b",num:"1664"},{name:"\u6469\u6d1b\u54e5",num:"212"},{name:"\u83ab\u6851\u6bd4\u514b",num:"258"},{name:"\u7f05\u7538",num:"95"},{name:"\u7f8e\u5c5e\u7ef4\u5c14\u4eac\u7fa4\u5c9b",num:"1284"}]},{type:"N",list:[{name:"\u7eb3\u7c73\u6bd4\u4e9a",num:"264"},{name:"\u5c3c\u6cca\u5c14",num:"977"},{name:"\u5c3c\u52a0\u62c9\u74dc",num:"505"},{name:"\u5c3c\u65e5\u5c14",num:"227"},{name:"\u5c3c\u65e5\u5229\u4e9a",num:"234"},{name:"\u632a\u5a01",num:"47"},{name:"\u5357\u975e",num:"27"}]},{type:"O",list:[{name:"\u6fb3\u5927\u5229\u4e9a",num:"61"},{name:"\u5965\u5730\u5229",num:"43"},{name:"\u6fb3\u5927\u5229\u4e9a",num:"61"},{name:"\u6fb3\u5927\u5229\u4e9a",num:"61"},{name:"\u6fb3\u5927\u5229\u4e9a",num:"61"},{name:"\u6fb3\u5927\u5229\u4e9a",num:"61"},{name:"\u6fb3\u5927\u5229\u4e9a",num:"61"}]},{type:"P",list:[{name:"\u5e15\u52b3",num:"680"},{name:"\u8461\u8404\u7259",num:"351"}]},{type:"R",list:[{name:"\u745e\u5178",num:"46"},{name:"\u745e\u58eb",num:"41"}]},{type:"S",list:[{name:"\u585e\u6d66\u8def\u65af",num:"357"},{name:"\u8428\u5c14\u74e6\u591a",num:"503"},{name:"\u5723\u57fa\u8328\u548c\u5c3c\u7ef4\u65af",num:"1869"},{name:"\u5723\u9732\u897f\u4e9a",num:"1758"},{name:"\u5723\u76ae\u57c3\u5c14\u5c9b\u53ca\u5bc6\u514b\u9686\u5c9b",num:"508"},{name:"\u5723\u6587\u68ee\u7279\u548c\u683c\u6797\u7eb3\u4e01\u65af",num:"1784"},{name:"\u8428\u6469\u4e9a",num:"685"},{name:"\u5723\u9a6c\u529b\u8bfa",num:"378"},{name:"\u5723\u591a\u7f8e\u548c\u666e\u6797\u897f\u6bd4",num:"239"},{name:"\u6c99\u7279\u963f\u62c9\u4f2f",num:"966"},{name:"\u585e\u5185\u52a0\u5c14",num:"221"},{name:"\u585e\u5c14\u7ef4\u4e9a",num:"381"},{name:"\u585e\u820c\u5c14",num:"248"},{name:"\u585e\u62c9\u5229\u6602",num:"239"},{name:"\u5723\u9a6c\u4e01\u5c9b\uff08\u8377\u5170\u90e8\u5206\uff09",num:"1721"},{name:"\u65af\u6d1b\u4f10\u514b",num:"421"},{name:"\u65af\u6d1b\u6587\u5c3c\u4e9a",num:"386"},{name:"\u6240\u7f57\u95e8\u7fa4\u5c9b",num:"677"},{name:"\u7d22\u9a6c\u91cc",num:"252"},{name:"\u65af\u91cc\u5170\u5361",num:"94"},{name:"\u82cf\u4e39",num:"249"},{name:"\u82cf\u91cc\u5357",num:"597"},{name:"\u65af\u5a01\u58eb\u5170",num:"268"}]},{type:"T",list:[,{name:"\u5854\u5409\u514b\u65af\u5766",num:"992"},{name:"\u5766\u6851\u5c3c\u4e9a",num:"255"},{name:"\u6cf0\u56fd",num:"66"},{name:"\u6c64\u52a0",num:"676"},{name:"\u7279\u7acb\u5c3c\u8fbe\u548c\u591a\u5df4\u54e5",num:"1868"},{name:"\u7a81\u5c3c\u65af",num:"216"},{name:"\u571f\u8033\u5176",num:"90"},{name:"\u571f\u5e93\u66fc\u65af\u5766",num:"993"},{name:"\u7279\u514b\u65af\u548c\u51ef\u79d1\u65af\u7fa4\u5c9b",num:"1649"}]},{type:"W",list:[{name:"\u6587\u83b1",num:"673"},{name:"\u4e4c\u5e72\u8fbe",num:"256"},{name:"\u4e4c\u514b\u5170",num:"380"},{name:"\u4e4c\u62c9\u572d",num:"598"},{name:"\u4e4c\u5179\u522b\u514b\u65af\u5766",num:"998"},{name:"\u74e6\u52aa\u963f\u56fe",num:"678"},{name:"\u59d4\u5185\u745e\u62c9",num:"58"}]},{type:"X",list:[{name:"\u65b0\u897f\u5170",num:"64"},{name:"\u5e0c\u814a",num:"30"},{name:"\u5308\u7259\u5229",num:"36"},{name:"\u65b0\u5580\u91cc\u591a\u5c3c\u4e9a",num:"687"},{name:"\u65b0\u52a0\u5761",num:"65"},{name:"\u897f\u73ed\u7259",num:"34"},{name:"\u53d9\u5229\u4e9a",num:"963"},{name:"\u4e9a\u7f8e\u5c3c\u4e9a",num:"374"}]},{type:"Y",list:[{name:"\u82f1\u56fd",num:"44"},{name:"\u5370\u5ea6",num:"91"},,{name:"\u5370\u5ea6\u5c3c\u897f\u4e9a",num:"62"},,{name:"\u4f0a\u6717",num:"98"},,{name:"\u4f0a\u62c9\u514b",num:"964"},,{name:"\u4ee5\u8272\u5217",num:"972"},,{name:"\u610f\u5927\u5229",num:"39"},,{name:"\u7259\u4e70\u52a0",num:"1876"},,{name:"\u7ea6\u65e6",num:"962"},{name:"\u8d8a\u5357",num:"84"},{name:"\u82f1\u5c5e\u5904\u5973\u7fa4\u5c9b",num:"1340"},{name:"\u4e5f\u95e8",num:"967"}]},{type:"Z",list:[{name:"\u4e2d\u56fd",num:"86"},{name:"\u4e2d\u56fd\u9999\u6e2f",num:"852"},{name:"\u4e2d\u56fd\u6fb3\u95e8",num:"853"},{name:"\u4e2d\u56fd\u53f0\u6e7e",num:"886"},{name:"\u4e2d\u975e\u5171\u548c\u56fd",num:"236"},{name:"\u4e4d\u5f97",num:"235"},{name:"\u667a\u5229",num:"56"},{name:"\u76f4\u5e03\u7f57\u9640",num:"350"},{name:"\u8d5e\u6bd4\u4e9a",num:"260"}]}].map(function(m,e){var a=m.type,u=m.list;return l.a.createElement("div",{key:e},l.a.createElement("h2",{className:"country-header","data-type":a},"0"===a?"\u5e38\u7528":a),l.a.createElement("ul",{className:"country-list"},u.map(function(m,a){return l.a.createElement("li",{className:"country-item",key:"".concat(e,"-").concat(a)},l.a.createElement("a",{className:"country-item__link",href:"#",onClick:function(e){return n.toParentPage(e,m.num)}},l.a.createElement("span",{className:"country-name"},m.name),l.a.createElement("span",{className:"country-num"},"+",m.num)))})))})))}}]),m}(o.Component));m.default=Object(i.b)(function(n){return{country:n.country}},function(n){return Object(s.b)({addCountryNum:v.a},n)})(E)}}]);
//# sourceMappingURL=33.3b3ad542.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/country/index.js"],"names":["Country","props","_this","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","call","judgeCurrentPosition","navs","state","top","document","documentElement","scrollTop","body","map","item","el","querySelector","concat","offsetTop","index","setState","currentNav","toParentPage","e","num","_this$props","history","addCountryNum","code","getParam","push","preventDefault","scrollTo","param","scrollIntoView","behavior","addEventListener","removeEventListener","_this2","_this$state","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","Fragment","_common__WEBPACK_IMPORTED_MODULE_11__","title","className","key","classnames","letter-nav__item--active","onClick","type","list","name","_ref","data-type","val","href","Component","connect","_ref2","country","dispatch","bindActionCreators"],"mappings":"4OAUMA,uBAEJ,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,KAgBRQ,qBAAuB,WAAM,IACnBC,EAASR,EAAKS,MAAdD,KACJE,EAAMC,SAASC,gBAAgBC,WAAaF,SAASG,KAAKD,UACjDL,EAAKO,IAAI,SAAAC,GACpB,IAAIC,EAAKN,SAASO,cAAT,eAAAC,OAAsCH,EAAtC,OACT,OAAGC,EACMA,EAAGG,UAEL,KAEJL,IAAI,SAACC,EAAKK,GACVL,GAASN,EAAM,IAAOM,GACvBhB,EAAKsB,SAAS,CACZC,WAAYf,EAAKa,QA9BNrB,EAoCnBwB,aAA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AU,qBAAqBW,KAAK,IAAIP,QAAS,SAAC3B,GAAD,OAAOe,EAAKhB,aAAaC,EAAGiC,EAAIhC,OAClFgB,EAAAC,EAAAC,cAAA,QAAMI,UAAU,gBAAgBU,EAAIH,MACpCb,EAAAC,EAAAC,cAAA,QAAMI,UAAU,eAAhB,IAAgCU,EAAIhC,sBAllC1CkC,cAkmCPC,sBACb,SAAAC,GAAA,MAAe,CACbC,QADFD,EAAEC,UAGF,SAACC,GACC,OAAOC,YACL,CACEpC,mBAEFmC,IATSH,CAYb/D","file":"mrstatic/js/33.3b3ad542.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { connect } from 'react-redux';\nimport { bindActionCreators } from 'redux';\nimport classnames from 'classnames';\nimport { getParam } from '@/utils';\nimport { addCountryNum } from './countryRedux';\nimport { HeaderBar } from '@/common'\n\nimport './index.scss';\n\nclass Country extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n navs: ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'],\n currentNav: 'A'\n }\n }\n\n componentDidMount() {\n // document.body.scrollIntoView();\n document.addEventListener('scroll', this.judgeCurrentPosition)\n }\n\n componentWillUnmount() {\n document.removeEventListener('scroll', this.judgeCurrentPosition)\n }\n\n judgeCurrentPosition = () => {\n const { navs } = this.state;\n let top = document.documentElement.scrollTop || document.body.scrollTop;\n const lens = navs.map(item => {\n let el = document.querySelector(`[data-type=\"${item}\"]`);\n if(el) {\n return el.offsetTop;\n }\n return '';\n });\n lens.map((item,index) => {\n if(item && (top + 200) > item) {\n this.setState({\n currentNav: navs[index]\n })\n } \n });\n }\n\n toParentPage = (e, num) => {\n // console.log(this.props);\n const { history, addCountryNum } = this.props;\n addCountryNum({\n num,\n code: getParam('share_code')\n });\n history.push(`/detail?id=${getParam('id')}`);\n e.preventDefault();\n }\n\n scrollTo = (param) => {\n const el = document.querySelector(`[data-type=\"${param}\"]`)\n if(el) {\n this.setState({\n currentNav: param\n });\n el.scrollIntoView({\n behavior: 'smooth'\n });\n }\n }\n\n render() {\n const data = [\n {\n type: '0',\n list: [\n {\n name: '中国大陆',\n num: '86'\n },\n {\n name: '中国澳门',\n num: '853'\n },\n {\n name: '中国香港',\n num: '852'\n },\n {\n name: '中国台湾',\n num: '886'\n }\n ]\n },\n {\n type: 'A',\n list: [\n {\n name: '阿富汗',\n num: '93'\n },\n {\n name: '阿尔巴尼亚',\n num: '355'\n },\n {\n name: '阿尔及利亚',\n num: '213'\n },\n {\n name: '安道尔',\n num: '376'\n },\n {\n name: '安哥拉',\n num: '244'\n },\n {\n name: '安圭拉',\n num: '1264'\n },\n {\n name: '安提瓜和巴布达',\n num: '1268'\n },\n {\n name: '阿根廷',\n num: '54'\n },\n {\n name: '阿鲁巴',\n num: '297'\n },\n {\n name: '阿塞拜疆',\n num: '994'\n },\n {\n name: '埃及',\n num: '20'\n },\n {\n name: '爱沙尼亚',\n num: '372'\n },\n {\n name: '埃塞俄比亚',\n num: '251'\n },\n {\n name: '爱尔兰',\n num: '353'\n },\n {\n name: '阿曼',\n num: '968'\n },\n {\n name: '阿拉伯联合酋长国',\n num: '971'\n },\n {\n name: '爱沙尼亚',\n num: '372'\n },\n {\n name: '爱沙尼亚',\n num: '372'\n },\n {\n name: '爱沙尼亚',\n num: '372'\n }\n ]\n },\n {\n type: 'B',\n list: [\n {\n name: '巴哈马',\n num: '1242'\n },\n {\n name: '巴林',\n num: '973'\n },\n {\n name: '巴巴多斯',\n num: '1246'\n },\n {\n name: '白俄罗斯',\n num: '375'\n },\n {\n name: '比利时',\n num: '32'\n },\n {\n name: '伯利兹',\n num: '501'\n },\n {\n name: '贝宁',\n num: '229'\n },\n {\n name: '百慕大群岛',\n num: '1441'\n },\n {\n name: '不丹',\n num: '975'\n },\n {\n name: '玻利维亚',\n num: '591'\n },\n {\n name: '波斯尼亚和黑塞哥维那',\n num: '387'\n },\n {\n name: '博茨瓦纳',\n num: '267'\n },\n {\n name: '巴西',\n num: '55'\n },\n {\n name: '保加利亚',\n num: '359'\n },\n {\n name: '布基纳法索',\n num: '226'\n },\n {\n name: '布隆迪',\n num: '257'\n },\n {\n name: '冰岛',\n num: '354'\n },\n {\n name: '巴基斯坦',\n num: '92'\n },\n {\n name: '巴勒斯坦',\n num: '970'\n },\n {\n name: '巴拿马',\n num: '507'\n },\n {\n name: '巴布亚新几内亚',\n num: '675'\n },\n {\n name: '巴拉圭',\n num: '51'\n },\n {\n name: '秘鲁',\n num: '354'\n },\n {\n name: '波兰',\n num: '48'\n },\n {\n name: '波多黎各',\n num: '1787'\n }\n ]\n },\n {\n type: 'C',\n list: [\n {\n name: '赤道几内亚',\n num: '240'\n }\n ]\n },\n {\n type: 'D',\n list: [\n {\n name: '丹麦',\n num: '45'\n },\n {\n name: '多米尼加',\n num: '1767'\n },\n {\n name: '多米尼加共和国',\n num: '1809'\n },\n {\n name: '德国',\n num: '49'\n },\n {\n name: '东帝汶',\n num: '670'\n },\n {\n name: '多哥',\n num: '228'\n }\n ]\n },\n {\n type: 'E',\n list: [\n {\n name: '厄瓜多尔',\n num: '593'\n },\n {\n name: '厄立特里亚',\n num: '291'\n },\n {\n name: '俄罗斯',\n num: '7'\n }\n ]\n },\n {\n type: 'F',\n list: [\n {\n name: '法罗群岛',\n num: '298'\n },\n {\n name: '斐济',\n num: '679'\n },\n {\n name: '芬兰',\n num: '358'\n },\n {\n name: '法国',\n num: '594'\n },\n {\n name: '法属圭亚那',\n num: '45'\n },\n {\n name: '法属波利尼西亚',\n num: '689'\n },\n {\n name: '菲律宾',\n num: '63'\n }\n ]\n },\n {\n type: 'G',\n list: [\n {\n name: '哥伦比亚',\n num: '57'\n },\n {\n name: '哥斯达黎加',\n num: '506'\n },\n {\n name: '古巴',\n num: '53'\n },\n {\n name: '刚果民主共和国',\n num: '243'\n },\n {\n name: '冈比亚',\n num: '220'\n },\n {\n name: '格鲁吉亚',\n num: '995'\n },\n {\n name: '格陵兰岛',\n num: '299'\n },\n {\n name: '格林纳达',\n num: '1473'\n },\n {\n name: '瓜德罗普岛',\n num: '590'\n },\n {\n name: '关岛',\n num: '299'\n },\n {\n name: '瓜地马拉',\n num: '502'\n },\n {\n name: '圭亚那',\n num: '592'\n },\n {\n name: '刚果共和国',\n num: '242'\n }\n ]\n },\n {\n type: 'H',\n list: [\n {\n name: '海地',\n num: '509'\n },\n {\n name: '洪都拉斯',\n num: '504'\n },\n {\n name: '黑山',\n num: '382'\n },\n {\n name: '荷兰',\n num: '31'\n },\n {\n name: '韩国',\n num: '82'\n }\n ]\n },\n {\n type: 'J',\n list: [\n {\n name: '加拿大',\n num: '1'\n },\n {\n name: '日本',\n num: '81'\n },\n {\n name: '柬埔寨',\n num: '855'\n },\n {\n name: '捷克',\n num: '420'\n },\n {\n name: '吉布提',\n num: '253'\n },\n {\n name: '加蓬',\n num: '241'\n },\n {\n name: '加纳',\n num: '233'\n },\n {\n name: '几内亚',\n num: '224'\n },\n {\n name: '几内亚比绍共和国',\n num: '245'\n },\n {\n name: '基里巴斯',\n num: '686'\n },\n {\n name: '吉尔吉斯斯坦',\n num: '996'\n },\n {\n name: '津巴布韦',\n num: '263'\n }\n ]\n },\n {\n type: 'K',\n list: [\n {\n name: '喀麦隆',\n num: '237'\n },\n {\n name: '开普',\n num: '238'\n },\n {\n name: '开曼群岛',\n num: '1345'\n },\n {\n name: '科摩罗',\n num: '269'\n },\n {\n name: '库克群岛',\n num: '682'\n },\n {\n name: '克罗地亚',\n num: '385'\n },\n {\n name: '库拉索',\n num: '599'\n },\n {\n name: '肯尼亚',\n num: '254'\n },\n {\n name: '科威特',\n num: '965'\n },\n {\n name: '卡塔尔',\n num: '974'\n },\n {\n name: '科特迪瓦',\n num: '225'\n }\n ]\n },\n {\n type: 'L',\n list: [\n {\n name: '老挝',\n num: '856'\n },\n {\n name: '拉脱维亚',\n num: '371'\n },\n {\n name: '黎巴嫩',\n num: '961'\n },\n {\n name: '莱索托',\n num: '266'\n },\n {\n name: '利比里亚',\n num: '231'\n },\n {\n name: '利比亚',\n num: '218'\n },\n {\n name: '列支敦士登',\n num: '423'\n },\n {\n name: '立陶宛',\n num: '370'\n },\n {\n name: '卢森堡',\n num: '352'\n },\n {\n name: '留尼汪',\n num: '262'\n },\n {\n name: '罗马尼亚',\n num: '40'\n },\n {\n name: '卢旺达',\n num: '423'\n }\n ]\n },\n {\n type: 'M',\n list: [\n {\n name: '美属萨摩亚',\n num: '1684'\n },\n {\n name: '孟加拉国',\n num: '880'\n },\n {\n name: '马其顿',\n num: '389'\n },\n {\n name: '马达加斯加',\n num: '261'\n },\n {\n name: '马拉维',\n num: '265'\n },\n {\n name: '马来西亚',\n num: '60'\n },\n {\n name: '马尔代夫',\n num: '960'\n },\n {\n name: '马里',\n num: '223'\n },\n {\n name: '马耳他',\n num: '356'\n },\n {\n name: '马提尼克',\n num: '596'\n },\n {\n name: '毛里塔尼亚',\n num: '222'\n },\n {\n name: '毛里求斯',\n num: '230'\n },\n {\n name: '墨西哥',\n num: '52'\n },\n {\n name: '摩尔多瓦',\n num: '373'\n },\n {\n name: '摩纳哥',\n num: '377'\n },\n {\n name: '蒙古',\n num: '976'\n },\n {\n name: '蒙特塞拉特岛',\n num: '1664'\n },\n {\n name: '摩洛哥',\n num: '212'\n },\n {\n name: '莫桑比克',\n num: '258'\n },\n {\n name: '缅甸',\n num: '95'\n },\n {\n name: '美属维尔京群岛',\n num: '1284'\n }\n ]\n },\n {\n type: 'N',\n list: [\n {\n name: '纳米比亚',\n num: '264'\n },\n {\n name: '尼泊尔',\n num: '977'\n },\n {\n name: '尼加拉瓜',\n num: '505'\n },\n {\n name: '尼日尔',\n num: '227'\n },\n {\n name: '尼日利亚',\n num: '234'\n },\n {\n name: '挪威',\n num: '47'\n },\n {\n name: '南非',\n num: '27'\n }\n ]\n },\n {\n type: 'O',\n list: [\n {\n name: '澳大利亚',\n num: '61'\n },\n {\n name: '奥地利',\n num: '43'\n },\n {\n name: '澳大利亚',\n num: '61'\n },\n {\n name: '澳大利亚',\n num: '61'\n },\n {\n name: '澳大利亚',\n num: '61'\n },\n {\n name: '澳大利亚',\n num: '61'\n },\n {\n name: '澳大利亚',\n num: '61'\n }\n ]\n },\n {\n type: 'P',\n list: [\n {\n name: '帕劳',\n num: '680'\n },\n {\n name: '葡萄牙',\n num: '351'\n }\n ]\n },\n {\n type: 'R',\n list: [\n {\n name: '瑞典',\n num: '46'\n },\n {\n name: '瑞士',\n num: '41'\n }\n ]\n },\n {\n type: 'S',\n list: [\n {\n name: '塞浦路斯',\n num: '357'\n },\n {\n name: '萨尔瓦多',\n num: '503'\n },\n {\n name: '圣基茨和尼维斯',\n num: '1869'\n },\n {\n name: '圣露西亚',\n num: '1758'\n },\n {\n name: '圣皮埃尔岛及密克隆岛',\n num: '508'\n },\n {\n name: '圣文森特和格林纳丁斯',\n num: '1784'\n },\n {\n name: '萨摩亚',\n num: '685'\n },\n {\n name: '圣马力诺',\n num: '378'\n },\n {\n name: '圣多美和普林西比',\n num: '239'\n },\n {\n name: '沙特阿拉伯',\n num: '966'\n },\n {\n name: '塞内加尔',\n num: '221'\n },\n {\n name: '塞尔维亚',\n num: '381'\n },\n {\n name: '塞舌尔',\n num: '248'\n },\n {\n name: '塞拉利昂',\n num: '239'\n },\n {\n name: '圣马丁岛(荷兰部分)',\n num: '1721'\n },\n {\n name: '斯洛伐克',\n num: '421'\n },\n {\n name: '斯洛文尼亚',\n num: '386'\n },\n {\n name: '所罗门群岛',\n num: '677'\n },\n {\n name: '索马里',\n num: '252'\n },\n {\n name: '斯里兰卡',\n num: '94'\n },\n {\n name: '苏丹',\n num: '249'\n },\n {\n name: '苏里南',\n num: '597'\n },\n {\n name: '斯威士兰',\n num: '268'\n }\n ]\n },\n {\n type: 'T',\n list: [\n ,\n {\n name: '塔吉克斯坦',\n num: '992'\n },\n {\n name: '坦桑尼亚',\n num: '255'\n },\n {\n name: '泰国',\n num: '66'\n },\n {\n name: '汤加',\n num: '676'\n },\n {\n name: '特立尼达和多巴哥',\n num: '1868'\n },\n {\n name: '突尼斯',\n num: '216'\n },\n {\n name: '土耳其',\n num: '90'\n },\n {\n name: '土库曼斯坦',\n num: '993'\n },\n {\n name: '特克斯和凯科斯群岛',\n num: '1649'\n }\n ]\n },\n {\n type: 'W',\n list: [\n {\n name: '文莱',\n num: '673'\n },\n {\n name: '乌干达',\n num: '256'\n },\n {\n name: '乌克兰',\n num: '380'\n },\n {\n name: '乌拉圭',\n num: '598'\n },\n {\n name: '乌兹别克斯坦',\n num: '998'\n },\n {\n name: '瓦努阿图',\n num: '678'\n },\n {\n name: '委内瑞拉',\n num: '58'\n }\n ]\n },\n {\n type: 'X',\n list: [\n {\n name: '新西兰',\n num: '64'\n },\n {\n name: '希腊',\n num: '30'\n },\n {\n name: '匈牙利',\n num: '36'\n },\n {\n name: '新喀里多尼亚',\n num: '687'\n },\n {\n name: '新加坡',\n num: '65'\n },\n {\n name: '西班牙',\n num: '34'\n },\n {\n name: '叙利亚',\n num: '963'\n },\n {\n name: '亚美尼亚',\n num: '374'\n }\n ]\n },\n {\n type: 'Y',\n list: [\n {\n name: '英国',\n num: '44'\n },\n {\n name: '印度',\n num: '91'\n },,\n {\n name: '印度尼西亚',\n num: '62'\n },,\n {\n name: '伊朗',\n num: '98'\n },,\n {\n name: '伊拉克',\n num: '964'\n },,\n {\n name: '以色列',\n num: '972'\n },,\n {\n name: '意大利',\n num: '39'\n },,\n {\n name: '牙买加',\n num: '1876'\n },,\n {\n name: '约旦',\n num: '962'\n },\n {\n name: '越南',\n num: '84'\n },\n {\n name: '英属处女群岛',\n num: '1340'\n },\n {\n name: '也门',\n num: '967'\n }\n ]\n },\n {\n type: 'Z',\n list: [\n {\n name: '中国',\n num: '86'\n },\n {\n name: '中国香港',\n num: '852'\n },\n {\n name: '中国澳门',\n num: '853'\n },\n {\n name: '中国台湾',\n num: '886'\n },\n {\n name: '中非共和国',\n num: '236'\n },\n {\n name: '乍得',\n num: '235'\n },\n {\n name: '智利',\n num: '56'\n },\n {\n name: '直布罗陀',\n num: '350'\n },\n {\n name: '赞比亚',\n num: '260'\n }\n ]\n }\n ];\n const { currentNav, navs } = this.state;\n return (\n <>\n <HeaderBar title=\"选择国家和地区\" />\n <ul className=\"letter-nav\">\n {navs.map((item, index) => {\n return (\n <li \n key={`nav-${index}`}\n className={classnames(\"letter-nav__item\", {\"letter-nav__item--active\": currentNav === item})}\n onClick={() => this.scrollTo(item)}\n >{item}</li>\n )\n })}\n </ul>\n <div className=\"page-body\">\n {data.map(({type, list}, index) => {\n return (\n <div key={index}>\n <h2 className=\"country-header\" data-type={type}>{type === '0'? '常用' : type}</h2>\n <ul className=\"country-list\">\n {list.map((val, key) => {\n return (\n <li className=\"country-item\" key={`${index}-${key}`}>\n <a className=\"country-item__link\" href=\"#\" onClick={(e) => this.toParentPage(e, val.num)}>\n <span className=\"country-name\">{val.name}</span>\n <span className=\"country-num\">+{val.num}</span>\n </a>\n </li>\n )\n })}\n \n </ul>\n </div>\n )\n })}\n </div>\n </>\n )\n }\n}\n\nexport default connect(\n ({country}) =>({\n country\n }),\n (dispatch) => {\n return bindActionCreators(\n {\n addCountryNum\n },\n dispatch\n );\n }\n)(Country);"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{1171:function(n,m,e){},1192:function(n,m,e){"use strict";e.r(m);var a=e(8),u=e(9),t=e(10),c=e(7),r=e(11),l=e(0),i=e.n(l),s=e(22),o=e(24),y=e(15),p=e.n(y),d=e(3),v=e(162),f=e(30),b=(e(1171),function(n){function m(n){var e;return Object(a.a)(this,m),(e=Object(t.a)(this,Object(c.a)(m).call(this,n))).toParentPage=function(n,m){var a=e.props,u=a.history;(0,a.addCountryNum)({num:m,code:Object(d.c)("share_code")}),u.push("/detail?id=".concat(Object(d.c)("id"))),n.preventDefault()},e.scrollTo=function(n){var m=document.querySelector('[data-type="'.concat(n,'"]'));m&&(e.setState({currentNav:n}),m.scrollIntoView({behavior:"smooth"}))},e.state={currentNav:"A"},e}return Object(r.a)(m,n),Object(u.a)(m,[{key:"componentDidMount",value:function(){document.body.scrollIntoView()}},{key:"render",value:function(){var n=this,m=this.state.currentNav;return i.a.createElement(i.a.Fragment,null,i.a.createElement(f.e,{title:"\u9009\u62e9\u56fd\u5bb6\u548c\u5730\u533a"}),i.a.createElement("ul",{className:"letter-nav"},["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"].map(function(e,a){return i.a.createElement("li",{key:"nav-".concat(a),className:p()("letter-nav__item",{"letter-nav__item--active":m===e}),onClick:function(){return n.scrollTo(e)}},e)})),i.a.createElement("div",{className:"page-body"},[{type:"0",list:[{name:"\u4e2d\u56fd\u5927\u9646",num:"86"},{name:"\u4e2d\u56fd\u6fb3\u95e8",num:"853"},{name:"\u4e2d\u56fd\u9999\u6e2f",num:"852"},{name:"\u4e2d\u56fd\u53f0\u6e7e",num:"886"}]},{type:"A",list:[{name:"\u963f\u5bcc\u6c57",num:"93"},{name:"\u963f\u5c14\u5df4\u5c3c\u4e9a",num:"355"},{name:"\u963f\u5c14\u53ca\u5229\u4e9a",num:"213"},{name:"\u5b89\u9053\u5c14",num:"376"},{name:"\u5b89\u54e5\u62c9",num:"244"},{name:"\u5b89\u572d\u62c9",num:"1264"},{name:"\u5b89\u63d0\u74dc\u548c\u5df4\u5e03\u8fbe",num:"1268"},{name:"\u963f\u6839\u5ef7",num:"54"},{name:"\u963f\u9c81\u5df4",num:"297"},{name:"\u963f\u585e\u62dc\u7586",num:"994"},{name:"\u57c3\u53ca",num:"20"},{name:"\u7231\u6c99\u5c3c\u4e9a",num:"372"},{name:"\u57c3\u585e\u4fc4\u6bd4\u4e9a",num:"251"},{name:"\u7231\u5c14\u5170",num:"353"},{name:"\u963f\u66fc",num:"968"},{name:"\u963f\u62c9\u4f2f\u8054\u5408\u914b\u957f\u56fd",num:"971"},{name:"\u7231\u6c99\u5c3c\u4e9a",num:"372"},{name:"\u7231\u6c99\u5c3c\u4e9a",num:"372"},{name:"\u7231\u6c99\u5c3c\u4e9a",num:"372"}]},{type:"B",list:[{name:"\u5df4\u54c8\u9a6c",num:"1242"},{name:"\u5df4\u6797",num:"973"},{name:"\u5df4\u5df4\u591a\u65af",num:"1246"},{name:"\u767d\u4fc4\u7f57\u65af",num:"375"},{name:"\u6bd4\u5229\u65f6",num:"32"},{name:"\u4f2f\u5229\u5179",num:"501"},{name:"\u8d1d\u5b81",num:"229"},{name:"\u767e\u6155\u5927\u7fa4\u5c9b",num:"1441"},{name:"\u4e0d\u4e39",num:"975"},{name:"\u73bb\u5229\u7ef4\u4e9a",num:"591"},{name:"\u6ce2\u65af\u5c3c\u4e9a\u548c\u9ed1\u585e\u54e5\u7ef4\u90a3",num:"387"},{name:"\u535a\u8328\u74e6\u7eb3",num:"267"},{name:"\u5df4\u897f",num:"55"},{name:"\u4fdd\u52a0\u5229\u4e9a",num:"359"},{name:"\u5e03\u57fa\u7eb3\u6cd5\u7d22",num:"226"},{name:"\u5e03\u9686\u8fea",num:"257"},{name:"\u51b0\u5c9b",num:"354"},{name:"\u5df4\u57fa\u65af\u5766",num:"92"},{name:"\u5df4\u52d2\u65af\u5766",num:"970"},{name:"\u5df4\u62ff\u9a6c",num:"507"},{name:"\u5df4\u5e03\u4e9a\u65b0\u51e0\u5185\u4e9a",num:"675"},{name:"\u5df4\u62c9\u572d",num:"51"},{name:"\u79d8\u9c81",num:"354"},{name:"\u6ce2\u5170",num:"48"},{name:"\u6ce2\u591a\u9ece\u5404",num:"1787"}]},{type:"C",list:[{name:"\u8d64\u9053\u51e0\u5185\u4e9a",num:"240"}]},{type:"D",list:[{name:"\u4e39\u9ea6",num:"45"},{name:"\u591a\u7c73\u5c3c\u52a0",num:"1767"},{name:"\u591a\u7c73\u5c3c\u52a0\u5171\u548c\u56fd",num:"1809"},{name:"\u5fb7\u56fd",num:"49"},{name:"\u4e1c\u5e1d\u6c76",num:"670"},{name:"\u591a\u54e5",num:"228"}]},{type:"E",list:[{name:"\u5384\u74dc\u591a\u5c14",num:"593"},{name:"\u5384\u7acb\u7279\u91cc\u4e9a",num:"291"},{name:"\u4fc4\u7f57\u65af",num:"7"}]},{type:"F",list:[{name:"\u6cd5\u7f57\u7fa4\u5c9b",num:"298"},{name:"\u6590\u6d4e",num:"679"},{name:"\u82ac\u5170",num:"358"},{name:"\u6cd5\u56fd",num:"594"},{name:"\u6cd5\u5c5e\u572d\u4e9a\u90a3",num:"45"},{name:"\u6cd5\u5c5e\u6ce2\u5229\u5c3c\u897f\u4e9a",num:"689"},{name:"\u83f2\u5f8b\u5bbe",num:"63"}]},{type:"G",list:[{name:"\u54e5\u4f26\u6bd4\u4e9a",num:"57"},{name:"\u54e5\u65af\u8fbe\u9ece\u52a0",num:"506"},{name:"\u53e4\u5df4",num:"53"},{name:"\u521a\u679c\u6c11\u4e3b\u5171\u548c\u56fd",num:"243"},{name:"\u5188\u6bd4\u4e9a",num:"220"},{name:"\u683c\u9c81\u5409\u4e9a",num:"995"},{name:"\u683c\u9675\u5170\u5c9b",num:"299"},{name:"\u683c\u6797\u7eb3\u8fbe",num:"1473"},{name:"\u74dc\u5fb7\u7f57\u666e\u5c9b",num:"590"},{name:"\u5173\u5c9b",num:"299"},{name:"\u74dc\u5730\u9a6c\u62c9",num:"502"},{name:"\u572d\u4e9a\u90a3",num:"592"},{name:"\u521a\u679c\u5171\u548c\u56fd",num:"242"}]},{type:"H",list:[{name:"\u6d77\u5730",num:"509"},{name:"\u6d2a\u90fd\u62c9\u65af",num:"504"},{name:"\u9ed1\u5c71",num:"382"},{name:"\u8377\u5170",num:"31"},{name:"\u97e9\u56fd",num:"82"}]},{type:"J",list:[{name:"\u52a0\u62ff\u5927",num:"1"},{name:"\u65e5\u672c",num:"81"},{name:"\u67ec\u57d4\u5be8",num:"855"},{name:"\u6377\u514b",num:"420"},{name:"\u5409\u5e03\u63d0",num:"253"},{name:"\u52a0\u84ec",num:"241"},{name:"\u52a0\u7eb3",num:"233"},{name:"\u51e0\u5185\u4e9a",num:"224"},{name:"\u51e0\u5185\u4e9a\u6bd4\u7ecd\u5171\u548c\u56fd",num:"245"},{name:"\u57fa\u91cc\u5df4\u65af",num:"686"},{name:"\u5409\u5c14\u5409\u65af\u65af\u5766",num:"996"},{name:"\u6d25\u5df4\u5e03\u97e6",num:"263"}]},{type:"K",list:[{name:"\u5580\u9ea6\u9686",num:"237"},{name:"\u5f00\u666e",num:"238"},{name:"\u5f00\u66fc\u7fa4\u5c9b",num:"1345"},{name:"\u79d1\u6469\u7f57",num:"269"},{name:"\u5e93\u514b\u7fa4\u5c9b",num:"682"},{name:"\u514b\u7f57\u5730\u4e9a",num:"385"},{name:"\u5e93\u62c9\u7d22",num:"599"},{name:"\u80af\u5c3c\u4e9a",num:"254"},{name:"\u79d1\u5a01\u7279",num:"965"},{name:"\u5361\u5854\u5c14",num:"974"},{name:"\u79d1\u7279\u8fea\u74e6",num:"225"}]},{type:"L",list:[{name:"\u8001\u631d",num:"856"},{name:"\u62c9\u8131\u7ef4\u4e9a",num:"371"},{name:"\u9ece\u5df4\u5ae9",num:"961"},{name:"\u83b1\u7d22\u6258",num:"266"},{name:"\u5229\u6bd4\u91cc\u4e9a",num:"231"},{name:"\u5229\u6bd4\u4e9a",num:"218"},{name:"\u5217\u652f\u6566\u58eb\u767b",num:"423"},{name:"\u7acb\u9676\u5b9b",num:"370"},{name:"\u5362\u68ee\u5821",num:"352"},{name:"\u7559\u5c3c\u6c6a",num:"262"},{name:"\u7f57\u9a6c\u5c3c\u4e9a",num:"40"},{name:"\u5362\u65fa\u8fbe",num:"423"}]},{type:"M",list:[{name:"\u7f8e\u5c5e\u8428\u6469\u4e9a",num:"1684"},{name:"\u5b5f\u52a0\u62c9\u56fd",num:"880"},{name:"\u9a6c\u5176\u987f",num:"389"},{name:"\u9a6c\u8fbe\u52a0\u65af\u52a0",num:"261"},{name:"\u9a6c\u62c9\u7ef4",num:"265"},{name:"\u9a6c\u6765\u897f\u4e9a",num:"60"},{name:"\u9a6c\u5c14\u4ee3\u592b",num:"960"},{name:"\u9a6c\u91cc",num:"223"},{name:"\u9a6c\u8033\u4ed6",num:"356"},{name:"\u9a6c\u63d0\u5c3c\u514b",num:"596"},{name:"\u6bdb\u91cc\u5854\u5c3c\u4e9a",num:"222"},{name:"\u6bdb\u91cc\u6c42\u65af",num:"230"},{name:"\u58a8\u897f\u54e5",num:"52"},{name:"\u6469\u5c14\u591a\u74e6",num:"373"},{name:"\u6469\u7eb3\u54e5",num:"377"},{name:"\u8499\u53e4",num:"976"},{name:"\u8499\u7279\u585e\u62c9\u7279\u5c9b",num:"1664"},{name:"\u6469\u6d1b\u54e5",num:"212"},{name:"\u83ab\u6851\u6bd4\u514b",num:"258"},{name:"\u7f05\u7538",num:"95"},{name:"\u7f8e\u5c5e\u7ef4\u5c14\u4eac\u7fa4\u5c9b",num:"1284"}]},{type:"N",list:[{name:"\u7eb3\u7c73\u6bd4\u4e9a",num:"264"},{name:"\u5c3c\u6cca\u5c14",num:"977"},{name:"\u5c3c\u52a0\u62c9\u74dc",num:"505"},{name:"\u5c3c\u65e5\u5c14",num:"227"},{name:"\u5c3c\u65e5\u5229\u4e9a",num:"234"},{name:"\u632a\u5a01",num:"47"},{name:"\u5357\u975e",num:"27"}]},{type:"O",list:[{name:"\u6fb3\u5927\u5229\u4e9a",num:"61"},{name:"\u5965\u5730\u5229",num:"43"},{name:"\u6fb3\u5927\u5229\u4e9a",num:"61"},{name:"\u6fb3\u5927\u5229\u4e9a",num:"61"},{name:"\u6fb3\u5927\u5229\u4e9a",num:"61"},{name:"\u6fb3\u5927\u5229\u4e9a",num:"61"},{name:"\u6fb3\u5927\u5229\u4e9a",num:"61"}]},{type:"P",list:[{name:"\u5e15\u52b3",num:"680"},{name:"\u8461\u8404\u7259",num:"351"}]},{type:"R",list:[{name:"\u745e\u5178",num:"46"},{name:"\u745e\u58eb",num:"41"}]},{type:"S",list:[{name:"\u585e\u6d66\u8def\u65af",num:"357"},{name:"\u8428\u5c14\u74e6\u591a",num:"503"},{name:"\u5723\u57fa\u8328\u548c\u5c3c\u7ef4\u65af",num:"1869"},{name:"\u5723\u9732\u897f\u4e9a",num:"1758"},{name:"\u5723\u76ae\u57c3\u5c14\u5c9b\u53ca\u5bc6\u514b\u9686\u5c9b",num:"508"},{name:"\u5723\u6587\u68ee\u7279\u548c\u683c\u6797\u7eb3\u4e01\u65af",num:"1784"},{name:"\u8428\u6469\u4e9a",num:"685"},{name:"\u5723\u9a6c\u529b\u8bfa",num:"378"},{name:"\u5723\u591a\u7f8e\u548c\u666e\u6797\u897f\u6bd4",num:"239"},{name:"\u6c99\u7279\u963f\u62c9\u4f2f",num:"966"},{name:"\u585e\u5185\u52a0\u5c14",num:"221"},{name:"\u585e\u5c14\u7ef4\u4e9a",num:"381"},{name:"\u585e\u820c\u5c14",num:"248"},{name:"\u585e\u62c9\u5229\u6602",num:"239"},{name:"\u5723\u9a6c\u4e01\u5c9b\uff08\u8377\u5170\u90e8\u5206\uff09",num:"1721"},{name:"\u65af\u6d1b\u4f10\u514b",num:"421"},{name:"\u65af\u6d1b\u6587\u5c3c\u4e9a",num:"386"},{name:"\u6240\u7f57\u95e8\u7fa4\u5c9b",num:"677"},{name:"\u7d22\u9a6c\u91cc",num:"252"},{name:"\u65af\u91cc\u5170\u5361",num:"94"},{name:"\u82cf\u4e39",num:"249"},{name:"\u82cf\u91cc\u5357",num:"597"},{name:"\u65af\u5a01\u58eb\u5170",num:"268"}]},{type:"T",list:[,{name:"\u5854\u5409\u514b\u65af\u5766",num:"992"},{name:"\u5766\u6851\u5c3c\u4e9a",num:"255"},{name:"\u6cf0\u56fd",num:"66"},{name:"\u6c64\u52a0",num:"676"},{name:"\u7279\u7acb\u5c3c\u8fbe\u548c\u591a\u5df4\u54e5",num:"1868"},{name:"\u7a81\u5c3c\u65af",num:"216"},{name:"\u571f\u8033\u5176",num:"90"},{name:"\u571f\u5e93\u66fc\u65af\u5766",num:"993"},{name:"\u7279\u514b\u65af\u548c\u51ef\u79d1\u65af\u7fa4\u5c9b",num:"1649"}]},{type:"W",list:[{name:"\u6587\u83b1",num:"673"},{name:"\u4e4c\u5e72\u8fbe",num:"256"},{name:"\u4e4c\u514b\u5170",num:"380"},{name:"\u4e4c\u62c9\u572d",num:"598"},{name:"\u4e4c\u5179\u522b\u514b\u65af\u5766",num:"998"},{name:"\u74e6\u52aa\u963f\u56fe",num:"678"},{name:"\u59d4\u5185\u745e\u62c9",num:"58"}]},{type:"X",list:[{name:"\u65b0\u897f\u5170",num:"64"},{name:"\u5e0c\u814a",num:"30"},{name:"\u5308\u7259\u5229",num:"36"},{name:"\u65b0\u5580\u91cc\u591a\u5c3c\u4e9a",num:"687"},{name:"\u65b0\u52a0\u5761",num:"65"},{name:"\u897f\u73ed\u7259",num:"34"},{name:"\u53d9\u5229\u4e9a",num:"963"},{name:"\u4e9a\u7f8e\u5c3c\u4e9a",num:"374"}]},{type:"Y",list:[{name:"\u82f1\u56fd",num:"44"},{name:"\u5370\u5ea6",num:"91"},,{name:"\u5370\u5ea6\u5c3c\u897f\u4e9a",num:"62"},,{name:"\u4f0a\u6717",num:"98"},,{name:"\u4f0a\u62c9\u514b",num:"964"},,{name:"\u4ee5\u8272\u5217",num:"972"},,{name:"\u610f\u5927\u5229",num:"39"},,{name:"\u7259\u4e70\u52a0",num:"1876"},,{name:"\u7ea6\u65e6",num:"962"},{name:"\u8d8a\u5357",num:"84"},{name:"\u82f1\u5c5e\u5904\u5973\u7fa4\u5c9b",num:"1340"},{name:"\u4e5f\u95e8",num:"967"}]},{type:"Z",list:[{name:"\u4e2d\u56fd",num:"86"},{name:"\u4e2d\u56fd\u9999\u6e2f",num:"852"},{name:"\u4e2d\u56fd\u6fb3\u95e8",num:"853"},{name:"\u4e2d\u56fd\u53f0\u6e7e",num:"886"},{name:"\u4e2d\u975e\u5171\u548c\u56fd",num:"236"},{name:"\u4e4d\u5f97",num:"235"},{name:"\u667a\u5229",num:"56"},{name:"\u76f4\u5e03\u7f57\u9640",num:"350"},{name:"\u8d5e\u6bd4\u4e9a",num:"260"}]}].map(function(m,e){var a=m.type,u=m.list;return i.a.createElement("div",{key:e},i.a.createElement("h2",{className:"country-header","data-type":a},"0"===a?"\u5e38\u7528":a),i.a.createElement("ul",{className:"country-list"},u.map(function(m,a){return i.a.createElement("li",{className:"country-item",key:"".concat(e,"-").concat(a)},i.a.createElement("a",{className:"country-item__link",href:"#",onClick:function(e){return n.toParentPage(e,m.num)}},i.a.createElement("span",{className:"country-name"},m.name),i.a.createElement("span",{className:"country-num"},"+",m.num)))})))})))}}]),m}(l.Component));m.default=Object(s.b)(function(n){return{country:n.country}},function(n){return Object(o.b)({addCountryNum:v.a},n)})(b)}}]);
//# sourceMappingURL=33.e34fd409.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/country/index.js"],"names":["Country","props","_this","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","call","toParentPage","e","num","_this$props","history","addCountryNum","code","getParam","push","concat","preventDefault","scrollTo","param","el","document","querySelector","setState","currentNav","scrollIntoView","behavior","state","body","_this2","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","Fragment","_common__WEBPACK_IMPORTED_MODULE_11__","title","className","map","item","index","key","classnames","letter-nav__item--active","onClick","type","list","name","_ref","data-type","val","href","Component","connect","_ref2","country","dispatch","bindActionCreators"],"mappings":"4OAUMA,uBAEJ,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACjBE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,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,OAClFqB,EAAAC,EAAAC,cAAA,QAAMI,UAAU,gBAAgBa,EAAIH,MACpChB,EAAAC,EAAAC,cAAA,QAAMI,UAAU,eAAhB,IAAgCa,EAAIxC,sBA1jC1C0C,cA0kCPC,sBACb,SAAAC,GAAA,MAAe,CACbC,QADFD,EAAEC,UAGF,SAACC,GACC,OAAOC,YACL,CACE5C,mBAEF2C,IATSH,CAYbtD","file":"mrstatic/js/33.e34fd409.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { connect } from 'react-redux';\nimport { bindActionCreators } from 'redux';\nimport classnames from 'classnames';\nimport { getParam } from '@/utils';\nimport { addCountryNum } from './countryRedux';\nimport { HeaderBar } from '@/common'\n\nimport './index.scss';\n\nclass Country extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n currentNav: 'A'\n }\n }\n\n componentDidMount() {\n document.body.scrollIntoView();\n }\n\n toParentPage = (e, num) => {\n // console.log(this.props);\n const { history, addCountryNum } = this.props;\n addCountryNum({\n num,\n code: getParam('share_code')\n });\n history.push(`/detail?id=${getParam('id')}`);\n e.preventDefault();\n }\n\n scrollTo = (param) => {\n const el = document.querySelector(`[data-type=\"${param}\"]`)\n if(el) {\n this.setState({\n currentNav: param\n });\n el.scrollIntoView({\n behavior: 'smooth'\n });\n }\n }\n\n render() {\n const navs = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'];\n const data = [\n {\n type: '0',\n list: [\n {\n name: '中国大陆',\n num: '86'\n },\n {\n name: '中国澳门',\n num: '853'\n },\n {\n name: '中国香港',\n num: '852'\n },\n {\n name: '中国台湾',\n num: '886'\n }\n ]\n },\n {\n type: 'A',\n list: [\n {\n name: '阿富汗',\n num: '93'\n },\n {\n name: '阿尔巴尼亚',\n num: '355'\n },\n {\n name: '阿尔及利亚',\n num: '213'\n },\n {\n name: '安道尔',\n num: '376'\n },\n {\n name: '安哥拉',\n num: '244'\n },\n {\n name: '安圭拉',\n num: '1264'\n },\n {\n name: '安提瓜和巴布达',\n num: '1268'\n },\n {\n name: '阿根廷',\n num: '54'\n },\n {\n name: '阿鲁巴',\n num: '297'\n },\n {\n name: '阿塞拜疆',\n num: '994'\n },\n {\n name: '埃及',\n num: '20'\n },\n {\n name: '爱沙尼亚',\n num: '372'\n },\n {\n name: '埃塞俄比亚',\n num: '251'\n },\n {\n name: '爱尔兰',\n num: '353'\n },\n {\n name: '阿曼',\n num: '968'\n },\n {\n name: '阿拉伯联合酋长国',\n num: '971'\n },\n {\n name: '爱沙尼亚',\n num: '372'\n },\n {\n name: '爱沙尼亚',\n num: '372'\n },\n {\n name: '爱沙尼亚',\n num: '372'\n }\n ]\n },\n {\n type: 'B',\n list: [\n {\n name: '巴哈马',\n num: '1242'\n },\n {\n name: '巴林',\n num: '973'\n },\n {\n name: '巴巴多斯',\n num: '1246'\n },\n {\n name: '白俄罗斯',\n num: '375'\n },\n {\n name: '比利时',\n num: '32'\n },\n {\n name: '伯利兹',\n num: '501'\n },\n {\n name: '贝宁',\n num: '229'\n },\n {\n name: '百慕大群岛',\n num: '1441'\n },\n {\n name: '不丹',\n num: '975'\n },\n {\n name: '玻利维亚',\n num: '591'\n },\n {\n name: '波斯尼亚和黑塞哥维那',\n num: '387'\n },\n {\n name: '博茨瓦纳',\n num: '267'\n },\n {\n name: '巴西',\n num: '55'\n },\n {\n name: '保加利亚',\n num: '359'\n },\n {\n name: '布基纳法索',\n num: '226'\n },\n {\n name: '布隆迪',\n num: '257'\n },\n {\n name: '冰岛',\n num: '354'\n },\n {\n name: '巴基斯坦',\n num: '92'\n },\n {\n name: '巴勒斯坦',\n num: '970'\n },\n {\n name: '巴拿马',\n num: '507'\n },\n {\n name: '巴布亚新几内亚',\n num: '675'\n },\n {\n name: '巴拉圭',\n num: '51'\n },\n {\n name: '秘鲁',\n num: '354'\n },\n {\n name: '波兰',\n num: '48'\n },\n {\n name: '波多黎各',\n num: '1787'\n }\n ]\n },\n {\n type: 'C',\n list: [\n {\n name: '赤道几内亚',\n num: '240'\n }\n ]\n },\n {\n type: 'D',\n list: [\n {\n name: '丹麦',\n num: '45'\n },\n {\n name: '多米尼加',\n num: '1767'\n },\n {\n name: '多米尼加共和国',\n num: '1809'\n },\n {\n name: '德国',\n num: '49'\n },\n {\n name: '东帝汶',\n num: '670'\n },\n {\n name: '多哥',\n num: '228'\n }\n ]\n },\n {\n type: 'E',\n list: [\n {\n name: '厄瓜多尔',\n num: '593'\n },\n {\n name: '厄立特里亚',\n num: '291'\n },\n {\n name: '俄罗斯',\n num: '7'\n }\n ]\n },\n {\n type: 'F',\n list: [\n {\n name: '法罗群岛',\n num: '298'\n },\n {\n name: '斐济',\n num: '679'\n },\n {\n name: '芬兰',\n num: '358'\n },\n {\n name: '法国',\n num: '594'\n },\n {\n name: '法属圭亚那',\n num: '45'\n },\n {\n name: '法属波利尼西亚',\n num: '689'\n },\n {\n name: '菲律宾',\n num: '63'\n }\n ]\n },\n {\n type: 'G',\n list: [\n {\n name: '哥伦比亚',\n num: '57'\n },\n {\n name: '哥斯达黎加',\n num: '506'\n },\n {\n name: '古巴',\n num: '53'\n },\n {\n name: '刚果民主共和国',\n num: '243'\n },\n {\n name: '冈比亚',\n num: '220'\n },\n {\n name: '格鲁吉亚',\n num: '995'\n },\n {\n name: '格陵兰岛',\n num: '299'\n },\n {\n name: '格林纳达',\n num: '1473'\n },\n {\n name: '瓜德罗普岛',\n num: '590'\n },\n {\n name: '关岛',\n num: '299'\n },\n {\n name: '瓜地马拉',\n num: '502'\n },\n {\n name: '圭亚那',\n num: '592'\n },\n {\n name: '刚果共和国',\n num: '242'\n }\n ]\n },\n {\n type: 'H',\n list: [\n {\n name: '海地',\n num: '509'\n },\n {\n name: '洪都拉斯',\n num: '504'\n },\n {\n name: '黑山',\n num: '382'\n },\n {\n name: '荷兰',\n num: '31'\n },\n {\n name: '韩国',\n num: '82'\n }\n ]\n },\n {\n type: 'J',\n list: [\n {\n name: '加拿大',\n num: '1'\n },\n {\n name: '日本',\n num: '81'\n },\n {\n name: '柬埔寨',\n num: '855'\n },\n {\n name: '捷克',\n num: '420'\n },\n {\n name: '吉布提',\n num: '253'\n },\n {\n name: '加蓬',\n num: '241'\n },\n {\n name: '加纳',\n num: '233'\n },\n {\n name: '几内亚',\n num: '224'\n },\n {\n name: '几内亚比绍共和国',\n num: '245'\n },\n {\n name: '基里巴斯',\n num: '686'\n },\n {\n name: '吉尔吉斯斯坦',\n num: '996'\n },\n {\n name: '津巴布韦',\n num: '263'\n }\n ]\n },\n {\n type: 'K',\n list: [\n {\n name: '喀麦隆',\n num: '237'\n },\n {\n name: '开普',\n num: '238'\n },\n {\n name: '开曼群岛',\n num: '1345'\n },\n {\n name: '科摩罗',\n num: '269'\n },\n {\n name: '库克群岛',\n num: '682'\n },\n {\n name: '克罗地亚',\n num: '385'\n },\n {\n name: '库拉索',\n num: '599'\n },\n {\n name: '肯尼亚',\n num: '254'\n },\n {\n name: '科威特',\n num: '965'\n },\n {\n name: '卡塔尔',\n num: '974'\n },\n {\n name: '科特迪瓦',\n num: '225'\n }\n ]\n },\n {\n type: 'L',\n list: [\n {\n name: '老挝',\n num: '856'\n },\n {\n name: '拉脱维亚',\n num: '371'\n },\n {\n name: '黎巴嫩',\n num: '961'\n },\n {\n name: '莱索托',\n num: '266'\n },\n {\n name: '利比里亚',\n num: '231'\n },\n {\n name: '利比亚',\n num: '218'\n },\n {\n name: '列支敦士登',\n num: '423'\n },\n {\n name: '立陶宛',\n num: '370'\n },\n {\n name: '卢森堡',\n num: '352'\n },\n {\n name: '留尼汪',\n num: '262'\n },\n {\n name: '罗马尼亚',\n num: '40'\n },\n {\n name: '卢旺达',\n num: '423'\n }\n ]\n },\n {\n type: 'M',\n list: [\n {\n name: '美属萨摩亚',\n num: '1684'\n },\n {\n name: '孟加拉国',\n num: '880'\n },\n {\n name: '马其顿',\n num: '389'\n },\n {\n name: '马达加斯加',\n num: '261'\n },\n {\n name: '马拉维',\n num: '265'\n },\n {\n name: '马来西亚',\n num: '60'\n },\n {\n name: '马尔代夫',\n num: '960'\n },\n {\n name: '马里',\n num: '223'\n },\n {\n name: '马耳他',\n num: '356'\n },\n {\n name: '马提尼克',\n num: '596'\n },\n {\n name: '毛里塔尼亚',\n num: '222'\n },\n {\n name: '毛里求斯',\n num: '230'\n },\n {\n name: '墨西哥',\n num: '52'\n },\n {\n name: '摩尔多瓦',\n num: '373'\n },\n {\n name: '摩纳哥',\n num: '377'\n },\n {\n name: '蒙古',\n num: '976'\n },\n {\n name: '蒙特塞拉特岛',\n num: '1664'\n },\n {\n name: '摩洛哥',\n num: '212'\n },\n {\n name: '莫桑比克',\n num: '258'\n },\n {\n name: '缅甸',\n num: '95'\n },\n {\n name: '美属维尔京群岛',\n num: '1284'\n }\n ]\n },\n {\n type: 'N',\n list: [\n {\n name: '纳米比亚',\n num: '264'\n },\n {\n name: '尼泊尔',\n num: '977'\n },\n {\n name: '尼加拉瓜',\n num: '505'\n },\n {\n name: '尼日尔',\n num: '227'\n },\n {\n name: '尼日利亚',\n num: '234'\n },\n {\n name: '挪威',\n num: '47'\n },\n {\n name: '南非',\n num: '27'\n }\n ]\n },\n {\n type: 'O',\n list: [\n {\n name: '澳大利亚',\n num: '61'\n },\n {\n name: '奥地利',\n num: '43'\n },\n {\n name: '澳大利亚',\n num: '61'\n },\n {\n name: '澳大利亚',\n num: '61'\n },\n {\n name: '澳大利亚',\n num: '61'\n },\n {\n name: '澳大利亚',\n num: '61'\n },\n {\n name: '澳大利亚',\n num: '61'\n }\n ]\n },\n {\n type: 'P',\n list: [\n {\n name: '帕劳',\n num: '680'\n },\n {\n name: '葡萄牙',\n num: '351'\n }\n ]\n },\n {\n type: 'R',\n list: [\n {\n name: '瑞典',\n num: '46'\n },\n {\n name: '瑞士',\n num: '41'\n }\n ]\n },\n {\n type: 'S',\n list: [\n {\n name: '塞浦路斯',\n num: '357'\n },\n {\n name: '萨尔瓦多',\n num: '503'\n },\n {\n name: '圣基茨和尼维斯',\n num: '1869'\n },\n {\n name: '圣露西亚',\n num: '1758'\n },\n {\n name: '圣皮埃尔岛及密克隆岛',\n num: '508'\n },\n {\n name: '圣文森特和格林纳丁斯',\n num: '1784'\n },\n {\n name: '萨摩亚',\n num: '685'\n },\n {\n name: '圣马力诺',\n num: '378'\n },\n {\n name: '圣多美和普林西比',\n num: '239'\n },\n {\n name: '沙特阿拉伯',\n num: '966'\n },\n {\n name: '塞内加尔',\n num: '221'\n },\n {\n name: '塞尔维亚',\n num: '381'\n },\n {\n name: '塞舌尔',\n num: '248'\n },\n {\n name: '塞拉利昂',\n num: '239'\n },\n {\n name: '圣马丁岛(荷兰部分)',\n num: '1721'\n },\n {\n name: '斯洛伐克',\n num: '421'\n },\n {\n name: '斯洛文尼亚',\n num: '386'\n },\n {\n name: '所罗门群岛',\n num: '677'\n },\n {\n name: '索马里',\n num: '252'\n },\n {\n name: '斯里兰卡',\n num: '94'\n },\n {\n name: '苏丹',\n num: '249'\n },\n {\n name: '苏里南',\n num: '597'\n },\n {\n name: '斯威士兰',\n num: '268'\n }\n ]\n },\n {\n type: 'T',\n list: [\n ,\n {\n name: '塔吉克斯坦',\n num: '992'\n },\n {\n name: '坦桑尼亚',\n num: '255'\n },\n {\n name: '泰国',\n num: '66'\n },\n {\n name: '汤加',\n num: '676'\n },\n {\n name: '特立尼达和多巴哥',\n num: '1868'\n },\n {\n name: '突尼斯',\n num: '216'\n },\n {\n name: '土耳其',\n num: '90'\n },\n {\n name: '土库曼斯坦',\n num: '993'\n },\n {\n name: '特克斯和凯科斯群岛',\n num: '1649'\n }\n ]\n },\n {\n type: 'W',\n list: [\n {\n name: '文莱',\n num: '673'\n },\n {\n name: '乌干达',\n num: '256'\n },\n {\n name: '乌克兰',\n num: '380'\n },\n {\n name: '乌拉圭',\n num: '598'\n },\n {\n name: '乌兹别克斯坦',\n num: '998'\n },\n {\n name: '瓦努阿图',\n num: '678'\n },\n {\n name: '委内瑞拉',\n num: '58'\n }\n ]\n },\n {\n type: 'X',\n list: [\n {\n name: '新西兰',\n num: '64'\n },\n {\n name: '希腊',\n num: '30'\n },\n {\n name: '匈牙利',\n num: '36'\n },\n {\n name: '新喀里多尼亚',\n num: '687'\n },\n {\n name: '新加坡',\n num: '65'\n },\n {\n name: '西班牙',\n num: '34'\n },\n {\n name: '叙利亚',\n num: '963'\n },\n {\n name: '亚美尼亚',\n num: '374'\n }\n ]\n },\n {\n type: 'Y',\n list: [\n {\n name: '英国',\n num: '44'\n },\n {\n name: '印度',\n num: '91'\n },,\n {\n name: '印度尼西亚',\n num: '62'\n },,\n {\n name: '伊朗',\n num: '98'\n },,\n {\n name: '伊拉克',\n num: '964'\n },,\n {\n name: '以色列',\n num: '972'\n },,\n {\n name: '意大利',\n num: '39'\n },,\n {\n name: '牙买加',\n num: '1876'\n },,\n {\n name: '约旦',\n num: '962'\n },\n {\n name: '越南',\n num: '84'\n },\n {\n name: '英属处女群岛',\n num: '1340'\n },\n {\n name: '也门',\n num: '967'\n }\n ]\n },\n {\n type: 'Z',\n list: [\n {\n name: '中国',\n num: '86'\n },\n {\n name: '中国香港',\n num: '852'\n },\n {\n name: '中国澳门',\n num: '853'\n },\n {\n name: '中国台湾',\n num: '886'\n },\n {\n name: '中非共和国',\n num: '236'\n },\n {\n name: '乍得',\n num: '235'\n },\n {\n name: '智利',\n num: '56'\n },\n {\n name: '直布罗陀',\n num: '350'\n },\n {\n name: '赞比亚',\n num: '260'\n }\n ]\n }\n ];\n const { currentNav } = this.state;\n return (\n <>\n <HeaderBar title=\"选择国家和地区\" />\n <ul className=\"letter-nav\">\n {navs.map((item, index) => {\n return (\n <li \n key={`nav-${index}`}\n className={classnames(\"letter-nav__item\", {\"letter-nav__item--active\": currentNav === item})}\n onClick={() => this.scrollTo(item)}\n >{item}</li>\n )\n })}\n </ul>\n <div className=\"page-body\">\n {data.map(({type, list}, index) => {\n return (\n <div key={index}>\n <h2 className=\"country-header\" data-type={type}>{type === '0'? '常用' : type}</h2>\n <ul className=\"country-list\">\n {list.map((val, key) => {\n return (\n <li className=\"country-item\" key={`${index}-${key}`}>\n <a className=\"country-item__link\" href=\"#\" onClick={(e) => this.toParentPage(e, val.num)}>\n <span className=\"country-name\">{val.name}</span>\n <span className=\"country-num\">+{val.num}</span>\n </a>\n </li>\n )\n })}\n \n </ul>\n </div>\n )\n })}\n </div>\n </>\n )\n }\n}\n\nexport default connect(\n ({country}) =>({\n country\n }),\n (dispatch) => {\n return bindActionCreators(\n {\n addCountryNum\n },\n dispatch\n );\n }\n)(Country);"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/search/recommendation/index.js","components/search/search-result.js","components/search/searchHead.js"],"names":["Recommendation","connect","state","courses","toCourseDetail","id","_this$props","_this","props","dispatch","history","push","concat","_this2","this","http","get","API","then","res","data","errno","setState","info","toast_default","a","msg","_this3","react_default","createElement","className","length","map","item","Bottom","common","key","img","title","bottom","toDetail","Component","withRouter","ForwardRefSearchHead","React","forwardRef","ref","searchHead","Object","assign","forwardedRef","_ref","price1","price0","SearchResult","prevScrollY","createRef","swipeUp","swipeDown","courseList","value","decodeURIComponent","getParam","searchHistory","JSON","parse","localStorage","getItem","fixedHeader","searchHeadStyle","top","swipeDirection","getCourses","word","course","handleClick","handleSearch","handleChange","handleScroll","throttle","y","window","scrollY","headY","current","offsetTop","position","document","addEventListener","removeEventListener","style","Info","course_title","simpledescription","search_result_Bottom","status","VList","image_name","course_id","search_recommendation","PureComponent","SearchHead","isFocus","returnPage","go","search","storeKeyword","_this$props$searchHis","setItem","stringify","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__","changeFontColor","refs","focus","cls","classnames","submit-btn--active","react__WEBPACK_IMPORTED_MODULE_8___default","onClick","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","showCancelButton","cancelText","onChange","placeholder","onFocus","onBlur","onSubmit"],"mappings":"wSAUMA,SADLC,2NAGGC,MAAQ,CAC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AS,kBAAM/G,EAAKkG,iBAAgB,IACpCc,OAAQ,kBAAMhH,EAAKkG,iBAAgB,IACnCe,SAAUhH,KAAK2F,UAGvBY,EAAA5F,EAAAI,cAAA,OAAKC,UAAU,kBAAkBwF,QAASxG,KAAK2F,QAC3CY,EAAA5F,EAAAI,cAAA,OAAKC,UAAWoF,GAAhB,yBAvDKd,kBA8DV1D,gBAAW2D","file":"mrstatic/js/SearchResult.ba591c8d.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport {connect} from 'react-redux';\nimport './recommendation.scss'\nimport { Course } from \"@/common\";\nimport { http } from \"@/utils\";\nimport { Toast } from 'antd-mobile'\nimport {withRouter} from 'react-router-dom'\nimport {getCourses} from './../../detail/actions';\n\n@connect()\nclass Recommendation extends Component {\n\n state = {\n courses: []\n }\n\n componentDidMount() {\n http.get(`${API['search-api']}/search_hot_word`)\n .then(res => {\n if (res.data.errno === 0) {\n this.setState({\n courses: res.data.data.info.courses\n })\n } else {\n Toast.info(res.data.msg)\n }\n\n })\n\n }\n\n // handleClick = (id) => {\n // this.props.history.push(`/detail?id=${id}`)\n // }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const {courses} = this.state\n return (\n <div className=\"recommendation\">\n <div className=\"title\">推荐课程</div>\n <div className=\"courses\">\n {\n courses.length > 0 &&\n courses.map((item) => {\n const Bottom = (\n <div className='bottom'>\n <span className='price'>{item['price1']}</span>\n <span className='old-price'>{item['price0']}</span>\n </div>\n )\n return (\n <Course\n className={'text-overflow-2'}\n key={item['course_id']}\n id={item['course_id']}\n img={item['image_name']}\n title={item['course_title']}\n bottom={Bottom}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(Recommendation)\n","import React, { PureComponent } from 'react';\nimport SearchHeader from './searchHead'\nimport VList from '@/common/VList'\nimport { http, getParam } from '@/utils'\nimport './search-result.scss'\nimport Recommendation from './recommendation'\nimport throttle from 'lodash/throttle'\n\n\nconst ForwardRefSearchHead = React.forwardRef((props, ref) => {\n return <SearchHeader {...props} forwardedRef={ref}/>\n})\n\nconst Bottom = ({item}) => {\n return (\n <div className='bottom'>\n <span className='price'>¥{item.price1}</span>\n <span className='stale-price'>¥{item.price0}</span>\n </div>\n )\n}\n\nclass SearchResult extends PureComponent {\n prevScrollY = 0\n searchHead = React.createRef()\n swipeUp = 'up'\n swipeDown = 'down'\n\n state = {\n courseList: [],\n value: decodeURIComponent(getParam('word')) || '',\n searchHistory: JSON.parse(localStorage.getItem('searchHistory')) || [],\n fixedHeader: false,\n searchHeadStyle: {top: 0},\n swipeDirection: this.swipeUp\n }\n\n componentDidMount() {\n this.getCourses(getParam('word'))\n document.addEventListener('scroll', this.handleScroll)\n }\n\n componentWillUnmount() {\n document.removeEventListener('scroll', this.handleScroll)\n }\n\n\n getCourses = (word) => {\n http.get(`${API['search-api']}/search/${word}?type=course&page=1`)\n .then(res => {\n const data = res.data\n\n if (data.errno === 0) {\n this.setState({\n courseList: data.data.info['search_data'].course\n });\n }\n })\n }\n\n handleClick = id => {\n this.props.history.push(`/detail?id=${id}`)\n }\n\n handleSearch = () => {\n this.state.value && this.getCourses(this.state.value)\n }\n\n handleChange = value => {\n this.setState({value})\n }\n\n toCourseDetail = (id) => {\n const {history} = this.props;\n history.push(`/detail?id=${id}`)\n }\n\n handleScroll = throttle(() => {\n let y = window.scrollY, headY = this.searchHead.current.offsetTop\n if (y < this.prevScrollY) {\n\n if (this.state.swipeDirection === this.swipeDown) {\n\n y <= headY && this.state.searchHeadStyle.position !== 'fixed' && this.setState({\n searchHeadStyle: {\n top: `0`,\n position: 'fixed'\n }\n })\n\n } else {\n this.setState({\n swipeDirection: this.swipeDown\n }, () => {\n if (this.state.swipeDirection === this.swipeDown) {\n this.setState({\n searchHeadStyle: {\n top: `${y > headY ? y - 44 : y}px`\n }\n })\n }\n })\n }\n\n\n } else {\n this.state.swipeDirection !== this.swipeUp &&\n this.setState({\n swipeDirection: this.swipeUp,\n searchHeadStyle: {\n position: 'absolute',\n top: `${y}px`\n }\n })\n\n }\n this.prevScrollY = y\n }, 0)\n\n render() {\n const {courseList} = this.state\n\n return (\n <div\n className={'search-result'}>\n <ForwardRefSearchHead\n handleSearch={this.handleSearch}\n value={this.state.value}\n handleChange={this.handleChange}\n searchHistory={this.state.searchHistory}\n style={this.state.searchHeadStyle}\n ref={this.searchHead}\n />\n {\n\n courseList && courseList.length > 0 ?\n <ul>\n {\n courseList.map(item => {\n const Info = (\n <div className=\"info\">\n <p className='title'>{item.course_title}</p>\n <p className='des'>{item.simpledescription}</p>\n <Bottom\n item={item}\n />\n </div>\n )\n const status = (\n (item['bargain_num'] || item['groupon_num']) ?\n <div\n className='status'>\n {\n item['bargain_num'] === 0 ? `砍价减${item['groupon_num']}元` : `拼团减${item['bargain_num']}元`\n }\n </div>\n : null\n )\n return (\n <VList\n img={item.image_name}\n toDetail={this.toCourseDetail}\n key={item.course_id}\n info={Info}\n id={item['course_id']}\n status={status}\n />\n )\n })\n }\n </ul>\n : <div className=\"empty\">\n 抱歉!没有搜到相关内容\n </div>\n }\n <Recommendation/>\n\n </div>\n );\n }\n}\n\n\nexport default SearchResult;","import React, { PureComponent } from 'react'\nimport { SearchBar } from 'antd-mobile'\nimport { withRouter } from 'react-router-dom'\nimport classnames from 'classnames';\n\nimport './search_header.scss'\n\nclass SearchHead extends PureComponent {\n \n state = {\n isFocus: false\n }\n\n returnPage = () => {\n this.props.history.go(-1)\n }\n\n componentDidMount() {\n this.refs.search.focus();\n }\n\n search = () => {\n this.storeKeyword()\n this.props.handleSearch()\n }\n\n storeKeyword = () => {\n let {searchHistory = [], value} = this.props\n value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\n }\n\n changeFontColor = (isFocus) => {\n this.setState({\n isFocus\n });\n }\n\n render() {\n const { isFocus } = this.state;\n const cls = classnames('submit-btn', {'submit-btn--active': isFocus})\n return (\n <div className=\"search-head\" style={this.props.style} ref={this.props.forwardedRef}>\n\n <div className=\"left\" onClick={this.returnPage}>\n <i className=\"iconfont iconiconfront-68\"/>\n </div>\n\n <div className=\"center\">\n <SearchBar\n value={this.props.value}\n showCancelButton\n cancelText={\" \"}\n ref=\"search\"\n focus={true}\n onChange={this.props.handleChange}\n placeholder=\"搜索课程\"\n onFocus={() => this.changeFontColor(true)}\n onBlur={() => this.changeFontColor(false)}\n onSubmit={this.search}\n />\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className={cls}>搜索</div>\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""} {"version":3,"sources":["components/search/recommendation/index.js","components/search/search-result.js","components/search/searchHead.js"],"names":["Recommendation","connect","state","courses","toCourseDetail","id","_this$props","_this","props","dispatch","history","push","concat","_this2","this","http","get","API","then","res","data","errno","setState","info","toast_default","a","msg","_this3","react_default","createElement","className","length","map","item","Bottom","common","key","img","title","bottom","toDetail","Component","withRouter","ForwardRefSearchHead","React","forwardRef","ref","searchHead","Object","assign","forwardedRef","_ref","price1","price0","SearchResult","prevScrollY","createRef","swipeUp","swipeDown","courseList","value","decodeURIComponent","getParam","searchHistory","JSON","parse","localStorage","getItem","fixedHeader","searchHeadStyle","top","swipeDirection","getCourses","word","course","handleClick","handleSearch","handleChange","handleScroll","throttle","y","window","scrollY","headY","current","offsetTop","position","document","addEventListener","removeEventListener","style","Info","course_title","simpledescription","search_result_Bottom","status","VList","image_name","course_id","search_recommendation","PureComponent","SearchHead","isFocus","returnPage","go","search","storeKeyword","_this$props$searchHis","setItem","stringify","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__","changeFontColor","refs","focus","cls","classnames","submit-btn--active","react__WEBPACK_IMPORTED_MODULE_8___default","onClick","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1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,WAAY,IACZ3E,IAAI,SACJmE,OAAO,EACPS,SAAU5G,KAAKN,MAAMqE,aACrB8C,YAAY,2BACZC,QAAS,kBAAM/G,EAAKkG,iBAAgB,IACpCc,OAAQ,kBAAMhH,EAAKkG,iBAAgB,IACnCe,SAAUhH,KAAK2F,UAGvBY,EAAA5F,EAAAI,cAAA,OAAKC,UAAU,kBAAkBwF,QAASxG,KAAK2F,QAC3CY,EAAA5F,EAAAI,cAAA,OAAKC,UAAWoF,GAAhB,yBAvDKd,kBA8DV1D,gBAAW2D","file":"mrstatic/js/SearchResult.ba591c8d.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport {connect} from 'react-redux';\nimport './recommendation.scss'\nimport { Course } from \"@/common\";\nimport { http } from \"@/utils\";\nimport { Toast } from 'antd-mobile'\nimport {withRouter} from 'react-router-dom'\nimport {getCourses} from './../../detail/actions';\n\n@connect()\nclass Recommendation extends Component {\n\n state = {\n courses: []\n }\n\n componentDidMount() {\n http.get(`${API['search-api']}/search_hot_word`)\n .then(res => {\n if (res.data.errno === 0) {\n this.setState({\n courses: res.data.data.info.courses\n })\n } else {\n Toast.info(res.data.msg)\n }\n\n })\n\n }\n\n // handleClick = (id) => {\n // this.props.history.push(`/detail?id=${id}`)\n // }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const {courses} = this.state\n return (\n <div className=\"recommendation\">\n <div className=\"title\">推荐课程</div>\n <div className=\"courses\">\n {\n courses.length > 0 &&\n courses.map((item) => {\n const Bottom = (\n <div className='bottom'>\n <span className='price'>{item['price1']}</span>\n <span className='old-price'>{item['price0']}</span>\n </div>\n )\n return (\n <Course\n className={'text-overflow-2'}\n key={item['course_id']}\n id={item['course_id']}\n img={item['image_name']}\n title={item['course_title']}\n bottom={Bottom}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(Recommendation)\n","import React, { PureComponent } from 'react';\nimport SearchHeader from './searchHead'\nimport VList from '@/common/VList'\nimport { http, getParam } from '@/utils'\nimport './search-result.scss'\nimport Recommendation from './recommendation'\nimport throttle from 'lodash/throttle'\n\n\nconst ForwardRefSearchHead = React.forwardRef((props, ref) => {\n return <SearchHeader {...props} forwardedRef={ref}/>\n})\n\nconst Bottom = ({item}) => {\n return (\n <div className='bottom'>\n <span className='price'>¥{item.price1}</span>\n <span className='stale-price'>¥{item.price0}</span>\n </div>\n )\n}\n\nclass SearchResult extends PureComponent {\n prevScrollY = 0\n searchHead = React.createRef()\n swipeUp = 'up'\n swipeDown = 'down'\n\n state = {\n courseList: [],\n value: decodeURIComponent(getParam('word')) || '',\n searchHistory: JSON.parse(localStorage.getItem('searchHistory')) || [],\n fixedHeader: false,\n searchHeadStyle: {top: 0},\n swipeDirection: this.swipeUp\n }\n\n componentDidMount() {\n this.getCourses(getParam('word'))\n document.addEventListener('scroll', this.handleScroll)\n }\n\n componentWillUnmount() {\n document.removeEventListener('scroll', this.handleScroll)\n }\n\n\n getCourses = (word) => {\n http.get(`${API['search-api']}/search/${word}?type=course&page=1`)\n .then(res => {\n const data = res.data\n\n if (data.errno === 0) {\n this.setState({\n courseList: data.data.info['search_data'].course\n });\n }\n })\n }\n\n handleClick = id => {\n this.props.history.push(`/detail?id=${id}`)\n }\n\n handleSearch = () => {\n this.state.value && this.getCourses(this.state.value)\n }\n\n handleChange = value => {\n this.setState({value})\n }\n\n toCourseDetail = (id) => {\n const {history} = this.props;\n history.push(`/detail?id=${id}`)\n }\n\n handleScroll = throttle(() => {\n let y = window.scrollY, headY = this.searchHead.current.offsetTop\n if (y < this.prevScrollY) {\n\n if (this.state.swipeDirection === this.swipeDown) {\n\n y <= headY && this.state.searchHeadStyle.position !== 'fixed' && this.setState({\n searchHeadStyle: {\n top: `0`,\n position: 'fixed'\n }\n })\n\n } else {\n this.setState({\n swipeDirection: this.swipeDown\n }, () => {\n if (this.state.swipeDirection === this.swipeDown) {\n this.setState({\n searchHeadStyle: {\n top: `${y > headY ? y - 44 : y}px`\n }\n })\n }\n })\n }\n\n\n } else {\n this.state.swipeDirection !== this.swipeUp &&\n this.setState({\n swipeDirection: this.swipeUp,\n searchHeadStyle: {\n position: 'absolute',\n top: `${y}px`\n }\n })\n\n }\n this.prevScrollY = y\n }, 0)\n\n render() {\n const {courseList} = this.state\n\n return (\n <div\n className={'search-result'}>\n <ForwardRefSearchHead\n handleSearch={this.handleSearch}\n value={this.state.value}\n handleChange={this.handleChange}\n searchHistory={this.state.searchHistory}\n style={this.state.searchHeadStyle}\n ref={this.searchHead}\n />\n {\n\n courseList && courseList.length > 0 ?\n <ul>\n {\n courseList.map(item => {\n const Info = (\n <div className=\"info\">\n <p className='title'>{item.course_title}</p>\n <p className='des'>{item.simpledescription}</p>\n <Bottom\n item={item}\n />\n </div>\n )\n const status = (\n (item['bargain_num'] || item['groupon_num']) ?\n <div\n className='status'>\n {\n item['bargain_num'] === 0 ? `砍价减${item['groupon_num']}元` : `拼团减${item['bargain_num']}元`\n }\n </div>\n : null\n )\n return (\n <VList\n img={item.image_name}\n toDetail={this.toCourseDetail}\n key={item.course_id}\n info={Info}\n id={item['course_id']}\n status={status}\n />\n )\n })\n }\n </ul>\n : <div className=\"empty\">\n 抱歉!没有搜到相关内容\n </div>\n }\n <Recommendation/>\n\n </div>\n );\n }\n}\n\n\nexport default SearchResult;","import React, { PureComponent } from 'react'\nimport { SearchBar } from 'antd-mobile'\nimport { withRouter } from 'react-router-dom'\nimport classnames from 'classnames';\n\nimport './search_header.scss'\n\nclass SearchHead extends PureComponent {\n \n state = {\n isFocus: false\n }\n\n returnPage = () => {\n this.props.history.go(-1)\n }\n\n componentDidMount() {\n this.refs.search.focus();\n }\n\n search = () => {\n this.storeKeyword()\n this.props.handleSearch()\n }\n\n storeKeyword = () => {\n let {searchHistory = [], value} = this.props\n value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\n }\n\n changeFontColor = (isFocus) => {\n this.setState({\n isFocus\n });\n }\n\n render() {\n const { isFocus } = this.state;\n const cls = classnames('submit-btn', {'submit-btn--active': isFocus})\n return (\n <div className=\"search-head\" style={this.props.style} ref={this.props.forwardedRef}>\n\n <div className=\"left\" onClick={this.returnPage}>\n <i className=\"iconfont iconiconfront-68\"/>\n </div>\n\n <div className=\"center\">\n <SearchBar\n value={this.props.value}\n showCancelButton\n cancelText={\" \"}\n ref=\"search\"\n focus={true}\n onChange={this.props.handleChange}\n placeholder=\"搜索课程\"\n onFocus={() => this.changeFontColor(true)}\n onBlur={() => this.changeFontColor(false)}\n onSubmit={ this.search }\n />\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className={cls}>搜索</div>\n </div>\n </div>\n\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""}
\ 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.
!function(e){function r(r){for(var n,a,i=r[0],f=r[1],u=r[2],d=0,l=[];d<i.length;d++)a=i[d],o[a]&&l.push(o[a][0]),o[a]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(s&&s(r);l.length;)l.shift()();return c.push.apply(c,u||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,a=1;a<t.length;a++){var f=t[a];0!==o[f]&&(n=!1)}n&&(c.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},a={19:0},o={19:0},c=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{1:1,2:1,3:1,4:1,5:1,7:1,9:1,10:1,11:1,12:1,13:1,14:1,15:1,17:1,18:1,20:1,21:1,22:1,23:1,24:1,27:1,28:1,29:1,30:1,31:1,32:1,33:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="mrstatic/css/"+({1:"BargainMiddlePage",2:"Classify",3:"CourseList",4:"DrawDocument",5:"Examination",6:"MyEdit",7:"Order",8:"Orderinfo",9:"PayOrder",10:"Preferential",11:"SearchResult",12:"ShopCart",13:"aist-share",14:"coupons",15:"detail",17:"myorders",18:"purchased",20:"search",21:"shareposter",22:"study",23:"togroup",24:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"5acd226b",2:"127d35ae",3:"6d999ce9",4:"1bd3da48",5:"17af9370",6:"31d6cfe0",7:"e46f87f2",8:"31d6cfe0",9:"68a25070",10:"312f2a43",11:"b11acd73",12:"887eb690",13:"f4398072",14:"4b4cf239",15:"5679c0b0",17:"e3d68b58",18:"c9466779",20:"e26f3ee9",21:"cde549fc",22:"c5bde985",23:"ffd8be6c",24:"b8d615d9",26:"31d6cfe0",27:"0710e3e3",28:"51412fcd",29:"e292ab6b",30:"1133c967",31:"37fb0c23",32:"6e885738",33:"98f19554"}[e]+".chunk.css",o=i.p+n,c=document.getElementsByTagName("link"),f=0;f<c.length;f++){var u=(s=c[f]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(u===n||u===o))return r()}var d=document.getElementsByTagName("style");for(f=0;f<d.length;f++){var s;if((u=(s=d[f]).getAttribute("data-href"))===n||u===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.request=n,delete a[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var c,f=document.createElement("script");f.charset="utf-8",f.timeout=120,i.nc&&f.setAttribute("nonce",i.nc),f.src=function(e){return i.p+"mrstatic/js/"+({1:"BargainMiddlePage",2:"Classify",3:"CourseList",4:"DrawDocument",5:"Examination",6:"MyEdit",7:"Order",8:"Orderinfo",9:"PayOrder",10:"Preferential",11:"SearchResult",12:"ShopCart",13:"aist-share",14:"coupons",15:"detail",17:"myorders",18:"purchased",20:"search",21:"shareposter",22:"study",23:"togroup",24:"video"}[e]||e)+"."+{0:"facc2da4",1:"33b11611",2:"5f93fcc9",3:"2964a527",4:"f81b55a2",5:"f86f4726",6:"16a5108b",7:"c5b17301",8:"eba99a01",9:"18a6a0c0",10:"11c78a5a",11:"ba591c8d",12:"48e22740",13:"ee16d57a",14:"02564e99",15:"5da78eed",17:"81fbeec6",18:"1304b672",20:"02482d06",21:"39539f0e",22:"cf17615d",23:"cabf4408",24:"1a9827fa",26:"c33e01fb",27:"09c9435b",28:"93987f81",29:"058062b6",30:"67bf7f69",31:"ca32cd25",32:"03160933",33:"e34fd409"}[e]+".chunk.js"}(e),c=function(r){f.onerror=f.onload=null,clearTimeout(u);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var u=setTimeout(function(){c({type:"timeout",target:f})},12e4);f.onerror=f.onload=c,document.head.appendChild(f)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var f=window.webpackJsonp=window.webpackJsonp||[],u=f.push.bind(f);f.push=r,f=f.slice();for(var d=0;d<f.length;d++)r(f[d]);var s=u;t()}([]); !function(e){function r(r){for(var n,a,i=r[0],f=r[1],u=r[2],d=0,l=[];d<i.length;d++)a=i[d],o[a]&&l.push(o[a][0]),o[a]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(s&&s(r);l.length;)l.shift()();return c.push.apply(c,u||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,a=1;a<t.length;a++){var f=t[a];0!==o[f]&&(n=!1)}n&&(c.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},a={19:0},o={19:0},c=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{1:1,2:1,3:1,4:1,5:1,7:1,9:1,10:1,11:1,12:1,13:1,14:1,15:1,17:1,18:1,20:1,21:1,22:1,23:1,24:1,27:1,28:1,29:1,30:1,31:1,32:1,33:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="mrstatic/css/"+({1:"BargainMiddlePage",2:"Classify",3:"CourseList",4:"DrawDocument",5:"Examination",6:"MyEdit",7:"Order",8:"Orderinfo",9:"PayOrder",10:"Preferential",11:"SearchResult",12:"ShopCart",13:"aist-share",14:"coupons",15:"detail",17:"myorders",18:"purchased",20:"search",21:"shareposter",22:"study",23:"togroup",24:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"5acd226b",2:"127d35ae",3:"6d999ce9",4:"1bd3da48",5:"17af9370",6:"31d6cfe0",7:"e46f87f2",8:"31d6cfe0",9:"68a25070",10:"312f2a43",11:"b11acd73",12:"887eb690",13:"f4398072",14:"4b4cf239",15:"63ef174e",17:"e3d68b58",18:"c9466779",20:"e26f3ee9",21:"cde549fc",22:"c5bde985",23:"ffd8be6c",24:"b8d615d9",26:"31d6cfe0",27:"0710e3e3",28:"51412fcd",29:"e292ab6b",30:"1133c967",31:"37fb0c23",32:"6e885738",33:"98f19554"}[e]+".chunk.css",o=i.p+n,c=document.getElementsByTagName("link"),f=0;f<c.length;f++){var u=(s=c[f]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(u===n||u===o))return r()}var d=document.getElementsByTagName("style");for(f=0;f<d.length;f++){var s;if((u=(s=d[f]).getAttribute("data-href"))===n||u===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.request=n,delete a[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var c,f=document.createElement("script");f.charset="utf-8",f.timeout=120,i.nc&&f.setAttribute("nonce",i.nc),f.src=function(e){return i.p+"mrstatic/js/"+({1:"BargainMiddlePage",2:"Classify",3:"CourseList",4:"DrawDocument",5:"Examination",6:"MyEdit",7:"Order",8:"Orderinfo",9:"PayOrder",10:"Preferential",11:"SearchResult",12:"ShopCart",13:"aist-share",14:"coupons",15:"detail",17:"myorders",18:"purchased",20:"search",21:"shareposter",22:"study",23:"togroup",24:"video"}[e]||e)+"."+{0:"facc2da4",1:"33b11611",2:"5f93fcc9",3:"2964a527",4:"f81b55a2",5:"f86f4726",6:"16a5108b",7:"c5b17301",8:"eba99a01",9:"18a6a0c0",10:"11c78a5a",11:"ba591c8d",12:"48e22740",13:"ee16d57a",14:"02564e99",15:"7677c1f6",17:"81fbeec6",18:"1304b672",20:"02482d06",21:"39539f0e",22:"cf17615d",23:"cabf4408",24:"877ca946",26:"c33e01fb",27:"09c9435b",28:"93987f81",29:"058062b6",30:"67bf7f69",31:"ca32cd25",32:"03160933",33:"3b3ad542"}[e]+".chunk.js"}(e),c=function(r){f.onerror=f.onload=null,clearTimeout(u);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var u=setTimeout(function(){c({type:"timeout",target:f})},12e4);f.onerror=f.onload=c,document.head.appendChild(f)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var f=window.webpackJsonp=window.webpackJsonp||[],u=f.push.bind(f);f.push=r,f=f.slice();for(var d=0;d<f.length;d++)r(f[d]);var s=u;t()}([]);
//# sourceMappingURL=runtime~main.bd79a38e.js.map //# sourceMappingURL=runtime~main.b7fdedfe.js.map
\ No newline at end of file \ No newline at end of file
{"version":3,"sources":["../webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","19","exports","module","l","e","promises","1","2","3","4","5","7","9","10","11","12","13","14","15","17","18","20","21","22","23","24","27","28","29","30","31","32","33","Promise","resolve","reject","href","6","8","0","26","fullhref","p","existingLinkTags","document","getElementsByTagName","dataHref","tag","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","parentNode","removeChild","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","jsonpScriptSrc","clearTimeout","chunk","errorType","realSrc","error","undefined","setTimeout","head","all","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,EAAA,GACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAKA,IAFAe,KAAAhB,GAEAO,EAAAC,QACAD,EAAAU,OAAAV,GAOA,OAHAW,EAAAR,KAAAS,MAAAD,EAAAb,GAAA,IAGAe,IAEA,SAAAA,IAEA,IADA,IAAAC,EACAf,EAAA,EAAiBA,EAAAY,EAAAV,OAA4BF,IAAA,CAG7C,IAFA,IAAAgB,EAAAJ,EAAAZ,GACAiB,GAAA,EACAC,EAAA,EAAkBA,EAAAF,EAAAd,OAA2BgB,IAAA,CAC7C,IAAAC,EAAAH,EAAAE,GACA,IAAAf,EAAAgB,KAAAF,GAAA,GAEAA,IACAL,EAAAQ,OAAApB,IAAA,GACAe,EAAAM,IAAAC,EAAAN,EAAA,KAGA,OAAAD,E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M,KAAAN,EAAApG,EAAA0F,EAAAc,EAAAE,EAAA,SAAAA,GAAgH,OAAAN,EAAAM,IAAqBC,KAAA,KAAAD,IACrI,OAAAF,GAIAxG,EAAA4G,EAAA,SAAAtG,GACA,IAAAsF,EAAAtF,KAAAiG,WACA,WAA2B,OAAAjG,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAN,EAAA0F,EAAAE,EAAA,IAAAA,GACAA,GAIA5F,EAAA6F,EAAA,SAAAgB,EAAAC,GAAsD,OAAA9H,OAAAC,UAAAC,eAAAC,KAAA0H,EAAAC,IAGtD9G,EAAA8C,EAAA,IAGA9C,EAAA+G,GAAA,SAAA/C,GAA8D,MAApBgD,QAAA7B,MAAAnB,GAAoBA,GAE9D,IAAAiD,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAAlI,KAAA4H,KAAAM,GACAA,EAAAlI,KAAAX,EACA6I,IAAAG,QACA,QAAAzI,EAAA,EAAgBA,EAAAsI,EAAApI,OAAuBF,IAAAP,EAAA6I,EAAAtI,IACvC,IAAAU,EAAA8H,EAIA1H","file":"mrstatic/js/runtime~main.bd79a38e.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t19: 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t19: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"mrstatic/js/\" + ({\"1\":\"BargainMiddlePage\",\"2\":\"Classify\",\"3\":\"CourseList\",\"4\":\"DrawDocument\",\"5\":\"Examination\",\"6\":\"MyEdit\",\"7\":\"Order\",\"8\":\"Orderinfo\",\"9\":\"PayOrder\",\"10\":\"Preferential\",\"11\":\"SearchResult\",\"12\":\"ShopCart\",\"13\":\"aist-share\",\"14\":\"coupons\",\"15\":\"detail\",\"17\":\"myorders\",\"18\":\"purchased\",\"20\":\"search\",\"21\":\"shareposter\",\"22\":\"study\",\"23\":\"togroup\",\"24\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"facc2da4\",\"1\":\"33b11611\",\"2\":\"5f93fcc9\",\"3\":\"2964a527\",\"4\":\"f81b55a2\",\"5\":\"f86f4726\",\"6\":\"16a5108b\",\"7\":\"c5b17301\",\"8\":\"eba99a01\",\"9\":\"18a6a0c0\",\"10\":\"11c78a5a\",\"11\":\"ba591c8d\",\"12\":\"48e22740\",\"13\":\"ee16d57a\",\"14\":\"02564e99\",\"15\":\"5da78eed\",\"17\":\"81fbeec6\",\"18\":\"1304b672\",\"20\":\"02482d06\",\"21\":\"39539f0e\",\"22\":\"cf17615d\",\"23\":\"cabf4408\",\"24\":\"1a9827fa\",\"26\":\"c33e01fb\",\"27\":\"09c9435b\",\"28\":\"93987f81\",\"29\":\"058062b6\",\"30\":\"67bf7f69\",\"31\":\"ca32cd25\",\"32\":\"03160933\",\"33\":\"e34fd409\"}[chunkId] + \".chunk.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"1\":1,\"2\":1,\"3\":1,\"4\":1,\"5\":1,\"7\":1,\"9\":1,\"10\":1,\"11\":1,\"12\":1,\"13\":1,\"14\":1,\"15\":1,\"17\":1,\"18\":1,\"20\":1,\"21\":1,\"22\":1,\"23\":1,\"24\":1,\"27\":1,\"28\":1,\"29\":1,\"30\":1,\"31\":1,\"32\":1,\"33\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"mrstatic/css/\" + ({\"1\":\"BargainMiddlePage\",\"2\":\"Classify\",\"3\":\"CourseList\",\"4\":\"DrawDocument\",\"5\":\"Examination\",\"6\":\"MyEdit\",\"7\":\"Order\",\"8\":\"Orderinfo\",\"9\":\"PayOrder\",\"10\":\"Preferential\",\"11\":\"SearchResult\",\"12\":\"ShopCart\",\"13\":\"aist-share\",\"14\":\"coupons\",\"15\":\"detail\",\"17\":\"myorders\",\"18\":\"purchased\",\"20\":\"search\",\"21\":\"shareposter\",\"22\":\"study\",\"23\":\"togroup\",\"24\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"31d6cfe0\",\"1\":\"5acd226b\",\"2\":\"127d35ae\",\"3\":\"6d999ce9\",\"4\":\"1bd3da48\",\"5\":\"17af9370\",\"6\":\"31d6cfe0\",\"7\":\"e46f87f2\",\"8\":\"31d6cfe0\",\"9\":\"68a25070\",\"10\":\"312f2a43\",\"11\":\"b11acd73\",\"12\":\"887eb690\",\"13\":\"f4398072\",\"14\":\"4b4cf239\",\"15\":\"5679c0b0\",\"17\":\"e3d68b58\",\"18\":\"c9466779\",\"20\":\"e26f3ee9\",\"21\":\"cde549fc\",\"22\":\"c5bde985\",\"23\":\"ffd8be6c\",\"24\":\"b8d615d9\",\"26\":\"31d6cfe0\",\"27\":\"0710e3e3\",\"28\":\"51412fcd\",\"29\":\"e292ab6b\",\"30\":\"1133c967\",\"31\":\"37fb0c23\",\"32\":\"6e885738\",\"33\":\"98f19554\"}[chunkId] + \".chunk.css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\tvar error = new Error('Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')');\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""} {"version":3,"sources":["../webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","19","exports","module","l","e","promises","1","2","3","4","5","7","9","10","11","12","13","14","15","17","18","20","21","22","23","24","27","28","29","30","31","32","33","Promise","resolve","reject","href","6","8","0","26","fullhref","p","existingLinkTags","document","getElementsByTagName","dataHref","tag","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","parentNode","removeChild","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","jsonpScriptSrc","clearTimeout","chunk","errorType","realSrc","error","undefined","setTimeout","head","all","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,EAAA,GACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAKA,IAFAe,KAAAhB,GAEAO,EAAAC,QACAD,EAAAU,OAAAV,G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F,OAAAC,YAAA,CAAwDC,MAAA,WAExDpH,OAAA8G,eAAAzF,EAAA,cAAiD+F,OAAA,KAQjDpG,EAAAqG,EAAA,SAAAD,EAAAE,GAEA,GADA,EAAAA,IAAAF,EAAApG,EAAAoG,IACA,EAAAE,EAAA,OAAAF,EACA,KAAAE,GAAA,kBAAAF,QAAAG,WAAA,OAAAH,EACA,IAAAI,EAAAxH,OAAAyH,OAAA,MAGA,GAFAzG,EAAAiG,EAAAO,GACAxH,OAAA8G,eAAAU,EAAA,WAAyCT,YAAA,EAAAK,UACzC,EAAAE,GAAA,iBAAAF,EAAA,QAAAM,KAAAN,EAAApG,EAAA0F,EAAAc,EAAAE,EAAA,SAAAA,GAAgH,OAAAN,EAAAM,IAAqBC,KAAA,KAAAD,IACrI,OAAAF,GAIAxG,EAAA4G,EAAA,SAAAtG,GACA,IAAAsF,EAAAtF,KAAAiG,WACA,WAA2B,OAAAjG,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAN,EAAA0F,EAAAE,EAAA,IAAAA,GACAA,GAIA5F,EAAA6F,EAAA,SAAAgB,EAAAC,GAAsD,OAAA9H,OAAAC,UAAAC,eAAAC,KAAA0H,EAAAC,IAGtD9G,EAAA8C,EAAA,IAGA9C,EAAA+G,GAAA,SAAA/C,GAA8D,MAApBgD,QAAA7B,MAAAnB,GAAoBA,GAE9D,IAAAiD,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAAlI,KAAA4H,KAAAM,GACAA,EAAAlI,KAAAX,EACA6I,IAAAG,QACA,QAAAzI,EAAA,EAAgBA,EAAAsI,EAAApI,OAAuBF,IAAAP,EAAA6I,EAAAtI,IACvC,IAAAU,EAAA8H,EAIA1H","file":"mrstatic/js/runtime~main.b7fdedfe.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t19: 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t19: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"mrstatic/js/\" + ({\"1\":\"BargainMiddlePage\",\"2\":\"Classify\",\"3\":\"CourseList\",\"4\":\"DrawDocument\",\"5\":\"Examination\",\"6\":\"MyEdit\",\"7\":\"Order\",\"8\":\"Orderinfo\",\"9\":\"PayOrder\",\"10\":\"Preferential\",\"11\":\"SearchResult\",\"12\":\"ShopCart\",\"13\":\"aist-share\",\"14\":\"coupons\",\"15\":\"detail\",\"17\":\"myorders\",\"18\":\"purchased\",\"20\":\"search\",\"21\":\"shareposter\",\"22\":\"study\",\"23\":\"togroup\",\"24\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"facc2da4\",\"1\":\"33b11611\",\"2\":\"5f93fcc9\",\"3\":\"2964a527\",\"4\":\"f81b55a2\",\"5\":\"f86f4726\",\"6\":\"16a5108b\",\"7\":\"c5b17301\",\"8\":\"eba99a01\",\"9\":\"18a6a0c0\",\"10\":\"11c78a5a\",\"11\":\"ba591c8d\",\"12\":\"48e22740\",\"13\":\"ee16d57a\",\"14\":\"02564e99\",\"15\":\"7677c1f6\",\"17\":\"81fbeec6\",\"18\":\"1304b672\",\"20\":\"02482d06\",\"21\":\"39539f0e\",\"22\":\"cf17615d\",\"23\":\"cabf4408\",\"24\":\"877ca946\",\"26\":\"c33e01fb\",\"27\":\"09c9435b\",\"28\":\"93987f81\",\"29\":\"058062b6\",\"30\":\"67bf7f69\",\"31\":\"ca32cd25\",\"32\":\"03160933\",\"33\":\"3b3ad542\"}[chunkId] + \".chunk.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"1\":1,\"2\":1,\"3\":1,\"4\":1,\"5\":1,\"7\":1,\"9\":1,\"10\":1,\"11\":1,\"12\":1,\"13\":1,\"14\":1,\"15\":1,\"17\":1,\"18\":1,\"20\":1,\"21\":1,\"22\":1,\"23\":1,\"24\":1,\"27\":1,\"28\":1,\"29\":1,\"30\":1,\"31\":1,\"32\":1,\"33\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"mrstatic/css/\" + ({\"1\":\"BargainMiddlePage\",\"2\":\"Classify\",\"3\":\"CourseList\",\"4\":\"DrawDocument\",\"5\":\"Examination\",\"6\":\"MyEdit\",\"7\":\"Order\",\"8\":\"Orderinfo\",\"9\":\"PayOrder\",\"10\":\"Preferential\",\"11\":\"SearchResult\",\"12\":\"ShopCart\",\"13\":\"aist-share\",\"14\":\"coupons\",\"15\":\"detail\",\"17\":\"myorders\",\"18\":\"purchased\",\"20\":\"search\",\"21\":\"shareposter\",\"22\":\"study\",\"23\":\"togroup\",\"24\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"31d6cfe0\",\"1\":\"5acd226b\",\"2\":\"127d35ae\",\"3\":\"6d999ce9\",\"4\":\"1bd3da48\",\"5\":\"17af9370\",\"6\":\"31d6cfe0\",\"7\":\"e46f87f2\",\"8\":\"31d6cfe0\",\"9\":\"68a25070\",\"10\":\"312f2a43\",\"11\":\"b11acd73\",\"12\":\"887eb690\",\"13\":\"f4398072\",\"14\":\"4b4cf239\",\"15\":\"63ef174e\",\"17\":\"e3d68b58\",\"18\":\"c9466779\",\"20\":\"e26f3ee9\",\"21\":\"cde549fc\",\"22\":\"c5bde985\",\"23\":\"ffd8be6c\",\"24\":\"b8d615d9\",\"26\":\"31d6cfe0\",\"27\":\"0710e3e3\",\"28\":\"51412fcd\",\"29\":\"e292ab6b\",\"30\":\"1133c967\",\"31\":\"37fb0c23\",\"32\":\"6e885738\",\"33\":\"98f19554\"}[chunkId] + \".chunk.css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\tvar error = new Error('Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')');\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
\ No newline at end of file \ No newline at end of file
{"version":3,"sources":["common/Tag/index.js","components/search/index.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","components/search/searchHead.js"],"names":["Tag","react_default","a","createElement","Object","assign","className","this","props","name","children","PureComponent","Search","state","searchHistory","JSON","parse","localStorage","getItem","hot_words","searchList","value","isLoading","clearHistory","setItem","_this","setState","handleChange","handleSearch","history","push","concat","encodeURIComponent","storeHistory","keyword","stringify","toConsumableArray","http","get","API","res","data","errno","info","_this2","searchHead","Loading","length","onClick","map","v","i","react_router_dom","key","to","Tag_Tag","bind","style","textAlign","padding","defineProperty","exports","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","call","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","onChange","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","Component","defaultProps","contextTypes","object","noop","SearchHead","isFocus","returnPage","go","search","storeKeyword","_this$props","_this$props$searchHis","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__","changeFontColor","refs","cls","classnames","submit-btn--active","react__WEBPACK_IMPORTED_MODULE_8___default","forwardedRef","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","withRouter"],"mappings":"qPAEqBA,4LAEb,OACIC,EAAAC,EAAAC,cAAA,OAAAC,OAAAC,OAAA,CAAMC,UAAWC,KAAKC,MAAMC,MAAUF,KAAKC,OACtCD,KAAKC,MAAME,iBAJKC,mDCO3BC,6MAEFC,MAAQ,CACJC,cAAeC,KAAKC,MAAMC,aAAaC,QAAQ,mBAAqB,GACpEC,UAAW,GACXC,WAAY,GACZC,MAAO,GACPC,WAAW,KAafC,aAAe,WACXN,aAAaO,QAAQ,gBAAiB,MACtCC,EAAKC,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BAAgB,IACnCjF,SAAUpG,KAAKgL,UAGvBU,EAAA/L,EAAAC,cAAA,OAAKG,UAAU,kBAAkB0C,QAASzC,KAAKgL,QAC3CU,EAAA/L,EAAAC,cAAA,OAAKG,UAAWwL,GAAhB,yBAvDKnL,kBA8DVyL,gBAAWjB","file":"mrstatic/js/search.02482d06.chunk.js","sourcesContent":["import React, { PureComponent } from 'react'\nimport './tag.scss'\nexport default class Tag extends PureComponent {\n render() {\n return (\n <span className={this.props.name} {...this.props}>\n {this.props.children}\n </span>\n )\n }\n}\n","import React, { PureComponent } from 'react';\nimport SearchHead from './searchHead'\nimport Tag from '@common/Tag/index.js'\nimport { http } from '@/utils'\nimport './index.scss';\nimport { Link } from 'react-router-dom'\nimport Loading from '@/common/Loading'\n\n\nclass Search extends PureComponent {\n\n state = {\n searchHistory: JSON.parse(localStorage.getItem('searchHistory')) || [],\n hot_words: [],\n searchList: [],\n value: '',\n isLoading: true\n }\n\n async componentDidMount() {\n const res = await http.get(`${API['search-api']}/search_hot_word`)\n if (res.data.errno === 0) {\n this.setState({\n hot_words: res.data.data.info.hot_words,\n isLoading: false\n })\n }\n }\n\n clearHistory = () => {\n localStorage.setItem('searchHistory', null)\n this.setState({\n searchHistory: []\n })\n }\n\n handleChange = value => {\n this.setState({value})\n }\n\n handleSearch = () => {\n this.state.value && this.props.history.push(`/search-result?word=${encodeURIComponent(this.state.value)}`)\n }\n\n storeHistory = keyword => {\n localStorage.setItem('searchHistory', JSON.stringify([...this.state.searchHistory, keyword]))\n }\n\n\n render() {\n const {searchHistory} = this.state\n return (\n <div className=\"search-page\">\n <SearchHead\n searchHistory={this.state.searchHistory}\n value={this.state.value}\n handleChange={this.handleChange}\n handleSearch={this.handleSearch}\n />\n <Loading isLoading={this.state.isLoading}>\n <div className=\"search-main\">\n {\n searchHistory.length > 0 &&\n <div className=\"search-land\">\n <div className='search-history'>\n <span>最近搜索</span>\n <i className=\"iconfont iconiconfront-56\" onClick={this.clearHistory}/>\n </div>\n <div className=\"search-tag\">\n {\n\n searchHistory.map((v, i) => {\n return (\n <Link\n key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n >\n <Tag name={\"tagLately\"}>{v}</Tag>\n </Link>\n )\n })\n }\n </div>\n </div>\n }\n <div className=\"search-land search-hot\">\n <label className={'search-history'}>\n <span>热门搜索</span>\n </label>\n <div className=\"search-tag\">\n {\n this.state['hot_words'].length > 0 ?\n this.state['hot_words'].map((v, i) => {\n return (\n <Link key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n onClick={this.storeHistory.bind(this, v)}\n >\n <Tag name={\"tagHot\"}>{v}</Tag>\n </Link>\n )\n })\n : <div style={{textAlign: 'center', padding: '20px'}}>暂无热门</div>\n }\n </div>\n </div>\n </div>\n </Loading>\n\n </div>\n )\n }\n\n}\n\nexport default Search;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, { PureComponent } from 'react'\nimport { SearchBar } from 'antd-mobile'\nimport { withRouter } from 'react-router-dom'\nimport classnames from 'classnames';\n\nimport './search_header.scss'\n\nclass SearchHead extends PureComponent {\n \n state = {\n isFocus: false\n }\n\n returnPage = () => {\n this.props.history.go(-1)\n }\n\n componentDidMount() {\n this.refs.search.focus();\n }\n\n search = () => {\n this.storeKeyword()\n this.props.handleSearch()\n }\n\n storeKeyword = () => {\n let {searchHistory = [], value} = this.props\n value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\n }\n\n changeFontColor = (isFocus) => {\n this.setState({\n isFocus\n });\n }\n\n render() {\n const { isFocus } = this.state;\n const cls = classnames('submit-btn', {'submit-btn--active': isFocus})\n return (\n <div className=\"search-head\" style={this.props.style} ref={this.props.forwardedRef}>\n\n <div className=\"left\" onClick={this.returnPage}>\n <i className=\"iconfont iconiconfront-68\"/>\n </div>\n\n <div className=\"center\">\n <SearchBar\n value={this.props.value}\n showCancelButton\n cancelText={\" \"}\n ref=\"search\"\n focus={true}\n onChange={this.props.handleChange}\n placeholder=\"搜索课程\"\n onFocus={() => this.changeFontColor(true)}\n onBlur={() => this.changeFontColor(false)}\n onSubmit={this.search}\n />\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className={cls}>搜索</div>\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""} {"version":3,"sources":["common/Tag/index.js","components/search/index.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","components/search/searchHead.js"],"names":["Tag","react_default","a","createElement","Object","assign","className","this","props","name","children","PureComponent","Search","state","searchHistory","JSON","parse","localStorage","getItem","hot_words","searchList","value","isLoading","clearHistory","setItem","_this","setState","handleChange","handleSearch","history","push","concat","encodeURIComponent","storeHistory","keyword","stringify","toConsumableArray","http","get","API","res","data","errno","info","_this2","searchHead","Loading","length","onClick","map","v","i","react_router_dom","key","to","Tag_Tag","bind","style","textAlign","padding","defineProperty","exports","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","call","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","onChange","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","Component","defaultProps","contextTypes","object","noop","SearchHead","isFocus","returnPage","go","search","storeKeyword","_this$props","_this$props$searchHis","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__","changeFontColor","refs","cls","classnames","submit-btn--active","react__WEBPACK_IMPORTED_MODULE_8___default","forwardedRef","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","withRouter"],"mappings":"qPAEqBA,4LAEb,OACIC,EAAAC,EAAAC,cAAA,OAAAC,OAAAC,OAAA,CAAMC,UAAWC,KAAKC,MAAMC,MAAUF,KAAKC,OACtCD,KAAKC,MAAME,iBAJKC,mDCO3BC,6MAEFC,MAA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Ba,WAAY,IACZK,IAAI,SACJvD,OAAO,EACPD,SAAUzG,KAAKC,MAAMmB,aACrBsI,YAAY,2BACZ9C,QAAS,kBAAMvE,EAAKgJ,iBAAgB,IACpCvE,OAAQ,kBAAMzE,EAAKgJ,iBAAgB,IACnCjF,SAAUpG,KAAKgL,UAGvBU,EAAA/L,EAAAC,cAAA,OAAKG,UAAU,kBAAkB0C,QAASzC,KAAKgL,QAC3CU,EAAA/L,EAAAC,cAAA,OAAKG,UAAWwL,GAAhB,yBAvDKnL,kBA8DVyL,gBAAWjB","file":"mrstatic/js/search.02482d06.chunk.js","sourcesContent":["import React, { PureComponent } from 'react'\nimport './tag.scss'\nexport default class Tag extends PureComponent {\n render() {\n return (\n <span className={this.props.name} {...this.props}>\n {this.props.children}\n </span>\n )\n }\n}\n","import React, { PureComponent } from 'react';\nimport SearchHead from './searchHead'\nimport Tag from '@common/Tag/index.js'\nimport { http } from '@/utils'\nimport './index.scss';\nimport { Link } from 'react-router-dom'\nimport Loading from '@/common/Loading'\n\n\nclass Search extends PureComponent {\n\n state = {\n searchHistory: JSON.parse(localStorage.getItem('searchHistory')) || [],\n hot_words: [],\n searchList: [],\n value: '',\n isLoading: true\n }\n\n async componentDidMount() {\n const res = await http.get(`${API['search-api']}/search_hot_word`)\n if (res.data.errno === 0) {\n this.setState({\n hot_words: res.data.data.info.hot_words,\n isLoading: false\n })\n }\n }\n\n clearHistory = () => {\n localStorage.setItem('searchHistory', null)\n this.setState({\n searchHistory: []\n })\n }\n\n handleChange = value => {\n this.setState({value})\n }\n\n handleSearch = () => {\n this.state.value && this.props.history.push(`/search-result?word=${encodeURIComponent(this.state.value)}`)\n }\n\n storeHistory = keyword => {\n localStorage.setItem('searchHistory', JSON.stringify([...this.state.searchHistory, keyword]))\n }\n\n\n render() {\n const {searchHistory} = this.state\n return (\n <div className=\"search-page\">\n <SearchHead\n searchHistory={this.state.searchHistory}\n value={this.state.value}\n handleChange={this.handleChange}\n handleSearch={this.handleSearch}\n />\n <Loading isLoading={this.state.isLoading}>\n <div className=\"search-main\">\n {\n searchHistory.length > 0 &&\n <div className=\"search-land\">\n <div className='search-history'>\n <span>最近搜索</span>\n <i className=\"iconfont iconiconfront-56\" onClick={this.clearHistory}/>\n </div>\n <div className=\"search-tag\">\n {\n\n searchHistory.map((v, i) => {\n return (\n <Link\n key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n >\n <Tag name={\"tagLately\"}>{v}</Tag>\n </Link>\n )\n })\n }\n </div>\n </div>\n }\n <div className=\"search-land search-hot\">\n <label className={'search-history'}>\n <span>热门搜索</span>\n </label>\n <div className=\"search-tag\">\n {\n this.state['hot_words'].length > 0 ?\n this.state['hot_words'].map((v, i) => {\n return (\n <Link key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n onClick={this.storeHistory.bind(this, v)}\n >\n <Tag name={\"tagHot\"}>{v}</Tag>\n </Link>\n )\n })\n : <div style={{textAlign: 'center', padding: '20px'}}>暂无热门</div>\n }\n </div>\n </div>\n </div>\n </Loading>\n\n </div>\n )\n }\n\n}\n\nexport default Search;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, { PureComponent } from 'react'\nimport { SearchBar } from 'antd-mobile'\nimport { withRouter } from 'react-router-dom'\nimport classnames from 'classnames';\n\nimport './search_header.scss'\n\nclass SearchHead extends PureComponent {\n \n state = {\n isFocus: false\n }\n\n returnPage = () => {\n this.props.history.go(-1)\n }\n\n componentDidMount() {\n this.refs.search.focus();\n }\n\n search = () => {\n this.storeKeyword()\n this.props.handleSearch()\n }\n\n storeKeyword = () => {\n let {searchHistory = [], value} = this.props\n value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\n }\n\n changeFontColor = (isFocus) => {\n this.setState({\n isFocus\n });\n }\n\n render() {\n const { isFocus } = this.state;\n const cls = classnames('submit-btn', {'submit-btn--active': isFocus})\n return (\n <div className=\"search-head\" style={this.props.style} ref={this.props.forwardedRef}>\n\n <div className=\"left\" onClick={this.returnPage}>\n <i className=\"iconfont iconiconfront-68\"/>\n </div>\n\n <div className=\"center\">\n <SearchBar\n value={this.props.value}\n showCancelButton\n cancelText={\" \"}\n ref=\"search\"\n focus={true}\n onChange={this.props.handleChange}\n placeholder=\"搜索课程\"\n onFocus={() => this.changeFontColor(true)}\n onBlur={() => this.changeFontColor(false)}\n onSubmit={ this.search }\n />\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className={cls}>搜索</div>\n </div>\n </div>\n\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""}
\ No newline at end of file \ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{1196:function(e,t,a){"use strict";a.r(t);a(45);var n,c=a(14),i=a.n(c),o=a(8),s=a(9),r=a(10),d=a(7),l=a(153),u=a(11),m=(a(256),a(92)),p=a.n(m),h=a(0),f=a.n(h),v=a(164),y=(a(794),a(17)),g=a(49),b=a(3),_=a(22),E=(a(74),a(795),a(649)),S=function(e){var t=e.item;return f.a.createElement("div",{className:"bottom"},f.a.createElement("span",{className:"price"},"\xa5",t.price1),f.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},w=Object(_.b)()(n=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,c=new Array(n),s=0;s<n;s++)c[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(c)))).state={num:10,list:[],courseId:null},a.getRecommendation=function(){b.d.get("".concat(API.home,"/m/play/recommend_course/").concat(a.props.vCourseId,"?num=").concat(a.state.num)).then(function(e){var t=e.data;200===t.code?a.setState({list:Array.isArray(t.data)?t.data:[]}):i.a.info(t.msg)})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getRecommendation()}},{key:"render",value:function(){var e=this;return this.state.list.length?f.a.createElement("div",{className:"recommendation"},f.a.createElement("div",{className:"title"},"\u76f8\u5173\u63a8\u8350"),f.a.createElement("ul",null,this.state.list.map(function(t){var a=f.a.createElement("div",{className:"info"},f.a.createElement("p",{className:"title text-overflow-1"},t.course_title),f.a.createElement("p",{className:"des text-overflow-2"},t.simpledescription),f.a.createElement(S,{item:t}));return f.a.createElement(E.a,{key:t.course_id,img:t.image_name,handleClick:e.toCourseDetail,info:a,id:t.course_id})}))):null}}]),t}(h.PureComponent))||n,I=(a(796),a(15)),N=a.n(I),P=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,c=new Array(n),i=0;i<n;i++)c[i]=arguments[i];return(a=Object(r.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(c)))).handleClick=function(e){a.props.selectVideo(e)},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this;return f.a.createElement("div",{className:"video-catalog"},f.a.createElement("ul",null,this.props.videoCatalog.map(function(t,a){return f.a.createElement("li",{key:t.id,className:N()({active:e.props.activeIndex===a})},f.a.createElement("div",{className:"video-title",onClick:e.handleClick.bind(e,a)},f.a.createElement("span",{className:"title"},t.name),f.a.createElement("span",{className:"duration"},t.duration),f.a.createElement("i",{className:N()("iconfont",[0===t.video_auth?"iconiconfront-74":"iconplay_hovericon"])})),t.practice&&t.practice.qid?f.a.createElement(y.b,{to:{pathname:t.practice.is_tested?"/campResolve":"/campTest",search:"?keshi_id=".concat(t.id,"&qid=").concat(t.practice.qid),state:{from:"/play/video".concat(window.location.search)}}},f.a.createElement("div",{className:"exercise"},"\u8bfe\u540e\u7ec3\u4e60\uff1a",t.practice.title,f.a.createElement("i",{className:N()("iconfont",t.video_auth?t.practice.is_tested?"iconiconfront-3":"":"iconiconfront-74")}))):null)})))}}]),t}(h.Component),O=(a(797),a(799)),x=a.n(O),k=(a(800),function(e){function t(){return Object(o.a)(this,t),Object(r.a)(this,Object(d.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props.datum;return f.a.createElement("div",{className:"datum-catalog"},f.a.createElement("p",{className:"prompt"},"\u8bfe\u7a0b\u8d44\u6599\u8bf7\u5230PC\u7aef\u64ad\u653e\u9875\u4e0b\u8f7d"),f.a.createElement(x.a,null,e&&e.length&&e.map(function(e,t){return f.a.createElement(x.a.Panel,{header:e.dir_name,key:t},e.files.map(function(e){return f.a.createElement("div",{key:e.file_id,className:"file-name"},e.file_name)}))})))}}]),t}(h.Component));k.defaultProps={datum:[{dir_name:"",files:[{file_name:"",file_id:0}]}]};var j=k,C=a(783),T=(a(846),a(30)),A=a(41),B=a.n(A),R=a(847),L=a.n(R),D=a(661),M=a(662),W=a(1174),J=C.a.getComponent("Component"),z=C.a.getComponent("Button"),V=function(e){function t(){return Object(o.a)(this,t),Object(r.a)(this,Object(d.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"createEl",value:function(){return Object(W.a)(Object(d.a)(t.prototype),"createEl",this).call(this,"div",{className:"vjs-custom-play-button-cover"})}},{key:"dispose",value:function(){this.el_&&(this.el_=null)}}]),t}(J),q=function(e){function t(e,a){var n;return Object(o.a)(this,t),(n=Object(r.a)(this,Object(d.a)(t).call(this,e,a))).on("tap",n.tap),n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"createEl",value:function(){return Object(W.a)(Object(d.a)(t.prototype),"createEl",this).call(this,"button",{className:"vjs-custom-play-button"},{type:"button"})}},{key:"tap",value:function(){this.player_.play()}},{key:"dispose",value:function(){this.el_&&(this.off("tap",this.tap),this.el_=null)}}]),t}(z);J.registerComponent("CustomPlayButton",q),V.prototype.options_={children:["CustomPlayButton"]},J.registerComponent("CustomPlayButtonCover",V);var H=p.a.alert;function U(e){return e.isShow&&f.a.createElement("div",{className:"progress-share-modal-wrapper"},f.a.createElement("div",{className:"progress-share-modal"},f.a.createElement("div",{className:"title"},"\u6bcf\u65e5\u6253\u5361"),f.a.createElement("ul",{className:"progress-container"},f.a.createElement("li",null,f.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),f.a.createElement("div",{className:"number"},f.a.createElement("span",{className:"num"},e.data.learn_day_count),"\u5929")),f.a.createElement("li",null,f.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),f.a.createElement("div",{className:"number"},f.a.createElement("span",{className:"num"},parseFloat(e.data.action_power)),"%"))),f.a.createElement("div",{className:"share-container"},f.a.createElement("div",{className:"title"},"\u5206\u4eab\u5230"),f.a.createElement("ul",null,f.a.createElement("li",{className:"share-icon"},f.a.createElement("a",{style:{display:"block"},href:e.data.url},f.a.createElement("div",{className:"icon"},f.a.createElement("i",{className:"iconfont iconweixinzhifu"})),f.a.createElement("div",{className:"text"},"\u5fae\u4fe1\u597d\u53cb"))),f.a.createElement("li",{className:"share-icon"},f.a.createElement("a",{style:{display:"block"},href:e.data.url},f.a.createElement("div",{className:"icon"},f.a.createElement("i",{className:"iconfont iconpengyouquaniconx"})),f.a.createElement("div",{className:"text"},"\u670b\u53cb\u5708"))))),f.a.createElement("i",{className:"iconfont iconiconfront-2 close",onClick:e.closeShareModal})))}var F=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,c=new Array(n),s=0;s<n;s++)c[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(c)))).previousPlaybackRate=1,a.currentPlaybackRate=1,a.reconnect=!0,a.timeEnough=!1,a.state={title:"",courseId:null,videoList:[],datum:[],currentVideoSrc:"",activeIndex:0,isAuth:!0,course:{},salePrice:null,vCourseId:null,isLoading:!0,isShowShareModal:!1,shareData:{},singleBox:!1,singMess:"",singleType:1,nowPrice:0,laterPrice:0},a.tobuy=function(){var e=a.state.course,t=void 0===e?{}:e;b.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(t.course_id,"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(t.course_id),{simple:1}):i.a.info(e.data.msg,2)})},a.toSingleset=function(e){a.setState({singleBox:!0,singleType:1,singMess:e}),window.localStorage.setItem("singMess",JSON.stringify(e))},a.boxHide=function(e){a.setState({singleBox:e,singleType:1})},a.payCallback=function(){var e=Object(l.a)(a);Object(b.c)("oid")&&(a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),e.intervalPayStatus=setInterval(function(){b.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(b.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,b.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(b.c)("oid"))).then(function(t){200===Number(t.data.data.errno)?e.setState({singleType:6}):201===Number(t.data.data.errno)?e.setState({singleType:4}):202===Number(t.data.data.errno)?e.setState({singleType:3}):203===Number(t.data.data.errno)?e.setState({nowPrice:t.data.data.data.now_price,laterPrice:t.data.data.data.three_day_later_price,singleType:2}):i.a.info(t.data.data.msg,2)}))})},1e3))},a.isweixinPay=function(){var e=Object(l.a)(a),t=Object(b.c)("code");if(t){if(!Object(b.c)("oid"))return;a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),b.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(b.c)("oid"),"/code/").concat(t)).then(function(t){if(0===t.data.errno){var a=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg?(i.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){b.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(b.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,b.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(b.c)("oid"))).then(function(t){200===Number(t.data.data.errno)?e.setState({singleType:6}):201===Number(t.data.data.errno)?e.setState({singleType:4}):202===Number(t.data.data.errno)?e.setState({singleType:3}):203===Number(t.data.data.errno)?e.setState({nowPrice:t.data.data.data.now_price,laterPrice:t.data.data.data.three_day_later_price,singleType:2}):i.a.info(t.data.data.msg,2)}))})},1e3)):H("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else i.a.info(t.data.msg,2)})}},a.check=function(e){a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),b.d.get("".concat(API["base-api"],"/class_order_status/").concat(e)).then(function(e){200===Number(e.data.data.errno)?a.setState({singleType:6}):201===Number(e.data.data.errno)?a.setState({singleType:4}):202===Number(e.data.data.errno)?a.setState({singleType:3}):203===Number(e.data.data.errno)?a.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,singleType:2}):i.a.info(e.data.data.msg,2)})},a.setupRecord=function(){a.recordSocket=L()(API.record,{transports:["websocket"],forceNew:!0}),a.recordSocket.on("seek",function(e){a.player.currentTime(e)}),a.recordTimer=setInterval(function(){a.sendRecord()},5e3)},a.sendRecord=function(){a.recordSocket&&a.player&&a.recordSocket.emit("addRecord",a.recordUserInfo())},a.recordUserInfo=function(){return{uid:a.props.user.data.uid,course_id:a.courseID,video_id:a.state.videoList[a.state.activeIndex].id,video_time:parseInt(a.player.currentTime()),plat:5}},a.setupWS=function(){a.ws=new WebSocket(API["process-api"]),a.ws.addEventListener("error",function(){a.ws=null}),a.ws.addEventListener("close",function(){a.reconnect&&(a.ws=null,setTimeout(function(){a.setupWS()},1e3)),clearInterval(a.timer)}),a.ws.addEventListener("message",function(e){var t=JSON.parse(e.data);4040==t.code&&(a.reconnect=!1),5001==t.code&&(a.timeEnough=!0)})},a.sendMessage=function(e){var t=a.ws.readyState,n=Object(l.a)(a);if(1===t)a.ws&&a.ws.send(JSON.stringify(e));else if(3===t){a.ws.close(),a.ws=null;var c=setTimeout(function(){clearTimeout(c),c=null,n.ws=new WebSocket(PROCESS_URL)},500)}},a.getShareProgressInfo=function(){b.d.get("".concat(API["base-api"],"/m/aist/share_data/").concat(a.courseID,"/").concat(a.state.videoList[a.state.activeIndex].id)).then(function(e){var t=e.data;200==t.errno&&a.setState({shareData:t.data,isShowShareModal:!0})})},a.countSchedule=function(){var e=a.state,t=e.videoList,n=e.activeIndex,c=e.vCourseId,i=e.course,o=void 0===i?{}:i;0!==Number(o.course_id)&&""!==o.course_id?a.timeEnough?console.log("5001 \u65f6\u95f4\u8db3\u591f"):o.is_aist?a.sendMessage({mtype:"count_schedule",uid:a.props.user.data.uid,token:a.token,platform:5}):a.sendMessage({mtype:"c_count_schedule",uid:a.props.user.data.uid,token:a.token,platform:5,video_id:t[n].id,course_id:a.courseID,v_course_id:c}):console.log("\u514d\u8d39\u8bfe\u7a0b \u62e6\u622a")},a.sendWatchTime=function(e,t){var n=a.state,c=n.videoList,i=n.activeIndex,o=n.vCourseId,s=n.course,r=void 0===s?{}:s;if(0!==Number(r.course_id)&&""!==r.course_id){if(0!==Number(e))if(a.timeEnough)console.log("5001 \u65f6\u95f4\u8db3\u591f");else{var d="c_watch_time";r.is_aist&&(d="watch_time"),a.sendMessage({mtype:d,rate:t,time:e,video_id:c[i].id,course_id:a.courseID,v_course_id:o,uid:a.props.user.data.uid,token:a.token,platform:5})}}else console.log("\u514d\u8d39\u8bfe\u7a0b \u62e6\u622a")},a.setupTimer=function(){a.count=0,a.watchSec=0,clearInterval(a.timer),a.timer=setInterval(function(){a.player&&a.player.player()&&(5===a.count?(a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.count=a.watchSec=0):(!a.player.paused()&&a.watchSec++,a.count++))},1e3)},a.initializePlayer=function(){window.HELP_IMPROVE_VIDEOJS=!1,a.player=Object(C.a)(a.video,{controls:!0,preload:"auto",bigPlayButton:!1,textTrackDisplay:!1,posterImage:!1,errorDisplay:!1,playbackRates:["0.75","1","1.5","2"],controlBar:{pictureInPictureToggle:!1}}),a.player.addChild("CustomPlayButtonCover"),a.player.on("ready",function(){a.recordSocket.emit("load",a.recordUserInfo())}),a.player.on("ratechange",function(){a.currentPlaybackRate=a.player.playbackRate(),a.sendWatchTime(a.watchSec,a.previousPlaybackRate),a.count=a.watchSec=0,a.previousPlaybackRate=a.currentPlaybackRate}),a.player.on("ended",function(){console.log("ended"),a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.countSchedule(),a.state.course.is_aist&&a.getShareProgressInfo(),clearInterval(a.timer)}),a.player.on("seeked",function(){a.sendRecord()})},a.sendLastRecord=function(){b.d.post("".concat(API.home,"/m/course/record_last_video"),{v_course_id:a.state.course.v_course_id,video_id:a.state.videoList[a.state.activeIndex].id})},a.selectVideo=function(e){e!==a.state.activeIndex&&(console.log("selectVideo"),a.countSchedule(),a.setState({activeIndex:e},function(){a.hasAuth(a.state.activeIndex)?(a.setPlayerSrc(a.state.videoList[e].play_url),a.sendLastRecord(),a.playVideo()):a.getCoursePrice()}))},a.getLastVideoIndex=function(e){return a.state.videoList.findIndex(function(t){return t.id==e})},a.getVideoList=function(){var e="";e=Object(b.c)("video_id")?"".concat(API.home,"/m/course/play/").concat(a.courseID+"?video_id="+Object(b.c)("video_id")):"".concat(API.home,"/m/course/play/").concat(a.courseID),b.d.get(e).then(function(e){var t=e.data,n=t.data,c=void 0===n?{}:n;200===t.code?a.setState(function(e){return{videoList:c.lessons,currentVideoSrc:c.lessons[e.activeIndex].play_url,course:c.course,courseId:c.course.course_id,vCourseId:c.course.v_course_id,title:c.course.course_title,isLoading:!1}},a.playSetup):i.a.info(c.msg)})},a.playSetup=function(){var e=a.state.course,t=void 0===e?{}:e;if(0===Number(t.course_id)||""===t.course_id)console.log("\u514d\u8d39\u8bfe\u7a0b \u62e6\u622a");else{var n=Object(l.a)(a);a.setupWS(),a.setupTimer(),console.log("playSetup");var c=setTimeout(function(){clearTimeout(c),c=null,n.countSchedule()},1e3)}var i=a.getLastVideoIndex(t.last_video_id);i=i>=0?i:0,a.setState({activeIndex:i},function(){a.lessonAvailable(i)?a.hasAuth(i)?Promise.resolve().then(function(){a.initializePlayer(),a.playWithAuth()}):a.getCoursePrice():H("\u6682\u65e0\u89c6\u9891","",[{text:"OK",onPress:function(){a.props.history.push("/")}}])})},a.setPlayerSrc=function(e){a.player||a.initializePlayer(),a.player.src({src:e,type:"application/x-mpegURL"})},a.playVideo=function(){a.player.play()},a.lessonAvailable=function(e){return 0!==a.state.videoList[e].video_size},a.getCoursePrice=function(){var e=a.state.course,t=void 0===e?{}:e;b.d.get("".concat(API.home,"/sys/course/price/").concat(t.course_id)).then(function(e){var t=e.data;200===t.code&&a.setState({salePrice:t.data.sale_price})})},a.playWithAuth=function(){var e=a.state,t=e.videoList,n=e.activeIndex;a.hasAuth(n)&&a.setPlayerSrc(t[n].play_url)},a.hasAuth=function(e){return a.state.videoList[e].video_auth?(a.setState({isAuth:!0}),!0):(a.setState({isAuth:!1}),!1)},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=window.location;if("https:"!==e.protocol)if(this.courseID=Object(b.c)("id"),this.courseID){this.setState({courseId:this.courseID});var t=this.props.location.state,a=void 0===t?{}:t;a.oid&&this.check(a.oid),(1===Object(b.c)("is_class")||Object(b.c)("weixinpay"))&&this.payCallback(),b.b.isWeixin&&this.isweixinPay(),this.token=B.a.get("token"),this.getVideoList(),this.getDatumCatalog(),this.setupRecord()}else this.props.history.replace("/");else e.replace("http"+e.href.slice(5))}},{key:"componentWillUnmount",value:function(){this.player&&this.player.dispose(),clearInterval(this.timer),this.ws&&this.ws.close(),this.ws=null,clearInterval(this.recordTimer),this.recordSocket&&this.recordSocket.close(),this.recordSocket=null}},{key:"getDatumCatalog",value:function(){var e=this;b.d.get("".concat(API.home,"/m/course/data/").concat(this.courseID)).then(function(t){var a=t.data;200===a.code?e.setState({datum:a.data}):i.a.info(a.msg)})}},{key:"render",value:function(){var e=this,t=this.props,a=t.match,n=t.location,c=t.history,i=this.state,o=i.videoList,s=i.activeIndex,r=i.isAuth,d=i.salePrice,l=i.course,u=i.singleBox,m=i.singleType,p="";return n.state&&n.state.to&&"detail"===n.state.to&&(p="/detail?id=".concat(l.course_id)),f.a.createElement("div",{className:"play"},f.a.createElement(v.a,{title:this.state.title,arrow:!0,toHref:function(){p?c.push(p,{to:"classify"}):c.go(-1)}}),f.a.createElement(T.f,{isLoading:this.state.isLoading},f.a.createElement("div",{className:"video"},f.a.createElement("video",{className:"video-js",ref:function(t){return e.video=t}},f.a.createElement("source",{src:"/",type:"application/x-mpegURL"})),!r&&!!o[s].is_class&&f.a.createElement("div",{className:"purchase-box"},f.a.createElement("div",{className:"hint"},"\u60a8\u5c1a\u672a\u8d2d\u4e70\u8be5\u8bfe\u65f6\uff0c\u8bf7\u8d2d\u4e70\u540e\u5b66\u4e60\u3002"),f.a.createElement("div",{className:"btns"},f.a.createElement("button",{type:"button",onClick:this.tobuy,className:"purchase-class"},"\xa5",d," \u8d2d\u4e70\u8bfe\u7a0b"),f.a.createElement("button",{type:"button",onClick:this.toSingleset.bind(this,o[s]),className:"purchase-episode"},"\xa5",o.length&&o[s].class_price," \u8d2d\u4e70\u5355\u96c6"))),!r&&!!l.is_aist&&f.a.createElement("div",{className:"is-aist-box"},f.a.createElement("i",{className:"iconfont iconiconfront-21"}),f.a.createElement("p",{className:"time"},o[s].aist_start_time),f.a.createElement("p",{className:"time"},"\u8bf7\u8010\u5fc3\u7b49\u5f85..."))),f.a.createElement("div",{className:"tab"},f.a.createElement("div",null,f.a.createElement(y.c,{to:{pathname:"".concat(a.url,"/video"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u89c6\u9891")),f.a.createElement("div",null,f.a.createElement(y.c,{to:{pathname:"".concat(a.url,"/datum"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u8d44\u6599"))),u&&f.a.createElement(D.a,{courseId:l.course_id,singleBox:this.state.singleBox,boxHide:this.boxHide,data:this.state.singMess,singleType:this.state.singleType,vcourseId:l.v_course_id,videoId:this.state.singMess.video_id,check:this.check,title:this.state.singMess.course_tile}),1!==m&&f.a.createElement(M.a,{courseId:l.course_id,boxHide:this.boxHide,data:this.state.singMess,singleType:m,vcourseId:l.v_course_id,videoId:this.state.singMess.video_id,nowPrice:this.state.nowPrice,laterPrice:this.state.laterPrice})),f.a.createElement(g.d,null,f.a.createElement(g.a,{exact:!0,from:"/play",to:{pathname:"/play/video",search:n.search}}),f.a.createElement(g.b,{path:"".concat(a.path,"/video"),render:function(t){return f.a.createElement(P,Object.assign({activeIndex:e.state.activeIndex,selectVideo:e.selectVideo,videoCatalog:o},t))}}),f.a.createElement(g.b,{path:"".concat(a.path,"/datum"),render:function(t){return f.a.createElement(j,Object.assign({},t,{datum:e.state.datum}))}})),f.a.createElement(g.b,{render:function(t){return e.state.vCourseId?f.a.createElement(w,Object.assign({},t,{vCourseId:e.state.vCourseId})):null}}),f.a.createElement(U,{isShow:this.state.isShowShareModal,closeShareModal:function(){return e.setState({isShowShareModal:!1})},data:this.state.shareData}))}}]),t}(h.Component);t.default=Object(_.b)(function(e){return{user:e.user}},null)(F)},617:function(e,t,a){},649:function(e,t,a){"use strict";var n=a(0),c=a.n(n);a(650);t.a=function(e){return c.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id)},c.a.createElement("div",{className:"content"},c.a.createElement("div",{className:"cover"},e.status,c.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},650:function(e,t,a){},661:function(e,t,a){"use strict";a(45);var n=a(14),c=a.n(n),i=a(8),o=a(9),s=a(10),r=a(7),d=a(153),l=a(11),u=a(0),m=a.n(u),p=(a(617),a(3)),h=a(49),f=a(24),v=a(22),y=a(157),g=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){var e=a.props.courseId,t=a.props.data.video_id||a.props.data.id;p.d.get("".concat(API.home,"/sys/createClassOrder/").concat(t)).then(function(t){200===t.data.code?(a.setState({orderId:t.data.data.order_id}),"1"===a.state.payType?a.alipayPay(t.data.data.order_id,e):a.weixinPay(t.data.data.order_id)):c.a.info(t.data.msg,2)})},a.weixinPay=function(e){p.b.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":p.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():c.a.info(t.data.msg,2)})},a.alipayPay=function(e,t){p.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):c.a.info(e.data.msg,2)})},a.isweixinPay=function(){var e=Object(d.a)(a),t=Object(p.c)("code");if(t){if(!Object(p.c)("oid"))return;p.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(p.c)("oid"),"/code/").concat(t)).then(function(t){if(0===t.data.errno){var a=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg?(c.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){var t=this;p.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(p.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,p.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(p.c)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):c.a.info(e.data.data.msg,2)}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else c.a.info(t.data.msg,2)})}},a.payCallback=function(){var e=Object(d.a)(a);Object(p.c)("oid")&&(e.intervalPayStatus=setInterval(function(){var t=this;p.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(p.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,p.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(p.c)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):c.a.info(e.data.data.msg,2)}))})},1e3))},a.toBuyAll=function(){},a.zerobuyReceive=function(){c.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(p.c)("id")};p.d.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):c.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){p.d.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):c.a.info(e.data.msg,2)})},a.getTime=function(e){p.d.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):c.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0",showSingleBox:!1},a}return Object(l.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.showSingleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(y.differenceInSeconds)(new Date(t),a)%60,c=Object(y.differenceInMinutes)(new Date(t),a)%60,i=Object(y.differenceInHours)(new Date(t),a)%24;e.setState({hour:i,min:c,sec:n})},1e3)}return 1===this.props.singleType&&m.a.createElement("div",null,m.a.createElement("div",{className:"popup-box"},m.a.createElement("div",{className:"content singleset-payment"},m.a.createElement("div",{className:"price-box"},m.a.createElement("span",null,"\u5b9e\u4ed8\u6b3e\uff1a"),m.a.createElement("p",null,this.props.data.class_price,"\u5143")),m.a.createElement("div",{className:"course-info"},m.a.createElement("p",{className:"text-overflow-1"},m.a.createElement("span",null,"\u8bfe\u7a0b\uff1a"),this.props.title),m.a.createElement("p",{className:"text-overflow-1"},m.a.createElement("span",null,"\u8bfe\u65f6\uff1a"),this.props.data.name)),m.a.createElement("div",{className:"payment-type"},m.a.createElement("label",null,"\u652f\u4ed8\u65b9\u5f0f\uff1a"),!p.b.isWeixin&&m.a.createElement("p",{onClick:this.check.bind(this,"1")},m.a.createElement("i",{className:"iconfont iconalipay"}),m.a.createElement("span",null,"\u652f\u4ed8\u5b9d"),m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("1"===this.state.payType?"redioed":"")})),m.a.createElement("p",{onClick:this.check.bind(this,"0")},m.a.createElement("i",{className:"iconfont iconweixinzhifu buy"}),m.a.createElement("span",null,"\u5fae\u4fe1\u652f\u4ed8"),m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("0"===this.state.payType?"redioed":"")}))),m.a.createElement("div",{className:"btn btn-18B4ED",onClick:this.toBuy},"\u786e\u8ba4\u8d2d\u4e70")),m.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component);t.a=Object(f.d)(Object(v.b)(function(e){return{user:e.user}},null),h.g)(g)},662:function(e,t,a){"use strict";a(45);var n=a(14),c=a.n(n),i=a(8),o=a(9),s=a(10),r=a(7),d=a(11),l=a(0),u=a.n(l),m=(a(617),a(3)),p=a(49),h=a(24),f=a(22),v=a(157),y=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){var e=a.props.data.video_id||a.props.data.id;m.d.get("".concat(API.home,"/sys/createClassOrder/").concat(e)).then(function(e){200===e.data.code?(a.setState({orderId:e.data.data.order_id}),"1"===a.state.payType?a.alipayPay(e.data.data.order_id):a.weixinPay(e.data.data.order_id)):c.a.info(e.data.msg,2)})},a.weixinPay=function(e){m.b.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":m.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():c.a.info(t.data.msg,2)})},a.alipayPay=function(e){var t=Object(m.c)("id");m.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):c.a.info(e.data.msg,2)})},a.toBuyAll=function(e){if(1===Number(a.props.isPdd))a.props.history.push("/order?id=".concat(a.props.courseId),{group:1});else{var t=JSON.stringify([Number(e)]);m.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/").concat(t)).then(function(e){0===e.data.errno?a.props.history.push("/order?id="+e.data.data[0],{simple:1}):c.a.info(e.data.msg,2)})}},a.zerobuyReceive=function(){c.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(m.c)("id")};m.d.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):c.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){m.d.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):c.a.info(e.data.msg,2)})},a.getTime=function(e){m.d.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):c.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.toLearn=function(e,t){a.props.boxHide(!1),a.props.history.push("/play/video?id=".concat(e,"&video_id=").concat(t))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0"},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.singleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(v.differenceInSeconds)(new Date(t),a)%60,c=Object(v.differenceInMinutes)(new Date(t),a)%60,i=Object(v.differenceInHours)(new Date(t),a)%24;e.setState({hour:i,min:c,sec:n})},1e3)}var n=this.props.singleType,c=this.props.data.video_id||this.props.data.id;return u.a.createElement("div",{className:"popup-box"},2===n&&u.a.createElement("div",{className:"content payment-success"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 3\u5929\u5185\u8d2d\u4e70\u5168\u96c6\uff0c\u53ef\u76f4\u63a5\u62b5\u6263\u8be5\u96c6\u8d39\u7528\uff0c",this.props.nowPrice,"\u5143\u8d2d\u4e70\u3002"),u.a.createElement("div",{className:"dec"},"\xb7 \u8d85\u8fc73\u5929\uff0c\u6309\u7167\u672a\u8d2d\u96c6\u6570/\u5168\u90e8\u96c6\u6570\u7b49\u6bd4\u4f8b\u8ba1\u8d39\uff0c",this.props.laterPrice,"\u5143\u8d2d\u4e70\u5168\u96c6\u3002"),u.a.createElement("span",{onClick:function(){return e.toLearn(e.props.vcourseId,c)},className:"btn btn-18B4ED"},"\u5f00\u59cb\u5b66\u4e60"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:function(){e.toBuyAll(e.props.courseId)}},"\uffe5",this.props.nowPrice,"\u8d2d\u4e70\u5168\u96c6")),3===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u62fc\u56e2\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerogroupBuy},"0\u5143\u53c2\u56e2")),4===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerobuyReceive},"0\u5143\u8d2d")),6===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("span",{onClick:function(){return e.toLearn(e.props.vcourseId,c)},className:"btn btn-18B4ED"},"\u53bb\u5b66\u4e60")),7===n&&u.a.createElement("div",{className:"content group"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u53c2\u56e2\u6210\u529f")),u.a.createElement("div",{className:"group-img"},u.a.createElement("img",{src:this.props.user.data.avatar,alt:""}),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""}),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""})),u.a.createElement("div",{className:"btn-l btn-FF4000",onClick:this.toGroup},"\u5269\u4f59",String(this.state.hour).padStart(2,0),"\uff1a",String(this.state.min).padStart(2,0),"\uff1a",String(this.state.sec).padStart(2,0),"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2")),u.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"}))}}]),t}(l.Component);t.a=Object(h.d)(Object(f.b)(function(e){return{user:e.user}},null),p.g)(y)},794:function(e,t,a){},795:function(e,t,a){},796:function(e,t,a){},800:function(e,t,a){},802:function(e,t){},870:function(e,t){}}]);
//# sourceMappingURL=video.1a9827fa.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.
(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{1196:function(e,t,a){"use strict";a.r(t);a(45);var n,c=a(14),i=a.n(c),o=a(8),s=a(9),r=a(10),d=a(7),l=a(153),u=a(11),p=(a(256),a(92)),m=a.n(p),h=a(0),f=a.n(h),v=a(164),y=(a(794),a(17)),g=a(49),b=a(3),_=a(22),E=(a(74),a(795),a(649)),S=function(e){var t=e.item;return f.a.createElement("div",{className:"bottom"},f.a.createElement("span",{className:"price"},"\xa5",t.price1),f.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},w=Object(_.b)()(n=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,c=new Array(n),s=0;s<n;s++)c[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(c)))).state={num:10,list:[],courseId:null},a.getRecommendation=function(){b.d.get("".concat(API.home,"/m/play/recommend_course/").concat(a.props.vCourseId,"?num=").concat(a.state.num)).then(function(e){var t=e.data;200===t.code?a.setState({list:Array.isArray(t.data)?t.data:[]}):i.a.info(t.msg)})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getRecommendation()}},{key:"render",value:function(){var e=this;return this.state.list.length?f.a.createElement("div",{className:"recommendation"},f.a.createElement("div",{className:"title"},"\u76f8\u5173\u63a8\u8350"),f.a.createElement("ul",null,this.state.list.map(function(t){var a=f.a.createElement("div",{className:"info"},f.a.createElement("p",{className:"title text-overflow-1"},t.course_title),f.a.createElement("p",{className:"des text-overflow-2"},t.simpledescription),f.a.createElement(S,{item:t}));return f.a.createElement(E.a,{key:t.course_id,img:t.image_name,handleClick:e.toCourseDetail,info:a,id:t.course_id})}))):null}}]),t}(h.PureComponent))||n,I=(a(796),a(15)),N=a.n(I),P=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,c=new Array(n),i=0;i<n;i++)c[i]=arguments[i];return(a=Object(r.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(c)))).handleClick=function(e){a.props.selectVideo(e)},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this;return f.a.createElement("div",{className:"video-catalog"},f.a.createElement("ul",null,this.props.videoCatalog.map(function(t,a){return f.a.createElement("li",{key:t.id,className:N()({active:e.props.activeIndex===a})},f.a.createElement("div",{className:"video-title",onClick:e.handleClick.bind(e,a)},f.a.createElement("span",{className:"title"},t.name),f.a.createElement("span",{className:"duration"},t.duration),f.a.createElement("i",{className:N()("iconfont",[0===t.video_auth?"iconiconfront-74":"iconplay_hovericon"])})),t.practice&&t.practice.qid?f.a.createElement(y.b,{to:{pathname:t.practice.is_tested?"/campResolve":"/campTest",search:"?keshi_id=".concat(t.id,"&qid=").concat(t.practice.qid),state:{from:"/play/video".concat(window.location.search)}}},f.a.createElement("div",{className:"exercise"},"\u8bfe\u540e\u7ec3\u4e60\uff1a",t.practice.title,f.a.createElement("i",{className:N()("iconfont",t.video_auth?t.practice.is_tested?"iconiconfront-3":"":"iconiconfront-74")}))):null)})))}}]),t}(h.Component),O=(a(797),a(799)),x=a.n(O),k=(a(800),function(e){function t(){return Object(o.a)(this,t),Object(r.a)(this,Object(d.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props.datum;return f.a.createElement("div",{className:"datum-catalog"},f.a.createElement("p",{className:"prompt"},"\u8bfe\u7a0b\u8d44\u6599\u8bf7\u5230PC\u7aef\u64ad\u653e\u9875\u4e0b\u8f7d"),f.a.createElement(x.a,null,e&&e.length&&e.map(function(e,t){return f.a.createElement(x.a.Panel,{header:e.dir_name,key:t},e.files.map(function(e){return f.a.createElement("div",{key:e.file_id,className:"file-name"},e.file_name)}))})))}}]),t}(h.Component));k.defaultProps={datum:[{dir_name:"",files:[{file_name:"",file_id:0}]}]};var j=k,C=a(783),T=(a(846),a(30)),A=a(41),B=a.n(A),R=a(847),L=a.n(R),D=a(661),M=a(662),W=a(1174),J=C.a.getComponent("Component"),z=C.a.getComponent("Button"),V=function(e){function t(){return Object(o.a)(this,t),Object(r.a)(this,Object(d.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"createEl",value:function(){return Object(W.a)(Object(d.a)(t.prototype),"createEl",this).call(this,"div",{className:"vjs-custom-play-button-cover"})}},{key:"dispose",value:function(){this.el_&&(this.el_=null)}}]),t}(J),q=function(e){function t(e,a){var n;return Object(o.a)(this,t),(n=Object(r.a)(this,Object(d.a)(t).call(this,e,a))).on("tap",n.tap),n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"createEl",value:function(){return Object(W.a)(Object(d.a)(t.prototype),"createEl",this).call(this,"button",{className:"vjs-custom-play-button"},{type:"button"})}},{key:"tap",value:function(){this.player_.play()}},{key:"dispose",value:function(){this.el_&&(this.off("tap",this.tap),this.el_=null)}}]),t}(z);J.registerComponent("CustomPlayButton",q),V.prototype.options_={children:["CustomPlayButton"]},J.registerComponent("CustomPlayButtonCover",V);var H=m.a.alert;function U(e){return e.isShow&&f.a.createElement("div",{className:"progress-share-modal-wrapper"},f.a.createElement("div",{className:"progress-share-modal"},f.a.createElement("div",{className:"title"},"\u6bcf\u65e5\u6253\u5361"),f.a.createElement("ul",{className:"progress-container"},f.a.createElement("li",null,f.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),f.a.createElement("div",{className:"number"},f.a.createElement("span",{className:"num"},e.data.learn_day_count),"\u5929")),f.a.createElement("li",null,f.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),f.a.createElement("div",{className:"number"},f.a.createElement("span",{className:"num"},parseFloat(e.data.action_power)),"%"))),f.a.createElement("div",{className:"share-container"},f.a.createElement("div",{className:"title"},"\u5206\u4eab\u5230"),f.a.createElement("ul",null,f.a.createElement("li",{className:"share-icon"},f.a.createElement("a",{style:{display:"block"},href:e.data.url},f.a.createElement("div",{className:"icon"},f.a.createElement("i",{className:"iconfont iconweixinzhifu"})),f.a.createElement("div",{className:"text"},"\u5fae\u4fe1\u597d\u53cb"))),f.a.createElement("li",{className:"share-icon"},f.a.createElement("a",{style:{display:"block"},href:e.data.url},f.a.createElement("div",{className:"icon"},f.a.createElement("i",{className:"iconfont iconpengyouquaniconx"})),f.a.createElement("div",{className:"text"},"\u670b\u53cb\u5708"))))),f.a.createElement("i",{className:"iconfont iconiconfront-2 close",onClick:e.closeShareModal})))}var F=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,c=new Array(n),s=0;s<n;s++)c[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(c)))).previousPlaybackRate=1,a.currentPlaybackRate=1,a.reconnect=!0,a.state={title:"",courseId:null,videoList:[],datum:[],currentVideoSrc:"",activeIndex:0,isAuth:!0,course:{},salePrice:null,vCourseId:null,isLoading:!0,isShowShareModal:!1,shareData:{},singleBox:!1,singMess:"",singleType:1,nowPrice:0,laterPrice:0},a.tobuy=function(){var e=a.state.course,t=void 0===e?{}:e;b.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(t.course_id,"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(t.course_id),{simple:1}):i.a.info(e.data.msg,2)})},a.toSingleset=function(e){a.setState({singleBox:!0,singleType:1,singMess:e}),window.localStorage.setItem("singMess",JSON.stringify(e))},a.boxHide=function(e){a.setState({singleBox:e,singleType:1})},a.payCallback=function(){var e=Object(l.a)(a);Object(b.c)("oid")&&(a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),e.intervalPayStatus=setInterval(function(){b.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(b.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,b.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(b.c)("oid"))).then(function(t){200===Number(t.data.data.errno)?e.setState({singleType:6}):201===Number(t.data.data.errno)?e.setState({singleType:4}):202===Number(t.data.data.errno)?e.setState({singleType:3}):203===Number(t.data.data.errno)?e.setState({nowPrice:t.data.data.data.now_price,laterPrice:t.data.data.data.three_day_later_price,singleType:2}):i.a.info(t.data.data.msg,2)}))})},1e3))},a.isweixinPay=function(){var e=Object(l.a)(a),t=Object(b.c)("code");if(t){if(!Object(b.c)("oid"))return;a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),b.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(b.c)("oid"),"/code/").concat(t)).then(function(t){if(0===t.data.errno){var a=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg?(i.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){b.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(b.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,b.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(b.c)("oid"))).then(function(t){200===Number(t.data.data.errno)?e.setState({singleType:6}):201===Number(t.data.data.errno)?e.setState({singleType:4}):202===Number(t.data.data.errno)?e.setState({singleType:3}):203===Number(t.data.data.errno)?e.setState({nowPrice:t.data.data.data.now_price,laterPrice:t.data.data.data.three_day_later_price,singleType:2}):i.a.info(t.data.data.msg,2)}))})},1e3)):H("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else i.a.info(t.data.msg,2)})}},a.check=function(e){a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),b.d.get("".concat(API["base-api"],"/class_order_status/").concat(e)).then(function(e){200===Number(e.data.data.errno)?a.setState({singleType:6}):201===Number(e.data.data.errno)?a.setState({singleType:4}):202===Number(e.data.data.errno)?a.setState({singleType:3}):203===Number(e.data.data.errno)?a.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,singleType:2}):i.a.info(e.data.data.msg,2)})},a.setupRecord=function(){a.recordSocket=L()(API.record,{transports:["websocket"],forceNew:!0}),a.recordSocket.on("seek",function(e){a.player.currentTime(e)}),a.recordTimer=setInterval(function(){a.sendRecord()},5e3)},a.sendRecord=function(){a.recordSocket&&a.player&&a.recordSocket.emit("addRecord",a.recordUserInfo())},a.recordUserInfo=function(){return{uid:a.props.user.data.uid,course_id:a.courseID,video_id:a.state.videoList[a.state.activeIndex].id,video_time:parseInt(a.player.currentTime()),plat:5}},a.setupWS=function(){a.ws=new WebSocket(API["process-api"]),a.ws.addEventListener("error",function(){a.ws=null}),a.ws.addEventListener("close",function(){a.reconnect&&(a.ws=null,setTimeout(function(){a.setupWS()},1e3)),clearInterval(a.timer)}),a.ws.addEventListener("message",function(e){4040==JSON.parse(e.data).code&&(a.reconnect=!1)})},a.sendMessage=function(e){a.ws&&1===a.ws.readyState&&a.ws.send(JSON.stringify(e))},a.getShareProgressInfo=function(){b.d.get("".concat(API["base-api"],"/m/aist/share_data/").concat(a.courseID,"/").concat(a.state.videoList[a.state.activeIndex].id)).then(function(e){var t=e.data;200==t.errno&&a.setState({shareData:t.data,isShowShareModal:!0})})},a.countSchedule=function(){var e=a.state,t=e.videoList,n=e.activeIndex,c=e.vCourseId,i=e.course,o=void 0===i?{}:i;0!==Number(o.course_id)&&""!==o.course_id?o.is_aist?a.sendMessage({mtype:"count_schedule",uid:a.props.user.data.uid,token:a.token,platform:5}):a.sendMessage({mtype:"c_count_schedule",uid:a.props.user.data.uid,token:a.token,platform:5,video_id:t[n].id,course_id:a.courseID,v_course_id:c}):console.log("\u514d\u8d39\u8bfe\u7a0b \u62e6\u622a")},a.sendWatchTime=function(e,t){var n=a.state,c=n.videoList,i=n.activeIndex,o=n.vCourseId,s=n.course,r=void 0===s?{}:s;if(0!==Number(r.course_id)&&""!==r.course_id){if(0!==Number(e)){var d="c_watch_time";r.is_aist&&(d="watch_time"),a.sendMessage({mtype:d,rate:t,time:e,video_id:c[i].id,course_id:a.courseID,v_course_id:o,uid:a.props.user.data.uid,token:a.token,platform:0})}}else console.log("\u514d\u8d39\u8bfe\u7a0b \u62e6\u622a")},a.setupTimer=function(){a.count=0,a.watchSec=0,clearInterval(a.timer),a.timer=setInterval(function(){a.player&&a.player.player()&&(5===a.count?(a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.count=a.watchSec=0):(!a.player.paused()&&a.watchSec++,a.count++))},1e3)},a.initializePlayer=function(){window.HELP_IMPROVE_VIDEOJS=!1,a.player=Object(C.a)(a.video,{controls:!0,preload:"auto",bigPlayButton:!1,textTrackDisplay:!1,posterImage:!1,errorDisplay:!1,playbackRates:["0.75","1","1.5","2"],controlBar:{pictureInPictureToggle:!1}}),a.player.addChild("CustomPlayButtonCover"),a.player.on("ready",function(){a.recordSocket.emit("load",a.recordUserInfo())}),a.player.on("ratechange",function(){a.currentPlaybackRate=a.player.playbackRate(),a.sendWatchTime(a.watchSec,a.previousPlaybackRate),a.count=a.watchSec=0,a.previousPlaybackRate=a.currentPlaybackRate}),a.player.on("ended",function(){a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.countSchedule(),a.getShareProgressInfo(),clearInterval(a.timer)}),a.player.on("seeked",function(){a.sendRecord()})},a.sendLastRecord=function(){b.d.post("".concat(API.home,"/m/course/record_last_video"),{v_course_id:a.state.course.v_course_id,video_id:a.state.videoList[a.state.activeIndex].id})},a.selectVideo=function(e){e!==a.state.activeIndex&&(a.countSchedule(),a.setState({activeIndex:e},function(){a.hasAuth(a.state.activeIndex)?(a.setPlayerSrc(a.state.videoList[e].play_url),a.sendLastRecord(),a.playVideo()):a.getCoursePrice()}))},a.getLastVideoIndex=function(e){return a.state.videoList.findIndex(function(t){return t.id==e})},a.getVideoList=function(){var e="";e=Object(b.c)("video_id")?"".concat(API.home,"/m/course/play/").concat(a.courseID+"?video_id="+Object(b.c)("video_id")):"".concat(API.home,"/m/course/play/").concat(a.courseID),b.d.get(e).then(function(e){var t=e.data,n=t.data,c=void 0===n?{}:n;200===t.code?a.setState(function(e){return{videoList:c.lessons,currentVideoSrc:c.lessons[e.activeIndex].play_url,course:c.course,courseId:c.course.course_id,vCourseId:c.course.v_course_id,title:c.course.course_title,isLoading:!1}},a.playSetup):i.a.info(c.msg)})},a.playSetup=function(){var e=a.state.course,t=void 0===e?{}:e;0===Number(t.course_id)||""===t.course_id?console.log("\u514d\u8d39\u8bfe\u7a0b \u62e6\u622a"):(a.setupWS(),a.setupTimer(),a.countSchedule());var n=a.getLastVideoIndex(t.last_video_id);n=n>=0?n:0,a.setState({activeIndex:n},function(){a.lessonAvailable(n)?a.hasAuth(n)?Promise.resolve().then(function(){a.initializePlayer(),a.playWithAuth()}):a.getCoursePrice():H("\u6682\u65e0\u89c6\u9891","",[{text:"OK",onPress:function(){a.props.history.push("/")}}])})},a.setPlayerSrc=function(e){a.player||a.initializePlayer(),a.player.src({src:e,type:"application/x-mpegURL"})},a.playVideo=function(){a.player.play()},a.lessonAvailable=function(e){return 0!==a.state.videoList[e].video_size},a.getCoursePrice=function(){var e=a.state.course,t=void 0===e?{}:e;b.d.get("".concat(API.home,"/sys/course/price/").concat(t.course_id)).then(function(e){var t=e.data;200===t.code&&a.setState({salePrice:t.data.sale_price})})},a.playWithAuth=function(){var e=a.state,t=e.videoList,n=e.activeIndex;a.hasAuth(n)&&a.setPlayerSrc(t[n].play_url)},a.hasAuth=function(e){return a.state.videoList[e].video_auth?(a.setState({isAuth:!0}),!0):(a.setState({isAuth:!1}),!1)},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){if("https:"!==window.location.protocol)if(this.courseID=Object(b.c)("id"),this.courseID){this.setState({courseId:this.courseID});var e=this.props,t=(e.location,e.location.state),a=void 0===t?{}:t;a.oid&&this.check(a.oid),(1===Object(b.c)("is_class")||Object(b.c)("weixinpay"))&&this.payCallback(),b.b.isWeixin&&this.isweixinPay(),this.token=B.a.get("token"),this.getVideoList(),this.getDatumCatalog(),this.setupRecord()}else this.props.history.replace("/");else window.location.replace("http"+window.location.href.slice(5))}},{key:"componentWillUnmount",value:function(){this.player&&this.player.dispose(),clearInterval(this.timer),this.ws&&this.ws.close(),this.ws=null,clearInterval(this.recordTimer),this.recordSocket&&this.recordSocket.close(),this.recordSocket=null}},{key:"getDatumCatalog",value:function(){var e=this;b.d.get("".concat(API.home,"/m/course/data/").concat(this.courseID)).then(function(t){var a=t.data;200===a.code?e.setState({datum:a.data}):i.a.info(a.msg)})}},{key:"render",value:function(){var e=this,t=this.props,a=t.match,n=t.location,c=t.history,i=this.state,o=i.videoList,s=i.activeIndex,r=i.isAuth,d=i.salePrice,l=i.course,u=i.singleBox,p=i.singleType,m="";return n.state&&n.state.to&&"detail"===n.state.to&&(m="/detail?id=".concat(l.course_id)),f.a.createElement("div",{className:"play"},f.a.createElement(v.a,{title:this.state.title,arrow:!0,toHref:function(){m?c.push(m,{to:"classify"}):c.go(-1)}}),f.a.createElement(T.f,{isLoading:this.state.isLoading},f.a.createElement("div",{className:"video"},f.a.createElement("video",{className:"video-js",ref:function(t){return e.video=t}},f.a.createElement("source",{src:"/",type:"application/x-mpegURL"})),!r&&!!o[s].is_class&&f.a.createElement("div",{className:"purchase-box"},f.a.createElement("div",{className:"hint"},"\u60a8\u5c1a\u672a\u8d2d\u4e70\u8be5\u8bfe\u65f6\uff0c\u8bf7\u8d2d\u4e70\u540e\u5b66\u4e60\u3002"),f.a.createElement("div",{className:"btns"},f.a.createElement("button",{type:"button",onClick:this.tobuy,className:"purchase-class"},"\xa5",d," \u8d2d\u4e70\u8bfe\u7a0b"),f.a.createElement("button",{type:"button",onClick:this.toSingleset.bind(this,o[s]),className:"purchase-episode"},"\xa5",o.length&&o[s].class_price," \u8d2d\u4e70\u5355\u96c6"))),!r&&!!l.is_aist&&f.a.createElement("div",{className:"is-aist-box"},f.a.createElement("i",{className:"iconfont iconiconfront-21"}),f.a.createElement("p",{className:"time"},o[s].aist_start_time),f.a.createElement("p",{className:"time"},"\u8bf7\u8010\u5fc3\u7b49\u5f85..."))),f.a.createElement("div",{className:"tab"},f.a.createElement("div",null,f.a.createElement(y.c,{to:{pathname:"".concat(a.url,"/video"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u89c6\u9891")),f.a.createElement("div",null,f.a.createElement(y.c,{to:{pathname:"".concat(a.url,"/datum"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u8d44\u6599"))),u&&f.a.createElement(D.a,{courseId:l.course_id,singleBox:this.state.singleBox,boxHide:this.boxHide,data:this.state.singMess,singleType:this.state.singleType,vcourseId:l.v_course_id,videoId:this.state.singMess.video_id,check:this.check,title:this.state.singMess.course_tile}),1!==p&&f.a.createElement(M.a,{courseId:l.course_id,boxHide:this.boxHide,data:this.state.singMess,singleType:p,vcourseId:l.v_course_id,videoId:this.state.singMess.video_id,nowPrice:this.state.nowPrice,laterPrice:this.state.laterPrice})),f.a.createElement(g.d,null,f.a.createElement(g.a,{exact:!0,from:"/play",to:{pathname:"/play/video",search:n.search}}),f.a.createElement(g.b,{path:"".concat(a.path,"/video"),render:function(t){return f.a.createElement(P,Object.assign({activeIndex:e.state.activeIndex,selectVideo:e.selectVideo,videoCatalog:o},t))}}),f.a.createElement(g.b,{path:"".concat(a.path,"/datum"),render:function(t){return f.a.createElement(j,Object.assign({},t,{datum:e.state.datum}))}})),f.a.createElement(g.b,{render:function(t){return e.state.vCourseId?f.a.createElement(w,Object.assign({},t,{vCourseId:e.state.vCourseId})):null}}),f.a.createElement(U,{isShow:this.state.isShowShareModal,closeShareModal:function(){return e.setState({isShowShareModal:!1})},data:this.state.shareData}))}}]),t}(h.Component);t.default=Object(_.b)(function(e){return{user:e.user}},null)(F)},617:function(e,t,a){},649:function(e,t,a){"use strict";var n=a(0),c=a.n(n);a(650);t.a=function(e){return c.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id)},c.a.createElement("div",{className:"content"},c.a.createElement("div",{className:"cover"},e.status,c.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},650:function(e,t,a){},661:function(e,t,a){"use strict";a(45);var n=a(14),c=a.n(n),i=a(8),o=a(9),s=a(10),r=a(7),d=a(153),l=a(11),u=a(0),p=a.n(u),m=(a(617),a(3)),h=a(49),f=a(24),v=a(22),y=a(157),g=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){var e=a.props.courseId,t=a.props.data.video_id||a.props.data.id;m.d.get("".concat(API.home,"/sys/createClassOrder/").concat(t)).then(function(t){200===t.data.code?(a.setState({orderId:t.data.data.order_id}),"1"===a.state.payType?a.alipayPay(t.data.data.order_id,e):a.weixinPay(t.data.data.order_id)):c.a.info(t.data.msg,2)})},a.weixinPay=function(e){m.b.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":m.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():c.a.info(t.data.msg,2)})},a.alipayPay=function(e,t){m.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):c.a.info(e.data.msg,2)})},a.isweixinPay=function(){var e=Object(d.a)(a),t=Object(m.c)("code");if(t){if(!Object(m.c)("oid"))return;m.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(m.c)("oid"),"/code/").concat(t)).then(function(t){if(0===t.data.errno){var a=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg?(c.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){var t=this;m.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(m.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,m.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(m.c)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):c.a.info(e.data.data.msg,2)}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else c.a.info(t.data.msg,2)})}},a.payCallback=function(){var e=Object(d.a)(a);Object(m.c)("oid")&&(e.intervalPayStatus=setInterval(function(){var t=this;m.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(m.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,m.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(m.c)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):c.a.info(e.data.data.msg,2)}))})},1e3))},a.toBuyAll=function(){},a.zerobuyReceive=function(){c.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(m.c)("id")};m.d.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):c.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){m.d.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):c.a.info(e.data.msg,2)})},a.getTime=function(e){m.d.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):c.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0",showSingleBox:!1},a}return Object(l.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.showSingleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(y.differenceInSeconds)(new Date(t),a)%60,c=Object(y.differenceInMinutes)(new Date(t),a)%60,i=Object(y.differenceInHours)(new Date(t),a)%24;e.setState({hour:i,min:c,sec:n})},1e3)}return 1===this.props.singleType&&p.a.createElement("div",null,p.a.createElement("div",{className:"popup-box"},p.a.createElement("div",{className:"content singleset-payment"},p.a.createElement("div",{className:"price-box"},p.a.createElement("span",null,"\u5b9e\u4ed8\u6b3e\uff1a"),p.a.createElement("p",null,this.props.data.class_price,"\u5143")),p.a.createElement("div",{className:"course-info"},p.a.createElement("p",{className:"text-overflow-1"},p.a.createElement("span",null,"\u8bfe\u7a0b\uff1a"),this.props.title),p.a.createElement("p",{className:"text-overflow-1"},p.a.createElement("span",null,"\u8bfe\u65f6\uff1a"),this.props.data.name)),p.a.createElement("div",{className:"payment-type"},p.a.createElement("label",null,"\u652f\u4ed8\u65b9\u5f0f\uff1a"),!m.b.isWeixin&&p.a.createElement("p",{onClick:this.check.bind(this,"1")},p.a.createElement("i",{className:"iconfont iconalipay"}),p.a.createElement("span",null,"\u652f\u4ed8\u5b9d"),p.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("1"===this.state.payType?"redioed":"")})),p.a.createElement("p",{onClick:this.check.bind(this,"0")},p.a.createElement("i",{className:"iconfont iconweixinzhifu buy"}),p.a.createElement("span",null,"\u5fae\u4fe1\u652f\u4ed8"),p.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("0"===this.state.payType?"redioed":"")}))),p.a.createElement("div",{className:"btn btn-18B4ED",onClick:this.toBuy},"\u786e\u8ba4\u8d2d\u4e70")),p.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component);t.a=Object(f.d)(Object(v.b)(function(e){return{user:e.user}},null),h.g)(g)},662:function(e,t,a){"use strict";a(45);var n=a(14),c=a.n(n),i=a(8),o=a(9),s=a(10),r=a(7),d=a(11),l=a(0),u=a.n(l),p=(a(617),a(3)),m=a(49),h=a(24),f=a(22),v=a(157),y=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){var e=a.props.data.video_id||a.props.data.id;p.d.get("".concat(API.home,"/sys/createClassOrder/").concat(e)).then(function(e){200===e.data.code?(a.setState({orderId:e.data.data.order_id}),"1"===a.state.payType?a.alipayPay(e.data.data.order_id):a.weixinPay(e.data.data.order_id)):c.a.info(e.data.msg,2)})},a.weixinPay=function(e){p.b.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":p.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():c.a.info(t.data.msg,2)})},a.alipayPay=function(e){var t=Object(p.c)("id");p.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):c.a.info(e.data.msg,2)})},a.toBuyAll=function(e){if(1===Number(a.props.isPdd))a.props.history.push("/order?id=".concat(a.props.courseId),{group:1});else{var t=JSON.stringify([Number(e)]);p.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/").concat(t)).then(function(e){0===e.data.errno?a.props.history.push("/order?id="+e.data.data[0],{simple:1}):c.a.info(e.data.msg,2)})}},a.zerobuyReceive=function(){c.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(p.c)("id")};p.d.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):c.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){p.d.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):c.a.info(e.data.msg,2)})},a.getTime=function(e){p.d.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):c.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.toLearn=function(e,t){a.props.boxHide(!1),a.props.history.push("/play/video?id=".concat(e,"&video_id=").concat(t))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0"},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.singleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(v.differenceInSeconds)(new Date(t),a)%60,c=Object(v.differenceInMinutes)(new Date(t),a)%60,i=Object(v.differenceInHours)(new Date(t),a)%24;e.setState({hour:i,min:c,sec:n})},1e3)}var n=this.props.singleType,c=this.props.data.video_id||this.props.data.id;return u.a.createElement("div",{className:"popup-box"},2===n&&u.a.createElement("div",{className:"content payment-success"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 3\u5929\u5185\u8d2d\u4e70\u5168\u96c6\uff0c\u53ef\u76f4\u63a5\u62b5\u6263\u8be5\u96c6\u8d39\u7528\uff0c",this.props.nowPrice,"\u5143\u8d2d\u4e70\u3002"),u.a.createElement("div",{className:"dec"},"\xb7 \u8d85\u8fc73\u5929\uff0c\u6309\u7167\u672a\u8d2d\u96c6\u6570/\u5168\u90e8\u96c6\u6570\u7b49\u6bd4\u4f8b\u8ba1\u8d39\uff0c",this.props.laterPrice,"\u5143\u8d2d\u4e70\u5168\u96c6\u3002"),u.a.createElement("span",{onClick:function(){return e.toLearn(e.props.vcourseId,c)},className:"btn btn-18B4ED"},"\u5f00\u59cb\u5b66\u4e60"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:function(){e.toBuyAll(e.props.courseId)}},"\uffe5",this.props.nowPrice,"\u8d2d\u4e70\u5168\u96c6")),3===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u62fc\u56e2\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerogroupBuy},"0\u5143\u53c2\u56e2")),4===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerobuyReceive},"0\u5143\u8d2d")),6===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("span",{onClick:function(){return e.toLearn(e.props.vcourseId,c)},className:"btn btn-18B4ED"},"\u53bb\u5b66\u4e60")),7===n&&u.a.createElement("div",{className:"content group"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u53c2\u56e2\u6210\u529f")),u.a.createElement("div",{className:"group-img"},u.a.createElement("img",{src:this.props.user.data.avatar,alt:""}),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""}),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""})),u.a.createElement("div",{className:"btn-l btn-FF4000",onClick:this.toGroup},"\u5269\u4f59",String(this.state.hour).padStart(2,0),"\uff1a",String(this.state.min).padStart(2,0),"\uff1a",String(this.state.sec).padStart(2,0),"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2")),u.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"}))}}]),t}(l.Component);t.a=Object(h.d)(Object(f.b)(function(e){return{user:e.user}},null),m.g)(y)},794:function(e,t,a){},795:function(e,t,a){},796:function(e,t,a){},800:function(e,t,a){},802:function(e,t){},870:function(e,t){}}]);
//# sourceMappingURL=video.877ca946.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.
...@@ -140,14 +140,19 @@ class RedPacket extends PureComponent { ...@@ -140,14 +140,19 @@ class RedPacket extends PureComponent {
// receive_type 领取类型 1自己 2别人 // receive_type 领取类型 1自己 2别人
if(data.receive_type === 1) { if(data.receive_type === 1) {
txt = data.red_packet_type === 1? `今日已领取${data.amount}元现金!`: `今日已领取${data.amount}元代金券碎片!`;
desc = '越多好友领取,你所得越多!'; desc = '越多好友领取,你所得越多!';
} }
if(data.receive_type === 2) { if(data.receive_type === 2) {
txt = data.red_packet_type === 1? `您已经领过该红包 ${data.amount}元现金!`: `您已经领过该红包 ${data.amount}元代金券碎片!`;
desc = '每天只能帮好友领取一次哦~'; desc = '每天只能帮好友领取一次哦~';
} }
// is_overdue 红包是否过期 0-否 1-是
if(data.is_overdue) {
txt = data.red_packet_type === 1? `您已经领过该红包 ${data.amount}元现金!`: `您已经领过该红包 ${data.amount}元代金券碎片!`;
}else {
txt = data.red_packet_type === 1? `今日已领取${data.amount}元现金!`: `今日已领取${data.amount}元代金券碎片!`;
}
// receive_status 领取状态 1-已领取 2-已领取未绑定 3-已失效 // receive_status 领取状态 1-已领取 2-已领取未绑定 3-已失效
if(data.receive_status === 1) { if(data.receive_status === 1) {
this.setState({ this.setState({
......
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