Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
c6429d96
Commit
c6429d96
authored
Aug 19, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
b3355046
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
285 additions
and
283 deletions
+285
-283
build/asset-manifest.json
+0
-0
build/index.html
+0
-0
build/precache-manifest.1f310ffdcb6a76653e67c5d98af25036.js
+267
-0
build/precache-manifest.581f0fa07474d9a1123f013541aca0f4.js
+0
-267
build/service-worker.js
+1
-1
src/components/detail/btnstatus/index.js
+2
-2
src/components/order/index.js
+9
-9
src/components/order/payOrder/PayOrder.js
+2
-2
src/components/video/index.js
+4
-2
No files found.
build/asset-manifest.json
View file @
c6429d96
This diff is collapsed.
Click to expand it.
build/index.html
View file @
c6429d96
This diff is collapsed.
Click to expand it.
build/precache-manifest.1f310ffdcb6a76653e67c5d98af25036.js
0 → 100644
View file @
c6429d96
self
.
__precacheManifest
=
[
{
"revision"
:
"8b10b2870fdec14d7a01"
,
"url"
:
"/static/js/purchased.8e73e32c.chunk.js"
},
{
"revision"
:
"0b09e736fc08d21c11a6"
,
"url"
:
"/static/css/BargainMiddlePage.9e05243b.chunk.css"
},
{
"revision"
:
"d00c9cabaedfdf924745"
,
"url"
:
"/static/css/Classify.e3e9b348.chunk.css"
},
{
"revision"
:
"d00c9cabaedfdf924745"
,
"url"
:
"/static/js/Classify.88e16392.chunk.js"
},
{
"revision"
:
"dcd4f1844bec9ea70574"
,
"url"
:
"/static/css/CourseList.369bce9d.chunk.css"
},
{
"revision"
:
"dcd4f1844bec9ea70574"
,
"url"
:
"/static/js/CourseList.d06af937.chunk.js"
},
{
"revision"
:
"dea5dd0ba84b253710f9"
,
"url"
:
"/static/css/DrawDocument.2e7d81ca.chunk.css"
},
{
"revision"
:
"dea5dd0ba84b253710f9"
,
"url"
:
"/static/js/DrawDocument.cdb5e58a.chunk.js"
},
{
"revision"
:
"4d82518cb22909a25abf"
,
"url"
:
"/static/css/Examination.fc9da1d2.chunk.css"
},
{
"revision"
:
"4d82518cb22909a25abf"
,
"url"
:
"/static/js/Examination.fa19e5b9.chunk.js"
},
{
"revision"
:
"14aae70c4c2889afb061"
,
"url"
:
"/static/js/MyEdit.93c1066f.chunk.js"
},
{
"revision"
:
"70315d6bac9c221861a1"
,
"url"
:
"/static/css/Order.6576554c.chunk.css"
},
{
"revision"
:
"70315d6bac9c221861a1"
,
"url"
:
"/static/js/Order.b2093828.chunk.js"
},
{
"revision"
:
"151e03f1104a0e038d5f"
,
"url"
:
"/static/js/Orderinfo.1c23f0d1.chunk.js"
},
{
"revision"
:
"507db072f0bdbed1d95a"
,
"url"
:
"/static/css/PayOrder.21570c76.chunk.css"
},
{
"revision"
:
"507db072f0bdbed1d95a"
,
"url"
:
"/static/js/PayOrder.c01a72d8.chunk.js"
},
{
"revision"
:
"f6ffe1548a4d080a2658"
,
"url"
:
"/static/css/Preferential.3b4dfe41.chunk.css"
},
{
"revision"
:
"f6ffe1548a4d080a2658"
,
"url"
:
"/static/js/Preferential.884abefc.chunk.js"
},
{
"revision"
:
"d1ffef66f31927b078f1"
,
"url"
:
"/static/css/SearchResult.8711b264.chunk.css"
},
{
"revision"
:
"d1ffef66f31927b078f1"
,
"url"
:
"/static/js/SearchResult.d7c730c9.chunk.js"
},
{
"revision"
:
"774725bf6bb95524b4f3"
,
"url"
:
"/static/css/ShopCart.a93db4c0.chunk.css"
},
{
"revision"
:
"774725bf6bb95524b4f3"
,
"url"
:
"/static/js/ShopCart.ce51dba2.chunk.js"
},
{
"revision"
:
"dfe0c7608e5de5fe09d5"
,
"url"
:
"/static/css/aist-share.bef8c404.chunk.css"
},
{
"revision"
:
"dfe0c7608e5de5fe09d5"
,
"url"
:
"/static/js/aist-share.6006a322.chunk.js"
},
{
"revision"
:
"e9e32e9470bf19ecc796"
,
"url"
:
"/static/css/coupons.9ece7350.chunk.css"
},
{
"revision"
:
"e9e32e9470bf19ecc796"
,
"url"
:
"/static/js/coupons.7ac51087.chunk.js"
},
{
"revision"
:
"50249497bca317c2684a"
,
"url"
:
"/static/css/detail.72edbb5f.chunk.css"
},
{
"revision"
:
"50249497bca317c2684a"
,
"url"
:
"/static/js/detail.e0d344c7.chunk.js"
},
{
"revision"
:
"af773bb7ef9b2bd8b497"
,
"url"
:
"/static/css/main.1df66505.chunk.css"
},
{
"revision"
:
"af773bb7ef9b2bd8b497"
,
"url"
:
"/static/js/main.5b0af860.chunk.js"
},
{
"revision"
:
"2a87a1c865b99cd2c2c2"
,
"url"
:
"/static/css/myorders.5434bc7e.chunk.css"
},
{
"revision"
:
"2a87a1c865b99cd2c2c2"
,
"url"
:
"/static/js/myorders.9591b784.chunk.js"
},
{
"revision"
:
"8b10b2870fdec14d7a01"
,
"url"
:
"/static/css/purchased.4b0044ec.chunk.css"
},
{
"revision"
:
"0b09e736fc08d21c11a6"
,
"url"
:
"/static/js/BargainMiddlePage.e6b11299.chunk.js"
},
{
"revision"
:
"18a1f2e31fea22b15664"
,
"url"
:
"/static/js/runtime~main.2ad24738.js"
},
{
"revision"
:
"2898f0eabbbdd5947623"
,
"url"
:
"/static/css/search.9fa57dd6.chunk.css"
},
{
"revision"
:
"2898f0eabbbdd5947623"
,
"url"
:
"/static/js/search.4e789760.chunk.js"
},
{
"revision"
:
"0baf594b2f411f4e2834"
,
"url"
:
"/static/css/shareposter.82081d02.chunk.css"
},
{
"revision"
:
"0baf594b2f411f4e2834"
,
"url"
:
"/static/js/shareposter.5ab9b613.chunk.js"
},
{
"revision"
:
"72f177df4655380e5feb"
,
"url"
:
"/static/css/study.50d01810.chunk.css"
},
{
"revision"
:
"72f177df4655380e5feb"
,
"url"
:
"/static/js/study.37af7845.chunk.js"
},
{
"revision"
:
"1c9c62ad8fe9161b7762"
,
"url"
:
"/static/css/togroup.49988cae.chunk.css"
},
{
"revision"
:
"1c9c62ad8fe9161b7762"
,
"url"
:
"/static/js/togroup.fe3257a0.chunk.js"
},
{
"revision"
:
"50eb238b013db0af814f"
,
"url"
:
"/static/css/video.0c707680.chunk.css"
},
{
"revision"
:
"50eb238b013db0af814f"
,
"url"
:
"/static/js/video.8be500eb.chunk.js"
},
{
"revision"
:
"80011994e30adf599e5f47fcc81bc06d"
,
"url"
:
"/static/media/progress-share-bg.80011994.png"
},
{
"revision"
:
"ba942120040e93aeadac"
,
"url"
:
"/static/js/24.cc1aa77e.chunk.js"
},
{
"revision"
:
"3d3d421b339852d0d02b"
,
"url"
:
"/static/js/25.58629408.chunk.js"
},
{
"revision"
:
"81a489ac63f2f2df5ab412e0782bd54c"
,
"url"
:
"/static/media/kanjia_cg_icon.81a489ac.png"
},
{
"revision"
:
"cb07b07a7f721d4f5d86"
,
"url"
:
"/static/js/26.ca44de75.chunk.js"
},
{
"revision"
:
"b4e6e9ea5f7301e16f53"
,
"url"
:
"/static/js/27.32213583.chunk.js"
},
{
"revision"
:
"bf51ccc733319bcc56b89eec5dde1394"
,
"url"
:
"/static/media/iconfont.bf51ccc7.svg"
},
{
"revision"
:
"f4af1f59f8f100e000a3"
,
"url"
:
"/static/js/28.262e6dc6.chunk.js"
},
{
"revision"
:
"55ad4bbcfbe7879698a2538de5145a09"
,
"url"
:
"/static/media/iconfont.55ad4bbc.ttf"
},
{
"revision"
:
"bcc8561fa099bcbf9267"
,
"url"
:
"/static/js/29.e2cba4ed.chunk.js"
},
{
"revision"
:
"10b7bd5b99a2a0a2f1a30d7ed72ec1a0"
,
"url"
:
"/static/media/iconfont.10b7bd5b.eot"
},
{
"revision"
:
"22a49ddf2e0ac487e6ba"
,
"url"
:
"/static/js/30.9b24ec4e.chunk.js"
},
{
"revision"
:
"d9bc424b15d521a0c979da25ea02c1c9"
,
"url"
:
"/static/media/iconfont.d9bc424b.woff"
},
{
"revision"
:
"6b36272d524db88870dc"
,
"url"
:
"/static/js/31.19325664.chunk.js"
},
{
"revision"
:
"6b36272d524db88870dc"
,
"url"
:
"/static/css/31.bc06dce4.chunk.css"
},
{
"revision"
:
"22a49ddf2e0ac487e6ba"
,
"url"
:
"/static/css/30.ecbb6f9a.chunk.css"
},
{
"revision"
:
"bcc8561fa099bcbf9267"
,
"url"
:
"/static/css/29.5ed15c7e.chunk.css"
},
{
"revision"
:
"f4af1f59f8f100e000a3"
,
"url"
:
"/static/css/28.694b4628.chunk.css"
},
{
"revision"
:
"cb07b07a7f721d4f5d86"
,
"url"
:
"/static/css/26.1b3a6258.chunk.css"
},
{
"revision"
:
"ba942120040e93aeadac"
,
"url"
:
"/static/css/24.257b0329.chunk.css"
},
{
"revision"
:
"e4ca7d30ee0df16c76dcad2bc9441baf"
,
"url"
:
"/index.html"
}
];
\ No newline at end of file
build/precache-manifest.581f0fa07474d9a1123f013541aca0f4.js
deleted
100644 → 0
View file @
b3355046
self
.
__precacheManifest
=
[
{
"revision"
:
"0933b0e468a6fc3a5ad0"
,
"url"
:
"/static/js/purchased.b3951208.chunk.js"
},
{
"revision"
:
"45ce81c53bd0b0e00b01"
,
"url"
:
"/static/css/BargainMiddlePage.6d24aba4.chunk.css"
},
{
"revision"
:
"1e174fdcd0105477c750"
,
"url"
:
"/static/css/Classify.5ed0fc89.chunk.css"
},
{
"revision"
:
"1e174fdcd0105477c750"
,
"url"
:
"/static/js/Classify.dc10b929.chunk.js"
},
{
"revision"
:
"a55accd6f58af5fea13c"
,
"url"
:
"/static/css/CourseList.5ce769bd.chunk.css"
},
{
"revision"
:
"a55accd6f58af5fea13c"
,
"url"
:
"/static/js/CourseList.50c6b061.chunk.js"
},
{
"revision"
:
"df8f0caf1d622818e109"
,
"url"
:
"/static/css/DrawDocument.aeb3f822.chunk.css"
},
{
"revision"
:
"df8f0caf1d622818e109"
,
"url"
:
"/static/js/DrawDocument.b6b14ec2.chunk.js"
},
{
"revision"
:
"aee05eb8d8b03735fb6d"
,
"url"
:
"/static/css/Examination.280c19c2.chunk.css"
},
{
"revision"
:
"aee05eb8d8b03735fb6d"
,
"url"
:
"/static/js/Examination.539d70c4.chunk.js"
},
{
"revision"
:
"2dcb1df2d403c73b2e3d"
,
"url"
:
"/static/js/MyEdit.50ccc0c5.chunk.js"
},
{
"revision"
:
"44532d371099c9d261e2"
,
"url"
:
"/static/css/Order.061a2017.chunk.css"
},
{
"revision"
:
"44532d371099c9d261e2"
,
"url"
:
"/static/js/Order.0269088f.chunk.js"
},
{
"revision"
:
"082734c14cd9b1e754bc"
,
"url"
:
"/static/js/Orderinfo.08abf5d9.chunk.js"
},
{
"revision"
:
"3da39e9a180b10af9ebc"
,
"url"
:
"/static/css/PayOrder.a9111f28.chunk.css"
},
{
"revision"
:
"3da39e9a180b10af9ebc"
,
"url"
:
"/static/js/PayOrder.bb4ece84.chunk.js"
},
{
"revision"
:
"2e961549a416f3dfc88a"
,
"url"
:
"/static/css/Preferential.99c1fc9f.chunk.css"
},
{
"revision"
:
"2e961549a416f3dfc88a"
,
"url"
:
"/static/js/Preferential.c423e386.chunk.js"
},
{
"revision"
:
"ea0bc7a568254856b538"
,
"url"
:
"/static/css/SearchResult.b968f5d5.chunk.css"
},
{
"revision"
:
"ea0bc7a568254856b538"
,
"url"
:
"/static/js/SearchResult.8322516d.chunk.js"
},
{
"revision"
:
"ee729cd97e1096f9266d"
,
"url"
:
"/static/css/ShopCart.8f4c32db.chunk.css"
},
{
"revision"
:
"ee729cd97e1096f9266d"
,
"url"
:
"/static/js/ShopCart.9e1ecb82.chunk.js"
},
{
"revision"
:
"d5aa3ee66e0c7d1c7f30"
,
"url"
:
"/static/css/aist-share.a97e13d0.chunk.css"
},
{
"revision"
:
"d5aa3ee66e0c7d1c7f30"
,
"url"
:
"/static/js/aist-share.6ae202e2.chunk.js"
},
{
"revision"
:
"8dc36203b6dedb7c8857"
,
"url"
:
"/static/css/coupons.f2c7a13b.chunk.css"
},
{
"revision"
:
"8dc36203b6dedb7c8857"
,
"url"
:
"/static/js/coupons.ed17ab53.chunk.js"
},
{
"revision"
:
"bff1ae2090d5a286f7b2"
,
"url"
:
"/static/css/detail.ce10de93.chunk.css"
},
{
"revision"
:
"bff1ae2090d5a286f7b2"
,
"url"
:
"/static/js/detail.a02f5c6f.chunk.js"
},
{
"revision"
:
"928d241bec020db40ee1"
,
"url"
:
"/static/css/main.47a6e046.chunk.css"
},
{
"revision"
:
"928d241bec020db40ee1"
,
"url"
:
"/static/js/main.232ae607.chunk.js"
},
{
"revision"
:
"86dadd3591c00b70eaca"
,
"url"
:
"/static/css/myorders.789a128d.chunk.css"
},
{
"revision"
:
"86dadd3591c00b70eaca"
,
"url"
:
"/static/js/myorders.a16d3d05.chunk.js"
},
{
"revision"
:
"0933b0e468a6fc3a5ad0"
,
"url"
:
"/static/css/purchased.fb5cdbc2.chunk.css"
},
{
"revision"
:
"45ce81c53bd0b0e00b01"
,
"url"
:
"/static/js/BargainMiddlePage.9a184cbd.chunk.js"
},
{
"revision"
:
"198049dbd120182cfe7c"
,
"url"
:
"/static/js/runtime~main.be1b171d.js"
},
{
"revision"
:
"7617f144b739d3514298"
,
"url"
:
"/static/css/search.ed8f7a59.chunk.css"
},
{
"revision"
:
"7617f144b739d3514298"
,
"url"
:
"/static/js/search.c639c060.chunk.js"
},
{
"revision"
:
"652bf7e309ec90a9615a"
,
"url"
:
"/static/css/shareposter.175bee2a.chunk.css"
},
{
"revision"
:
"652bf7e309ec90a9615a"
,
"url"
:
"/static/js/shareposter.099c39b4.chunk.js"
},
{
"revision"
:
"3515598e352236615a82"
,
"url"
:
"/static/css/study.8867122f.chunk.css"
},
{
"revision"
:
"3515598e352236615a82"
,
"url"
:
"/static/js/study.e6eec39b.chunk.js"
},
{
"revision"
:
"50b607f44631aa5bea17"
,
"url"
:
"/static/css/togroup.f08bc5f3.chunk.css"
},
{
"revision"
:
"50b607f44631aa5bea17"
,
"url"
:
"/static/js/togroup.38eac215.chunk.js"
},
{
"revision"
:
"675bbadf5e15c3c11067"
,
"url"
:
"/static/css/video.2b2824ba.chunk.css"
},
{
"revision"
:
"675bbadf5e15c3c11067"
,
"url"
:
"/static/js/video.5cde5b2a.chunk.js"
},
{
"revision"
:
"80011994e30adf599e5f47fcc81bc06d"
,
"url"
:
"/static/media/progress-share-bg.80011994.png"
},
{
"revision"
:
"68afb4d9a13b23505445"
,
"url"
:
"/static/js/24.59af4a31.chunk.js"
},
{
"revision"
:
"6375e0d7eaa1800f9ee3"
,
"url"
:
"/static/js/25.66a6cdfb.chunk.js"
},
{
"revision"
:
"81a489ac63f2f2df5ab412e0782bd54c"
,
"url"
:
"/static/media/kanjia_cg_icon.81a489ac.png"
},
{
"revision"
:
"26740888f74be42d5242"
,
"url"
:
"/static/js/26.ad7bb673.chunk.js"
},
{
"revision"
:
"8858bd1e3249c4a70cae"
,
"url"
:
"/static/js/27.48079d34.chunk.js"
},
{
"revision"
:
"bf51ccc733319bcc56b89eec5dde1394"
,
"url"
:
"/static/media/iconfont.bf51ccc7.svg"
},
{
"revision"
:
"32241d69f8d5ce922e1d"
,
"url"
:
"/static/js/28.f699c8ca.chunk.js"
},
{
"revision"
:
"10b7bd5b99a2a0a2f1a30d7ed72ec1a0"
,
"url"
:
"/static/media/iconfont.10b7bd5b.eot"
},
{
"revision"
:
"33b49afeb43477f48319"
,
"url"
:
"/static/js/29.95cc221c.chunk.js"
},
{
"revision"
:
"55ad4bbcfbe7879698a2538de5145a09"
,
"url"
:
"/static/media/iconfont.55ad4bbc.ttf"
},
{
"revision"
:
"841357d3dd9081c44ebd"
,
"url"
:
"/static/js/30.551081e6.chunk.js"
},
{
"revision"
:
"d9bc424b15d521a0c979da25ea02c1c9"
,
"url"
:
"/static/media/iconfont.d9bc424b.woff"
},
{
"revision"
:
"0fd9fb23eb9d921a2618"
,
"url"
:
"/static/js/31.1f9a1906.chunk.js"
},
{
"revision"
:
"0fd9fb23eb9d921a2618"
,
"url"
:
"/static/css/31.57d8b033.chunk.css"
},
{
"revision"
:
"841357d3dd9081c44ebd"
,
"url"
:
"/static/css/30.35e22f8c.chunk.css"
},
{
"revision"
:
"33b49afeb43477f48319"
,
"url"
:
"/static/css/29.bf839917.chunk.css"
},
{
"revision"
:
"32241d69f8d5ce922e1d"
,
"url"
:
"/static/css/28.42a89c77.chunk.css"
},
{
"revision"
:
"26740888f74be42d5242"
,
"url"
:
"/static/css/26.73976871.chunk.css"
},
{
"revision"
:
"68afb4d9a13b23505445"
,
"url"
:
"/static/css/24.4abd5c22.chunk.css"
},
{
"revision"
:
"9d49edc7bf8582ca5abb311d53d747ac"
,
"url"
:
"/index.html"
}
];
\ No newline at end of file
build/service-worker.js
View file @
c6429d96
...
@@ -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.
581f0fa07474d9a1123f013541aca0f4
.js"
"/precache-manifest.
1f310ffdcb6a76653e67c5d98af25036
.js"
);
);
workbox
.
clientsClaim
();
workbox
.
clientsClaim
();
...
...
src/components/detail/btnstatus/index.js
View file @
c6429d96
...
@@ -260,7 +260,7 @@ class BtnStatus extends Component {
...
@@ -260,7 +260,7 @@ class BtnStatus extends Component {
<
i
className
=
'iconfont iconerji'
/>
<
i
className
=
'iconfont iconerji'
/>
<
span
>
课程咨询
<
/span
>
<
span
>
课程咨询
<
/span
>
<
/a
>
<
/a
>
<
Link
to
=
{
`/play?id=
${
getParam
(
'id'
)
}
`
}
className
=
'btn btn-m bg-09f'
>
开始学习
<
/Link
>
<
Link
to
=
{
`/play?id=
${
info
.
v_course_id
}
`
}
className
=
'btn btn-m bg-09f'
>
开始学习
<
/Link
>
<
/div
>
<
/div
>
}
}
{
/*拼团 未开团*/
}
{
/*拼团 未开团*/
}
...
@@ -363,7 +363,7 @@ class BtnStatus extends Component {
...
@@ -363,7 +363,7 @@ class BtnStatus extends Component {
{
{
info
.
aist_start_time
===
""
?
info
.
aist_start_time
===
""
?
(
(
<
Link
to
=
{
`/play?id=
${
getParam
(
'id'
)
}
`
}
className
=
'btn btn-m learn-now'
>
<
Link
to
=
{
`/play?id=
${
info
.
v_course_id
}
`
}
className
=
'btn btn-m learn-now'
>
<
span
>
开始学习
<
/span
>
<
span
>
开始学习
<
/span
>
<
/Link
>
<
/Link
>
...
...
src/components/order/index.js
View file @
c6429d96
...
@@ -233,7 +233,7 @@ class Order extends Component {
...
@@ -233,7 +233,7 @@ class Order extends Component {
// type: 1,返现课程,simple: 1,正常购买
// type: 1,返现课程,simple: 1,正常购买
if
(
this
.
props
.
location
.
state
&&
this
.
props
.
location
.
state
.
type
===
1
)
{
if
(
this
.
props
.
location
.
state
&&
this
.
props
.
location
.
state
.
type
===
1
)
{
http
.
get
(
`
${
API
[
'base-api'
]
}
/m/order/preorder?type=1`
).
then
((
res
)
=>
{
http
.
get
(
`
${
API
.
home
}
/m/order/preorder?type=1`
).
then
((
res
)
=>
{
if
(
res
.
data
.
errno
===
200
)
{
if
(
res
.
data
.
errno
===
200
)
{
this
.
publicGetData
(
res
);
this
.
publicGetData
(
res
);
this
.
publicLocalStorage
();
this
.
publicLocalStorage
();
...
@@ -243,7 +243,7 @@ class Order extends Component {
...
@@ -243,7 +243,7 @@ class Order extends Component {
})
})
}
else
if
(
this
.
props
.
location
.
state
&&
(
this
.
props
.
location
.
state
.
simple
===
1
||
this
.
props
.
location
.
state
.
bargain
===
1
))
{
}
else
if
(
this
.
props
.
location
.
state
&&
(
this
.
props
.
location
.
state
.
simple
===
1
||
this
.
props
.
location
.
state
.
bargain
===
1
))
{
// 普通课程立即报名 不带 type = 1
// 普通课程立即报名 不带 type = 1
http
.
get
(
`
${
API
[
'base-api'
]
}
/m/order/preorder`
).
then
(
res
=>
{
http
.
get
(
`
${
API
.
home
}
/m/order/preorder`
).
then
(
res
=>
{
if
(
res
.
data
.
errno
===
200
)
{
if
(
res
.
data
.
errno
===
200
)
{
this
.
publicGetData
(
res
);
this
.
publicGetData
(
res
);
this
.
publicLocalStorage
();
this
.
publicLocalStorage
();
...
@@ -253,13 +253,13 @@ class Order extends Component {
...
@@ -253,13 +253,13 @@ class Order extends Component {
});
});
}
else
if
(
this
.
props
.
location
.
state
&&
this
.
props
.
location
.
state
.
group
===
1
){
}
else
if
(
this
.
props
.
location
.
state
&&
this
.
props
.
location
.
state
.
group
===
1
){
// 获取一键开团的课程
// 获取一键开团的课程
Promise
.
all
([
http
.
get
(
`
${
API
[
'base-api'
]
}
/m/order/preorder`
),
http
.
get
(
`
${
API
.
home
}
/m/course/detail/
${
getParam
(
'id'
)}
`
)]).
then
(
resList
=>
{
Promise
.
all
([
http
.
get
(
`
${
API
.
home
}
/m/del_cart_order/
${
getParam
(
'id'
)}
`
),
http
.
get
(
`
${
API
.
home
}
/m/order/preorder`
),
http
.
get
(
`
${
API
.
home
}
/m/course/detail/
${
getParam
(
'id'
)}
`
)]).
then
(
resList
=>
{
console
.
log
(
resList
);
console
.
log
(
resList
);
let
courseInfo
=
resList
[
0
],
let
courseInfo
=
resList
[
1
],
orderInfo
=
resList
[
1
];
orderInfo
=
resList
[
2
];
console
.
log
(
courseInfo
.
data
);
console
.
log
(
courseInfo
.
data
);
console
.
log
(
orderInfo
.
data
);
console
.
log
(
orderInfo
.
data
);
if
(
courseInfo
.
data
.
errno
===
200
)
{
if
(
courseInfo
.
data
.
code
===
200
)
{
}
else
{
}
else
{
Toast
.
info
(
courseInfo
.
data
.
msg
,
2
);
Toast
.
info
(
courseInfo
.
data
.
msg
,
2
);
...
@@ -280,7 +280,7 @@ class Order extends Component {
...
@@ -280,7 +280,7 @@ class Order extends Component {
});
});
}
}
else
{
else
{
http
.
get
(
`
${
API
[
'base-api'
]
}
/m/order/preorder`
).
then
((
res
)
=>
{
http
.
get
(
`
${
API
.
home
}
/m/order/preorder`
).
then
((
res
)
=>
{
console
.
log
(
'为了验证什么条件下会走这段代码'
);
console
.
log
(
'为了验证什么条件下会走这段代码'
);
if
(
res
.
data
.
errno
!==
200
)
{
if
(
res
.
data
.
errno
!==
200
)
{
Toast
.
info
(
res
.
data
.
msg
,
2
);
Toast
.
info
(
res
.
data
.
msg
,
2
);
...
@@ -293,7 +293,7 @@ class Order extends Component {
...
@@ -293,7 +293,7 @@ class Order extends Component {
}
}
// else {
// else {
// if(getParam('id')) {
// if(getParam('id')) {
// Promise.all([http.get(`${API.home}/m/del_cart_order/${getParam('id')}`), http.get(`${API
['base-api']
}/m/order/preorder`)]).then(res => {
// Promise.all([http.get(`${API.home}/m/del_cart_order/${getParam('id')}`), http.get(`${API
.home
}/m/order/preorder`)]).then(res => {
// console.log(res);
// console.log(res);
// let preorder = res[1],
// let preorder = res[1],
// orderList = preorder.data.data.course;
// orderList = preorder.data.data.course;
...
@@ -306,7 +306,7 @@ class Order extends Component {
...
@@ -306,7 +306,7 @@ class Order extends Component {
// this.publicLocalStorage();
// this.publicLocalStorage();
// })
// })
// }else{
// }else{
// http.get(`${API
['base-api']
}/m/order/preorder`).then((res) => {
// http.get(`${API
.home
}/m/order/preorder`).then((res) => {
// console.log('为了验证什么条件下会走这段代码');
// console.log('为了验证什么条件下会走这段代码');
// if (res.data.errno !== 200) {
// if (res.data.errno !== 200) {
// Toast.info(res.data.msg, 2);
// Toast.info(res.data.msg, 2);
...
...
src/components/order/payOrder/PayOrder.js
View file @
c6429d96
...
@@ -167,9 +167,9 @@ export default class PayOrder extends Component {
...
@@ -167,9 +167,9 @@ export default class PayOrder extends Component {
}
}
componentDidMount
()
{
componentDidMount
()
{
http
.
post
(
`
${
API
[
'base-api'
]
}
/m/order/detail`
,
{
order_id
:
this
.
state
.
orderId
}).
then
((
res
)
=>
{
http
.
post
(
`
${
API
.
home
}
/m/order/detail`
,
{
order_id
:
this
.
state
.
orderId
}).
then
((
res
)
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
if
(
res
.
data
.
errno
!==
200
)
{
if
(
res
.
data
.
code
!==
200
)
{
Toast
.
info
(
res
.
data
.
msg
,
2
);
Toast
.
info
(
res
.
data
.
msg
,
2
);
return
;
return
;
}
}
...
...
src/components/video/index.js
View file @
c6429d96
...
@@ -131,7 +131,9 @@ class Video extends Component {
...
@@ -131,7 +131,9 @@ class Video extends Component {
setupRecord
=
()
=>
{
setupRecord
=
()
=>
{
this
.
recordSocket
=
io
(
API
.
record
)
this
.
recordSocket
=
io
(
API
.
record
,{
transports
:
[
'websocket'
]
})
this
.
recordSocket
.
on
(
'seek'
,
time
=>
{
this
.
recordSocket
.
on
(
'seek'
,
time
=>
{
this
.
player
.
currentTime
(
time
)
this
.
player
.
currentTime
(
time
)
})
})
...
@@ -142,7 +144,7 @@ class Video extends Component {
...
@@ -142,7 +144,7 @@ class Video extends Component {
}
}
sendRecord
=
()
=>
{
sendRecord
=
()
=>
{
if
(
this
.
recordSocket
)
{
if
(
this
.
recordSocket
&&
this
.
player
)
{
this
.
recordSocket
.
emit
(
'addRecord'
,
this
.
recordUserInfo
())
this
.
recordSocket
.
emit
(
'addRecord'
,
this
.
recordUserInfo
())
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment