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
cfe5dfc1
Commit
cfe5dfc1
authored
Nov 28, 2019
by
FE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
from param and mask click
parent
7c2550d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
src/components/pythonShare/index.js
+11
-3
No files found.
src/components/pythonShare/index.js
View file @
cfe5dfc1
...
...
@@ -17,7 +17,7 @@ class PythonClass extends Component {
isWechat
:
browser
.
isWeixin
,
isShare
:
true
,
type
:
'1'
,
// 1:课后习题,2:课堂习题
entryMode
:
1
,
// 0:扫码页,1:落地页,2:直接进入
entryMode
:
0
,
// 0:扫码页,1:落地页,2:直接进入
isExecute
:
false
,
isCopy
:
false
,
command
:
''
,
...
...
@@ -103,6 +103,12 @@ class PythonClass extends Component {
});
}
handleToHide
=
()
=>
{
this
.
setState
({
entryMode
:
2
});
}
render
()
{
const
{
isWechat
,
isShare
,
isExecute
,
type
,
entryMode
,
command
,
isCopy
,
data
}
=
this
.
state
;
return
(
...
...
@@ -124,6 +130,7 @@ class PythonClass extends Component {
handleToExecute
=
{
this
.
handleToExecute
}
handleToSend
=
{
this
.
handleToSend
}
copyToSuccess
=
{
this
.
copyToSuccess
}
handleToHide
=
{
this
.
handleToHide
}
/
>
<
/
>
);
...
...
@@ -158,7 +165,8 @@ function PythonContent(props) {
data
:
{
head_img
,
nickname
,
code_lines
,
code
,
result
,
ques_name
,
course_name
,
course_id
,
video_name
},
handleToSend
,
copyToSuccess
,
handleToExecute
handleToExecute
,
handleToHide
}
=
props
;
let
labelName
=
''
;
if
(
type
===
'1'
)
{
...
...
@@ -192,7 +200,7 @@ function PythonContent(props) {
{
(
entryMode
===
1
&&
isWechat
)
&&
<
div
className
=
"python-popup"
>
<
div
className
=
"python-popup"
onClick
=
{
handleToHide
}
>
<
div
className
=
"python-header"
>
<
p
className
=
"python-wechat__title"
>
请点击右上角分享
<
/p
>
<
i
className
=
"iconfont iconyindao"
><
/i
>
...
...
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