Commit 5622f6f4 by xuzhenghua

列表页

parent a699733a
......@@ -53,8 +53,8 @@
"purchased.css": "/mrstatic/css/purchased.19e06a3f.chunk.css",
"purchased.js": "/mrstatic/js/purchased.c7d9ef7b.chunk.js",
"purchased.js.map": "/mrstatic/js/purchased.c7d9ef7b.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.ec910897.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.ec910897.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.a5047758.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.a5047758.js.map",
"search.css": "/mrstatic/css/search.5716d9b3.chunk.css",
"search.js": "/mrstatic/js/search.d4867cc0.chunk.js",
"search.js.map": "/mrstatic/js/search.d4867cc0.chunk.js.map",
......@@ -88,8 +88,8 @@
"mrstatic/js/30.1a178c5b.chunk.js": "/mrstatic/js/30.1a178c5b.chunk.js",
"mrstatic/js/30.1a178c5b.chunk.js.map": "/mrstatic/js/30.1a178c5b.chunk.js.map",
"mrstatic/css/31.ced7f2ae.chunk.css": "/mrstatic/css/31.ced7f2ae.chunk.css",
"mrstatic/js/31.f0936902.chunk.js": "/mrstatic/js/31.f0936902.chunk.js",
"mrstatic/js/31.f0936902.chunk.js.map": "/mrstatic/js/31.f0936902.chunk.js.map",
"mrstatic/js/31.246d74e2.chunk.js": "/mrstatic/js/31.246d74e2.chunk.js",
"mrstatic/js/31.246d74e2.chunk.js.map": "/mrstatic/js/31.246d74e2.chunk.js.map",
"index.html": "/index.html",
"mrstatic/css/25.397c920d.chunk.css.map": "/mrstatic/css/25.397c920d.chunk.css.map",
"mrstatic/css/27.c76b300d.chunk.css.map": "/mrstatic/css/27.c76b300d.chunk.css.map",
......@@ -121,6 +121,6 @@
"mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.f983caa7.svg",
"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.7feb9cd89960768ff2b6924e70bea4e5.js": "/precache-manifest.7feb9cd89960768ff2b6924e70bea4e5.js",
"precache-manifest.4fbc36d41fd159d7a3305f5d566b5b86.js": "/precache-manifest.4fbc36d41fd159d7a3305f5d566b5b86.js",
"service-worker.js": "/service-worker.js"
}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{1148:function(e,t,a){},1149:function(e,t,a){},1178:function(e,t,a){"use strict";a.r(t);a(44);var n=a(14),c=a.n(n),r=a(8),o=a(9),s=a(11),l=a(7),i=a(10),u=a(0),m=a.n(u),d=(a(1148),a(30)),f=a(3),p=(a(1149),a(732)),E=a.n(p),v=a(21),h=function(e){function t(e){var a;return Object(r.a)(this,t),(a=Object(s.a)(this,Object(l.a)(t).call(this,e))).state={src:"",codeSrc:""},a}return Object(i.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this;f.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(555324)).then(function(t){if(0==t.data.errno)return e.setState({src:t.data.data.url}),new Promise(function(t){E.a.toDataURL(e.state.src,{},function(t,a){e.setState({codeSrc:a})}),t()});c.a.info(t.data.msg,2)})}},{key:"render",value:function(){return m.a.createElement("div",{className:"followQRcode-box"},m.a.createElement("div",{className:"followQRcode"},m.a.createElement("div",{className:"content"},m.a.createElement("p",{className:"title"},"\u5173\u6ce8\u516c\u4f17\u53f7"),m.a.createElement("p",{className:"desc"},m.a.createElement("span",null,"1"),"\u6709\u4eba\u901a\u8fc7\u60a8\u5206\u4eab\u7684\u94fe\u63a5\u9886\u53d6\u7ea2\u5305\u540e\uff0c\u4f1a\u7b2c\u4e00\u65f6\u95f4\u901a\u8fc7\u5fae\u4fe1\u670d\u52a1\u53f7\u901a\u77e5\u60a8\u3002"),m.a.createElement("p",{className:"desc"},m.a.createElement("span",null,"2"),"\u8bf7\u7528\u4e2a\u4eba\u5fae\u4fe1\u626b\u63cf\uff0c\u5173\u6ce8\u670d\u52a1\u53f7\u540e\u53ef\u63d0\u73b0\u7ea2\u5305\u5230\u5fae\u4fe1\u96f6\u94b1\u3002"),m.a.createElement("img",{src:this.state.codeSrc,alt:""}),m.a.createElement("p",{className:"tip"},"\u957f\u6309\u4e8c\u7ef4\u7801\u4fdd\u5b58\u5230\u76f8\u518c")),m.a.createElement("div",{className:"close"},m.a.createElement("i",{className:"iconfont iconiconfront-2"}))))}}]),t}(u.Component),b=Object(v.b)(function(e){return{user:e.user}})(h),j=function(e){function t(e){var a;return Object(r.a)(this,t),(a=Object(s.a)(this,Object(l.a)(t).call(this,e))).toCourseDetail=function(e){Object(f.c)("from")?Object(f.a)("toCourse",e):a.props.history.push("/detail?id=".concat(e))},a.state={list:[]},a}return Object(i.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this;f.d.get("".concat(API.home,"/sys/red_packet/share_course")).then(function(t){200===t.data.code?e.setState({list:t.data.data}):c.a.info(t.data.msg,2)})}},{key:"render",value:function(){var e=this,t=this.state.list;return m.a.createElement("div",{className:"share-course"},m.a.createElement(d.e,{title:"\u5206\u4eab\u9886\u7ea2\u5305",arrow:!0}),m.a.createElement(b,null),t&&t.length>0?m.a.createElement("div",null,t.map(function(t,a){var n=m.a.createElement("div",{className:"info"},m.a.createElement("p",{className:"title text-overflow-1"},t.course_title),m.a.createElement("p",{className:"contact text-overflow-1"},t.simpledescription),m.a.createElement("button",null,"\u5206\u4eab\u9886\u7ea2\u5305"));return m.a.createElement("div",{key:a,onClick:function(){return e.toCourseDetail(t.course_id)}},m.a.createElement(d.j,{img:t.image_name,info:n}))})):m.a.createElement("div",null,m.a.createElement("p",{className:"not-data"},"\u6682\u65f6\u6ca1\u6709\u53ef\u5206\u4eab\u7684\u8bfe\u7a0b\u54e6\u301c")))}}]),t}(u.Component);t.default=j}}]);
//# sourceMappingURL=31.246d74e2.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/detail/followQRcode/index.js","components/ShareCourse/index.js"],"names":["FollowQRcode","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","state","src","codeSrc","http","get","concat","API","then","res","data","errno","setState","url","Promise","resolve","QRCode","toDataURL","err","toast_default","a","info","msg","react_default","createElement","className","alt","Component","connect","user","ShareCourse","toCourseDetail","id","getParam","SendMessageToApp","history","push","list","_this2","home","code","_this3","common","title","arrow","detail_followQRcode","length","map","item","index","Info","course_title","simpledescription","key","onClick","course_id","img","image_name"],"mappings":"8RAOMA,cAEF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KACDQ,MAAQ,CACTC,IAAK,GACLC,QAAS,IAJET,mFASf,IAAMA,EAAQG,KAGdO,IAAKC,IAAL,GAAAC,OAAYC,IAAI,YAAhB,8BAAAD,OADU,SACqDE,KAAK,SAACC,GACjE,GAAsB,GAAlBA,EAAIC,KAAKC,MAIT,OAHAjB,EAAMkB,SAAS,CACXV,IAAKO,EAAIC,KAAKA,KAAKG,MAEhB,IAAIC,QAAQ,SAAAC,GACfC,IAAOC,UAAUvB,EAAMO,MAAMC,IAAK,GAAI,SAAUgB,EAAKL,GACjDnB,EAAMkB,SAAS,CACXT,QAASU,MAGjBE,MAGJI,EAAAC,EAAMC,KAAKZ,EAAIC,KAAKY,IAAK,sCAMjC,OACIC,EAAAH,EAAAI,cAAA,OAAKC,UAAU,oBACXF,EAAAH,EAAAI,cAAA,OAAKC,UAAU,gBACXF,EAAAH,EAAAI,cAAA,OAAKC,UAAU,WACXF,EAAAH,EAAAI,cAAA,KAAGC,UAAU,SAAb,kCACAF,EAAAH,EAAAI,cAAA,KAAGC,UAAU,QACTF,EAAAH,EAAAI,cAAA,iBADJ,oMAGAD,EAAAH,EAAAI,cAAA,KAAGC,UAAU,QACTF,EAAAH,EAAAI,cAAA,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AH,EAAAI,cAAA,KAAGC,UAAW,yBAA0BuB,EAAKG,cAC7C5B,EAAAH,EAAAI,cAAA,KAAGC,UAAW,2BAA4BuB,EAAKI,mBAC/C7B,EAAAH,EAAAI,cAAA,iDAGR,OACID,EAAAH,EAAAI,cAAA,OAAK6B,IAAKJ,EAAOK,QAAS,kBAAMb,EAAKV,eAAeiB,EAAKO,aACrDhC,EAAAH,EAAAI,cAACkB,EAAA,EAAD,CACIc,IAAKR,EAAKS,WACVpC,KAAM6B,QAQ9B3B,EAAAH,EAAAI,cAAA,WACID,EAAAH,EAAAI,cAAA,KAAGC,UAAU,YAAb,qFA1DFE,aAmEXG","file":"mrstatic/js/31.246d74e2.chunk.js","sourcesContent":["import React, {Component} from 'react';\nimport './index.scss';\nimport {http, getParam} from '@/utils';\nimport QRCode from 'qrcode';\nimport {connect} from \"react-redux\";\nimport {Toast} from 'antd-mobile';\n\nclass FollowQRcode extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n src: '',\n codeSrc: ''\n };\n }\n\n componentDidMount() {\n const _this = this\n // let uid = this.props && this.props.user && this.props.user.data.uid\n let uid = 555324\n http.get(`${API['base-api']}/wx/user_temporary_qrcode/${uid}`).then((res) => {\n if (res.data.errno == 0) {\n _this.setState({\n src: res.data.data.url\n })\n return new Promise(resolve => {\n QRCode.toDataURL(_this.state.src, {}, function (err, url) {\n _this.setState({\n codeSrc: url\n })\n })\n resolve()\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n render() {\n return (\n <div className='followQRcode-box'>\n <div className='followQRcode'>\n <div className=\"content\">\n <p className=\"title\">关注公众号</p>\n <p className='desc'>\n <span>1</span>有人通过您分享的链接领取红包后,会第一时间通过微信服务号通知您。\n </p>\n <p className='desc'>\n <span>2</span>请用个人微信扫描,关注服务号后可提现红包到微信零钱。\n </p>\n <img src={this.state.codeSrc} alt=\"\"/>\n <p className=\"tip\">长按二维码保存到相册</p>\n </div>\n <div className='close'>\n <i className='iconfont iconiconfront-2'></i>\n </div>\n </div>\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({\n user: state.user\n })\n)(FollowQRcode)\n\n","import React, {Component} from 'react';\nimport './index.scss';\nimport {HeaderBar, VList} from '@/common';\nimport {http, getParam, SendMessageToApp} from '@/utils';\nimport {Toast} from 'antd-mobile';\nimport {Link} from \"react-router-dom\";\n\nimport FollowQRcode from \"../detail/followQRcode\";\n\nclass ShareCourse extends Component {\n\n constructor(props) {\n super(props);\n this.state = {list: []};\n }\n\n componentDidMount() {\n http.get(`${API.home}/sys/red_packet/share_course`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n list: res.data.data\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n toCourseDetail = (id) => {\n if (!getParam('from')) {\n const {history} = this.props;\n history.push(`/detail?id=${id}`)\n } else {\n SendMessageToApp(\"toCourse\", id)\n }\n }\n\n render() {\n const {list} = this.state;\n return (\n <div className={'share-course'}>\n <HeaderBar title='分享领红包' arrow={true}/>\n <FollowQRcode/>\n {\n list && list.length > 0 ? <div>\n {\n list.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className={'title text-overflow-1'}>{item.course_title}</p>\n <p className={'contact text-overflow-1'}>{item.simpledescription}</p>\n <button>分享领红包</button>\n </div>\n )\n return (\n <div key={index} onClick={() => this.toCourseDetail(item.course_id)}>\n <VList\n img={item.image_name}\n info={Info}\n />\n </div>\n\n )\n })\n }\n </div> :\n <div>\n <p className='not-data'>暂时没有可分享的课程哦〜</p>\n </div>\n }\n\n </div>\n )\n }\n}\n\nexport default ShareCourse;\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{1148:function(e,t,a){},1149:function(e,t,a){},1178:function(e,t,a){"use strict";a.r(t);a(44);var n=a(14),c=a.n(n),r=a(8),s=a(9),o=a(11),l=a(7),i=a(10),u=a(0),m=a.n(u),d=(a(1148),a(30)),p=a(3),f=(a(1149),a(732)),E=a.n(f),h=a(21),v=function(e){function t(e){var a;return Object(r.a)(this,t),(a=Object(o.a)(this,Object(l.a)(t).call(this,e))).state={src:"",codeSrc:""},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props&&this.props.user&&this.props.user.data.uid;p.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(t)).then(function(t){if(0==t.data.errno)return e.setState({src:t.data.data.url}),new Promise(function(t){E.a.toDataURL(e.state.src,{},function(t,a){e.setState({codeSrc:a})}),t()});c.a.info(t.data.msg,2)})}},{key:"render",value:function(){return m.a.createElement("div",{className:"followQRcode-box"},m.a.createElement("div",{className:"followQRcode"},m.a.createElement("div",{className:"content"},m.a.createElement("p",{className:"title"},"\u5173\u6ce8\u516c\u4f17\u53f7"),m.a.createElement("p",{className:"desc"},m.a.createElement("span",null,"1"),"\u6709\u4eba\u901a\u8fc7\u60a8\u5206\u4eab\u7684\u94fe\u63a5\u9886\u53d6\u7ea2\u5305\u540e\uff0c\u4f1a\u7b2c\u4e00\u65f6\u95f4\u901a\u8fc7\u5fae\u4fe1\u670d\u52a1\u53f7\u901a\u77e5\u60a8\u3002"),m.a.createElement("p",{className:"desc"},m.a.createElement("span",null,"2"),"\u8bf7\u7528\u4e2a\u4eba\u5fae\u4fe1\u626b\u63cf\uff0c\u5173\u6ce8\u670d\u52a1\u53f7\u540e\u53ef\u63d0\u73b0\u7ea2\u5305\u5230\u5fae\u4fe1\u96f6\u94b1\u3002"),m.a.createElement("img",{src:this.state.codeSrc,alt:""}),m.a.createElement("p",{className:"tip"},"\u957f\u6309\u4e8c\u7ef4\u7801\u4fdd\u5b58\u5230\u76f8\u518c")),m.a.createElement("div",{className:"close"},m.a.createElement("i",{className:"iconfont iconiconfront-2"}))))}}]),t}(u.Component),b=Object(h.b)(function(e){return{user:e.user}})(v),j=function(e){function t(e){var a;return Object(r.a)(this,t),(a=Object(o.a)(this,Object(l.a)(t).call(this,e))).toCourseDetail=function(e){Object(p.c)("from")?Object(p.a)("toCourse",e):a.props.history.push("/detail?id=".concat(e))},a.state={list:[]},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;p.d.get("".concat(API.home,"/sys/red_packet/share_course")).then(function(t){200===t.data.code?e.setState({list:t.data.data}):c.a.info(t.data.msg,2)})}},{key:"render",value:function(){var e=this,t=this.state.list;return m.a.createElement("div",{className:"share-course"},m.a.createElement(d.e,{title:"\u5206\u4eab\u9886\u7ea2\u5305",arrow:!0}),m.a.createElement(b,null),t&&t.length>0?m.a.createElement("div",null,t.map(function(t,a){var n=m.a.createElement("div",{className:"info"},m.a.createElement("p",{className:"title text-overflow-1"},t.course_title),m.a.createElement("p",{className:"contact text-overflow-1"},t.simpledescription),m.a.createElement("button",null,"\u5206\u4eab\u9886\u7ea2\u5305"));return m.a.createElement("div",{key:a,onClick:function(){return e.toCourseDetail(t.course_id)}},m.a.createElement(d.j,{img:t.image_name,info:n}))})):m.a.createElement("div",null,m.a.createElement("p",{className:"not-data"},"\u6682\u65f6\u6ca1\u6709\u53ef\u5206\u4eab\u7684\u8bfe\u7a0b\u54e6\u301c")))}}]),t}(u.Component);t.default=j}}]);
//# sourceMappingURL=31.f0936902.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/detail/followQRcode/index.js","components/ShareCourse/index.js"],"names":["FollowQRcode","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","state","src","codeSrc","uid","user","data","http","get","concat","API","then","res","errno","setState","url","Promise","resolve","QRCode","toDataURL","err","toast_default","a","info","msg","react_default","createElement","className","alt","Component","connect","ShareCourse","toCourseDetail","id","getParam","SendMessageToApp","history","push","list","_this2","home","code","_this3","common","title","arrow","detail_followQRcode","length","map","item","index","Info","course_title","simpledescription","key","onClick","course_id","img","image_name"],"mappings":"8RAOMA,cAEF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAA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,QAQ9B1B,EAAAH,EAAAI,cAAA,WACID,EAAAH,EAAAI,cAAA,KAAGC,UAAU,YAAb,qFA1DFE,aAmEXE","file":"mrstatic/js/31.f0936902.chunk.js","sourcesContent":["import React, {Component} from 'react';\nimport './index.scss';\nimport {http, getParam} from '@/utils';\nimport QRCode from 'qrcode';\nimport {connect} from \"react-redux\";\nimport {Toast} from 'antd-mobile';\n\nclass FollowQRcode extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n src: '',\n codeSrc: ''\n };\n }\n\n componentDidMount() {\n const _this = this\n let uid = this.props && this.props.user && this.props.user.data.uid\n http.get(`${API['base-api']}/wx/user_temporary_qrcode/${uid}`).then((res) => {\n if (res.data.errno == 0) {\n _this.setState({\n src: res.data.data.url\n })\n return new Promise(resolve => {\n QRCode.toDataURL(_this.state.src, {}, function (err, url) {\n _this.setState({\n codeSrc: url\n })\n })\n resolve()\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n render() {\n return (\n <div className='followQRcode-box'>\n <div className='followQRcode'>\n <div className=\"content\">\n <p className=\"title\">关注公众号</p>\n <p className='desc'>\n <span>1</span>有人通过您分享的链接领取红包后,会第一时间通过微信服务号通知您。\n </p>\n <p className='desc'>\n <span>2</span>请用个人微信扫描,关注服务号后可提现红包到微信零钱。\n </p>\n <img src={this.state.codeSrc} alt=\"\"/>\n <p className=\"tip\">长按二维码保存到相册</p>\n </div>\n <div className='close'>\n <i className='iconfont iconiconfront-2'></i>\n </div>\n </div>\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({\n user: state.user\n })\n)(FollowQRcode)\n\n","import React, {Component} from 'react';\nimport './index.scss';\nimport {HeaderBar, VList} from '@/common';\nimport {http, getParam, SendMessageToApp} from '@/utils';\nimport {Toast} from 'antd-mobile';\nimport {Link} from \"react-router-dom\";\n\nimport FollowQRcode from \"../detail/followQRcode\";\n\nclass ShareCourse extends Component {\n\n constructor(props) {\n super(props);\n this.state = {list: []};\n }\n\n componentDidMount() {\n http.get(`${API.home}/sys/red_packet/share_course`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n list: res.data.data\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n toCourseDetail = (id) => {\n if (!getParam('from')) {\n const {history} = this.props;\n history.push(`/detail?id=${id}`)\n } else {\n SendMessageToApp(\"toCourse\", id)\n }\n }\n\n render() {\n const {list} = this.state;\n return (\n <div className={'share-course'}>\n <HeaderBar title='分享领红包' arrow={true}/>\n <FollowQRcode/>\n {\n list && list.length > 0 ? <div>\n {\n list.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className={'title text-overflow-1'}>{item.course_title}</p>\n <p className={'contact text-overflow-1'}>{item.simpledescription}</p>\n <button>分享领红包</button>\n </div>\n )\n return (\n <div key={index} onClick={() => this.toCourseDetail(item.course_id)}>\n <VList\n img={item.image_name}\n info={Info}\n />\n </div>\n\n )\n })\n }\n </div> :\n <div>\n <p className='not-data'>暂时没有可分享的课程哦〜</p>\n </div>\n }\n\n </div>\n )\n }\n}\n\nexport default ShareCourse;\n"],"sourceRoot":""}
\ No newline at end of file
!function(e){function r(r){for(var n,a,d=r[0],i=r[1],f=r[2],u=0,l=[];u<d.length;u++)a=d[u],o[a]&&l.push(o[a][0]),o[a]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(s&&s(r);l.length;)l.shift()();return c.push.apply(c,f||[]),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 i=t[a];0!==o[i]&&(n=!1)}n&&(c.splice(r--,1),e=d(d.s=t[0]))}return e}var n={},a={19:0},o={19:0},c=[];function d(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,d),t.l=!0,t.exports}d.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}[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:"417c8635",2:"fb4bedde",3:"7b6f3dd7",4:"aeb3f822",5:"7bb0622b",6:"31d6cfe0",7:"c0945477",8:"31d6cfe0",9:"7eb7d317",10:"0c91fa43",11:"530e102d",12:"92ab48a3",13:"a97e13d0",14:"f2c7a13b",15:"403c24a0",17:"67814bde",18:"19e06a3f",20:"5716d9b3",21:"76774ba4",22:"e132441c",23:"f08bc5f3",24:"7340509f",26:"31d6cfe0",27:"c76b300d",28:"820320a6",29:"bf839917",30:"35e22f8c",31:"ced7f2ae"}[e]+".chunk.css",o=d.p+n,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var f=(s=c[i]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(f===n||f===o))return r()}var u=document.getElementsByTagName("style");for(i=0;i<u.length;i++){var s;if((f=(s=u[i]).getAttribute("data-href"))===n||f===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,i=document.createElement("script");i.charset="utf-8",i.timeout=120,d.nc&&i.setAttribute("nonce",d.nc),i.src=function(e){return d.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:"741d9849",1:"d645be27",2:"af451584",3:"00756c49",4:"f0faadd5",5:"fab7e711",6:"624565b4",7:"66e108f7",8:"d6c2b2f7",9:"4ca546cf",10:"d17702c7",11:"0935bc0e",12:"5a5c0e7a",13:"dafa15a0",14:"c329c6bc",15:"5cb816e1",17:"27ba059a",18:"c7d9ef7b",20:"d4867cc0",21:"ef64f9ac",22:"2963fc6d",23:"9953be74",24:"b43683a2",26:"72155a81",27:"4edcaeb3",28:"8ddd43f0",29:"0bf38ddd",30:"1a178c5b",31:"f0936902"}[e]+".chunk.js"}(e),c=function(r){i.onerror=i.onload=null,clearTimeout(f);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 f=setTimeout(function(){c({type:"timeout",target:i})},12e4);i.onerror=i.onload=c,document.head.appendChild(i)}return Promise.all(r)},d.m=e,d.c=n,d.d=function(e,r,t){d.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,r){if(1&r&&(e=d(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(d.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)d.d(t,n,function(r){return e[r]}.bind(null,n));return t},d.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(r,"a",r),r},d.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},d.p="/",d.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],f=i.push.bind(i);i.push=r,i=i.slice();for(var u=0;u<i.length;u++)r(i[u]);var s=f;t()}([]);
//# sourceMappingURL=runtime~main.ec910897.js.map
\ No newline at end of file
!function(e){function r(r){for(var n,a,d=r[0],i=r[1],u=r[2],f=0,l=[];f<d.length;f++)a=d[f],o[a]&&l.push(o[a][0]),o[a]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[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 i=t[a];0!==o[i]&&(n=!1)}n&&(c.splice(r--,1),e=d(d.s=t[0]))}return e}var n={},a={19:0},o={19:0},c=[];function d(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,d),t.l=!0,t.exports}d.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}[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:"417c8635",2:"fb4bedde",3:"7b6f3dd7",4:"aeb3f822",5:"7bb0622b",6:"31d6cfe0",7:"c0945477",8:"31d6cfe0",9:"7eb7d317",10:"0c91fa43",11:"530e102d",12:"92ab48a3",13:"a97e13d0",14:"f2c7a13b",15:"403c24a0",17:"67814bde",18:"19e06a3f",20:"5716d9b3",21:"76774ba4",22:"e132441c",23:"f08bc5f3",24:"7340509f",26:"31d6cfe0",27:"c76b300d",28:"820320a6",29:"bf839917",30:"35e22f8c",31:"ced7f2ae"}[e]+".chunk.css",o=d.p+n,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var u=(s=c[i]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(u===n||u===o))return r()}var f=document.getElementsByTagName("style");for(i=0;i<f.length;i++){var s;if((u=(s=f[i]).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,i=document.createElement("script");i.charset="utf-8",i.timeout=120,d.nc&&i.setAttribute("nonce",d.nc),i.src=function(e){return d.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:"741d9849",1:"d645be27",2:"af451584",3:"00756c49",4:"f0faadd5",5:"fab7e711",6:"624565b4",7:"66e108f7",8:"d6c2b2f7",9:"4ca546cf",10:"d17702c7",11:"0935bc0e",12:"5a5c0e7a",13:"dafa15a0",14:"c329c6bc",15:"5cb816e1",17:"27ba059a",18:"c7d9ef7b",20:"d4867cc0",21:"ef64f9ac",22:"2963fc6d",23:"9953be74",24:"b43683a2",26:"72155a81",27:"4edcaeb3",28:"8ddd43f0",29:"0bf38ddd",30:"1a178c5b",31:"246d74e2"}[e]+".chunk.js"}(e),c=function(r){i.onerror=i.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:i})},12e4);i.onerror=i.onload=c,document.head.appendChild(i)}return Promise.all(r)},d.m=e,d.c=n,d.d=function(e,r,t){d.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,r){if(1&r&&(e=d(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(d.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)d.d(t,n,function(r){return e[r]}.bind(null,n));return t},d.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(r,"a",r),r},d.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},d.p="/",d.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],u=i.push.bind(i);i.push=r,i=i.slice();for(var f=0;f<i.length;f++)r(i[f]);var s=u;t()}([]);
//# sourceMappingURL=runtime~main.a5047758.js.map
\ No newline at end of file
......@@ -68,8 +68,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/PayOrder.4ca546cf.chunk.js"
},
{
"revision": "19d591502ee721c4f7b0",
"url": "/mrstatic/js/31.f0936902.chunk.js"
"revision": "d719bd5b8e93640d389a",
"url": "/mrstatic/js/31.246d74e2.chunk.js"
},
{
"revision": "6c86f68f6cba6c92dd51",
......@@ -140,8 +140,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/purchased.c7d9ef7b.chunk.js"
},
{
"revision": "d0d7ef08ca8bb7de5697",
"url": "/mrstatic/js/runtime~main.ec910897.js"
"revision": "f1dfe1cc0a03dc493ef7",
"url": "/mrstatic/js/runtime~main.a5047758.js"
},
{
"revision": "2a87f1bb06065453d6fe",
......@@ -240,7 +240,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/PayOrder.7eb7d317.chunk.css"
},
{
"revision": "19d591502ee721c4f7b0",
"revision": "d719bd5b8e93640d389a",
"url": "/mrstatic/css/31.ced7f2ae.chunk.css"
},
{
......@@ -260,7 +260,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/25.397c920d.chunk.css"
},
{
"revision": "ffe5127b0a511acb4c893fc0b321df0a",
"revision": "89d7bcf7d9be49dfe20417ce29eeea39",
"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.7feb9cd89960768ff2b6924e70bea4e5.js"
"/precache-manifest.4fbc36d41fd159d7a3305f5d566b5b86.js"
);
workbox.clientsClaim();
......
......@@ -17,7 +17,8 @@ class FollowQRcode extends Component {
componentDidMount() {
const _this = this
let uid = this.props && this.props.user && this.props.user.data.uid
// let uid = this.props && this.props.user && this.props.user.data.uid
let uid = 555324
http.get(`${API['base-api']}/wx/user_temporary_qrcode/${uid}`).then((res) => {
if (res.data.errno == 0) {
_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