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
957c2528
Commit
957c2528
authored
Aug 20, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
master
parent
ae4fe18d
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
44 additions
and
21 deletions
+44
-21
src/components/detail/group/togroup.js
+3
-2
src/components/detail/index.js
+2
-1
src/components/my/index.js
+15
-5
src/components/order/index.js
+1
-1
src/components/passport/accountLogin/accountLogin.scss
+10
-0
src/components/passport/accountLogin/index.js
+3
-0
src/components/passport/common/passwordInput/index.js
+0
-3
src/components/passport/common/passwordInput/password-input.scss
+1
-6
src/components/scholarship/index.js
+9
-3
No files found.
src/components/detail/group/togroup.js
View file @
957c2528
...
...
@@ -2,12 +2,13 @@ import React, { Component } from 'react'
import
'./togroup.scss'
import
{
HeaderBar
,
VList
}
from
'../../../common'
import
{
api
,
getParam
,
http
,
browser
}
from
"@/utils"
;
import
{
getParam
,
http
,
browser
}
from
"@/utils"
;
import
{
connect
}
from
"react-redux"
import
{
Link
}
from
"react-router-dom"
import
{
WingBlank
,
WhiteSpace
,
Flex
,
Toast
}
from
'antd-mobile'
import
{
getCourses
}
from
'./../../detail/actions'
;
@
connect
()
class
ToGroup
extends
Component
{
constructor
(
props
)
{
super
(
props
)
...
...
src/components/detail/index.js
View file @
957c2528
...
...
@@ -38,7 +38,8 @@ class Detail extends Component {
this
.
props
.
getCourses
();
}
const
{
courseInfo
}
=
this
.
props
;
if
(
courseInfo
.
is_bargain
)
{
console
.
log
(
this
.
props
);
if
(
courseInfo
.
course_info
.
is_bargain
)
{
this
.
getBargainInfo
();
}
}
...
...
src/components/my/index.js
View file @
957c2528
...
...
@@ -7,10 +7,14 @@ import {WithTab} from '@/HOCs'
import
{
Link
}
from
"react-router-dom"
import
{
connect
}
from
"react-redux"
import
{
HeaderBar
}
from
"@/common"
import
{
getCourses
}
from
'./../detail/actions'
;
const
Item
=
List
.
Item
;
const
Brief
=
Item
.
Brief
;
@
connect
(
state
=>
({
user
:
state
.
user
}))
class
My
extends
PureComponent
{
constructor
(
props
)
{
super
(
props
)
...
...
@@ -24,6 +28,14 @@ class My extends PureComponent {
this
.
props
.
history
.
push
(
'/passport'
)
}
toCourseDetail
=
(
id
)
=>
{
const
{
dispatch
,
history
}
=
this
.
props
;
dispatch
(
getCourses
(
id
,
()
=>
{
history
.
push
(
`/detail?id=
${
id
}
`
);
return
false
;
}));
}
render
()
{
const
{
user
}
=
this
.
props
const
uid
=
user
&&
user
.
data
&&
user
.
data
.
uid
...
...
@@ -64,7 +76,8 @@ class My extends PureComponent {
<
/Link
>
{
(
isVIP
===
0
||
!
isVIP
)
&&
<
Link
className
=
"my-isvip"
to
=
{
`/detail?id=139`
}
><
/Link
>
<
a
href
=
"javascript:;"
className
=
"my-isvip"
onClick
=
{()
=>
this
.
toCourseDetail
(
139
)}
><
/a
>
// <Link className="my-isvip" to={`/detail?id=139`}></Link>
}
<
/List
>
}
...
...
@@ -127,7 +140,4 @@ class My extends PureComponent {
}
export
default
connect
(
state
=>
({
user
:
state
.
user
}),
null
)(
WithTab
(
My
))
export
default
WithTab
(
My
);
src/components/order/index.js
View file @
957c2528
...
...
@@ -127,7 +127,7 @@ class Order extends Component {
if
(
res
.
data
.
errno
===
200
)
{
sessionStorage
.
removeItem
(
'orderUseCacheObj'
);
if
(
res
.
data
.
data
.
pay_jump
===
1
)
{
this
.
props
.
history
.
push
(
`/togroup?id=
${
res
.
data
.
data
.
o
rder_
id
}
`
);
this
.
props
.
history
.
push
(
`/togroup?id=
${
res
.
data
.
data
.
oid
}
`
);
return
;
}
this
.
props
.
history
.
replace
(
`/payorder?oid=
${
res
.
data
.
data
.
oid
}
`
);
...
...
src/components/passport/accountLogin/accountLogin.scss
View file @
957c2528
...
...
@@ -32,4 +32,13 @@
}
}
.lock-icon
{
position
:
absolute
;
top
:
50%
;
transform
:
translateY
(
-50%
);
left
:
10px
;
font-size
:
22px
;
}
}
\ No newline at end of file
src/components/passport/accountLogin/index.js
View file @
957c2528
...
...
@@ -50,6 +50,9 @@ class AccountLogin extends PureComponent {
{...
field
}
autoComplete
=
{
'on'
}
placeholder
=
{
'密码'
}
icon
=
{
<
i
className
=
{
'iconfont iconiconfront-74 lock-icon'
}
/
>
}
/
>
)}
/
>
...
...
src/components/passport/common/passwordInput/index.js
View file @
957c2528
...
...
@@ -24,9 +24,6 @@ class PasswordInput extends PureComponent {
wrapperClass
=
{
'password-input'
}
placeholder
=
{
placeholder
}
{...
rest
}
icon
=
{
<
i
className
=
{
'iconfont iconiconfront-74 lock-icon'
}
><
/i
>
}
>
<
i
className
=
{
classnames
(
'iconfont'
,
[
this
.
state
.
showPassword
?
'iconpwd-hidden'
:
'iconyanjing'
])}
onClick
=
{
this
.
togglePasswordVisibility
}
/
>
...
...
src/components/passport/common/passwordInput/password-input.scss
View file @
957c2528
.password-input
{
margin-bottom
:
24px
;
.iconfont
{
.iconfont
:last-child
{
position
:
absolute
;
top
:
50%
;
transform
:
translateY
(
-50%
);
right
:
16px
;
font-size
:
20px
;
}
.lock-icon
{
left
:
10px
;
font-size
:
22px
;
}
}
\ No newline at end of file
src/components/scholarship/index.js
View file @
957c2528
...
...
@@ -61,6 +61,15 @@ class _Scholarship extends Component {
}
// 提现按钮 根据是否在微信环境中显示提示
drawCash
=
()
=>
{
if
(
is_weixin
())
{
this
.
setState
({
drawCashWechat
:
true
});
}
else
{
this
.
setState
({
drawCashHtml
:
true
});
}
const
{
hasError
,
data
=
{}}
=
this
.
props
.
user
;
if
(
hasError
)
{
Toast
.
info
(
"请登录提现!"
,
undefined
,
undefined
,
false
);
...
...
@@ -68,16 +77,13 @@ class _Scholarship extends Component {
}
http
.
get
(
`
${
API
[
'base-api'
]}
/wx/user_temporary_qrcode/
${
data
.
uid
}
`
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
data
.
errno
===
0
)
{
if
(
is_weixin
())
{
this
.
setState
({
drawCashWechat
:
true
,
codeSrc
:
res
.
data
.
data
.
qr_image
});
}
else
{
this
.
setState
({
drawCashHtml
:
true
,
codeSrc
:
res
.
data
.
data
.
qr_image
});
}
...
...
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