Commit c25115a7 authored by GuanHua's avatar GuanHua

fix: 1.修改生成电子合同接口;2.修改商城首页分类样式;3.修改渠道商城装修相关接口参数

parent 63b91f6e
......@@ -105,7 +105,8 @@ const ChannelPreview: React.FC<ChannelPreviewPropsType> = (props) => {
const param: any = {
templateId: id,
categoryId,
memberId: userInfo.memberId
memberId: userInfo.memberId,
roleId: userInfo.memberRoleId,
}
PublicApi.getTemplateAdornWebChannelMemberCategoryAdorn(param).then(res => {
......
......@@ -8,7 +8,6 @@ import AboutUs from '../components/AboutUs'
import { inject, observer } from 'mobx-react'
import { PublicApi } from '@/services/api'
import { LAYOUT_TYPE } from '@/constants'
import { GetTemplatePlatformFindAllFirstCategoryResponse, GetTemplateWebMemberChannelWebFindCurrMemberChannelResponse } from '@/services/TemplateApi'
import { GlobalConfig } from '@/global/config'
import styles from './index.less'
......@@ -17,13 +16,13 @@ interface ChannelIndexPropsType {
memberId: number;
shopId: number;
shopUrlParam: string;
shopInfo: GetTemplateWebMemberChannelWebFindCurrMemberChannelResponse;
shopInfo: any;
layoutType: LAYOUT_TYPE
}
const ChannelIndex: React.FC<ChannelIndexPropsType> = (props) => {
const { memberId, shopUrlParam, shopInfo, layoutType } = 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>()
......@@ -106,7 +105,8 @@ const ChannelIndex: React.FC<ChannelIndexPropsType> = (props) => {
const param: any = {
templateId: templateId,
categoryId,
memberId
memberId,
roleId: shopInfo.roleId,
}
PublicApi.getTemplateAdornWebChannelMemberCategoryAdorn(param).then(res => {
......
......@@ -85,6 +85,7 @@
font-size: 12px;
line-height: 12px;
margin-top: 10px;
padding-right: 32px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
......@@ -232,4 +233,4 @@
}
}
\ No newline at end of file
}
......@@ -107,6 +107,7 @@ const Recommand: React.FC<RecommandPropsType> = (props) => {
case LAYOUT_TYPE.channel:
case LAYOUT_TYPE.ichannel:
param.memberId = memberId
param.roleId = shopInfo.roleId
getFn = PublicApi.getTemplateAdornWebChannelFindAllFirstCategory
break;
default:
......
......@@ -145,7 +145,7 @@ const Order: React.FC<OrderPropsType> = (props) => {
param.deliveryAddresId = selectAddressInfo.id
}
const signRes = await PublicApi.postOrderSignatureSignContractCreate(param)
const signRes = await PublicApi.postOrderSignaturePreOrderSignContractCreate(param)
const signData: any = signRes.data
message.destroy()
if (signRes.code === 1000) {
......
......@@ -106,7 +106,8 @@ const ChannelEdit: React.FC<ChannelEditPropsType> = (props) => {
const param: any = {
templateId: id,
categoryId,
memberId: userInfo.memberId
memberId: userInfo.memberId,
roleId: userInfo.memberRoleId,
}
PublicApi.getTemplateAdornWebChannelMemberCategoryAdorn(param).then(res => {
......
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