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
20761551
Commit
20761551
authored
Mar 02, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: app渠道商城装修页面开发
parent
54e70697
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
125 additions
and
40 deletions
+125
-40
router.config.json
config/router.config.json
+0
-0
MobileChannelGoodsCard.ts
...nfigs/componentConfigs/LingXiUI/MobileChannelGoodsCard.ts
+4
-0
column.tsx
.../propsSettings/components/channelGoods/contant/column.tsx
+76
-6
schema.ts
...l/propsSettings/components/channelGoods/contant/schema.ts
+1
-7
index.less
...ingPanel/propsSettings/components/channelGoods/index.less
+1
-1
index.tsx
...tingPanel/propsSettings/components/channelGoods/index.tsx
+0
-0
index.less
...el/propsSettings/components/recommendCommodity/index.less
+1
-1
index.tsx
src/pages/editor/mobileSettingPanel/styleSettings/index.tsx
+21
-7
index.tsx
src/pages/lxMall/commodityDetail/index.tsx
+19
-18
index.tsx
src/pages/mobileTemplate/channelTemplateEdit/index.tsx
+2
-0
No files found.
config/router.config.json
View file @
20761551
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/pages/editor/configs/componentConfigs/LingXiUI/MobileChannelGoodsCard.ts
View file @
20761551
...
@@ -14,6 +14,10 @@ const MobileChannelHeaderNav: ComponentConfigTypes = {
...
@@ -14,6 +14,10 @@ const MobileChannelHeaderNav: ComponentConfigTypes = {
label
:
'编辑'
,
label
:
'编辑'
,
type
:
PROPS_TYPES
.
mobileChannelGoodsCard
type
:
PROPS_TYPES
.
mobileChannelGoodsCard
},
},
styleType
:
{
label
:
"样式"
,
type
:
PROPS_TYPES
.
objectArray
}
},
},
};
};
...
...
src/pages/editor/mobileSettingPanel/propsSettings/components/channelGoods/contant/column.tsx
View file @
20761551
...
@@ -19,18 +19,16 @@ export const promptCommodityColumn = [
...
@@ -19,18 +19,16 @@ export const promptCommodityColumn = [
{
{
title
:
"商品名称"
,
title
:
"商品名称"
,
dataIndex
:
"name"
,
dataIndex
:
"name"
,
width
:
28
0
,
width
:
30
0
,
ellipsis
:
true
,
ellipsis
:
true
,
},
},
{
{
title
:
"品类"
,
title
:
"品类"
,
render
:
(
_
,
record
)
=>
record
.
customerCategory
?
record
.
customerCategory
.
name
:
""
,
// render: (_, record) => record.customerCategory.name
ellipsis
:
true
,
},
},
{
{
title
:
"品牌"
,
title
:
"品牌"
,
render
:
(
_
,
record
)
=>
record
.
brand
?
record
.
brand
.
name
:
""
,
// render: (_, record) => record.brand.name
ellipsis
:
true
,
},
},
{
{
title
:
"价格"
,
title
:
"价格"
,
...
@@ -39,4 +37,76 @@ export const promptCommodityColumn = [
...
@@ -39,4 +37,76 @@ export const promptCommodityColumn = [
},
},
]
]
export
default
promptCommodityColumn
export
const
integralCommodityColumn
=
[
{
title
:
"商品图片"
,
dataIndex
:
"mainPic"
,
render
:
(
mainPic
:
string
)
=>
showMainPic
(
mainPic
)
},
{
title
:
"商品名称"
,
dataIndex
:
"name"
,
width
:
300
,
ellipsis
:
true
,
},
{
title
:
"需要积分"
,
dataIndex
:
"min"
,
render
:
(
_
,
record
)
=>
`
${
numFormat
(
record
.
min
)}
`
},
]
export
const
shopColumn
=
[
{
title
:
"店铺图片"
,
dataIndex
:
"logo"
,
render
:
(
logo
:
string
)
=>
showMainPic
(
logo
)
},
{
title
:
"店铺名称"
,
dataIndex
:
"memberName"
,
width
:
300
,
ellipsis
:
true
,
},
]
export
const
brandColumn
=
[
{
title
:
"品牌logo"
,
dataIndex
:
"logoUrl"
,
render
:
(
imageUrl
:
string
)
=>
showMainPic
(
imageUrl
)
},
{
title
:
"品牌名称"
,
dataIndex
:
"name"
,
width
:
360
,
ellipsis
:
true
,
},
]
export
const
informationColumn
=
[
{
title
:
"资讯图片"
,
dataIndex
:
"imageUrl"
,
render
:
(
imageUrl
:
string
)
=>
showMainPic
(
imageUrl
)
},
{
title
:
"资讯标题"
,
dataIndex
:
"title"
,
width
:
360
,
ellipsis
:
true
,
},
]
const
tableColumn
=
{
1
:
promptCommodityColumn
,
2
:
shopColumn
,
3
:
brandColumn
,
4
:
informationColumn
}
export
default
tableColumn
src/pages/editor/mobileSettingPanel/propsSettings/components/channelGoods/contant/schema.ts
View file @
20761551
...
@@ -34,9 +34,6 @@ export const formProduct: ISchema = {
...
@@ -34,9 +34,6 @@ export const formProduct: ISchema = {
"x-component-props"
:
{
"x-component-props"
:
{
placeholder
:
'请选择品类'
,
placeholder
:
'请选择品类'
,
className
:
'fixed-ant-selected-down'
,
// 该类强制将显示的下拉框出现在select下, 只有这里出现问题, ??
className
:
'fixed-ant-selected-down'
,
// 该类强制将显示的下拉框出现在select下, 只有这里出现问题, ??
queryParams
:
{
storeId
:
2
,
},
fetchSearch
:
PublicApi
.
getProductSelectGetSelectCategory
,
fetchSearch
:
PublicApi
.
getProductSelectGetSelectCategory
,
style
:
{
style
:
{
width
:
160
width
:
160
...
@@ -48,10 +45,7 @@ export const formProduct: ISchema = {
...
@@ -48,10 +45,7 @@ export const formProduct: ISchema = {
"x-component"
:
'SearchSelect'
,
"x-component"
:
'SearchSelect'
,
"x-component-props"
:
{
"x-component-props"
:
{
placeholder
:
'请选择品牌'
,
placeholder
:
'请选择品牌'
,
queryParams
:
{
fetchSearch
:
PublicApi
.
getProductSelectGetSelectPlatformBrand
,
storeId
:
2
,
},
fetchSearch
:
PublicApi
.
getSearchMobileShopStoreGetBrand
,
style
:
{
style
:
{
width
:
160
width
:
160
}
}
...
...
src/pages/editor/mobileSettingPanel/propsSettings/components/channelGoods/index.less
View file @
20761551
@import "../../../../../../global/
/
styles/utils.less";
@import "../../../../../../global/styles/utils.less";
@import "../../common.less";
@import "../../common.less";
.selectBtn {
.selectBtn {
...
...
src/pages/editor/mobileSettingPanel/propsSettings/components/channelGoods/index.tsx
View file @
20761551
This diff is collapsed.
Click to expand it.
src/pages/editor/mobileSettingPanel/propsSettings/components/recommendCommodity/index.less
View file @
20761551
@import "../../../../../../global/
/
styles/utils.less";
@import "../../../../../../global/styles/utils.less";
@import "../../common.less";
@import "../../common.less";
.selectBtn {
.selectBtn {
...
...
src/pages/editor/mobileSettingPanel/styleSettings/index.tsx
View file @
20761551
import
React
,
{
useState
}
from
'react'
import
React
,
{
useState
}
from
'react'
import
cx
from
'classnames'
import
cx
from
'classnames'
import
{
SelectedInfoType
,
changeProps
}
from
'lingxi-editor-core'
import
{
SelectedInfoType
,
changeProps
,
PROPS_TYPES
}
from
'lingxi-editor-core'
import
styles
from
'./index.less'
import
styles
from
'./index.less'
interface
StyleSettingsPropsType
{
interface
StyleSettingsPropsType
{
...
@@ -24,16 +24,30 @@ const StyleSettings: React.FC<StyleSettingsPropsType> = ({ selectedInfo }) => {
...
@@ -24,16 +24,30 @@ const StyleSettings: React.FC<StyleSettingsPropsType> = ({ selectedInfo }) => {
}
}
}
}
return
(
const
renderSettingItem
=
()
=>
{
<
div
className=
{
styles
.
styleSettings
}
>
const
{
props
:
initProps
,
propsConfig
}
=
selectedInfo
||
{};
<
div
className=
{
styles
.
styleList
}
>
const
componentType
=
propsConfig
?.
componentType
{
(
selectProps
&&
selectProps
.
stylesThemeList
)
&&
selectProps
.
stylesThemeList
.
map
(
item
=>
(
if
(
componentType
)
{
switch
(
componentType
.
type
)
{
case
PROPS_TYPES
.
mobileHeaderNav
:
return
(
selectProps
&&
selectProps
.
stylesThemeList
)
&&
selectProps
.
stylesThemeList
.
map
(
item
=>
(
<
div
className=
{
cx
(
styles
.
styleItem
,
selectKey
===
item
.
key
?
styles
.
active
:
{})
}
key=
{
item
.
key
}
onClick=
{
()
=>
handleChangeStyleTheme
(
item
.
key
)
}
>
<
div
className=
{
cx
(
styles
.
styleItem
,
selectKey
===
item
.
key
?
styles
.
active
:
{})
}
key=
{
item
.
key
}
onClick=
{
()
=>
handleChangeStyleTheme
(
item
.
key
)
}
>
<
img
className=
{
styles
.
themeImg
}
src=
{
item
.
img
}
title=
{
item
.
key
}
/>
<
img
className=
{
styles
.
themeImg
}
src=
{
item
.
img
}
title=
{
item
.
key
}
/>
</
div
>
</
div
>
))
))
}
case
PROPS_TYPES
.
mobileChannelGoodsCard
:
return
'mobileChannelGoodsCard'
default
:
return
null
}
}
}
return
(
<
div
className=
{
styles
.
styleSettings
}
>
<
div
className=
{
styles
.
styleList
}
>
{
renderSettingItem
()
}
</
div
>
</
div
>
</
div
>
</
div
>
)
)
...
...
src/pages/lxMall/commodityDetail/index.tsx
View file @
20761551
...
@@ -369,13 +369,14 @@ const CommodityDetail = (props) => {
...
@@ -369,13 +369,14 @@ const CommodityDetail = (props) => {
setSelectCommodityUnitPriceId
(
item
.
commodityUnitPriceAndPicId
)
setSelectCommodityUnitPriceId
(
item
.
commodityUnitPriceAndPicId
)
setCurrentPriceRange
(
sortUnitPrice
(
item
.
unitPrice
))
setCurrentPriceRange
(
sortUnitPrice
(
item
.
unitPrice
))
setAttrAndValList
(
item
)
setAttrAndValList
(
item
)
if
(
getAuth
())
{
setStockCount
(
item
.
stockCount
)
let
productId
:
number
=
item
.
id
// if(getAuth()) {
if
(
layoutType
===
LAYOUT_TYPE
.
channel
||
layoutType
===
LAYOUT_TYPE
.
ichannel
)
{
// let productId: number = item.id
productId
=
item
.
commodityUnitPriceAndPicId
// if (layoutType === LAYOUT_TYPE.channel || layoutType === LAYOUT_TYPE.ichannel) {
}
// productId = item.commodityUnitPriceAndPicId
getStockCountByProductId
(
productId
)
// }
}
// getStockCountByProductId(productId)
// }
}
}
}
}
...
@@ -386,17 +387,17 @@ const CommodityDetail = (props) => {
...
@@ -386,17 +387,17 @@ const CommodityDetail = (props) => {
* 根据商品skuid获取商品库存数量
* 根据商品skuid获取商品库存数量
* @param productId
* @param productId
*/
*/
const
getStockCountByProductId
=
(
productId
:
number
)
=>
{
//
const getStockCountByProductId = (productId: number) => {
const
param
:
any
=
{
//
const param: any = {
productId
,
//
productId,
shopId
:
storeId
,
//
shopId: storeId,
}
//
}
PublicApi
.
getWarehouseStockByProductId
(
param
).
then
((
res
=>
{
//
PublicApi.getWarehouseStockByProductId(param).then((res => {
if
(
res
.
code
===
1000
)
{
//
if (res.code === 1000) {
setStockCount
(
res
.
data
)
//
setStockCount(res.data)
}
//
}
}))
//
}))
}
//
}
const
judgeArrisCommon
=
(
list
,
otherList
)
=>
{
const
judgeArrisCommon
=
(
list
,
otherList
)
=>
{
if
(
list
.
length
===
otherList
.
length
)
{
if
(
list
.
length
===
otherList
.
length
)
{
...
...
src/pages/mobileTemplate/channelTemplateEdit/index.tsx
View file @
20761551
...
@@ -220,6 +220,8 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
...
@@ -220,6 +220,8 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
if
(
channelInfo
.
memberId
)
{
if
(
channelInfo
.
memberId
)
{
const
categoryList
=
await
getCustomerCategoryTreeById
(
channelInfo
.
memberId
)
const
categoryList
=
await
getCustomerCategoryTreeById
(
channelInfo
.
memberId
)
mobileChannelCategory
[
mobileChannelCategory
.
key
].
props
.
dataList
=
categoryList
mobileChannelCategory
[
mobileChannelCategory
.
key
].
props
.
dataList
=
categoryList
mobileChannelGoodsCard
[
mobileChannelGoodsCard
.
key
].
props
.
channelMemberId
=
channelInfo
.
memberId
}
}
if
(
appConfig
?.
advertBO
)
{
if
(
appConfig
?.
advertBO
)
{
...
...
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