Commit a265b317 by xuzhenghua

app

parent dd1b4ab7
......@@ -56,8 +56,8 @@
"aist-share.js": "/mrstatic/js/aist-share.3a04b022.chunk.js",
"aist-share.js.map": "/mrstatic/js/aist-share.3a04b022.chunk.js.map",
"blessing-preheat.css": "/mrstatic/css/blessing-preheat.3ea8b615.chunk.css",
"blessing-preheat.js": "/mrstatic/js/blessing-preheat.5810afef.chunk.js",
"blessing-preheat.js.map": "/mrstatic/js/blessing-preheat.5810afef.chunk.js.map",
"blessing-preheat.js": "/mrstatic/js/blessing-preheat.e3bc78c9.chunk.js",
"blessing-preheat.js.map": "/mrstatic/js/blessing-preheat.e3bc78c9.chunk.js.map",
"blessing-rank.css": "/mrstatic/css/blessing-rank.edf00bf8.chunk.css",
"blessing-rank.js": "/mrstatic/js/blessing-rank.9beb2e6a.chunk.js",
"blessing-rank.js.map": "/mrstatic/js/blessing-rank.9beb2e6a.chunk.js.map",
......@@ -85,8 +85,8 @@
"purchased.css": "/mrstatic/css/purchased.bb758677.chunk.css",
"purchased.js": "/mrstatic/js/purchased.a38723f4.chunk.js",
"purchased.js.map": "/mrstatic/js/purchased.a38723f4.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.a873bb0a.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.a873bb0a.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.1389fa62.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.1389fa62.js.map",
"search.css": "/mrstatic/css/search.5716d9b3.chunk.css",
"search.js": "/mrstatic/js/search.589ab26a.chunk.js",
"search.js.map": "/mrstatic/js/search.589ab26a.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.031dbafe662ef918b7f541caad3f9432.js": "/precache-manifest.031dbafe662ef918b7f541caad3f9432.js",
"precache-manifest.c67061dca519fd381da1adc104b6f5a8.js": "/precache-manifest.c67061dca519fd381da1adc104b6f5a8.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 = [
"url": "/mrstatic/js/2.f02a0573.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": "f8b11e0088ed6e17f173",
"url": "/mrstatic/js/Activity.73c8f0a9.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": "9a7afeee0f7f7550064e",
......@@ -148,8 +148,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/38.6484232f.chunk.js"
},
{
"revision": "d5662128ca71bdcb1d02",
"url": "/mrstatic/js/blessing-preheat.5810afef.chunk.js"
"revision": "6be961ed241c30e3d063",
"url": "/mrstatic/js/blessing-preheat.e3bc78c9.chunk.js"
},
{
"revision": "ce643559cbe26713d628",
......@@ -208,8 +208,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/myorders.5b24e8bb.chunk.js"
},
{
"revision": "1c5c2bd44ba689414f5a",
"url": "/mrstatic/js/runtime~main.a873bb0a.js"
"revision": "c40a0f0ed2aeba95f0ea",
"url": "/mrstatic/js/runtime~main.1389fa62.js"
},
{
"revision": "480dec355e65b21ce336",
......@@ -288,7 +288,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/38.bff100af.chunk.css"
},
{
"revision": "d5662128ca71bdcb1d02",
"revision": "6be961ed241c30e3d063",
"url": "/mrstatic/css/blessing-preheat.3ea8b615.chunk.css"
},
{
......@@ -372,7 +372,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/2.bf839917.chunk.css"
},
{
"revision": "48ea9147d195d49ff86e12045a552317",
"revision": "e5b68dcd3da775674f38fa3e8a348dca",
"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.031dbafe662ef918b7f541caad3f9432.js"
"/precache-manifest.c67061dca519fd381da1adc104b6f5a8.js"
);
workbox.clientsClaim();
......
.reserve-course-module {
margin: 20px 15px 0 20px;
padding-bottom: 5px;
.course-list {
ul {
......@@ -119,3 +119,7 @@
}
}
.demo {
font-size: 30px;
color: red;
}
......@@ -35,6 +35,12 @@ class BlessingPreheat extends Component {
this.prevY = 0
this.state = {
userInfoList: [],
// userInfoList: [{
// token:'fcfef221e60ab7a2-92a80d5d30196999',
// uid:'545292',
// uname:'xzhtest2',
// avatar_file:''
// }],
isRule: false,
isCourse: false,
inviteUrl: '',
......@@ -100,6 +106,10 @@ class BlessingPreheat extends Component {
window['getNewData'] = result => {
this.fetchUserBlessing();
}
window['QQWXWBshare'] = result => {
this.handleToAddBlessing(result);
}
}
......@@ -118,8 +128,7 @@ class BlessingPreheat extends Component {
appLogin = () => {
let expires = addDays(new Date(), 90)
this.state.userInfoList.map((item, index) => {
alert(this.props.user.hasError)
Toast.info(String(this.props.user.hasError))
Toast.info(item.uid)
cookie.set("token", item.token, {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'});
......@@ -148,6 +157,8 @@ class BlessingPreheat extends Component {
}
getActiveIndex = (arr, n) => {
for (let i = 0, len = arr.length; i < len; i++) {
if (arr[i] > n) {
......@@ -216,6 +227,20 @@ class BlessingPreheat extends Component {
})
}
handleToAddBlessing = (key) => {
http.post(`${API.home}/sys/add/blessing`, {
share_platform: key, // 1 朋友圈 2 微博 3 qq
type: 3 // 1:签到;3:分享;4:浏览课程;
}).then(res => {
const {code } = res.data;
if (code === 200) {
Toast.info('+2点福气值~', 2, null, false);
}
});
}
handleToSign = () => {
http.post(`${API.home}/sys/add/blessing`, {
type: 1 // 1:签到;3:分享;4:浏览课程;
......@@ -405,6 +430,10 @@ class BlessingPreheat extends Component {
{/* 积福气 */}
<ListHeader id={'lucky-value'} text="积福气,享受更多福利" styles={{margin: '60px 0 15px'}}/>
<Link className="luck-draw__button" to="/blessingRank">福气排行榜></Link>
<div className='demo'>{String(!this.props.user.hasError)}</div>
<CollectBlessing
isSign={isSign}
userInfo={userInfo}
......
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