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
19d5212d
Commit
19d5212d
authored
Sep 26, 2019
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
试听 打包
parent
cd9c5f31
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
1 additions
and
125 deletions
+1
-125
src/App.js
+1
-40
src/common/CallApp/index.js
+0
-19
src/common/Captcha/index.js
+0
-4
src/components/bargainMiddlePage/barcode/index.js
+0
-21
src/components/bargainMiddlePage/barcode/index.scss
+0
-8
src/components/detail/bargain/index.js
+0
-4
src/components/detail/index.js
+0
-8
src/components/passport/bindingTel/index.js
+0
-4
src/components/passport/common/veriCodeInput/index.js
+0
-4
src/components/passport/forgotPassword/index.js
+0
-4
src/components/passport/login/index.js
+0
-4
src/components/passport/setPassword/index.js
+0
-5
No files found.
src/App.js
View file @
19d5212d
...
@@ -62,15 +62,9 @@ class App extends Component {
...
@@ -62,15 +62,9 @@ class App extends Component {
const
routeMatchRule
=
/binding-tel|forgot|set-password/
const
routeMatchRule
=
/binding-tel|forgot|set-password/
const
{
history
}
=
this
.
props
const
{
history
}
=
this
.
props
history
.
listen
((
location
,
action
)
=>
{
history
.
listen
((
location
,
action
)
=>
{
<<<<<<<
HEAD
this
.
utm
()
this
.
utm
()
this
.
firstLoad
=
false
this
.
firstLoad
=
false
this
.
setNavigationRecord
(
location
,
action
)
this
.
setNavigationRecord
(
location
,
action
)
=======
this
.
firstLoad
=
false
this
.
setNavigationRecord
(
location
,
action
)
this
.
utm
()
>>>>>>>
1
fc750fdc1798d51d70f5528d18340721dff9ef8
if
(
cookie
.
get
(
'uid'
)
&&
this
.
props
.
user
.
hasError
)
{
if
(
cookie
.
get
(
'uid'
)
&&
this
.
props
.
user
.
hasError
)
{
this
.
getUser
()
this
.
getUser
()
}
}
...
@@ -94,21 +88,14 @@ class App extends Component {
...
@@ -94,21 +88,14 @@ class App extends Component {
setNavigationRecord
=
(
location
,
action
)
=>
{
setNavigationRecord
=
(
location
,
action
)
=>
{
const
{
pathname
,
search
,
hash
}
=
location
const
{
pathname
,
search
,
hash
}
=
location
<<<<<<<
HEAD
let
isLastRecord
=
location
.
pathname
===
(
this
.
records
.
length
&&
this
.
records
[
this
.
records
.
length
-
1
].
pathname
)
let
isLastRecord
=
location
.
pathname
===
(
this
.
records
.
length
&&
this
.
records
[
this
.
records
.
length
-
1
].
pathname
)
=======
let
isLastRecord
=
location
.
pathname
===
this
.
records
.
length
&&
this
.
records
[
this
.
records
.
length
-
1
].
pathname
>>>>>>>
1
fc750fdc1798d51d70f5528d18340721dff9ef8
switch
(
action
)
{
switch
(
action
)
{
case
'POP'
:
case
'POP'
:
this
.
firstLoad
?
this
.
records
.
push
({
pathname
,
search
,
hash
})
:
this
.
records
.
pop
()
this
.
firstLoad
?
this
.
records
.
push
({
pathname
,
search
,
hash
})
:
this
.
records
.
pop
()
break
break
case
'REPLACE'
:
case
'REPLACE'
:
<<<<<<<
HEAD
this
.
records
.
length
>
1
&&
(
this
.
records
[
this
.
records
.
length
-
1
]
=
{
pathname
,
search
,
hash
})
this
.
records
.
length
>
1
&&
(
this
.
records
[
this
.
records
.
length
-
1
]
=
{
pathname
,
search
,
hash
})
=======
this
.
records
[
this
.
records
.
length
-
1
]
=
{
pathname
,
search
,
hash
}
>>>>>>>
1
fc750fdc1798d51d70f5528d18340721dff9ef8
break
break
default
:
default
:
!
isLastRecord
&&
this
.
records
.
push
({
pathname
,
search
,
hash
})
!
isLastRecord
&&
this
.
records
.
push
({
pathname
,
search
,
hash
})
...
@@ -116,10 +103,7 @@ class App extends Component {
...
@@ -116,10 +103,7 @@ class App extends Component {
location
.
state
&&
location
.
state
.
records
location
.
state
&&
location
.
state
.
records
?
(
location
.
state
.
records
=
this
.
records
)
?
(
location
.
state
.
records
=
this
.
records
)
<<<<<<<
HEAD
:
location
.
state
?
location
.
state
=
{...
location
.
state
,
records
:
this
.
records
}
:
location
.
state
?
location
.
state
=
{...
location
.
state
,
records
:
this
.
records
}
=======
>>>>>>>
1
fc750fdc1798d51d70f5528d18340721dff9ef8
:
(
location
.
state
=
{
records
:
this
.
records
})
:
(
location
.
state
=
{
records
:
this
.
records
})
}
}
...
@@ -186,11 +170,6 @@ class App extends Component {
...
@@ -186,11 +170,6 @@ class App extends Component {
}
}
componentDidUpdate
()
{
componentDidUpdate
()
{
<<<<<<<
HEAD
=======
this
.
setPreviousLocation
()
>>>>>>>
1
fc750fdc1798d51d70f5528d18340721dff9ef8
if
(
!
this
.
props
.
user
.
hasError
&&
getParam
(
'redirect'
))
{
if
(
!
this
.
props
.
user
.
hasError
&&
getParam
(
'redirect'
))
{
window
.
location
.
href
=
getParam
(
'redirect'
)
window
.
location
.
href
=
getParam
(
'redirect'
)
...
@@ -199,19 +178,12 @@ class App extends Component {
...
@@ -199,19 +178,12 @@ class App extends Component {
setPreviousLocation
=
()
=>
{
setPreviousLocation
=
()
=>
{
const
{
location
,
history
:
{
action
}}
=
this
.
props
const
{
location
,
history
:
{
action
}}
=
this
.
props
<<<<<<<
HEAD
if
(
location
.
pathname
.
startsWith
(
'/passport'
))
{
if
(
location
.
pathname
.
startsWith
(
'/passport'
))
{
/*let index = this.records.findIndex(item => item.pathname.startsWith('/passport'))
/*let index = this.records.findIndex(item => item.pathname.startsWith('/passport'))
=======
if (location.pathname.startsWith('/passport')) {
let index = this.records.findIndex(item => item.pathname.startsWith('/passport'))
>>>>>>> 1fc750fdc1798d51d70f5528d18340721dff9ef8
this.previousLocation = index > 0
this.previousLocation = index > 0
? this.records[index - 1]
? this.records[index - 1]
: this.records.length
: this.records.length
? this.records[this.records.length - 1]
? this.records[this.records.length - 1]
<<<<<<< HEAD
: null*/
: null*/
}
else
{
}
else
{
if
(
action
===
'POP'
||
action
===
'REPLACE'
)
{
if
(
action
===
'POP'
||
action
===
'REPLACE'
)
{
...
@@ -223,17 +195,6 @@ class App extends Component {
...
@@ -223,17 +195,6 @@ class App extends Component {
}
}
=======
:
null
}
else
{
if
(
action
===
'POP'
||
action
===
'REPLACE'
)
{
let
index
=
this
.
records
.
findIndex
(
item
=>
item
.
pathname
.
startsWith
(
'/passport'
))
this
.
previousLocation
=
index
>
0
?
this
.
records
[
index
-
1
]
:
this
.
records
[
this
.
records
.
length
-
1
]
}
else
{
this
.
previousLocation
=
location
}
}
>>>>>>>
1
fc750fdc1798d51d70f5528d18340721dff9ef8
}
}
transformUser
=
res
=>
{
transformUser
=
res
=>
{
...
...
src/common/CallApp/index.js
View file @
19d5212d
...
@@ -24,32 +24,13 @@ const options = {
...
@@ -24,32 +24,13 @@ const options = {
class
OpenApp
extends
Component
{
class
OpenApp
extends
Component
{
<<<<<<<
HEAD
callApp
=
new
CallApp
(
options
)
callApp
=
new
CallApp
(
options
)
// callApp = null
// callApp = null
=======
// callApp = new CallApp(options)
callApp
=
null
>>>>>>>
1
fc750fdc1798d51d70f5528d18340721dff9ef8
static
defaultProps
=
{
static
defaultProps
=
{
text
:
'在APP打开'
text
:
'在APP打开'
}
}
<<<<<<<
HEAD
componentWillMount
()
{
// this.callApp = new CallApp({});
=======
componentWillMount
()
{
this
.
callApp
=
new
CallApp
({
...
options
,
path
:
this
.
props
.
path
||
'/'
});
>>>>>>>
1
fc750fdc1798d51d70f5528d18340721dff9ef8
}
handleClick
=
()
=>
{
handleClick
=
()
=>
{
this
.
callApp
.
open
({
this
.
callApp
.
open
({
path
:
''
,
path
:
''
,
...
...
src/common/Captcha/index.js
View file @
19d5212d
...
@@ -13,12 +13,8 @@ class Captcha extends Component {
...
@@ -13,12 +13,8 @@ class Captcha extends Component {
}
}
componentDidMount
()
{
componentDidMount
()
{
<<<<<<<
HEAD
const
{
getInstance
,
handleError
,
onVerify
}
=
this
.
props
;
const
{
getInstance
,
handleError
,
onVerify
}
=
this
.
props
;
const
_this
=
this
;
const
_this
=
this
;
=======
const
{
getInstance
,
handleError
,
onVerify
}
=
this
.
props
>>>>>>>
1
fc750fdc1798d51d70f5528d18340721dff9ef8
const
el
=
document
.
getElementById
(
'captcha'
);
const
el
=
document
.
getElementById
(
'captcha'
);
el
&&
initCaptcha
(
function
()
{
el
&&
initCaptcha
(
function
()
{
initNECaptcha
({
initNECaptcha
({
...
...
src/components/bargainMiddlePage/barcode/index.js
View file @
19d5212d
...
@@ -8,12 +8,8 @@ class FollowBarcode extends Component {
...
@@ -8,12 +8,8 @@ class FollowBarcode extends Component {
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
);
super
(
props
);
this
.
state
=
{
this
.
state
=
{
<<<<<<<
HEAD
url
:
''
,
url
:
''
,
codeUrl
:
''
codeUrl
:
''
=======
url
:
''
>>>>>>>
1
fc750fdc1798d51d70f5528d18340721dff9ef8
}
}
}
}
...
@@ -28,21 +24,12 @@ class FollowBarcode extends Component {
...
@@ -28,21 +24,12 @@ class FollowBarcode extends Component {
this
.
setState
({
this
.
setState
({
url
:
data
.
url
url
:
data
.
url
});
});
<<<<<<<
HEAD
const
_this
=
this
;
const
_this
=
this
;
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
QRCode
.
toDataURL
(
data
.
url
,
{},
function
(
err
,
url
)
{
QRCode
.
toDataURL
(
data
.
url
,
{},
function
(
err
,
url
)
{
console
.
log
(
url
);
_this
.
setState
({
_this
.
setState
({
codeUrl
:
url
codeUrl
:
url
});
});
=======
return
new
Promise
(
resolve
=>
{
QRCode
.
toDataURL
(
data
.
url
,
{},
function
(
err
,
url
)
{
this
.
setState
({
codeUrl
:
url
})
>>>>>>>
1
fc750fdc1798d51d70f5528d18340721dff9ef8
});
});
resolve
();
resolve
();
});
});
...
@@ -52,11 +39,7 @@ class FollowBarcode extends Component {
...
@@ -52,11 +39,7 @@ class FollowBarcode extends Component {
}
}
render
()
{
render
()
{
<<<<<<<
HEAD
const
{
codeUrl
}
=
this
.
state
;
const
{
codeUrl
}
=
this
.
state
;
=======
const
{
codeSrc
}
=
this
.
state
;
>>>>>>>
1
fc750fdc1798d51d70f5528d18340721dff9ef8
const
{
firendBaigainPrice
,
userInfo
:
{
avatar
},
money
}
=
this
.
props
;
const
{
firendBaigainPrice
,
userInfo
:
{
avatar
},
money
}
=
this
.
props
;
return
(
return
(
<
div
className
=
'bargain-popup__barcode'
>
<
div
className
=
'bargain-popup__barcode'
>
...
@@ -66,11 +49,7 @@ class FollowBarcode extends Component {
...
@@ -66,11 +49,7 @@ class FollowBarcode extends Component {
<
p
className
=
'bargain-popup__title'
>
谢谢你帮我砍了
{
money
}
元!
<
/p
>
<
p
className
=
'bargain-popup__title'
>
谢谢你帮我砍了
{
money
}
元!
<
/p
>
}
}
<
p
className
=
'bargain-popup__desc'
>
关注公众号,可以再砍一刀哦
~<
/p
>
<
p
className
=
'bargain-popup__desc'
>
关注公众号,可以再砍一刀哦
~<
/p
>
<<<<<<<
HEAD
<
img
className
=
"bargain-popup__imgage"
src
=
{
codeUrl
}
alt
=
""
/>
<
img
className
=
"bargain-popup__imgage"
src
=
{
codeUrl
}
alt
=
""
/>
=======
<
i
className
=
"bargain-popup__imgage"
style
=
{{
backgroundImage
:
`url(
${
codeSrc
}
)`
}}
><
/i
>
>>>>>>>
1
fc750fdc1798d51d70f5528d18340721dff9ef8
<
/div
>
<
/div
>
);
);
}
}
...
...
src/components/bargainMiddlePage/barcode/index.scss
View file @
19d5212d
...
@@ -34,14 +34,7 @@
...
@@ -34,14 +34,7 @@
}
}
.bargain-popup__imgage
{
.bargain-popup__imgage
{
<<<<<<<
HEAD
display
:
block
;
display
:
block
;
width
:
106px
;
width
:
106px
;
margin
:
15px
auto
0
;
margin
:
15px
auto
0
;
=======
width
:
86px
;
height
:
86px
;
margin-top
:
15px
;
background-size
:
cover
;
>>>>>>>
1fc750fdc1798d51d70f5528d18340721dff9ef8
}
}
\ No newline at end of file
src/components/detail/bargain/index.js
View file @
19d5212d
...
@@ -80,11 +80,7 @@ class Bargain extends Component {
...
@@ -80,11 +80,7 @@ class Bargain extends Component {
});
});
// 砍价状态 0-砍价中,1砍价结束,待支付,2砍价过期(没有砍价记录没有砍价信息),3已购买
// 砍价状态 0-砍价中,1砍价结束,待支付,2砍价过期(没有砍价记录没有砍价信息),3已购买
<<<<<<<
HEAD
if
(
data
.
bargain_status
===
0
||
data
.
bargain_status
===
1
)
{
if
(
data
.
bargain_status
===
0
||
data
.
bargain_status
===
1
)
{
=======
if
(
data
.
bargain_status
===
0
)
{
>>>>>>>
1
fc750fdc1798d51d70f5528d18340721dff9ef8
this
.
getBargainRankList
({
this
.
getBargainRankList
({
type
:
0
,
type
:
0
,
bargain_code
:
data
.
bargain_code
bargain_code
:
data
.
bargain_code
...
...
src/components/detail/index.js
View file @
19d5212d
...
@@ -319,19 +319,12 @@ class Detail extends Component {
...
@@ -319,19 +319,12 @@ class Detail extends Component {
}
}
// 点击子组件试听按钮
// 点击子组件试听按钮
<<<<<<<
HEAD
toAudition
=
(
v_course_id
,
video_id
)
=>
{
=======
toAudition
=
(
vCourseId
,
videoId
)
=>
{
toAudition
=
(
vCourseId
,
videoId
)
=>
{
>>>>>>>
1
fc750fdc1798d51d70f5528d18340721dff9ef8
const
{
user
}
=
this
.
props
const
{
user
}
=
this
.
props
const
uid
=
user
&&
user
.
data
&&
user
.
data
.
uid
const
uid
=
user
&&
user
.
data
&&
user
.
data
.
uid
if
(
!
uid
)
{
if
(
!
uid
)
{
this
.
props
.
history
.
push
(
'/passport/login'
)
this
.
props
.
history
.
push
(
'/passport/login'
)
}
else
{
}
else
{
<<<<<<<
HEAD
this
.
props
.
history
.
push
(
`/play/video?id=
${
v_course_id
}
&video_id=
${
video_id
}
`
);
=======
if
(
videoId
==
''
||
videoId
==
0
||
videoId
==
undefined
){
if
(
videoId
==
''
||
videoId
==
0
||
videoId
==
undefined
){
return
false
;
return
false
;
}
}
...
@@ -345,7 +338,6 @@ class Detail extends Component {
...
@@ -345,7 +338,6 @@ class Detail extends Component {
// this.setState({
// this.setState({
// auditionBox: true,
// auditionBox: true,
// })
// })
>>>>>>>
1
fc750fdc1798d51d70f5528d18340721dff9ef8
}
}
}
}
// 点击子组件单集购买按钮
// 点击子组件单集购买按钮
...
...
src/components/passport/bindingTel/index.js
View file @
19d5212d
...
@@ -123,11 +123,7 @@ const formikConfig = {
...
@@ -123,11 +123,7 @@ const formikConfig = {
phone_num
:
values
.
tel
,
phone_num
:
values
.
tel
,
phone_code
:
values
.
veriCode
,
phone_code
:
values
.
veriCode
,
mkey
:
getParam
(
'mkey'
),
mkey
:
getParam
(
'mkey'
),
<<<<<<<
HEAD
area_code
:
'00'
+
props
.
country
.
num
,
area_code
:
'00'
+
props
.
country
.
num
,
=======
area_code
:
props
.
country
.
num
,
>>>>>>>
1
fc750fdc1798d51d70f5528d18340721dff9ef8
plat
:
5
plat
:
5
}).
then
(
res
=>
{
}).
then
(
res
=>
{
const
data
=
res
.
data
const
data
=
res
.
data
...
...
src/components/passport/common/veriCodeInput/index.js
View file @
19d5212d
...
@@ -87,11 +87,7 @@ class VeriCodeInput extends Component {
...
@@ -87,11 +87,7 @@ class VeriCodeInput extends Component {
http
.
post
(
`
${
API
[
'passport-api'
]}
/quick_sms`
,
{
http
.
post
(
`
${
API
[
'passport-api'
]}
/quick_sms`
,
{
phone_num
:
tel
||
account
,
phone_num
:
tel
||
account
,
action
:
action
||
'login'
,
action
:
action
||
'login'
,
<<<<<<<
HEAD
area_code
:
'00'
+
country
.
num
,
area_code
:
'00'
+
country
.
num
,
=======
area_code
:
country
.
num
,
>>>>>>>
1
fc750fdc1798d51d70f5528d18340721dff9ef8
challenge
,
challenge
,
checking
checking
}).
then
(
res
=>
{
}).
then
(
res
=>
{
...
...
src/components/passport/forgotPassword/index.js
View file @
19d5212d
...
@@ -123,11 +123,7 @@ const formikConfig = {
...
@@ -123,11 +123,7 @@ const formikConfig = {
http
.
post
(
`
${
API
[
'passport-api'
]}
/check_phone_code`
,
{
http
.
post
(
`
${
API
[
'passport-api'
]}
/check_phone_code`
,
{
phone
:
values
.
tel
,
phone
:
values
.
tel
,
code
:
values
.
veriCode
,
code
:
values
.
veriCode
,
<<<<<<<
HEAD
area_code
:
'00'
+
props
.
country
.
num
area_code
:
'00'
+
props
.
country
.
num
=======
area_code
:
props
.
country
.
num
>>>>>>>
1
fc750fdc1798d51d70f5528d18340721dff9ef8
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
data
.
errno
==
0
)
{
if
(
res
.
data
.
errno
==
0
)
{
props
.
history
.
push
(
'/passport/set-password'
,
{
from
:
props
.
location
})
props
.
history
.
push
(
'/passport/set-password'
,
{
from
:
props
.
location
})
...
...
src/components/passport/login/index.js
View file @
19d5212d
...
@@ -133,11 +133,7 @@ const FormikConfig = {
...
@@ -133,11 +133,7 @@ const FormikConfig = {
props
.
quickLogin
({
props
.
quickLogin
({
phone_num
:
values
.
tel
,
phone_num
:
values
.
tel
,
phone_code
:
values
.
veriCode
,
phone_code
:
values
.
veriCode
,
<<<<<<<
HEAD
area_code
:
'00'
+
props
.
country
.
num
area_code
:
'00'
+
props
.
country
.
num
=======
area_code
:
props
.
country
.
num
>>>>>>>
1
fc750fdc1798d51d70f5528d18340721dff9ef8
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
hasError
)
{
if
(
res
.
hasError
)
{
Toast
.
info
(
res
.
msg
);
Toast
.
info
(
res
.
msg
);
...
...
src/components/passport/setPassword/index.js
View file @
19d5212d
...
@@ -15,11 +15,6 @@ import { connect } from "react-redux";
...
@@ -15,11 +15,6 @@ import { connect } from "react-redux";
class
SetPassword
extends
Component
{
class
SetPassword
extends
Component
{
<<<<<<<
HEAD
=======
>>>>>>>
1
fc750fdc1798d51d70f5528d18340721dff9ef8
render
()
{
render
()
{
let
{
values
,
errors
,
location
}
=
this
.
props
let
{
values
,
errors
,
location
}
=
this
.
props
let
{
from
}
=
location
.
state
||
{
from
:
{
pathname
:
'/'
}}
let
{
from
}
=
location
.
state
||
{
from
:
{
pathname
:
'/'
}}
...
...
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