Commit af5fbca6 authored by XieZhiXiong's avatar XieZhiXiong
parents 3c67dcec 57d0f452
......@@ -12,8 +12,6 @@ import moment from 'moment'
import styles from './index.less'
import { productStatusColor, productStatusLabel } from '../commodity/products/constant'
import { getProductBrandGetBrand, getProductBrandGetBrandCheckRecord } from '@/services/ProductV2Api'
import { getAuth } from '@/utils/auth'
import { postManageActivityShopRuleExistShop } from '@/services/ManageV2Api'
const { Step } = Steps;
......@@ -26,12 +24,10 @@ const BrandOpeartionLabel = [
const viewBrand: React.FC<{}> = () => {
const intl = useIntl();
const { memberId, memberRoleId } = getAuth() || {};
const [brandInfo, setBrandInfo] = useState<any>({})
const [fixStep, setFixStep] = useState(0)
const [recordData, setRecordData] = useState<any[]>([])
const [hasSelfStore, setHasSelfStore] = useState<boolean>(false)
useEffect(() => {
const { id } = history.location.query
......@@ -51,10 +47,6 @@ const viewBrand: React.FC<{}> = () => {
if (res.code === 1000)
setRecordData(res.data)
})
postManageActivityShopRuleExistShop({memberId, memberRoleId}, { ctlType: 'none' }).then(res => {
const { code, data } = res
setHasSelfStore(data)
})
}
}, [])
......@@ -150,7 +142,7 @@ const viewBrand: React.FC<{}> = () => {
<Steps progressDot current={fixStep}>
<Step title={intl.formatMessage({ id: 'trademark.viewBrand.card.1.step.1' })} description={intl.formatMessage({ id: 'trademark.viewBrand.card.1.step.1.description' })} />
{
hasSelfStore
brandInfo.type === 1
?
<Step title={intl.formatMessage({ id: 'trademark.viewBrand.card.1.step.2' })} description={intl.formatMessage({ id: 'trademark.viewBrand.card.1.step.1.description' })} />
:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment