Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
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
黄庭坚
jinfa-platform
Commits
bc4f40fa
Commit
bc4f40fa
authored
Aug 18, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:微信支付页面
parent
b5a006ba
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
102 additions
and
4 deletions
+102
-4
wechat.png
src/assets/imgs/wechat.png
+0
-0
index.less
src/pages/lxMall/information/index.less
+0
-0
index.tsx
src/pages/lxMall/information/index.tsx
+17
-0
common.less
src/pages/lxMall/pay/components/common.less
+7
-0
index.less
src/pages/lxMall/pay/components/wechat/index.less
+39
-0
index.tsx
src/pages/lxMall/pay/components/wechat/index.tsx
+33
-0
index.tsx
src/pages/lxMall/pay/index.tsx
+6
-4
No files found.
src/assets/imgs/wechat.png
0 → 100644
View file @
bc4f40fa
59.5 KB
src/pages/lxMall/information/index.less
0 → 100644
View file @
bc4f40fa
src/pages/lxMall/information/index.tsx
0 → 100644
View file @
bc4f40fa
import
React
from
'react'
import
styles
from
'./index.less'
interface
InformationPropsType
{
}
const
Information
:
React
.
FC
<
InformationPropsType
>
=
(
props
)
=>
{
return
(
<
div
>
Information
</
div
>
)
}
export
default
Information
src/pages/lxMall/pay/components/common.less
View file @
bc4f40fa
...
...
@@ -6,11 +6,18 @@
line-height: 14px;
display: flex;
margin-bottom: 5px;
align-items: center;
&_icon {
color: #999999;
margin-left: 6px;
cursor: pointer;
margin-right: 5px;
&>img {
width: 20px;
height: 20px;
}
}
&>span {
...
...
src/pages/lxMall/pay/components/wechat/index.less
0 → 100644
View file @
bc4f40fa
@import '../common.less';
.wechat_payway {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
&_title {
color: #999999;
font-size: 12px;
padding-top: 60px;
padding-bottom: 20px;
}
&_imgbox {
padding: 20px;
border: 1px solid rgba(245, 245, 245, 1);
&>img {
width: 200px;
height: 200px;
}
}
&_needpay {
color: #666666;
font-size: 12px;
margin-top: 28px;
&>span {
color: #D32F2F;
font-size: 20px;
margin: 0 5px;
}
}
}
\ No newline at end of file
src/pages/lxMall/pay/components/wechat/index.tsx
0 → 100644
View file @
bc4f40fa
import
React
from
'react'
import
wechatIcon
from
'@/assets/imgs/wechat_icon.png'
import
wechatImg
from
'@/assets/imgs/wechat.png'
import
styles
from
'./index.less'
interface
WechatPayWayPropsType
{
}
const
WechatPayWay
:
React
.
FC
<
WechatPayWayPropsType
>
=
(
props
)
=>
{
return
(
<>
<
div
className=
{
styles
.
common_title
}
>
<
div
className=
{
styles
.
common_title_icon
}
><
img
src=
{
wechatIcon
}
/></
div
>
<
span
>
微信支付
</
span
>
</
div
>
<
div
className=
{
styles
.
wechat_payway
}
>
<
p
className=
{
styles
.
wechat_payway_title
}
>
使用微信扫一扫下方二维码
</
p
>
<
div
className=
{
styles
.
wechat_payway_imgbox
}
>
<
img
src=
{
wechatImg
}
/>
</
div
>
<
div
className=
{
styles
.
wechat_payway_needpay
}
>
<
label
>
当前需支付:
</
label
>
<
span
>
20,000
</
span
>
<
label
>
RMB
</
label
>
</
div
>
</
div
>
</>
)
}
export
default
WechatPayWay
src/pages/lxMall/pay/index.tsx
View file @
bc4f40fa
...
...
@@ -3,6 +3,7 @@ import CommonHeader from '../components/CommonHeader'
import
PointPayWay
from
'./components/point'
import
BablancePayWay
from
'./components/balance'
import
CreditPayWay
from
'./components/credit'
import
WechatPayWay
from
'./components/wechat'
import
styles
from
'./index.less'
interface
PayPagePropsType
{
...
...
@@ -17,7 +18,6 @@ enum PayWayType {
transfer
=
'transfer'
,
// 转战
}
const
getPayTypeTitle
=
(
type
)
=>
{
switch
(
type
)
{
case
PayWayType
.
point
:
...
...
@@ -25,16 +25,16 @@ const getPayTypeTitle = (type) => {
case
PayWayType
.
balance
:
return
"余额支付"
case
PayWayType
.
credit
:
case
PayWayType
.
wechat
:
return
"收银台"
default
:
return
""
}
}
const
PayPage
:
React
.
FC
<
PayPagePropsType
>
=
(
props
)
=>
{
const
[
pageTitle
,
setPageTitle
]
=
useState
<
string
>
(
getPayTypeTitle
(
PayWayType
.
credi
t
))
const
[
payType
]
=
useState
<
string
>
(
PayWayType
.
credi
t
)
const
[
pageTitle
,
setPageTitle
]
=
useState
<
string
>
(
getPayTypeTitle
(
PayWayType
.
wecha
t
))
const
[
payType
]
=
useState
<
string
>
(
PayWayType
.
wecha
t
)
const
renderPayWay
=
()
=>
{
switch
(
payType
)
{
...
...
@@ -44,6 +44,8 @@ const PayPage: React.FC<PayPagePropsType> = (props) => {
return
<
BablancePayWay
/>
case
PayWayType
.
credit
:
return
<
CreditPayWay
/>
case
PayWayType
.
wechat
:
return
<
WechatPayWay
/>
default
:
return
null
}
...
...
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