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
7b67b3fb
Commit
7b67b3fb
authored
Sep 11, 2019
by
FE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
note console and split btn no click
parent
6e4be8ad
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
26 additions
and
26 deletions
+26
-26
src/common/HeaderBar/index.js
+1
-1
src/components/detail/group/index.js
+1
-1
src/components/detail/group/togroup.js
+2
-2
src/components/detail/redPacket/index.js
+1
-1
src/components/detail/redPacket/index.scss
+1
-0
src/components/detail/single/singleSuccess.js
+1
-1
src/components/order/index.js
+0
-1
src/components/order/orderinfo.js
+2
-2
src/components/order/payOrder/PayOrder.js
+5
-5
src/components/passport/index.js
+1
-1
src/components/passport/setPassword/index.js
+1
-1
src/components/search/searchHead.js
+1
-1
src/components/sharePoster/index.js
+2
-2
src/components/shopCart/index.js
+2
-2
src/components/study/myCourses/actions.js
+1
-1
src/components/video/camp/campResolve.js
+2
-2
src/components/video/camp/campTest.js
+1
-1
src/components/video/index.js
+1
-1
No files found.
src/common/HeaderBar/index.js
View file @
7b67b3fb
...
...
@@ -17,7 +17,7 @@ class HeaderBar extends Component {
toLink
=
()
=>
{
const
{
toHref
}
=
this
.
props
;
console
.
log
(
toHref
);
//
console.log(toHref);
location
.
replace
(
toHref
)
}
...
...
src/components/detail/group/index.js
View file @
7b67b3fb
...
...
@@ -19,7 +19,7 @@ class Group extends Component {
countdown
:
props
.
countdown
,
now_groupon_list
:
[],
}
console
.
log
(
props
);
//
console.log(props);
}
// 查看更多
...
...
src/components/detail/group/togroup.js
View file @
7b67b3fb
...
...
@@ -47,7 +47,7 @@ class ToGroup extends Component {
componentDidMount
()
{
Promise
.
all
([
http
.
get
(
`
${
API
[
'base-api'
]}
/pdd/goupon_pay_page/
${
getParam
(
'id'
)}
`
),
http
.
get
(
`
${
API
.
home
}
/m/user_info`
)]).
then
(
resultList
=>
{
console
.
log
(
resultList
);
//
console.log(resultList);
let
res
=
resultList
[
0
],
userInfo
=
resultList
[
1
];
if
(
res
.
data
.
errno
!==
0
)
{
...
...
@@ -112,7 +112,7 @@ class ToGroup extends Component {
modal
:
true
})
}
console
.
log
(
this
.
state
);
//
console.log(this.state);
}
render
()
{
...
...
src/components/detail/redPacket/index.js
View file @
7b67b3fb
...
...
@@ -50,7 +50,7 @@ class RedPacket extends PureComponent {
}
componentDidMount
()
{
console
.
log
(
this
.
props
);
//
console.log(this.props);
const
share_code
=
getParam
(
'share_code'
);
const
{
country
}
=
this
.
props
;
if
(
country
.
code
)
{
...
...
src/components/detail/redPacket/index.scss
View file @
7b67b3fb
...
...
@@ -278,6 +278,7 @@
background-color
:
transparent
;
cursor
:
pointer
;
outline
:
none
;
z-index
:
999
;
}
.popup-packet__button--bundle
{
...
...
src/components/detail/single/singleSuccess.js
View file @
7b67b3fb
...
...
@@ -190,7 +190,7 @@ class Single extends Component {
},
1000
)
}
const
{
singleType
}
=
this
.
props
;
console
.
log
(
this
.
props
);
//
console.log(this.props);
const
videoID
=
this
.
props
.
data
.
video_id
||
this
.
props
.
data
.
id
;
return
(
<
div
className
=
'popup-box'
>
...
...
src/components/order/index.js
View file @
7b67b3fb
...
...
@@ -349,7 +349,6 @@ class Order extends Component {
// this.publicLocalStorage();
// })
// }else{
console
.
log
(
8
);
http
.
get
(
`
${
API
[
'base-api'
]}
/m/order/preorder`
).
then
((
res
)
=>
{
console
.
log
(
'为了验证什么条件下会走这段代码'
);
if
(
res
.
data
.
errno
!==
200
)
{
...
...
src/components/order/orderinfo.js
View file @
7b67b3fb
...
...
@@ -95,7 +95,7 @@ const MyForm = withFormik({
if
(
FormBag
.
props
.
userInfo
.
id
)
{
pathName
=
pathName
+
'?id='
+
FormBag
.
props
.
userInfo
.
id
;
}
console
.
log
(
values
);
//
console.log(values);
if
(
same
===
3
)
{
FormBag
.
props
.
history
.
replace
(
pathName
,
...
...
@@ -106,7 +106,7 @@ const MyForm = withFormik({
return
;
}
http
.
post
(
`
${
API
[
'base-api'
]}
/m/order/saveUserInfo`
,
{
real_name
:
values
.
real_name
,
cellphone
:
(
`
${
values
.
cellphone
}
`
).
replace
(
/
\s
+/g
,
''
),
qq
:
values
.
qq
}).
then
(
res
=>
{
console
.
log
(
res
);
//
console.log(res);
if
(
res
.
data
.
errno
!==
200
)
{
Toast
.
info
(
res
.
data
.
msg
,
undefined
,
undefined
,
false
);
return
;
...
...
src/components/order/payOrder/PayOrder.js
View file @
7b67b3fb
...
...
@@ -83,7 +83,7 @@ export default class PayOrder extends Component {
}
};
checkStaging
=
(
item
)
=>
{
console
.
log
(
item
);
//
console.log(item);
this
.
setState
({
huabei
:
false
,
stageNumber
:
item
.
value
,
...
...
@@ -115,7 +115,7 @@ export default class PayOrder extends Component {
}
else
{
// 微信外部-支付
http
.
get
(
`
${
API
[
'base-api'
]}
/pay/wxpay/wap_charge/oid/
${
orderId
}
`
).
then
((
res
)
=>
{
console
.
log
(
res
);
//
console.log(res);
if
(
res
.
data
.
errno
===
0
)
{
window
.
location
.
href
=
res
.
data
.
data
.
url
+
"&redirect_url="
+
encodeURIComponent
(
window
.
location
.
href
+
"&weixinpay=1"
).
toLowerCase
();
}
else
{
...
...
@@ -253,9 +253,9 @@ export default class PayOrder extends Component {
huabeiPay
=
(
orderId
)
=>
{
const
{
singleMoney
,
periodNumber
}
=
this
.
state
;
console
.
log
(
'花呗分期支付'
);
//
console.log('花呗分期支付');
http
.
get
(
`/pay/alipay/wap_charge/oid/
${
orderId
}
/plat/{plat} /hb_num/
${
periodNumber
}
`
).
then
(
res
=>
{
console
.
log
(
res
);
//
console.log(res);
if
(
res
.
data
.
errno
===
0
)
{
window
.
location
=
res
.
data
.
data
.
url
;
}
else
{
...
...
@@ -307,7 +307,7 @@ export default class PayOrder extends Component {
obj
.
everyTotal
=
(
parseFloat
(
obj
.
periodic
)
+
parseFloat
(
obj
.
serviceFee
)).
toFixed
(
2
);
// 每期总费用 = 每期本金 + 每期手续费
fenqiList
.
push
(
obj
);
});
console
.
log
(
fenqiList
);
//
console.log(fenqiList);
// { value: 'zhifubao', qishu: '3', lilv: '2.30%', everyMoney: 300, feiyong: 2.3 },
// { value: 'weixin', qishu: '6', lilv: '4.50%', everyMoney: 150, feiyong: 4.5 },
// { value: 'huabei', qishu: '9', lilv: '7.50%', everyMoney: 100, feiyong: 7.5 },
...
...
src/components/passport/index.js
View file @
7b67b3fb
...
...
@@ -68,7 +68,7 @@ class Passport extends Component {
let
{
history
}
=
this
.
props
let
{
data
}
=
this
.
props
.
user
if
(
data
&&
Object
.
values
(
data
).
filter
(
item
=>
!!
item
).
length
)
{
history
.
action
===
'POP'
&&
history
.
length
<=
3
?
history
.
push
(
'/'
)
:
history
.
go
(
-
1
)
(
history
.
action
===
'POP'
&&
history
.
length
<=
3
)
?
history
.
push
(
'/'
)
:
history
.
go
(
-
1
)
}
}
...
...
src/components/passport/setPassword/index.js
View file @
7b67b3fb
...
...
@@ -17,7 +17,7 @@ import { connect } from "react-redux";
class
SetPassword
extends
Component
{
componentDidMount
()
{
console
.
log
(
this
.
props
.
location
);
//
console.log(this.props.location);
}
...
...
src/components/search/searchHead.js
View file @
7b67b3fb
...
...
@@ -38,7 +38,7 @@ class SearchHead extends PureComponent {
render
()
{
const
{
isFocus
}
=
this
.
state
;
const
cls
=
classnames
(
'submit-btn'
,
{
'submit-btn--active'
:
isFocus
})
console
.
log
(
isFocus
);
//
console.log(isFocus);
return
(
<
div
className
=
"search-head"
>
...
...
src/components/sharePoster/index.js
View file @
7b67b3fb
...
...
@@ -23,7 +23,7 @@ class SharePoster extends Component {
componentDidMount
()
{
this
.
getCodeWe
();
http
.
get
(
`
${
API
.
home
}
/m/dist/posters/
${
getParam
(
'courseId'
)}
/
${
getParam
(
'uid'
)}
`
).
then
((
res
)
=>
{
console
.
log
(
res
);
//
console.log(res);
if
(
res
.
data
.
code
===
200
)
{
this
.
setState
({
imgUrl
:
res
.
data
.
data
.
avatar
,
...
...
@@ -59,7 +59,7 @@ class SharePoster extends Component {
var
canvas
=
document
.
getElementById
(
"canvas"
),
context
=
canvas
.
getContext
(
"2d"
);
console
.
log
(
_this
);
//
console.log(_this);
_this
.
getBase64
(
imgSrc1
)
// 背景图片合成
.
then
((
img
)
=>
{
...
...
src/components/shopCart/index.js
View file @
7b67b3fb
...
...
@@ -129,7 +129,7 @@ class Cart extends Component {
// 去结算
tobuy
=
()
=>
{
console
.
log
(
this
.
state
.
courseIdarr
);
//
console.log(this.state.courseIdarr);
http
.
get
(
`
${
API
[
'base-api'
]}
/m/cart/addtopreorder/[
${
this
.
state
.
courseIdarr
}
]`
).
then
((
res
)
=>
{
if
(
res
.
data
.
errno
==
0
)
{
this
.
props
.
history
.
push
(
`/order?id=[
${
this
.
state
.
courseIdarr
}
]`
,{
simple
:
1
})
...
...
@@ -170,7 +170,7 @@ class Cart extends Component {
}
toCourseDetail
=
(
id
)
=>
{
console
.
log
(
id
);
//
console.log(id);
const
{
dispatch
,
history
}
=
this
.
props
;
// dispatch(getCourses(id, () => {
history
.
push
(
`/detail?id=
${
id
}
`
)
...
...
src/components/study/myCourses/actions.js
View file @
7b67b3fb
...
...
@@ -12,7 +12,7 @@ const PAGE_INTERVAL = 1
export
const
NUM_INTERVAL
=
10
export
const
fetchCoursesListIfNeeded
=
()
=>
(
dispatch
,
getState
)
=>
{
const
myCourses
=
getState
().
myCourses
console
.
log
(
myCourses
);
//
console.log(myCourses);
const
{
switchTab
,
page
,
noMore
}
=
myCourses
if
(
!
switchTab
&&
!
noMore
)
{
dispatch
(
getMyCourses
({
...
...
src/components/video/camp/campResolve.js
View file @
7b67b3fb
...
...
@@ -43,7 +43,7 @@ class CampResolve extends Component {
if
(
state
.
from
&&
state
.
from
.
indexOf
(
'detail'
)
!==
-
1
)
{
to
=
'classify'
}
console
.
log
(
this
.
props
);
//
console.log(this.props);
history
.
push
(
`
${
state
.
from
}
`
,
{
...
...
@@ -58,7 +58,7 @@ class CampResolve extends Component {
let
_this
=
this
;
// 获取问题列表
http
.
get
(
`
${
API
.
home
}
/m/aist/analysis/
${
this
.
keshi_id
}
/
${
this
.
qidP
}
`
).
then
(
res
=>
{
console
.
log
(
res
);
//
console.log(res);
if
(
res
.
data
.
code
===
4040
)
{
Toast
.
info
(
res
.
data
.
msg
,
2
,
()
=>
{
this
.
props
.
history
.
push
(
'/passport'
);
...
...
src/components/video/camp/campTest.js
View file @
7b67b3fb
...
...
@@ -79,7 +79,7 @@ class CampTest extends Component {
if
(
state
.
from
&&
state
.
from
.
indexOf
(
'detail'
)
!==
-
1
)
{
to
=
'classify'
}
console
.
log
(
this
.
props
);
//
console.log(this.props);
history
.
push
(
`
${
state
.
from
}
`
,
{
...
...
src/components/video/index.js
View file @
7b67b3fb
...
...
@@ -147,7 +147,7 @@ class Video extends Component {
}
// 购买单集
toSingleset
=
(
item
)
=>
{
console
.
log
(
item
);
//
console.log(item);
this
.
setState
({
singleBox
:
true
,
singleType
:
1
,
...
...
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