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
4111155b
Commit
4111155b
authored
Jan 07, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into dev
parents
d1689dec
578705e9
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
106 additions
and
80 deletions
+106
-80
index.tsx
src/components/CitySelect/index.tsx
+4
-4
index.less
src/components/UploadImage/index.less
+6
-2
index.tsx
src/components/UploadImage/index.tsx
+3
-1
index.tsx
src/pages/editor/channelEdit/index.tsx
+36
-33
index.tsx
src/pages/editor/shopEdit/index.tsx
+35
-32
index.tsx
...iption/components/Introduction/template/science/index.tsx
+3
-2
index.tsx
src/pages/lxMall/commodityDetail/index.tsx
+19
-6
No files found.
src/components/CitySelect/index.tsx
View file @
4111155b
...
...
@@ -76,10 +76,10 @@ const CityCascader: React.FC<CitySelectPropsType> = (props) => {
})
if
(
item
.
areaResponses
)
{
const
tempCityList
=
[]
tempCityList
.
push
({
lable
:
"所有"
,
value
:
"0"
})
//
tempCityList.push({
//
lable: "所有",
//
value: "0"
//
})
for
(
const
cityItem
of
item
.
areaResponses
)
{
tempCityList
.
push
({
lable
:
cityItem
.
name
,
...
...
src/components/UploadImage/index.less
View file @
4111155b
.upload_image_wrap {
display: flex;
align-items: center;
height: 104px;
&.large {
height: 120px;
}
.size_require {
color: #C0C4CC;
...
...
@@ -81,4 +86,4 @@
}
}
}
\ No newline at end of file
}
src/components/UploadImage/index.tsx
View file @
4111155b
...
...
@@ -70,7 +70,7 @@ const UploadImage: React.FC<UploadImagePorpsType> = forwardRef((props, ref) => {
);
return
(
<
div
className=
{
styles
.
upload_image_wrap
}
>
<
div
className=
{
cx
(
styles
.
upload_image_wrap
,
large
?
styles
.
large
:
''
)
}
>
<
div
className=
{
cx
(
styles
.
upload_wrap
,
large
?
styles
.
large
:
''
)
}
>
<
Upload
{
...
uploadProps
}
>
{
<
div
className=
{
cx
(
styles
.
upload_btn
,
!
imgUrl
?
styles
.
isAdd
:
""
,
large
?
styles
.
large
:
''
)
}
>
...
...
@@ -93,4 +93,6 @@ const UploadImage: React.FC<UploadImagePorpsType> = forwardRef((props, ref) => {
)
})
UploadImage
.
displayName
=
"UploadImage"
export
default
UploadImage
src/pages/editor/channelEdit/index.tsx
View file @
4111155b
...
...
@@ -216,47 +216,50 @@ const ChannelPreview: React.FC<ChannelPreviewPropsType> = (props) => {
const
firstCategory
:
any
=
await
fetchFirstCategory
()
for
(
const
item
of
firstCategory
)
{
const
categoryDetail
:
any
=
await
fetchCategoryById
(
item
.
id
)
let
floorLineConfigItem
=
{}
floorLineKeys
.
push
(
String
(
initIndex
+
1
))
if
(
item
.
id
)
{
const
categoryDetail
:
any
=
await
fetchCategoryById
(
item
.
id
)
let
floorLineConfigItem
=
{}
floorLineKeys
.
push
(
String
(
initIndex
+
1
))
const
FloorLine
=
{
[
String
(
initIndex
+
1
)]:
{
"componentName"
:
"ShopFloorLine"
,
"props"
:
{
title
:
item
.
name
},
"childNodes"
:
[
String
(
initIndex
+
2
),
String
(
initIndex
+
3
)]
}
}
const
FloorLine
=
{
[
String
(
initIndex
+
1
)]:
{
"componentName"
:
"ShopFloorLine"
,
"props"
:
{
title
:
item
.
name
const
Category
=
{
[
String
(
initIndex
+
2
)]:
{
"componentName"
:
"ShopFloorLine.Category"
,
"props"
:
{
categoryAdvertPicUrl
:
categoryDetail
.
categoryAdvertPicUrl
,
categoryid
:
item
.
id
,
linkdisable
:
true
,
categoryList
:
categoryDetail
.
categoryBOList
},
},
"childNodes"
:
[
String
(
initIndex
+
2
),
String
(
initIndex
+
3
)]
}
}
const
Category
=
{
[
String
(
initIndex
+
2
)]:
{
"componentName"
:
"ShopFloorLine.Category
"
,
"props"
:
{
categoryAdvertPicUrl
:
categoryDetail
.
categoryAdvertPicUrl
,
categoryid
:
item
.
id
,
linkdisable
:
true
,
categoryList
:
categoryDetail
.
categoryBOList
const
Goods
=
{
[
String
(
initIndex
+
3
)]:
{
"componentName"
:
"ShopFloorLine.Goods
"
,
"props"
:
{
linkdisable
:
true
,
categoryid
:
item
.
id
,
goodsList
:
categoryDetail
.
goodsBOList
},
},
},
}
}
const
Goods
=
{
[
String
(
initIndex
+
3
)]:
{
"componentName"
:
"ShopFloorLine.Goods"
,
"props"
:
{
linkdisable
:
true
,
categoryid
:
item
.
id
,
goodsList
:
categoryDetail
.
goodsBOList
},
},
floorLineConfigItem
=
{
...
FloorLine
,
...
Category
,
...
Goods
}
floorLineConfig
=
{
...
floorLineConfig
,
...
floorLineConfigItem
}
initIndex
+=
100
}
floorLineConfigItem
=
{
...
FloorLine
,
...
Category
,
...
Goods
}
floorLineConfig
=
{
...
floorLineConfig
,
...
floorLineConfigItem
}
initIndex
+=
100
}
mallLayoutConfig
[
"0"
].
childNodes
=
[...
mallLayoutConfig
[
"0"
].
childNodes
,
...
floorLineKeys
,
serviceAdvertConfig
.
key
,
CommonTitle2Config
.
key
,
AboutUsConfig
.
key
,
InformationConfig
.
key
,
FooterConfig
.
key
]
...
...
src/pages/editor/shopEdit/index.tsx
View file @
4111155b
...
...
@@ -166,46 +166,49 @@ const ShopEdit: React.FC<ShopEditPropsType> = (props) => {
const
firstCategory
:
any
=
await
fetchFirstCategory
()
for
(
const
item
of
firstCategory
)
{
const
categoryDetail
:
any
=
await
fetchCategoryById
(
item
.
id
)
let
floorLineConfigItem
=
{}
floorLineKeys
.
push
(
String
(
initIndex
+
1
))
if
(
item
.
id
){
const
categoryDetail
:
any
=
await
fetchCategoryById
(
item
.
id
)
let
floorLineConfigItem
=
{}
floorLineKeys
.
push
(
String
(
initIndex
+
1
))
const
FloorLine
=
{
[
String
(
initIndex
+
1
)]:
{
"componentName"
:
"ShopFloorLine"
,
"props"
:
{
title
:
item
.
name
},
"childNodes"
:
[
String
(
initIndex
+
2
),
String
(
initIndex
+
3
)]
}
}
const
FloorLine
=
{
[
String
(
initIndex
+
1
)]:
{
"componentName"
:
"ShopFloorLine"
,
"props"
:
{
title
:
item
.
name
const
Category
=
{
[
String
(
initIndex
+
2
)]:
{
"componentName"
:
"ShopFloorLine.Category"
,
"props"
:
{
categoryAdvertPicUrl
:
categoryDetail
.
categoryAdvertPicUrl
,
categoryid
:
item
.
id
,
categoryList
:
categoryDetail
.
categoryBOList
},
},
"childNodes"
:
[
String
(
initIndex
+
2
),
String
(
initIndex
+
3
)]
}
}
const
Category
=
{
[
String
(
initIndex
+
2
)]:
{
"componentName"
:
"ShopFloorLine.Category"
,
"props"
:
{
categoryAdvertPicUrl
:
categoryDetail
.
categoryAdvertPicUrl
,
categoryid
:
item
.
id
,
categoryList
:
categoryDetail
.
categoryBOList
const
Goods
=
{
[
String
(
initIndex
+
3
)]:
{
"componentName"
:
"ShopFloorLine.Goods"
,
"props"
:
{
linkdisable
:
true
,
categoryid
:
item
.
id
,
goodsList
:
categoryDetail
.
goodsBOList
},
},
},
}
}
const
Goods
=
{
[
String
(
initIndex
+
3
)]:
{
"componentName"
:
"ShopFloorLine.Goods"
,
"props"
:
{
linkdisable
:
true
,
categoryid
:
item
.
id
,
goodsList
:
categoryDetail
.
goodsBOList
},
},
floorLineConfigItem
=
{
...
FloorLine
,
...
Category
,
...
Goods
}
floorLineConfig
=
{
...
floorLineConfig
,
...
floorLineConfigItem
}
initIndex
+=
100
}
floorLineConfigItem
=
{
...
FloorLine
,
...
Category
,
...
Goods
}
floorLineConfig
=
{
...
floorLineConfig
,
...
floorLineConfigItem
}
initIndex
+=
100
}
mallLayoutConfig
[
"0"
].
childNodes
=
[...
mallLayoutConfig
[
"0"
].
childNodes
,
...
floorLineKeys
,
serviceAdvertConfig
.
key
,
FooterConfig
.
key
]
...
...
src/pages/lxMall/commodityDetail/components/ProductDescription/components/Introduction/template/science/index.tsx
View file @
4111155b
/*
* 科技类商品描述模板
* @Author: ghua
* @Date: 2020-08-01 10:59:17
* @Author: ghua
* @Date: 2020-08-01 10:59:17
* @Last Modified by: ghua
* @Last Modified time: 2020-09-09 11:07:52
*/
...
...
@@ -36,6 +36,7 @@ const ScienceTemplate: React.FC<ScienceTemplatePropsType> = (props) => {
</
Player
>
))
}
</
div
>
<
div
className=
"img_list"
>
{
...
...
src/pages/lxMall/commodityDetail/index.tsx
View file @
4111155b
...
...
@@ -187,18 +187,31 @@ const CommodityDetail = (props) => {
commodityId
:
id
}
let
headers
=
{}
console
.
log
(
layoutType
,
"layoutType"
)
switch
(
layoutType
)
{
case
LAYOUT_TYPE
.
channel
:
headers
=
{
type
:
3
if
(
type
===
"3"
)
{
headers
=
{
type
:
5
}
}
else
{
headers
=
{
type
:
3
}
}
params
.
channelMemberId
=
memberId
getDetailFn
=
PublicApi
.
getSearchShopChannelGetCommodityDetail
break
case
LAYOUT_TYPE
.
ichannel
:
headers
=
{
type
:
4
if
(
type
===
"3"
)
{
headers
=
{
type
:
5
}
}
else
{
headers
=
{
type
:
4
}
}
params
.
channelMemberId
=
memberId
getDetailFn
=
PublicApi
.
getSearchShopChannelGetCommodityDetail
...
...
@@ -225,7 +238,7 @@ const CommodityDetail = (props) => {
getMemberCredit
(
res
.
data
?.
memberId
,
res
.
data
?.
memberRoleId
)
}
}
else
{
message
.
info
(
res
.
message
)
//
message.info(res.message)
setErrorInfo
(
res
.
message
)
}
setSpinLoading
(
false
)
...
...
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