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
785ae69f
Commit
785ae69f
authored
Aug 23, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拼团
parent
bb9f734e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
345 additions
and
308 deletions
+345
-308
build/asset-manifest.json
+0
-0
build/index.html
+0
-0
build/precache-manifest.6228d4c3cceac70594b266e3f1891140.js
+267
-0
build/precache-manifest.c95741bc7bfd88126e2c7dc194ba46d2.js
+0
-267
build/service-worker.js
+1
-1
src/components/detail/group/togroup.js
+5
-3
src/components/detail/index.js
+24
-1
src/components/detail/single/singleSuccess.js
+48
-36
No files found.
build/asset-manifest.json
View file @
785ae69f
This diff is collapsed.
Click to expand it.
build/index.html
View file @
785ae69f
This diff is collapsed.
Click to expand it.
build/precache-manifest.6228d4c3cceac70594b266e3f1891140.js
0 → 100644
View file @
785ae69f
self
.
__precacheManifest
=
[
{
"revision"
:
"66b83687b8288d0731a3"
,
"url"
:
"/static/js/purchased.a499871a.chunk.js"
},
{
"revision"
:
"027ed83d24165a445e88"
,
"url"
:
"/static/css/BargainMiddlePage.f15334d9.chunk.css"
},
{
"revision"
:
"8ed48f8c643e0607c130"
,
"url"
:
"/static/css/Classify.6f1b147b.chunk.css"
},
{
"revision"
:
"8ed48f8c643e0607c130"
,
"url"
:
"/static/js/Classify.63329319.chunk.js"
},
{
"revision"
:
"d7692ea8a31370bcd55f"
,
"url"
:
"/static/css/CourseList.2444c6c2.chunk.css"
},
{
"revision"
:
"d7692ea8a31370bcd55f"
,
"url"
:
"/static/js/CourseList.8b306e3c.chunk.js"
},
{
"revision"
:
"3fcf81165043bea3206f"
,
"url"
:
"/static/css/DrawDocument.58508f31.chunk.css"
},
{
"revision"
:
"3fcf81165043bea3206f"
,
"url"
:
"/static/js/DrawDocument.592d3508.chunk.js"
},
{
"revision"
:
"c3936165b876df233f1a"
,
"url"
:
"/static/css/Examination.02475a25.chunk.css"
},
{
"revision"
:
"c3936165b876df233f1a"
,
"url"
:
"/static/js/Examination.ebfa34d0.chunk.js"
},
{
"revision"
:
"40460c5f4b9ff77d6ea8"
,
"url"
:
"/static/js/MyEdit.98497c0f.chunk.js"
},
{
"revision"
:
"38eab3e6bbf0ac774585"
,
"url"
:
"/static/css/Order.5199031c.chunk.css"
},
{
"revision"
:
"38eab3e6bbf0ac774585"
,
"url"
:
"/static/js/Order.2a46ae4c.chunk.js"
},
{
"revision"
:
"cf12f9d869ae0c361ccd"
,
"url"
:
"/static/js/Orderinfo.ce0a8407.chunk.js"
},
{
"revision"
:
"e8a8faf4c7aa6a8f2112"
,
"url"
:
"/static/css/PayOrder.4a91788c.chunk.css"
},
{
"revision"
:
"e8a8faf4c7aa6a8f2112"
,
"url"
:
"/static/js/PayOrder.ba4b82cc.chunk.js"
},
{
"revision"
:
"2c49a5f9c5134c757754"
,
"url"
:
"/static/css/Preferential.aced1689.chunk.css"
},
{
"revision"
:
"2c49a5f9c5134c757754"
,
"url"
:
"/static/js/Preferential.c9668497.chunk.js"
},
{
"revision"
:
"852549bde5043f615b9b"
,
"url"
:
"/static/css/SearchResult.bbdc2bc7.chunk.css"
},
{
"revision"
:
"852549bde5043f615b9b"
,
"url"
:
"/static/js/SearchResult.99e3ba9a.chunk.js"
},
{
"revision"
:
"b4c75fb19bc6754779fc"
,
"url"
:
"/static/css/ShopCart.f39ca42e.chunk.css"
},
{
"revision"
:
"b4c75fb19bc6754779fc"
,
"url"
:
"/static/js/ShopCart.a97f6c51.chunk.js"
},
{
"revision"
:
"a20563fc89034b94e000"
,
"url"
:
"/static/css/aist-share.01bc9663.chunk.css"
},
{
"revision"
:
"a20563fc89034b94e000"
,
"url"
:
"/static/js/aist-share.062aaeb3.chunk.js"
},
{
"revision"
:
"0e5d8939254c58566a05"
,
"url"
:
"/static/css/coupons.c48c0144.chunk.css"
},
{
"revision"
:
"0e5d8939254c58566a05"
,
"url"
:
"/static/js/coupons.70722e88.chunk.js"
},
{
"revision"
:
"81a096f4046f92be447f"
,
"url"
:
"/static/css/detail.9a7429d3.chunk.css"
},
{
"revision"
:
"81a096f4046f92be447f"
,
"url"
:
"/static/js/detail.23a3661f.chunk.js"
},
{
"revision"
:
"b55241c0929db3ce1eac"
,
"url"
:
"/static/css/main.95f34d95.chunk.css"
},
{
"revision"
:
"b55241c0929db3ce1eac"
,
"url"
:
"/static/js/main.b2879c0e.chunk.js"
},
{
"revision"
:
"e21838263a62424c868c"
,
"url"
:
"/static/css/myorders.1dbd49e2.chunk.css"
},
{
"revision"
:
"e21838263a62424c868c"
,
"url"
:
"/static/js/myorders.96cd7516.chunk.js"
},
{
"revision"
:
"66b83687b8288d0731a3"
,
"url"
:
"/static/css/purchased.a14c858f.chunk.css"
},
{
"revision"
:
"027ed83d24165a445e88"
,
"url"
:
"/static/js/BargainMiddlePage.d4390bcd.chunk.js"
},
{
"revision"
:
"c7c6461f4f7f8856463a"
,
"url"
:
"/static/js/runtime~main.f5a79d61.js"
},
{
"revision"
:
"df6b2d550c7948eb5867"
,
"url"
:
"/static/css/search.85280180.chunk.css"
},
{
"revision"
:
"df6b2d550c7948eb5867"
,
"url"
:
"/static/js/search.ceed1ef0.chunk.js"
},
{
"revision"
:
"854e4fd36284e3c0391d"
,
"url"
:
"/static/css/shareposter.728e4385.chunk.css"
},
{
"revision"
:
"854e4fd36284e3c0391d"
,
"url"
:
"/static/js/shareposter.75a96e5a.chunk.js"
},
{
"revision"
:
"c7b8d5f8b2d10c31c20c"
,
"url"
:
"/static/css/study.f3c372c1.chunk.css"
},
{
"revision"
:
"c7b8d5f8b2d10c31c20c"
,
"url"
:
"/static/js/study.892054eb.chunk.js"
},
{
"revision"
:
"15c9f2a0160920df1f17"
,
"url"
:
"/static/css/togroup.acc61e40.chunk.css"
},
{
"revision"
:
"15c9f2a0160920df1f17"
,
"url"
:
"/static/js/togroup.a7843e02.chunk.js"
},
{
"revision"
:
"bb63e494637c23eefe5b"
,
"url"
:
"/static/css/video.8f08d857.chunk.css"
},
{
"revision"
:
"bb63e494637c23eefe5b"
,
"url"
:
"/static/js/video.da803be7.chunk.js"
},
{
"revision"
:
"80011994e30adf599e5f47fcc81bc06d"
,
"url"
:
"/static/media/progress-share-bg.80011994.png"
},
{
"revision"
:
"30b020cf94eae7364837"
,
"url"
:
"/static/js/24.93b7a9ce.chunk.js"
},
{
"revision"
:
"aafa87f76fee515850ad"
,
"url"
:
"/static/js/25.e1e251e0.chunk.js"
},
{
"revision"
:
"81a489ac63f2f2df5ab412e0782bd54c"
,
"url"
:
"/static/media/kanjia_cg_icon.81a489ac.png"
},
{
"revision"
:
"a1b839f8a4c2df75084c"
,
"url"
:
"/static/js/26.834afc21.chunk.js"
},
{
"revision"
:
"2725cf82a2822752e44f"
,
"url"
:
"/static/js/27.33496196.chunk.js"
},
{
"revision"
:
"f983caa7c06f105373e7e1aec42da261"
,
"url"
:
"/static/media/iconfont.f983caa7.svg"
},
{
"revision"
:
"fa15474108425fcd54c8"
,
"url"
:
"/static/js/28.88036717.chunk.js"
},
{
"revision"
:
"145742789ab409c81f28938b15b5dee7"
,
"url"
:
"/static/media/iconfont.14574278.ttf"
},
{
"revision"
:
"fdfb0cdf952362e414b6"
,
"url"
:
"/static/js/29.42d40869.chunk.js"
},
{
"revision"
:
"cd1c41437a2e35a283e4b16b620a8c9e"
,
"url"
:
"/static/media/iconfont.cd1c4143.eot"
},
{
"revision"
:
"0c5f488d07ad05ac082e"
,
"url"
:
"/static/js/30.b92758f1.chunk.js"
},
{
"revision"
:
"7b542c778563daa7cc420d21ed1601b3"
,
"url"
:
"/static/media/iconfont.7b542c77.woff"
},
{
"revision"
:
"6df0e01ad6dfe97d7f54"
,
"url"
:
"/static/js/31.29632a76.chunk.js"
},
{
"revision"
:
"6df0e01ad6dfe97d7f54"
,
"url"
:
"/static/css/31.ffbe0560.chunk.css"
},
{
"revision"
:
"0c5f488d07ad05ac082e"
,
"url"
:
"/static/css/30.44620a41.chunk.css"
},
{
"revision"
:
"fdfb0cdf952362e414b6"
,
"url"
:
"/static/css/29.fd1b61f1.chunk.css"
},
{
"revision"
:
"fa15474108425fcd54c8"
,
"url"
:
"/static/css/28.415f421f.chunk.css"
},
{
"revision"
:
"a1b839f8a4c2df75084c"
,
"url"
:
"/static/css/26.b8256974.chunk.css"
},
{
"revision"
:
"30b020cf94eae7364837"
,
"url"
:
"/static/css/24.354507f6.chunk.css"
},
{
"revision"
:
"507ab04d982b4e853ea82a928a32f627"
,
"url"
:
"/index.html"
}
];
\ No newline at end of file
build/precache-manifest.c95741bc7bfd88126e2c7dc194ba46d2.js
deleted
100644 → 0
View file @
bb9f734e
self
.
__precacheManifest
=
[
{
"revision"
:
"12f72985377d2b555058"
,
"url"
:
"/static/js/purchased.04cbed77.chunk.js"
},
{
"revision"
:
"6abdfc31efcca258a2a7"
,
"url"
:
"/static/css/BargainMiddlePage.417c8635.chunk.css"
},
{
"revision"
:
"b5e6c7dd5aa8bf13852f"
,
"url"
:
"/static/css/Classify.b13bb9a5.chunk.css"
},
{
"revision"
:
"b5e6c7dd5aa8bf13852f"
,
"url"
:
"/static/js/Classify.a88ff223.chunk.js"
},
{
"revision"
:
"281f6809e4249e762a4e"
,
"url"
:
"/static/css/CourseList.49ca5e9b.chunk.css"
},
{
"revision"
:
"281f6809e4249e762a4e"
,
"url"
:
"/static/js/CourseList.27b2e6c3.chunk.js"
},
{
"revision"
:
"2a34a8f4ca1effab3622"
,
"url"
:
"/static/css/DrawDocument.aeb3f822.chunk.css"
},
{
"revision"
:
"2a34a8f4ca1effab3622"
,
"url"
:
"/static/js/DrawDocument.7fd9d55d.chunk.js"
},
{
"revision"
:
"815b77f12202ed76f4b1"
,
"url"
:
"/static/css/Examination.7bb0622b.chunk.css"
},
{
"revision"
:
"815b77f12202ed76f4b1"
,
"url"
:
"/static/js/Examination.3f59b16f.chunk.js"
},
{
"revision"
:
"ffebe892c93d41c54cb7"
,
"url"
:
"/static/js/MyEdit.539ac99a.chunk.js"
},
{
"revision"
:
"6f7567fb61ab9d0942b4"
,
"url"
:
"/static/css/Order.c0945477.chunk.css"
},
{
"revision"
:
"6f7567fb61ab9d0942b4"
,
"url"
:
"/static/js/Order.a579d31b.chunk.js"
},
{
"revision"
:
"7a108067d8a9416186b7"
,
"url"
:
"/static/js/Orderinfo.ccc104bf.chunk.js"
},
{
"revision"
:
"813320e45d0d6cf04489"
,
"url"
:
"/static/css/PayOrder.7eb7d317.chunk.css"
},
{
"revision"
:
"813320e45d0d6cf04489"
,
"url"
:
"/static/js/PayOrder.ae2564f9.chunk.js"
},
{
"revision"
:
"c5b81a737ec66ae02e45"
,
"url"
:
"/static/css/Preferential.a285bc5d.chunk.css"
},
{
"revision"
:
"c5b81a737ec66ae02e45"
,
"url"
:
"/static/js/Preferential.ef876af4.chunk.js"
},
{
"revision"
:
"d88b7e68021a0164a8eb"
,
"url"
:
"/static/css/SearchResult.530e102d.chunk.css"
},
{
"revision"
:
"d88b7e68021a0164a8eb"
,
"url"
:
"/static/js/SearchResult.43591d80.chunk.js"
},
{
"revision"
:
"a99b90dc938c613119e2"
,
"url"
:
"/static/css/ShopCart.92ab48a3.chunk.css"
},
{
"revision"
:
"a99b90dc938c613119e2"
,
"url"
:
"/static/js/ShopCart.dd56865b.chunk.js"
},
{
"revision"
:
"a2577ac9940b16b159e8"
,
"url"
:
"/static/css/aist-share.a97e13d0.chunk.css"
},
{
"revision"
:
"a2577ac9940b16b159e8"
,
"url"
:
"/static/js/aist-share.966b948f.chunk.js"
},
{
"revision"
:
"59e06aa8268b6aadab5c"
,
"url"
:
"/static/css/coupons.f2c7a13b.chunk.css"
},
{
"revision"
:
"59e06aa8268b6aadab5c"
,
"url"
:
"/static/js/coupons.a921ef66.chunk.js"
},
{
"revision"
:
"ad4d69c39c6a88679365"
,
"url"
:
"/static/css/detail.7ba4148b.chunk.css"
},
{
"revision"
:
"ad4d69c39c6a88679365"
,
"url"
:
"/static/js/detail.208e4e64.chunk.js"
},
{
"revision"
:
"9baafa3d01d121f203d6"
,
"url"
:
"/static/css/main.792d1aeb.chunk.css"
},
{
"revision"
:
"9baafa3d01d121f203d6"
,
"url"
:
"/static/js/main.e8ba5b57.chunk.js"
},
{
"revision"
:
"00062a6ec54d00afa8ae"
,
"url"
:
"/static/css/myorders.67814bde.chunk.css"
},
{
"revision"
:
"00062a6ec54d00afa8ae"
,
"url"
:
"/static/js/myorders.cfd5a912.chunk.js"
},
{
"revision"
:
"12f72985377d2b555058"
,
"url"
:
"/static/css/purchased.19e06a3f.chunk.css"
},
{
"revision"
:
"6abdfc31efcca258a2a7"
,
"url"
:
"/static/js/BargainMiddlePage.a28416ee.chunk.js"
},
{
"revision"
:
"49cc77e34955446e3229"
,
"url"
:
"/static/js/runtime~main.e6de9828.js"
},
{
"revision"
:
"52684af606de7d69280c"
,
"url"
:
"/static/css/search.5716d9b3.chunk.css"
},
{
"revision"
:
"52684af606de7d69280c"
,
"url"
:
"/static/js/search.1f053f98.chunk.js"
},
{
"revision"
:
"c1afe26b00a3b441fd8f"
,
"url"
:
"/static/css/shareposter.9e774e45.chunk.css"
},
{
"revision"
:
"c1afe26b00a3b441fd8f"
,
"url"
:
"/static/js/shareposter.ce440fc4.chunk.js"
},
{
"revision"
:
"b56dea5566be75e13847"
,
"url"
:
"/static/css/study.14e72a25.chunk.css"
},
{
"revision"
:
"b56dea5566be75e13847"
,
"url"
:
"/static/js/study.3923bc2e.chunk.js"
},
{
"revision"
:
"b3cf926f93066e99cd68"
,
"url"
:
"/static/css/togroup.f08bc5f3.chunk.css"
},
{
"revision"
:
"b3cf926f93066e99cd68"
,
"url"
:
"/static/js/togroup.7dcc5f4b.chunk.js"
},
{
"revision"
:
"6b26faf67cabac992f79"
,
"url"
:
"/static/css/video.bafccd3e.chunk.css"
},
{
"revision"
:
"6b26faf67cabac992f79"
,
"url"
:
"/static/js/video.a5562d60.chunk.js"
},
{
"revision"
:
"80011994e30adf599e5f47fcc81bc06d"
,
"url"
:
"/static/media/progress-share-bg.80011994.png"
},
{
"revision"
:
"3b4c00927ebcb01ca19e"
,
"url"
:
"/static/js/24.74fab2ab.chunk.js"
},
{
"revision"
:
"aafa87f76fee515850ad"
,
"url"
:
"/static/js/25.e1e251e0.chunk.js"
},
{
"revision"
:
"81a489ac63f2f2df5ab412e0782bd54c"
,
"url"
:
"/static/media/kanjia_cg_icon.81a489ac.png"
},
{
"revision"
:
"bf7c013558833da61d3d"
,
"url"
:
"/static/js/26.dfc38a85.chunk.js"
},
{
"revision"
:
"2725cf82a2822752e44f"
,
"url"
:
"/static/js/27.33496196.chunk.js"
},
{
"revision"
:
"f983caa7c06f105373e7e1aec42da261"
,
"url"
:
"/static/media/iconfont.f983caa7.svg"
},
{
"revision"
:
"94d20aba613131d7195d"
,
"url"
:
"/static/js/28.bddce1a4.chunk.js"
},
{
"revision"
:
"145742789ab409c81f28938b15b5dee7"
,
"url"
:
"/static/media/iconfont.14574278.ttf"
},
{
"revision"
:
"ba9765edee55933198a2"
,
"url"
:
"/static/js/29.b94e2aac.chunk.js"
},
{
"revision"
:
"cd1c41437a2e35a283e4b16b620a8c9e"
,
"url"
:
"/static/media/iconfont.cd1c4143.eot"
},
{
"revision"
:
"f989e5bbf4d3f3b4cc0d"
,
"url"
:
"/static/js/30.50307e1d.chunk.js"
},
{
"revision"
:
"7b542c778563daa7cc420d21ed1601b3"
,
"url"
:
"/static/media/iconfont.7b542c77.woff"
},
{
"revision"
:
"f12fd8160493994e9cd4"
,
"url"
:
"/static/js/31.57a6441b.chunk.js"
},
{
"revision"
:
"f12fd8160493994e9cd4"
,
"url"
:
"/static/css/31.57d8b033.chunk.css"
},
{
"revision"
:
"f989e5bbf4d3f3b4cc0d"
,
"url"
:
"/static/css/30.35e22f8c.chunk.css"
},
{
"revision"
:
"ba9765edee55933198a2"
,
"url"
:
"/static/css/29.bf839917.chunk.css"
},
{
"revision"
:
"94d20aba613131d7195d"
,
"url"
:
"/static/css/28.42a89c77.chunk.css"
},
{
"revision"
:
"bf7c013558833da61d3d"
,
"url"
:
"/static/css/26.73976871.chunk.css"
},
{
"revision"
:
"3b4c00927ebcb01ca19e"
,
"url"
:
"/static/css/24.4abd5c22.chunk.css"
},
{
"revision"
:
"52afbee21b12c0ce1c3f08a292227256"
,
"url"
:
"/index.html"
}
];
\ No newline at end of file
build/service-worker.js
View file @
785ae69f
...
...
@@ -14,7 +14,7 @@
importScripts
(
"https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js"
);
importScripts
(
"/precache-manifest.
c95741bc7bfd88126e2c7dc194ba46d2
.js"
"/precache-manifest.
6228d4c3cceac70594b266e3f1891140
.js"
);
workbox
.
clientsClaim
();
...
...
src/components/detail/group/togroup.js
View file @
785ae69f
...
...
@@ -243,13 +243,15 @@ function GorupContent(props) {
if
(
groupon_member
&&
groupon_member
.
length
>
0
)
{
let
uid
=
''
;
let
flag
=
false
;
groupon_member
.
map
(
item
=>
{
if
(
item
.
user_type
===
1
)
{
uid
=
`
${
item
.
uid
}
`
;
if
(
item
.
uid
==
userInfo
.
data
.
data
.
uid
)
{
// uid = `${item.uid}`;
flag
=
true
}
})
if
(
uid
===
userInfo
.
data
.
data
.
uid
)
{
if
(
flag
)
{
tip
=
<
p
className
=
'tip'
>
{
`拼团省¥
${
pdd_price
}
元`
}
<
/p
>
btn
=
<
span
className
=
'group-btn'
onClick
=
{
props
.
invitedFriends
}
>
邀请好友参团
{
countdown
}
后结束
<
/span
>
dec
=
<
p
className
=
'dec'
>
分享到
3
个群后,成团率高达
98
%<
/p
>
...
...
src/components/detail/index.js
View file @
785ae69f
...
...
@@ -83,7 +83,26 @@ class Detail extends Component {
}
})
}
// payCallback = () => {
//
// };
// weixinPay = (weixin_code) => {
//
// }
payCallBack
=
(
singleType
,
nowPrice
,
laterPrice
)
=>
{
const
_this
=
this
;
if
(
singleType
===
2
)
{
_this
.
setState
({
singleType
,
nowPrice
,
laterPrice
})
}
else
{
_this
.
setState
({
singleType
,
})
}
};
fetchCourseInfo
=
()
=>
{
const
id
=
getParam
(
'id'
);
http
.
get
(
`
${
API
.
home
}
/m/course/detail/
${
id
}
`
).
then
((
res
)
=>
{
...
...
@@ -379,8 +398,12 @@ class Detail extends Component {
data
=
{
this
.
state
.
singMess
}
singleType
=
{
singleType
}
videoId
=
{
this
.
state
.
singMess
.
video_id
}
payCallBack
=
{
this
.
payCallBack
}
/
>
}
{
/*payCallback={this.payCallback}*/
}
{
/*weixinPay = {this.weixinPay}*/
}
{
/*分享赚钱*/
}
{
course_info
.
is_dist
&&
...
...
src/components/detail/single/singleSuccess.js
View file @
785ae69f
...
...
@@ -30,6 +30,7 @@ class Single extends Component {
if
(
getParam
(
'is_class'
)
===
1
||
getParam
(
'weixinpay'
))
{
console
.
log
(
0
);
this
.
payCallback
()
// this.props.payCallback();
}
if
(
browser
.
isWeixin
)
{
this
.
isweixinPay
()
...
...
@@ -100,6 +101,7 @@ class Single extends Component {
if
(
!
getParam
(
'oid'
))
{
return
}
else
{
// this.props.weixinPay(weixin_code)
http
.
get
(
`
${
API
[
'base-api'
]}
/pay/wxpay/pub_charge/oid/
${
getParam
(
'oid'
)}
/code/
${
weixin_code
}
`
).
then
((
res
)
=>
{
if
(
res
.
data
.
errno
===
0
)
{
const
data
=
res
.
data
.
data
;
...
...
@@ -123,35 +125,40 @@ class Single extends Component {
_this
.
intervalPayStatus
=
null
;
// 获取课程类型
http
.
get
(
`
${
API
[
'base-api'
]}
/class_order_status/
${
getParam
(
'oid'
)}
`
).
then
((
res
)
=>
{
let
singleType
,
nowPrice
,
laterPrice
;
if
(
Number
(
res
.
data
.
data
.
errno
)
===
200
)
{
// 正常购买单集成功
this
.
setState
({
status
:
6
,
showSingleBox
:
true
,
})
// _
this.setState({
// singleType: 6
// })
singleType
=
6
;
}
else
if
(
Number
(
res
.
data
.
data
.
errno
)
===
201
)
{
// 0元参团
this
.
setState
({
status
:
4
,
showSingleBox
:
true
,
})
// _
this.setState({
// singleType
: 4,
// })
singleType
=
4
;
}
else
if
(
Number
(
res
.
data
.
data
.
errno
)
===
202
)
{
// 0元购
this
.
setState
({
status
:
3
,
showSingleBox
:
true
,
})
// _
this.setState({
// singleType
: 3,
// })
singleType
=
3
;
}
else
if
(
Number
(
res
.
data
.
data
.
errno
)
===
203
)
{
// 三天内特价
this
.
setState
({
nowPrice
:
res
.
data
.
data
.
data
.
now_price
,
laterPrice
:
res
.
data
.
data
.
data
.
three_day_later_price
,
status
:
2
,
showSingleBox
:
true
,
})
// _this.setState({
// nowPrice: res.data.data.data.now_price,
// laterPrice: res.data.data.data.three_day_later_price,
// singleType: 2,
// })
singleType
=
2
;
nowPrice
=
res
.
data
.
data
.
data
.
now_price
;
laterPrice
=
res
.
data
.
data
.
data
.
three_day_later_price
;
}
else
{
Toast
.
info
(
res
.
data
.
data
.
msg
,
2
)
return
;
}
this
.
props
.
payCallBack
(
singleType
,
nowPrice
,
laterPrice
);
})
}
})
...
...
@@ -191,35 +198,40 @@ class Single extends Component {
_this
.
intervalPayStatus
=
null
;
// 获取课程类型
http
.
get
(
`
${
API
[
'base-api'
]}
/class_order_status/
${
getParam
(
'oid'
)}
`
).
then
((
res
)
=>
{
let
singleType
,
nowPrice
,
laterPrice
;
if
(
Number
(
res
.
data
.
data
.
errno
)
===
200
)
{
// 正常购买单集成功
this
.
setState
({
status
:
6
,
showSingleBox
:
true
,
})
// _
this.setState({
// singleType: 6
// })
singleType
=
6
;
}
else
if
(
Number
(
res
.
data
.
data
.
errno
)
===
201
)
{
// 0元参团
this
.
setState
({
status
:
4
,
showSingleBox
:
true
,
})
// _
this.setState({
// singleType
: 4,
// })
singleType
=
4
;
}
else
if
(
Number
(
res
.
data
.
data
.
errno
)
===
202
)
{
// 0元购
this
.
setState
({
status
:
3
,
showSingleBox
:
true
,
})
// _
this.setState({
// singleType
: 3,
// })
singleType
=
3
;
}
else
if
(
Number
(
res
.
data
.
data
.
errno
)
===
203
)
{
// 三天内特价
this
.
setState
({
nowPrice
:
res
.
data
.
data
.
data
.
now_price
,
laterPrice
:
res
.
data
.
data
.
data
.
three_day_later_price
,
status
:
2
,
showSingleBox
:
true
,
})
// _this.setState({
// nowPrice: res.data.data.data.now_price,
// laterPrice: res.data.data.data.three_day_later_price,
// singleType: 2,
// })
singleType
=
2
;
nowPrice
=
res
.
data
.
data
.
data
.
now_price
;
laterPrice
=
res
.
data
.
data
.
data
.
three_day_later_price
;
}
else
{
Toast
.
info
(
res
.
data
.
data
.
msg
,
2
)
return
;
}
this
.
props
.
payCallBack
(
singleType
,
nowPrice
,
laterPrice
);
})
}
})
...
...
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