Commit 11037756 by zhanghaozhe

福气排行榜popup

parent 06f736aa
......@@ -59,8 +59,8 @@
"blessing-preheat.js": "/mrstatic/js/blessing-preheat.d559d2f7.chunk.js",
"blessing-preheat.js.map": "/mrstatic/js/blessing-preheat.d559d2f7.chunk.js.map",
"blessing-rank.css": "/mrstatic/css/blessing-rank.e60367d5.chunk.css",
"blessing-rank.js": "/mrstatic/js/blessing-rank.1504f90a.chunk.js",
"blessing-rank.js.map": "/mrstatic/js/blessing-rank.1504f90a.chunk.js.map",
"blessing-rank.js": "/mrstatic/js/blessing-rank.f693c517.chunk.js",
"blessing-rank.js.map": "/mrstatic/js/blessing-rank.f693c517.chunk.js.map",
"coupons.css": "/mrstatic/css/coupons.ff6280ad.chunk.css",
"coupons.js": "/mrstatic/js/coupons.209341b7.chunk.js",
"coupons.js.map": "/mrstatic/js/coupons.209341b7.chunk.js.map",
......@@ -85,8 +85,8 @@
"purchased.css": "/mrstatic/css/purchased.dd7556e0.chunk.css",
"purchased.js": "/mrstatic/js/purchased.c50976fa.chunk.js",
"purchased.js.map": "/mrstatic/js/purchased.c50976fa.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.942ea373.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.942ea373.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.72c55328.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.72c55328.js.map",
"search.css": "/mrstatic/css/search.fab97849.chunk.css",
"search.js": "/mrstatic/js/search.a5aa0699.chunk.js",
"search.js.map": "/mrstatic/js/search.a5aa0699.chunk.js.map",
......@@ -166,6 +166,6 @@
"mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.e0655d4d.woff",
"mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png",
"mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png",
"precache-manifest.de23eaafbb7a9b0ba39068f3a4fcd18d.js": "/precache-manifest.de23eaafbb7a9b0ba39068f3a4fcd18d.js",
"precache-manifest.6e48b53d7fd084cb7da3f5f1a9babfd6.js": "/precache-manifest.6e48b53d7fd084cb7da3f5f1a9babfd6.js",
"service-worker.js": "/service-worker.js"
}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{1170:function(e,a,t){},1171:function(e,a,t){},1230:function(e,a,t){"use strict";t.r(a);var n,s=t(5),r=t(7),c=t(6),l=t(8),d=t(9),m=t(0),i=t.n(m),o=t(22),u=t(3),_=t(26),f=t(20),b=(t(39),t(12)),h=t.n(b),p=t(40),E=t(19),k=(t(1170),function(e){function a(e){var t;return Object(s.a)(this,a),(t=Object(c.a)(this,Object(l.a)(a).call(this,e))).fetchUserAddress=function(){var e=t.state.addressInfo;u.d.get("".concat(API.home,"/sys/user_address_info")).then(function(a){var n=a.data,s=n.code,r=n.data;n.msg;200===s&&t.setState({addressInfo:Object.assign({},e,{name:r.name,phone:r.phone,address:r.address}),isLoading:!0})})},t.handleToSubmit=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.props.handleToHide;u.d.post("".concat(API.home,"/sys/collect_info"),e).then(function(e){var t=e.data,n=t.code,s=t.msg;200===n?a():h.a.info(s,2,null,!1)})},t.state={isLoading:!1,addressInfo:{name:"",phone:"",address:""}},t}return Object(d.a)(a,e),Object(r.a)(a,[{key:"componentDidMount",value:function(){this.fetchUserAddress()}},{key:"render",value:function(){var e=this,a=this.state,t=a.isLoading,n=a.addressInfo;return i.a.createElement(i.a.Fragment,null,t&&i.a.createElement(E.d,{initialValues:Object(f.a)({},n),validate:function(e){var a=e.name,t=e.phone,n=e.address,s={};return a||(s.name="\u8bf7\u8f93\u5165\u6536\u4ef6\u4eba"),/^1[3-9]\d{9}$/.test(t)||(s.phone="\u8bf7\u586b\u5199\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7"),n||(s.address="\u8bf7\u8f93\u5165\u6536\u8d27\u5730\u5740"),s},onSubmit:function(a){e.handleToSubmit(a)},render:function(e){var a=e.errors;return i.a.createElement(E.c,{className:"address-form"},i.a.createElement("p",{className:"address-form__desc"},"\u8bf7\u53ca\u65f6\u586b\u5199\u6536\u8d27\u4fe1\u606f\uff0c\u83b7\u5f97\u5b9e\u7269\u5956\u54c1\u540e\u5c06\u7b2c\u4e00\u65f6\u95f4\u4e3a\u60a8\u90ae\u5bc4"),i.a.createElement(E.b,{name:"name",render:function(e){var t=e.field;return i.a.createElement("div",{className:"address-form__item"},i.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u4ef6\u4eba"})),a.name&&i.a.createElement("p",{className:"address-form__tip"},a.name))}}),i.a.createElement(E.b,{name:"phone",render:function(e){var t=e.field;return i.a.createElement("div",{className:"address-form__item"},i.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u8054\u7cfb\u65b9\u5f0f"})),a.phone&&i.a.createElement("p",{className:"address-form__tip"},a.phone))}}),i.a.createElement(E.b,{name:"address",render:function(e){var t=e.field;return i.a.createElement("div",{className:"address-form__item"},i.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u8d27\u5730\u5740"})),a.address&&i.a.createElement("p",{className:"address-form__tip"},a.address))}}),i.a.createElement("button",{className:"address-form__submit","data-status":Object(p.isEmpty)(a)?"do":"",type:"submit"},"\u63d0\u4ea4"))}}))}}]),a}(m.Component)),v=(t(1171),Object(o.b)(function(e){return{uid:e.user.data.uid||""}})(n=function(e){function a(e){var t;return Object(s.a)(this,a),(t=Object(c.a)(this,Object(l.a)(a).call(this,e))).fetchRankData=function(){u.d.get("".concat(API.home,"/sys/blessing/ranking")).then(function(e){var a=e.data,n=a.code,s=a.data;200===n&&t.setState({rankList:s})})},t.handleToSwitch=function(e){var a=t.props,n=a.history,s=a.uid;e&&!s?n.push("/passport"):t.setState({isAddress:e})},t.formatString=function(e,a){return e.length>a?"".concat(e.substr(0,a),"..."):e},t.state={isAddress:!1,rankList:[],rules:["1\u3001\u6392\u884c\u699c\u540d\u6b21\u4ee52019\u5e7411\u670813\u65e524\u70b9\u4e03\u6708\u5728\u7ebf\u516c\u5e03\u7684\u6392\u884c\u699c\u4e3a\u51c6\uff0c\u699c\u5355\u786e\u8ba4\u540e\uff0c\u5f97\u5956\u5c0f\u4f19\u4f34\u8bf7\u53ca\u65f6\u586b\u5199\u90ae\u5bc4\u4fe1\u606f\uff0c7\u4e2a\u81ea\u7136\u65e5\u5185\u4e0d\u586b\u5199\uff0c\u89c6\u4e3a\u4e3b\u52a8\u653e\u5f03\u5956\u54c1\uff1b","2\u3001\u798f\u6c14\u503c\u53ea\u5728\u672c\u6d3b\u52a8\u671f\u95f4\u4eab\u53d7\u62bd\u5956\u3001\u63d0\u9ad8\u4e2d\u5956\u6982\u7387\u3001\u8d2d\u8bfe\u4f18\u5316\u3001\u589e\u52a0AI\u6c34\u5e73\u6d4b\u8bd5\u7b49\u798f\u5229\uff1b","3\u3001\u5982\u6709\u53d1\u73b0\u6076\u610f\u5237\u699c\uff0c\u5237\u865a\u5047\u6570\u636e\u7b49\u884c\u4e3a\u5c06\u53d6\u6d88\u5176\u9886\u5956\u8d44\u683c\uff1b","4\u3001\u672c\u6d3b\u52a8\u89e3\u91ca\u6743\u5f52\u5317\u4eac\u4e03\u6708\u5728\u7ebf\u79d1\u6280\u6709\u9650\u516c\u53f8\u6240\u6709\u3002"]},t}return Object(d.a)(a,e),Object(r.a)(a,[{key:"componentDidMount",value:function(){this.fetchRankData()}},{key:"render",value:function(){var e=this,a=this.state,t=a.isAddress,n=a.rankList,s=a.rules;return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"rank__banner"}),i.a.createElement("div",{className:"rank__body"},i.a.createElement("button",{className:"rank__address",onClick:function(){return e.handleToSwitch(!0)}},"\u586b\u5199\u6536\u8d27\u5730\u5740>"),i.a.createElement("div",{className:"rank__table"},i.a.createElement("dl",{className:"rank__table-header"},i.a.createElement("dd",{className:"rank__table-column"},"\u6392\u540d"),i.a.createElement("dd",{className:"rank__table-column"},"\u7528\u6237"),i.a.createElement("dd",{className:"rank__table-column"},"\u6210\u7ee9"),i.a.createElement("dd",{className:"rank__table-column"},"\u5956\u54c1")),n.map(function(a,t){return i.a.createElement("dl",{className:"rank__table-body",key:t},i.a.createElement("dd",{className:"rank__table-column"},t<3?i.a.createElement("i",{className:"rank__table-num","data-num":t+1}):t+1),i.a.createElement("dd",{className:"rank__table-column"},i.a.createElement("div",{className:"rank__table-user"},i.a.createElement("i",{className:"rank__table-portrait",style:{backgroundImage:"url(".concat(a.head_image,")")}}),i.a.createElement("span",null,e.formatString(a.user_name,5)))),i.a.createElement("dd",{className:"rank__table-column"},a.blessing_value),i.a.createElement("dd",{className:"rank__table-column"},e.formatString(a.prize_name,7)))})),i.a.createElement("div",{className:"rank__rule"},i.a.createElement("h2",{className:"rank__rule-title"},"\u6d3b\u52a8\u89c4\u5219"),s.map(function(e,a){return i.a.createElement("p",{className:"rank__rule-desc",key:a},e)})),i.a.createElement(_.h,{visible:t,title:"\u6536\u8d27\u4fe1\u606f"},i.a.createElement(k,{handleToHide:function(){return e.handleToSwitch(!1)}}))))}}]),a}(m.Component))||n);a.default=v}}]);
//# sourceMappingURL=blessing-rank.1504f90a.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{1170:function(e,a,t){},1171:function(e,a,t){},1230:function(e,a,t){"use strict";t.r(a);var n,r=t(5),s=t(7),c=t(6),l=t(8),d=t(9),m=t(0),o=t.n(m),i=t(22),u=t(3),_=t(26),f=t(20),b=(t(39),t(12)),h=t.n(b),p=t(40),E=t(19),k=(t(1170),function(e){function a(e){var t;return Object(r.a)(this,a),(t=Object(c.a)(this,Object(l.a)(a).call(this,e))).fetchUserAddress=function(){var e=t.state.addressInfo;u.d.get("".concat(API.home,"/sys/user_address_info")).then(function(a){var n=a.data,r=n.code,s=n.data;n.msg;200===r&&t.setState({addressInfo:Object.assign({},e,{name:s.name,phone:s.phone,address:s.address}),isLoading:!0})})},t.handleToSubmit=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.props.handleToHide;u.d.post("".concat(API.home,"/sys/collect_info"),e).then(function(e){var t=e.data,n=t.code,r=t.msg;200===n?a():h.a.info(r,2,null,!1)})},t.state={isLoading:!1,addressInfo:{name:"",phone:"",address:""}},t}return Object(d.a)(a,e),Object(s.a)(a,[{key:"componentDidMount",value:function(){this.fetchUserAddress()}},{key:"render",value:function(){var e=this,a=this.state,t=a.isLoading,n=a.addressInfo;return o.a.createElement(o.a.Fragment,null,t&&o.a.createElement(E.d,{initialValues:Object(f.a)({},n),validate:function(e){var a=e.name,t=e.phone,n=e.address,r={};return a||(r.name="\u8bf7\u8f93\u5165\u6536\u4ef6\u4eba"),/^1[3-9]\d{9}$/.test(t)||(r.phone="\u8bf7\u586b\u5199\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7"),n||(r.address="\u8bf7\u8f93\u5165\u6536\u8d27\u5730\u5740"),r},onSubmit:function(a){e.handleToSubmit(a)},render:function(e){var a=e.errors;return o.a.createElement(E.c,{className:"address-form"},o.a.createElement("p",{className:"address-form__desc"},"\u8bf7\u53ca\u65f6\u586b\u5199\u6536\u8d27\u4fe1\u606f\uff0c\u83b7\u5f97\u5b9e\u7269\u5956\u54c1\u540e\u5c06\u7b2c\u4e00\u65f6\u95f4\u4e3a\u60a8\u90ae\u5bc4"),o.a.createElement(E.b,{name:"name",render:function(e){var t=e.field;return o.a.createElement("div",{className:"address-form__item"},o.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u4ef6\u4eba"})),a.name&&o.a.createElement("p",{className:"address-form__tip"},a.name))}}),o.a.createElement(E.b,{name:"phone",render:function(e){var t=e.field;return o.a.createElement("div",{className:"address-form__item"},o.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u8054\u7cfb\u65b9\u5f0f"})),a.phone&&o.a.createElement("p",{className:"address-form__tip"},a.phone))}}),o.a.createElement(E.b,{name:"address",render:function(e){var t=e.field;return o.a.createElement("div",{className:"address-form__item"},o.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u8d27\u5730\u5740"})),a.address&&o.a.createElement("p",{className:"address-form__tip"},a.address))}}),o.a.createElement("button",{className:"address-form__submit","data-status":Object(p.isEmpty)(a)?"do":"",type:"submit"},"\u63d0\u4ea4"))}}))}}]),a}(m.Component)),N=(t(1171),Object(i.b)(function(e){return{uid:e.user.data.uid||""}})(n=function(e){function a(e){var t;return Object(r.a)(this,a),(t=Object(c.a)(this,Object(l.a)(a).call(this,e))).fetchRankData=function(){u.d.get("".concat(API.home,"/sys/blessing/ranking")).then(function(e){var a=e.data,n=a.code,r=a.data;200===n&&t.setState({rankList:r})})},t.handleToSwitch=function(e){var a=t.props,n=a.history,r=a.uid;e&&!r?n.push("/passport"):Object(_.h)({title:"\u6536\u8d27\u4fe1\u606f",content:o.a.createElement(k,{handleToHide:function(){return t.handleToSwitch(!1)}})})},t.formatString=function(e,a){return e.length>a?"".concat(e.substr(0,a),"..."):e},t.state={rankList:[],rules:["1\u3001\u6392\u884c\u699c\u540d\u6b21\u4ee52019\u5e7411\u670813\u65e524\u70b9\u4e03\u6708\u5728\u7ebf\u516c\u5e03\u7684\u6392\u884c\u699c\u4e3a\u51c6\uff0c\u699c\u5355\u786e\u8ba4\u540e\uff0c\u5f97\u5956\u5c0f\u4f19\u4f34\u8bf7\u53ca\u65f6\u586b\u5199\u90ae\u5bc4\u4fe1\u606f\uff0c7\u4e2a\u81ea\u7136\u65e5\u5185\u4e0d\u586b\u5199\uff0c\u89c6\u4e3a\u4e3b\u52a8\u653e\u5f03\u5956\u54c1\uff1b","2\u3001\u798f\u6c14\u503c\u53ea\u5728\u672c\u6d3b\u52a8\u671f\u95f4\u4eab\u53d7\u62bd\u5956\u3001\u63d0\u9ad8\u4e2d\u5956\u6982\u7387\u3001\u8d2d\u8bfe\u4f18\u5316\u3001\u589e\u52a0AI\u6c34\u5e73\u6d4b\u8bd5\u7b49\u798f\u5229\uff1b","3\u3001\u5982\u6709\u53d1\u73b0\u6076\u610f\u5237\u699c\uff0c\u5237\u865a\u5047\u6570\u636e\u7b49\u884c\u4e3a\u5c06\u53d6\u6d88\u5176\u9886\u5956\u8d44\u683c\uff1b","4\u3001\u672c\u6d3b\u52a8\u89e3\u91ca\u6743\u5f52\u5317\u4eac\u4e03\u6708\u5728\u7ebf\u79d1\u6280\u6709\u9650\u516c\u53f8\u6240\u6709\u3002"]},t}return Object(d.a)(a,e),Object(s.a)(a,[{key:"componentDidMount",value:function(){this.fetchRankData()}},{key:"render",value:function(){var e=this,a=this.state,t=a.rankList,n=a.rules;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"rank__banner"}),o.a.createElement("div",{className:"rank__body"},o.a.createElement("button",{className:"rank__address",onClick:function(){return e.handleToSwitch(!0)}},"\u586b\u5199\u6536\u8d27\u5730\u5740>"),o.a.createElement("div",{className:"rank__table"},o.a.createElement("dl",{className:"rank__table-header"},o.a.createElement("dd",{className:"rank__table-column"},"\u6392\u540d"),o.a.createElement("dd",{className:"rank__table-column"},"\u7528\u6237"),o.a.createElement("dd",{className:"rank__table-column"},"\u6210\u7ee9"),o.a.createElement("dd",{className:"rank__table-column"},"\u5956\u54c1")),t.map(function(a,t){return o.a.createElement("dl",{className:"rank__table-body",key:t},o.a.createElement("dd",{className:"rank__table-column"},t<3?o.a.createElement("i",{className:"rank__table-num","data-num":t+1}):t+1),o.a.createElement("dd",{className:"rank__table-column"},o.a.createElement("div",{className:"rank__table-user"},o.a.createElement("i",{className:"rank__table-portrait",style:{backgroundImage:"url(".concat(a.head_image,")")}}),o.a.createElement("span",null,e.formatString(a.user_name,5)))),o.a.createElement("dd",{className:"rank__table-column"},a.blessing_value),o.a.createElement("dd",{className:"rank__table-column"},e.formatString(a.prize_name,7)))})),o.a.createElement("div",{className:"rank__rule"},o.a.createElement("h2",{className:"rank__rule-title"},"\u6d3b\u52a8\u89c4\u5219"),n.map(function(e,a){return o.a.createElement("p",{className:"rank__rule-desc",key:a},e)}))))}}]),a}(m.Component))||n);a.default=N}}]);
//# sourceMappingURL=blessing-rank.f693c517.chunk.js.map
\ No newline at end of file
......@@ -16,16 +16,16 @@ self.__precacheManifest = [
"url": "/mrstatic/js/2.d3e2cd60.chunk.js"
},
{
"revision": "6902434f8f18a23319d57d0ac8aaea8c",
"url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png"
"revision": "c79abf5cb7ae8a82009cf68fe44d1078",
"url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png"
},
{
"revision": "849a0949f11302fca697",
"url": "/mrstatic/js/Activity.26d6e431.chunk.js"
},
{
"revision": "c79abf5cb7ae8a82009cf68fe44d1078",
"url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png"
"revision": "6902434f8f18a23319d57d0ac8aaea8c",
"url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png"
},
{
"revision": "dee58536ac8aa1de8e83",
......@@ -84,8 +84,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/MyEdit.4b9a86c3.chunk.js"
},
{
"revision": "7aa984cefad739ea18edb76c541aa1fd",
"url": "/mrstatic/media/iconfont.7aa984ce.eot"
"revision": "258b4b114d3d9be3018cd113b2470a13",
"url": "/mrstatic/media/iconfont.258b4b11.ttf"
},
{
"revision": "ed81495d194496c2a507",
......@@ -96,8 +96,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/Orderinfo.73b4702f.chunk.js"
},
{
"revision": "258b4b114d3d9be3018cd113b2470a13",
"url": "/mrstatic/media/iconfont.258b4b11.ttf"
"revision": "7aa984cefad739ea18edb76c541aa1fd",
"url": "/mrstatic/media/iconfont.7aa984ce.eot"
},
{
"revision": "9f1c40e1ae9fb31312d5",
......@@ -156,8 +156,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/37.37ea025e.chunk.js"
},
{
"revision": "4dc878bc4f2eae6ab97d",
"url": "/mrstatic/js/blessing-rank.1504f90a.chunk.js"
"revision": "83728571a1d30652599d",
"url": "/mrstatic/js/blessing-rank.f693c517.chunk.js"
},
{
"revision": "1b8cf42afd72e33ab350",
......@@ -208,8 +208,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/myorders.66fd0439.chunk.js"
},
{
"revision": "784818a8288607f41d52",
"url": "/mrstatic/js/runtime~main.942ea373.js"
"revision": "97eecbd7927c36da4171",
"url": "/mrstatic/js/runtime~main.72c55328.js"
},
{
"revision": "1b5604b889bd9e9aada7",
......@@ -280,7 +280,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/37.50547718.chunk.css"
},
{
"revision": "4dc878bc4f2eae6ab97d",
"revision": "83728571a1d30652599d",
"url": "/mrstatic/css/blessing-rank.e60367d5.chunk.css"
},
{
......@@ -372,7 +372,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/2.5ed15c7e.chunk.css"
},
{
"revision": "974db26bd16b56b55ec80b3fe1ca225d",
"revision": "f9ebdc432b5ae21aa943d4939a18a514",
"url": "/index.html"
}
];
\ No newline at end of file
......@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts(
"/precache-manifest.de23eaafbb7a9b0ba39068f3a4fcd18d.js"
"/precache-manifest.6e48b53d7fd084cb7da3f5f1a9babfd6.js"
);
workbox.clientsClaim();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment