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
4ddc4cc2
Commit
4ddc4cc2
authored
Jan 08, 2020
by
FE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pull and solve
parent
63a49acf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
7 deletions
+1
-7
src/components/python/index.js
+1
-7
No files found.
src/components/python/index.js
View file @
4ddc4cc2
...
...
@@ -38,10 +38,7 @@ class Python extends Component {
this
.
setState
({
userInfoList
:
result
},
()
=>
{
alert
(
JSON
.
stringify
(
this
.
state
.
userInfoList
))
alert
(
this
.
state
.
userInfoList
.
length
)
if
(
this
.
state
.
userInfoList
.
length
)
{
alert
(
3
)
this
.
props
.
startFetchUser
()
this
.
appLogin
()
}
...
...
@@ -64,11 +61,10 @@ class Python extends Component {
this
.
setState
({
isAppUpdate
:
true
})
this
.
fetchCourseInfo
();
}
this
.
props
.
setCurrentUser
(
this
.
transformUser
(
this
.
state
.
userInfoList
));
this
.
fetchCourseInfo
();
}
transformUser
=
res
=>
{
...
...
@@ -110,8 +106,6 @@ class Python extends Component {
isPay
:
0
,
})
}
else
{
// 安卓/IOS 的高版本
alert
(
'的高版本'
);
alert
(
data
.
course_info
.
is_pay
)
if
(
data
.
course_info
.
is_pay
===
1
)
{
// 在APP内未登录-去登陆-登录后还显示此页;如果是已购买的用户 就需要跳转到 APP已购买的原生页面
SendMessageToApp
(
'toSyllabusChapter'
,
id
);
// 跳转到APP的已购买详情页 id 是课程ID
return
;
...
...
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