Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
GeekLearnMathWeapp
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
frontend
GeekLearnMathWeapp
Commits
9040cf1e
Commit
9040cf1e
authored
Apr 05, 2023
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: fix typo
parent
ebde4b1f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
card-main.tsx
src/pages/market/components/card-main.tsx
+4
-4
index.tsx
src/pages/market/index.tsx
+5
-5
No files found.
src/pages/market/components/card-main.tsx
View file @
9040cf1e
...
@@ -10,7 +10,7 @@ interface CardMainProps {
...
@@ -10,7 +10,7 @@ interface CardMainProps {
disabled
?:
boolean
;
disabled
?:
boolean
;
extra
?:
React
.
ReactNode
;
extra
?:
React
.
ReactNode
;
price
:
number
;
price
:
number
;
sto
ke
:
number
|
null
;
sto
ck
:
number
|
null
;
}
}
export
default
({
export
default
({
...
@@ -21,7 +21,7 @@ export default ({
...
@@ -21,7 +21,7 @@ export default ({
onClick
,
onClick
,
disabled
,
disabled
,
price
,
price
,
sto
ke
sto
ck
}:
CardMainProps
)
=>
{
}:
CardMainProps
)
=>
{
const
_onClick
=
()
=>
{
const
_onClick
=
()
=>
{
if
(
!
disabled
)
{
if
(
!
disabled
)
{
...
@@ -38,8 +38,8 @@ export default ({
...
@@ -38,8 +38,8 @@ export default ({
<
View
className=
{
styles
[
'card-description'
]
}
>
<
View
className=
{
styles
[
'card-description'
]
}
>
<
View
className=
{
styles
[
'card-title'
]
}
>
<
View
className=
{
styles
[
'card-title'
]
}
>
{
title
}
{
title
}
{
sto
ke
!==
null
&&
(
{
sto
ck
!==
null
&&
(
<
View
className=
{
styles
[
'stoke-left'
]
}
>
本月库存
<
Text
className=
{
styles
.
left_value
}
>
{
sto
ke
}
</
Text
></
View
>
<
View
className=
{
styles
[
'stoke-left'
]
}
>
本月库存
<
Text
className=
{
styles
.
left_value
}
>
{
sto
ck
}
</
Text
></
View
>
)
}
)
}
</
View
>
</
View
>
<
Text
className=
{
styles
[
'card-subtitle'
]
}
>
{
subtitle
}
</
Text
>
<
Text
className=
{
styles
[
'card-subtitle'
]
}
>
{
subtitle
}
</
Text
>
...
...
src/pages/market/index.tsx
View file @
9040cf1e
...
@@ -17,7 +17,7 @@ type ExchangeGoods = {
...
@@ -17,7 +17,7 @@ type ExchangeGoods = {
subTitle
:
string
;
subTitle
:
string
;
description
:
string
;
description
:
string
;
price
:
number
;
price
:
number
;
sto
ke
:
number
|
null
;
sto
ck
:
number
|
null
;
img
:
string
;
img
:
string
;
}
}
...
@@ -27,7 +27,7 @@ const ExchangeItems: ExchangeGoods[] = [
...
@@ -27,7 +27,7 @@ const ExchangeItems: ExchangeGoods[] = [
subTitle
:
'答题卡'
,
subTitle
:
'答题卡'
,
description
:
'答题卡是不断追求更高档位与排名的必备道具答题卡是不断追求更高档位与排名的必备道具'
,
description
:
'答题卡是不断追求更高档位与排名的必备道具答题卡是不断追求更高档位与排名的必备道具'
,
price
:
30
,
price
:
30
,
sto
ke
:
null
,
sto
ck
:
null
,
img
:
require
(
'./assets/ph.png'
),
img
:
require
(
'./assets/ph.png'
),
},
},
...
@@ -36,7 +36,7 @@ const ExchangeItems: ExchangeGoods[] = [
...
@@ -36,7 +36,7 @@ const ExchangeItems: ExchangeGoods[] = [
subTitle
:
'神秘大礼'
,
subTitle
:
'神秘大礼'
,
description
:
'兑换神秘大礼,线下领取超级大礼'
,
description
:
'兑换神秘大礼,线下领取超级大礼'
,
price
:
30
,
price
:
30
,
sto
ke
:
10
,
sto
ck
:
10
,
img
:
require
(
'./assets/gift.png'
),
img
:
require
(
'./assets/gift.png'
),
}
}
]
]
...
@@ -69,9 +69,9 @@ const StudyMarket = () => {
...
@@ -69,9 +69,9 @@ const StudyMarket = () => {
<
CardMain
<
CardMain
title=
{
item
.
subTitle
}
title=
{
item
.
subTitle
}
cover=
{
item
.
img
}
cover=
{
item
.
img
}
sto
ke=
{
item
.
stoke
}
sto
ck=
{
item
.
stock
}
price=
{
item
.
price
}
price=
{
item
.
price
}
disabled=
{
item
.
sto
ke
!==
null
&&
item
.
stoke
<
1
}
disabled=
{
item
.
sto
ck
!==
null
&&
item
.
stock
<
1
}
subtitle=
{
item
.
description
}
subtitle=
{
item
.
description
}
onClick=
{
()
=>
{
onClick=
{
()
=>
{
open
(
item
)
open
(
item
)
...
...
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