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
0776c5fc
Commit
0776c5fc
authored
Dec 25, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pull
parent
5b4f2323
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/components/python/pythomDes/index.js
+4
-0
No files found.
src/components/python/pythomDes/index.js
View file @
0776c5fc
...
@@ -119,17 +119,21 @@ class PythonDes extends Component {
...
@@ -119,17 +119,21 @@ class PythonDes extends Component {
}
}
toLearn
=
()
=>
{
toLearn
=
()
=>
{
alert
(
'免费试学'
)
http
.
post
(
`
${
API
[
'home'
]}
/m/it/user/trialCourse`
,
{
course_id
:
getParam
(
'id'
)}).
then
((
res
)
=>
{
http
.
post
(
`
${
API
[
'home'
]}
/m/it/user/trialCourse`
,
{
course_id
:
getParam
(
'id'
)}).
then
((
res
)
=>
{
const
{
code
,
msg
}
=
res
.
data
const
{
code
,
msg
}
=
res
.
data
if
(
code
==
200
)
{
if
(
code
==
200
)
{
alert
(
'code == 200'
)
if
(
!
getParam
(
'version'
))
{
// H5
if
(
!
getParam
(
'version'
))
{
// H5
this
.
setState
({
this
.
setState
({
toApp
:
true
toApp
:
true
})
})
}
else
{
// APP
}
else
{
// APP
alert
(
'app'
)
SendMessageToApp
(
"toLearn"
)
SendMessageToApp
(
"toLearn"
)
}
}
}
else
{
}
else
{
alert
(
'code != 200'
)
Toast
.
info
(
msg
,
2
)
Toast
.
info
(
msg
,
2
)
}
}
})
})
...
...
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