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
03621ce4
Commit
03621ce4
authored
Jan 07, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 商城店铺列表链接跳转问题,模板预览问题
parent
918a681b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
8 deletions
+6
-8
LXShopLayout.tsx
src/pages/lxMall/layouts/LXShopLayout.tsx
+1
-2
index.tsx
src/pages/lxMall/shop/index.tsx
+2
-3
list.tsx
src/pages/lxMall/shopList/list.tsx
+2
-2
index.tsx
src/pages/preview/shopPreview/index.tsx
+1
-1
No files found.
src/pages/lxMall/layouts/LXShopLayout.tsx
View file @
03621ce4
...
...
@@ -12,7 +12,6 @@ import MainNav from '../components/MainNav'
import
SideNav
from
'../components/SideNav'
import
Footer
from
'../components/Footer'
import
{
PublicApi
}
from
'@/services/api'
import
{
GetTemplateShopFindShopResponse
}
from
'@/services/TemplateApi'
import
SearchShopResult
from
'../components/SearchShopResult'
import
{
LAYOUT_TYPE
}
from
'@/constants'
import
{
GlobalConfig
}
from
'@/global/config'
...
...
@@ -32,7 +31,7 @@ const LXShopLayout: React.FC<LXMallLayoutPropsType> = (props) => {
const
{
children
,
location
}
=
props
const
[
templateName
]
=
useState
<
string
>
(
'theme-shop-science'
)
const
{
shopId
}
=
location
.
query
const
[
shopInfo
,
setShopInfo
]
=
useState
<
GetTemplateShopFindShopResponse
>
()
const
[
shopInfo
,
setShopInfo
]
=
useState
<
any
>
()
const
[
query
,
setQuery
]
=
useState
<
any
>
({})
const
[
mallInfo
,
setMallInfo
]
=
useState
<
any
>
({})
const
[
loading
,
setLoading
]
=
useState
<
boolean
>
(
true
)
...
...
src/pages/lxMall/shop/index.tsx
View file @
03621ce4
...
...
@@ -7,7 +7,6 @@ import AboutUs from '../components/AboutUs'
import
{
inject
,
observer
}
from
'mobx-react'
import
{
PublicApi
}
from
'@/services/api'
import
{
LAYOUT_TYPE
}
from
'@/constants'
import
{
GetTemplateShopFindShopResponse
,
GetTemplatePlatformFindAllFirstCategoryResponse
}
from
'@/services/TemplateApi'
import
styles
from
'./index.less'
interface
ChannelIndexPropsType
{
...
...
@@ -16,12 +15,12 @@ interface ChannelIndexPropsType {
memberId
:
number
;
shopId
:
number
;
shopUrlParam
:
string
;
shopInfo
:
GetTemplateShopFindShopResponse
shopInfo
:
any
}
const
ShopIndex
:
React
.
FC
<
ChannelIndexPropsType
>
=
(
props
)
=>
{
const
{
memberId
,
shopUrlParam
,
shopInfo
}
=
props
const
[
categoryList
,
setCategoryList
]
=
useState
<
GetTemplatePlatformFindAllFirstCategoryResponse
>
([])
const
[
categoryList
,
setCategoryList
]
=
useState
<
any
>
([])
const
[
firstAdvertList
,
setFirstAdvertList
]
=
useState
([])
const
[
secondAdvertList
,
setSecondAdvertList
]
=
useState
([])
const
[
categoryComponents
,
setCategoryComponents
]
=
useState
<
React
.
ReactNode
>
()
...
...
src/pages/lxMall/shopList/list.tsx
View file @
03621ce4
...
...
@@ -77,8 +77,8 @@ const CommodityList: React.FC<CommodityListPropsType> = (props) => {
</
div
>
<
div
className=
{
styles
.
shop_list_line
}
>
<
label
>
以上信息已通过会员认证|
</
label
>
<
Link
to=
{
`/shop/about?shopId=${btoa(JSON.stringify({ memberId: item.memberId }))}`
}
className=
{
styles
.
shop_list_line_link
}
>
资质证书
>
</
Link
>
<
Link
to=
{
`/shop/about?shopId=${btoa(JSON.stringify({ memberId: item.memberId }))}`
}
className=
{
styles
.
shop_list_line_link
}
>
公司信息
>
</
Link
>
<
Link
to=
{
`/shop/about?shopId=${btoa(JSON.stringify({
shopId: item.id,
memberId: item.memberId }))}`
}
className=
{
styles
.
shop_list_line_link
}
>
资质证书
>
</
Link
>
<
Link
to=
{
`/shop/about?shopId=${btoa(JSON.stringify({
shopId: item.id,
memberId: item.memberId }))}`
}
className=
{
styles
.
shop_list_line_link
}
>
公司信息
>
</
Link
>
</
div
>
</
div
>
<
div
className=
{
styles
.
shop_list_goods
}
>
...
...
src/pages/preview/shopPreview/index.tsx
View file @
03621ce4
...
...
@@ -133,7 +133,7 @@ const ShopPreview: React.FC<ShopPreviewPropsType> = (props) => {
memberId
,
roleId
:
memberRoleId
}
PublicApi
.
getTemplate
ShopFindShop
(
param
).
then
(
res
=>
{
PublicApi
.
getTemplate
WebMemberShopWebFindByMemberIdAndRoleId
(
param
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
)
...
...
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