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
373e5493
Commit
373e5493
authored
Jan 07, 2020
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
和APP交互 课程ID添加以及跳转到已购买详情页
parent
052308fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
src/components/python/index.js
+6
-2
src/components/python/pythomDes/index.js
+1
-1
No files found.
src/components/python/index.js
View file @
373e5493
import
React
,
{
Component
}
from
'react'
import
{
http
,
getParam
,
browser
}
from
'@/utils'
import
{
http
,
getParam
,
browser
,
SendMessageToApp
}
from
'@/utils'
import
PythonDes
from
'./pythomDes'
import
PythonStudy
from
'./pythonStudy'
import
{
connect
}
from
"react-redux"
...
...
@@ -103,7 +103,11 @@ class Python extends Component {
backwardVersion
:
true
,
isPay
:
0
,
})
}
else
{
}
else
{
// 安卓/IOS 的高版本
if
(
data
.
course_info
.
is_pay
===
1
)
{
// 在APP内未登录-去登陆-登录后还显示此页;如果是已购买的用户 就需要跳转到 APP已购买的原生页面
SendMessageToApp
(
'toSyllabusChapter'
,
id
);
// 跳转到APP的已购买详情页 id 是课程ID
return
;
}
this
.
setState
({
backwardVersion
:
false
,
isPay
:
data
.
course_info
.
is_pay
...
...
src/components/python/pythomDes/index.js
View file @
373e5493
...
...
@@ -133,7 +133,7 @@ class PythonDes extends Component {
if
(
backwardVersion
)
{
Toast
.
info
(
'当前版本不支持该课程模式,请升级到最新版本或前往PC端体验'
,
2
)
}
else
{
SendMessageToApp
(
"toLearn"
)
SendMessageToApp
(
"toLearn"
,
getParam
(
'id'
)
)
}
}
}
else
{
...
...
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