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
55637338
Commit
55637338
authored
Oct 26, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:修改商品列表询价商品样式
parent
9dc69bc3
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
69 deletions
+42
-69
index.ts
config/mallRoutes/index.ts
+10
-0
index.tsx
...geGoods/waitSubmitOrderList/components/outerLog/index.tsx
+0
-56
index.tsx
...ngeGoods/waitSubmitOrderList/components/taskLog/index.tsx
+3
-3
detail.tsx
...afterService/exchangeGoods/waitSubmitOrderList/detail.tsx
+4
-8
list.less
src/pages/lxMall/commodity/list.less
+11
-0
list.tsx
src/pages/lxMall/commodity/list.tsx
+14
-2
No files found.
config/mallRoutes/index.ts
View file @
55637338
import
BASE_CONFIG
from
'../base.config.json'
const
shopInfo
=
BASE_CONFIG
.
web
.
shopInfo
const
webShopInfo
=
shopInfo
.
filter
(
item
=>
item
.
environment
===
1
)
let
webMallInfo
=
webShopInfo
.
filter
(
item
=>
item
.
environment
===
1
&&
item
.
type
===
1
)[
0
]
// console.log(webShopInfo, "webShopInfo")
let
USE_CONFIG
=
true
// 是否使用pass平台配置的商城子域名
const
mallRoute
=
{
path
:
'/'
,
component
:
'@/pages/lxMall/layouts/LXMallLayout'
,
...
...
src/pages/afterService/exchangeGoods/waitSubmitOrderList/components/outerLog/index.tsx
deleted
100644 → 0
View file @
9dc69bc3
import
React
from
'react'
import
{
Table
}
from
'antd'
interface
outerLogPropsType
{
dataSource
:
[]
}
const
outerLog
:
React
.
FC
<
outerLogPropsType
>
=
(
props
)
=>
{
const
{
dataSource
}
=
props
const
columns
=
[
{
title
:
'序号'
,
dataIndex
:
'step'
,
ellipsis
:
true
,
},
{
title
:
'操作角色'
,
dataIndex
:
'roleName'
,
ellipsis
:
true
,
},
{
title
:
'状态'
,
dataIndex
:
'status'
,
ellipsis
:
true
,
},
{
title
:
'操作'
,
dataIndex
:
'operate'
,
ellipsis
:
true
,
},
{
title
:
'操作时间'
,
dataIndex
:
'operateTime'
,
ellipsis
:
true
,
},
{
title
:
'审核意见'
,
dataIndex
:
'opinion'
,
ellipsis
:
true
,
},
]
return
(
<
div
>
<
Table
className=
"common_tb"
dataSource=
{
dataSource
}
rowClassName=
{
(
_
,
index
)
=>
(
index
===
0
||
(
index
%
2
)
===
0
)
&&
"tb_bg"
}
columns=
{
columns
}
/>
</
div
>
)
}
export
default
outerLog
src/pages/afterService/exchangeGoods/waitSubmitOrderList/components/
inner
Log/index.tsx
→
src/pages/afterService/exchangeGoods/waitSubmitOrderList/components/
task
Log/index.tsx
View file @
55637338
...
...
@@ -3,11 +3,11 @@ import { Table } from 'antd'
import
styles
from
'../../../../common/styles.less'
interface
inner
LogPropsType
{
interface
Task
LogPropsType
{
dataSource
:
[]
}
const
innerLog
:
React
.
FC
<
inner
LogPropsType
>
=
(
props
)
=>
{
const
TaskLog
:
React
.
FC
<
Task
LogPropsType
>
=
(
props
)
=>
{
const
{
dataSource
}
=
props
const
columns
=
[
...
...
@@ -66,4 +66,4 @@ const innerLog: React.FC<innerLogPropsType> = (props) => {
)
}
export
default
inner
Log
export
default
Task
Log
src/pages/afterService/exchangeGoods/waitSubmitOrderList/detail.tsx
View file @
55637338
...
...
@@ -9,8 +9,7 @@ import ExchangeGoods from './components/exchangeGoods'
import
ProofFile
from
'./components/proofFile'
import
ReplaceAddress
from
'./components/replaceAddress'
import
ReturnAddress
from
'./components/returnAddress'
import
OuterLog
from
'./components/outerLog'
import
InnerLog
from
'./components/innerLog'
import
TaskLog
from
'./components/taskLog'
import
styles
from
'./detail.less'
interface
OrderDetailProps
{
...
...
@@ -25,7 +24,7 @@ const OrderDetail: React.FC<OrderDetailProps> = (props) => {
const
[
form
]
=
Form
.
useForm
()
const
[
type
,
setType
]
=
useState
<
'add'
|
'edit'
|
'detail'
>
()
const
[
btnLoading
,
setBtnLoading
]
=
useState
<
boolean
>
(
false
)
const
[
tabActiveKey
,
setTabActiveKey
]
=
useState
<
string
>
(
'
outerLog
'
)
const
[
tabActiveKey
,
setTabActiveKey
]
=
useState
<
string
>
(
'
basicInfo
'
)
const
[
replaceApplyInfo
,
setReplaceApplyInfo
]
=
useState
<
any
>
({})
useEffect
(()
=>
{
...
...
@@ -106,11 +105,8 @@ const OrderDetail: React.FC<OrderDetailProps> = (props) => {
<
TabPane
tab=
"换货收货地址"
key=
"replaceAddress"
>
<
ReplaceAddress
/>
</
TabPane
>
<
TabPane
tab=
"外部单据流转记录"
key=
"outerLog"
>
<
OuterLog
dataSource=
{
[]
}
/>
</
TabPane
>
<
TabPane
tab=
"内部单据流转记录"
key=
"innerLog"
>
<
InnerLog
dataSource=
{
[]
}
/>
<
TabPane
tab=
"流转记录"
key=
"taskLog"
>
<
TaskLog
dataSource=
{
[]
}
/>
</
TabPane
>
</
Tabs
>
</
Form
>
...
...
src/pages/lxMall/commodity/list.less
View file @
55637338
...
...
@@ -189,6 +189,16 @@
font-weight: 400;
}
}
.inquiry_price {
color: #FFF;
background-color: var(--mall_main_color);
font-size: 14px;
height: 18px;
line-height: 14px;
padding: 2px 8px;
display: inline-block;
}
}
}
\ No newline at end of file
src/pages/lxMall/commodity/list.tsx
View file @
55637338
...
...
@@ -29,7 +29,7 @@ const CommodityList: React.FC<CommodityListPropsType> = (props) => {
// 价格需要询价
case
2
:
return
(
<
div
className=
{
styles
.
goods
_price
}
>
<
div
className=
{
styles
.
inquiry
_price
}
>
<
label
>
在线询价
</
label
>
</
div
>
)
...
...
@@ -107,7 +107,19 @@ const CommodityList: React.FC<CommodityListPropsType> = (props) => {
<
div
className=
{
styles
.
info_box
}
>
<
div
className=
{
styles
.
info_box_content
}
>
<
div
className=
{
styles
.
name
}
>
{
item
.
name
}
</
div
>
<
div
className=
{
styles
.
price
}
><
span
>
¥
</
span
>
{
priceFormat
(
item
.
min
)
}
</
div
>
<
div
className=
{
styles
.
price
}
>
{
item
.
priceType
===
1
?
(
<>
<
span
>
¥
</
span
>
{
priceFormat
(
item
.
min
)
}
</>
)
:
(
<
div
className=
{
styles
.
inquiry_price
}
>
<
label
>
在线询价
</
label
>
</
div
>
)
}
</
div
>
<
div
className=
{
styles
.
count
}
>
已售:
{
numFormat
(
item
.
sold
)
||
0
}
{
item
.
unitName
}
</
div
>
</
div
>
<
ul
className=
{
styles
.
tags_list
}
>
...
...
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