Commit 7cd88a63 by xuzhenghua

app

parent b6135f44
...@@ -56,8 +56,8 @@ ...@@ -56,8 +56,8 @@
"aist-share.js": "/mrstatic/js/aist-share.3a04b022.chunk.js", "aist-share.js": "/mrstatic/js/aist-share.3a04b022.chunk.js",
"aist-share.js.map": "/mrstatic/js/aist-share.3a04b022.chunk.js.map", "aist-share.js.map": "/mrstatic/js/aist-share.3a04b022.chunk.js.map",
"blessing-preheat.css": "/mrstatic/css/blessing-preheat.564d8d7c.chunk.css", "blessing-preheat.css": "/mrstatic/css/blessing-preheat.564d8d7c.chunk.css",
"blessing-preheat.js": "/mrstatic/js/blessing-preheat.2210905d.chunk.js", "blessing-preheat.js": "/mrstatic/js/blessing-preheat.eb06e765.chunk.js",
"blessing-preheat.js.map": "/mrstatic/js/blessing-preheat.2210905d.chunk.js.map", "blessing-preheat.js.map": "/mrstatic/js/blessing-preheat.eb06e765.chunk.js.map",
"blessing-rank.css": "/mrstatic/css/blessing-rank.edf00bf8.chunk.css", "blessing-rank.css": "/mrstatic/css/blessing-rank.edf00bf8.chunk.css",
"blessing-rank.js": "/mrstatic/js/blessing-rank.9beb2e6a.chunk.js", "blessing-rank.js": "/mrstatic/js/blessing-rank.9beb2e6a.chunk.js",
"blessing-rank.js.map": "/mrstatic/js/blessing-rank.9beb2e6a.chunk.js.map", "blessing-rank.js.map": "/mrstatic/js/blessing-rank.9beb2e6a.chunk.js.map",
...@@ -85,8 +85,8 @@ ...@@ -85,8 +85,8 @@
"purchased.css": "/mrstatic/css/purchased.bb758677.chunk.css", "purchased.css": "/mrstatic/css/purchased.bb758677.chunk.css",
"purchased.js": "/mrstatic/js/purchased.a38723f4.chunk.js", "purchased.js": "/mrstatic/js/purchased.a38723f4.chunk.js",
"purchased.js.map": "/mrstatic/js/purchased.a38723f4.chunk.js.map", "purchased.js.map": "/mrstatic/js/purchased.a38723f4.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.4d0f13e3.js", "runtime~main.js": "/mrstatic/js/runtime~main.c910280a.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.4d0f13e3.js.map", "runtime~main.js.map": "/mrstatic/js/runtime~main.c910280a.js.map",
"search.css": "/mrstatic/css/search.5716d9b3.chunk.css", "search.css": "/mrstatic/css/search.5716d9b3.chunk.css",
"search.js": "/mrstatic/js/search.589ab26a.chunk.js", "search.js": "/mrstatic/js/search.589ab26a.chunk.js",
"search.js.map": "/mrstatic/js/search.589ab26a.chunk.js.map", "search.js.map": "/mrstatic/js/search.589ab26a.chunk.js.map",
...@@ -166,6 +166,6 @@ ...@@ -166,6 +166,6 @@
"mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.e0655d4d.woff", "mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.e0655d4d.woff",
"mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png", "mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png",
"mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png", "mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png",
"precache-manifest.5555e416b8149900a0e386964815b3bc.js": "/precache-manifest.5555e416b8149900a0e386964815b3bc.js", "precache-manifest.e5fa69c8fd7f2c3a22ba25358f47c4f5.js": "/precache-manifest.e5fa69c8fd7f2c3a22ba25358f47c4f5.js",
"service-worker.js": "/service-worker.js" "service-worker.js": "/service-worker.js"
} }
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -16,16 +16,16 @@ self.__precacheManifest = [ ...@@ -16,16 +16,16 @@ self.__precacheManifest = [
"url": "/mrstatic/js/2.f02a0573.chunk.js" "url": "/mrstatic/js/2.f02a0573.chunk.js"
}, },
{ {
"revision": "6902434f8f18a23319d57d0ac8aaea8c", "revision": "c79abf5cb7ae8a82009cf68fe44d1078",
"url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png" "url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png"
}, },
{ {
"revision": "f8b11e0088ed6e17f173", "revision": "f8b11e0088ed6e17f173",
"url": "/mrstatic/js/Activity.73c8f0a9.chunk.js" "url": "/mrstatic/js/Activity.73c8f0a9.chunk.js"
}, },
{ {
"revision": "c79abf5cb7ae8a82009cf68fe44d1078", "revision": "6902434f8f18a23319d57d0ac8aaea8c",
"url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png" "url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png"
}, },
{ {
"revision": "9a7afeee0f7f7550064e", "revision": "9a7afeee0f7f7550064e",
...@@ -84,8 +84,8 @@ self.__precacheManifest = [ ...@@ -84,8 +84,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/MyEdit.fea133fd.chunk.js" "url": "/mrstatic/js/MyEdit.fea133fd.chunk.js"
}, },
{ {
"revision": "258b4b114d3d9be3018cd113b2470a13", "revision": "7aa984cefad739ea18edb76c541aa1fd",
"url": "/mrstatic/media/iconfont.258b4b11.ttf" "url": "/mrstatic/media/iconfont.7aa984ce.eot"
}, },
{ {
"revision": "a28bdbb65926824a31b2", "revision": "a28bdbb65926824a31b2",
...@@ -96,8 +96,8 @@ self.__precacheManifest = [ ...@@ -96,8 +96,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/Orderinfo.57e0641d.chunk.js" "url": "/mrstatic/js/Orderinfo.57e0641d.chunk.js"
}, },
{ {
"revision": "7aa984cefad739ea18edb76c541aa1fd", "revision": "258b4b114d3d9be3018cd113b2470a13",
"url": "/mrstatic/media/iconfont.7aa984ce.eot" "url": "/mrstatic/media/iconfont.258b4b11.ttf"
}, },
{ {
"revision": "17e2d9973e72bb3206ae", "revision": "17e2d9973e72bb3206ae",
...@@ -148,8 +148,8 @@ self.__precacheManifest = [ ...@@ -148,8 +148,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/38.6484232f.chunk.js" "url": "/mrstatic/js/38.6484232f.chunk.js"
}, },
{ {
"revision": "db6ecef785abb2f4619d", "revision": "e5393d22364219dd4264",
"url": "/mrstatic/js/blessing-preheat.2210905d.chunk.js" "url": "/mrstatic/js/blessing-preheat.eb06e765.chunk.js"
}, },
{ {
"revision": "ce643559cbe26713d628", "revision": "ce643559cbe26713d628",
...@@ -208,8 +208,8 @@ self.__precacheManifest = [ ...@@ -208,8 +208,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/myorders.5b24e8bb.chunk.js" "url": "/mrstatic/js/myorders.5b24e8bb.chunk.js"
}, },
{ {
"revision": "85d66afad5dc3b6269cb", "revision": "2958401d0d8decbbbf96",
"url": "/mrstatic/js/runtime~main.4d0f13e3.js" "url": "/mrstatic/js/runtime~main.c910280a.js"
}, },
{ {
"revision": "480dec355e65b21ce336", "revision": "480dec355e65b21ce336",
...@@ -288,7 +288,7 @@ self.__precacheManifest = [ ...@@ -288,7 +288,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/38.bff100af.chunk.css" "url": "/mrstatic/css/38.bff100af.chunk.css"
}, },
{ {
"revision": "db6ecef785abb2f4619d", "revision": "e5393d22364219dd4264",
"url": "/mrstatic/css/blessing-preheat.564d8d7c.chunk.css" "url": "/mrstatic/css/blessing-preheat.564d8d7c.chunk.css"
}, },
{ {
...@@ -372,7 +372,7 @@ self.__precacheManifest = [ ...@@ -372,7 +372,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/2.bf839917.chunk.css" "url": "/mrstatic/css/2.bf839917.chunk.css"
}, },
{ {
"revision": "132211397588a27e00bccb5f1eb85666", "revision": "e76f42ae392ed037f9e4e6037682e1db",
"url": "/index.html" "url": "/index.html"
} }
]; ];
\ No newline at end of file
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js"); importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts( importScripts(
"/precache-manifest.5555e416b8149900a0e386964815b3bc.js" "/precache-manifest.e5fa69c8fd7f2c3a22ba25358f47c4f5.js"
); );
workbox.clientsClaim(); workbox.clientsClaim();
......
...@@ -20,6 +20,15 @@ class ReserveCourse extends Component { ...@@ -20,6 +20,15 @@ class ReserveCourse extends Component {
this.fetchAICourse(); this.fetchAICourse();
} }
shouldComponentUpdate(nextProps, nextState, nextContext) {
if(this.props.isApp !== nextProps.isApp) {
this.fetchAICourse();
return false;
}
return true;
}
fetchAICourse = () => { fetchAICourse = () => {
http.get(`${API.home}/sys/pre_coursee`).then(res => { http.get(`${API.home}/sys/pre_coursee`).then(res => {
const {code, data, msg} = res.data; const {code, data, msg} = res.data;
......
...@@ -118,8 +118,3 @@ ...@@ -118,8 +118,3 @@
outline: none; outline: none;
} }
} }
.demo {
font-size: 30px;
color: red;
}
...@@ -129,11 +129,11 @@ class BlessingPreheat extends Component { ...@@ -129,11 +129,11 @@ class BlessingPreheat extends Component {
let expires = addDays(new Date(), 90) let expires = addDays(new Date(), 90)
this.state.userInfoList.map((item, index) => { this.state.userInfoList.map((item, index) => {
Toast.info(item.uid) Toast.info(item.uid)
cookie.set("token", item.token, {expires, path: '/', domain: 'julyedu.com'}); cookie.set("token", item.token, {expires, path: '/', domain: '.julyedu.com'});
cookie.set("plat", item.plat, {expires, path: '/', domain: 'julyedu.com'}); cookie.set("plat", item.plat, {expires, path: '/', domain: '.julyedu.com'});
cookie.set("uid", item.uid, {expires, path: '/', domain: 'julyedu.com'}); cookie.set("uid", item.uid, {expires, path: '/', domain: '.julyedu.com'});
cookie.set("uname", item.uname, {expires, path: '/', domain: 'julyedu.com'}); cookie.set("uname", item.uname, {expires, path: '/', domain: '.julyedu.com'});
cookie.set("avatar_file", item.avatar_file, {expires, path: '/', domain: 'julyedu.com'}); cookie.set("avatar_file", item.avatar_file, {expires, path: '/', domain: '.julyedu.com'});
alert(cookie.get("uid")) alert(cookie.get("uid"))
}); });
...@@ -442,8 +442,6 @@ class BlessingPreheat extends Component { ...@@ -442,8 +442,6 @@ class BlessingPreheat extends Component {
<ListHeader id={'lucky-value'} text="积福气,享受更多福利" styles={{margin: '60px 0 15px'}}/> <ListHeader id={'lucky-value'} text="积福气,享受更多福利" styles={{margin: '60px 0 15px'}}/>
<Link className="luck-draw__button" to="/blessingRank">福气排行榜></Link> <Link className="luck-draw__button" to="/blessingRank">福气排行榜></Link>
<div className='demo'>{String(!this.props.user.hasError)}</div>
<CollectBlessing <CollectBlessing
isSign={isSign} isSign={isSign}
...@@ -471,7 +469,7 @@ class BlessingPreheat extends Component { ...@@ -471,7 +469,7 @@ class BlessingPreheat extends Component {
isFormal === 0 && isFormal === 0 &&
<> <>
<ListHeader id={'deposit'} text="预付1元定金,最高可省100元" styles={{margin: '30px 0 15px'}}/> <ListHeader id={'deposit'} text="预付1元定金,最高可省100元" styles={{margin: '30px 0 15px'}}/>
<ReserveCourse/> <ReserveCourse isApp={isApp}/>
</> </>
} }
......
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