diff --git a/src/api/user.ts b/src/api/user.ts index 2e01794..a5fb392 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -86,8 +86,8 @@ export const ApplyOrderAccessApi = () => { */ export const SubscriptionMessageApi = () => { return useRequest({ - // url: '/v1/mall/subscriptionMessage', - url: '/v3/mallCherry/subscriptionMessage', + url: '/v1/mall/subscriptionMessage', + // url: '/v3/mallCherry/subscriptionMessage', method: 'get', }) } diff --git a/src/common/constant.ts b/src/common/constant.ts index 8baa0f7..63a3170 100644 --- a/src/common/constant.ts +++ b/src/common/constant.ts @@ -39,9 +39,11 @@ export const getCDNSource = (suffix: string) => { export const CDN_UPLOAD_IMG = `${UPLOAD_CDN_URL || ''}` // appid -export const WX_APPID = 'wx68d92d7cbf0b6963' -// export const WX_APPID = 'wx714eaf2dfdb9c6bb' -export const Platform = 6 +// export const WX_APPID = 'wx68d92d7cbf0b6963' +// export const Platform = 6 + +export const WX_APPID = 'wx714eaf2dfdb9c6bb' +export const Platform = 9 // 招商银行小程序appid export const BANk_WX_APPID = 'wx65934ee32a88d726' diff --git a/src/components/bindSalesManDialog/index.tsx b/src/components/bindSalesManDialog/index.tsx index 08acd24..929aa0e 100644 --- a/src/components/bindSalesManDialog/index.tsx +++ b/src/components/bindSalesManDialog/index.tsx @@ -131,7 +131,7 @@ const BindSalesManDialog = ({ onSuccess }: params, ref: Ref) - 陆盈商城服务 + 商城服务 欢迎使用!填写邀请码 diff --git a/src/components/popupSelectColor/index.module.scss b/src/components/popupSelectColor/index.module.scss index eb56c0f..97fe59e 100644 --- a/src/components/popupSelectColor/index.module.scss +++ b/src/components/popupSelectColor/index.module.scss @@ -80,7 +80,10 @@ .submit { font-size: 28px; color: #fff; - background: #4581ff; + background: #9cbcff; + } + .selected { + background: #4581ff !important; } } } diff --git a/src/components/popupSelectColor/index.tsx b/src/components/popupSelectColor/index.tsx index 16e9418..b389a37 100644 --- a/src/components/popupSelectColor/index.tsx +++ b/src/components/popupSelectColor/index.tsx @@ -9,7 +9,7 @@ import IconFont from '@/components/iconfont/iconfont' import { GetProductDetailApi } from '@/api/material' import { formatHashTag } from '@/common/fotmat' import colorItem from '@/pages/codeList/components/colorItem' -import { goLink } from '@/common/common' +import { alert, goLink } from '@/common/common' export interface ColorItem { bulk_price: number @@ -88,6 +88,9 @@ export default memo((props: Param) => { }, [colorList]) const onSubmit = () => { + if (selectCount <= 0) { + return alert.none('请选择色号') + } const data: ColorItem[] = [] colorList?.map((item) => { if (item.status) { data.push({ ...item, count: 1 }) } @@ -111,7 +114,7 @@ export default memo((props: Param) => { 取消 - 领取剪样({selectCount}) + 领取剪样({selectCount}) diff --git a/src/pages/colorCardClipping/components/cutSampleList/index.tsx b/src/pages/colorCardClipping/components/cutSampleList/index.tsx index 6c68ec9..4648259 100644 --- a/src/pages/colorCardClipping/components/cutSampleList/index.tsx +++ b/src/pages/colorCardClipping/components/cutSampleList/index.tsx @@ -107,7 +107,6 @@ export default () => { selfOnRefresherRefresh={getRefresherRefresh} defaultUrl="/color_card/colorCardList_empty.png" defaultText="还没领取过剪样" - > {orderData.list?.map((item) => { return ( diff --git a/src/pages/colorCardClipping/components/productItem/index.tsx b/src/pages/colorCardClipping/components/productItem/index.tsx index 348ecfd..4044a0f 100644 --- a/src/pages/colorCardClipping/components/productItem/index.tsx +++ b/src/pages/colorCardClipping/components/productItem/index.tsx @@ -39,13 +39,13 @@ export default (props: Param) => { e.stopPropagation() onCancel?.(id) } - // const labAndImgObj = useMemo( - // () => { - // const res = value.color_card_info[0] - // return { lab: res.lab, rgb: res.rgb, texture_url: res.texture_url } - // }, - // [value], - // ) + const labAndImgObj = useMemo( + () => { + const res = value.color_card_info?.[0] + return { lab: res?.lab, rgb: res?.rgb, texture_url: res?.texture_url } + }, + [value], + ) return goLink('/pages/colorCardOrderDetail/index', { id: value.order_id })} > @@ -54,7 +54,7 @@ export default (props: Param) => { - + diff --git a/src/pages/colorCardList/index.tsx b/src/pages/colorCardList/index.tsx index 5c99071..1b8fa61 100644 --- a/src/pages/colorCardList/index.tsx +++ b/src/pages/colorCardList/index.tsx @@ -103,7 +103,7 @@ export default () => { const onSelectData = (val, status) => { if (status) { - setSelectList(e => [...e, val]) + setSelectList(e => [val, ...e]) } else { const res = selectList?.filter((item) => { diff --git a/src/pages/colorCardOrder/index.tsx b/src/pages/colorCardOrder/index.tsx index 4575e34..8e4fa40 100644 --- a/src/pages/colorCardOrder/index.tsx +++ b/src/pages/colorCardOrder/index.tsx @@ -13,6 +13,7 @@ import { getFilterData } from '@/common/util' import { UseSubscriptionMessage } from '@/use/useCommon' import { SUBSCRIPTION_MESSAGE_SCENE } from '@/common/enum' import { addressListApi } from '@/api/addressManager' +import MoveBtn from '@/components/moveBtn' export interface submitData { address_id: number diff --git a/src/pages/cutSampleList/components/productItem/index.module.scss b/src/pages/cutSampleList/components/productItem/index.module.scss index c1918f9..9cc152d 100644 --- a/src/pages/cutSampleList/components/productItem/index.module.scss +++ b/src/pages/cutSampleList/components/productItem/index.module.scss @@ -29,11 +29,12 @@ @include common_ellipsis(2); } .card_info_label { - display: grid; - grid-template-columns: repeat(3, 100px); + display: flex; + flex-wrap: wrap; grid-gap: 10px 10px; margin-top: 10px; text { + padding: 5px 6px; font-size: 24px; color: #4581ff; height: 34px; diff --git a/src/pages/cutSampleList/components/productItem/index.tsx b/src/pages/cutSampleList/components/productItem/index.tsx index 9433463..7cf5191 100644 --- a/src/pages/cutSampleList/components/productItem/index.tsx +++ b/src/pages/cutSampleList/components/productItem/index.tsx @@ -67,7 +67,8 @@ export default memo((props: ParamType) => { {formatHashTag(productItem?.code, productItem?.name)} - {/* {new Array(2).fill('').map(item => )} */} + {productItem?.width} + {productItem?.weight_density} {productItem?.component} diff --git a/src/pages/cutSampleListOrderDetail/components/orderState/index.tsx b/src/pages/cutSampleListOrderDetail/components/orderState/index.tsx index 6f13a28..61afa4a 100644 --- a/src/pages/cutSampleListOrderDetail/components/orderState/index.tsx +++ b/src/pages/cutSampleListOrderDetail/components/orderState/index.tsx @@ -11,6 +11,7 @@ export interface orderStateItem { delivery_appendix_url: string[] order_status: number order_status_name: string + order_time: string } export interface orderStateParam { @@ -38,7 +39,7 @@ const OrderState = (props: orderStateParam) => { {(list?.length != (index + 1)) && } {item.order_status_name} - {formatDateTime(item.audit_time)} + {formatDateTime(item.order_time)} {item.audit_remark} {item.delivery_appendix_url?.length > 0 && diff --git a/src/pages/salesAfter/components/weightMemo/index.tsx b/src/pages/salesAfter/components/weightMemo/index.tsx index 7ce2889..33f83ad 100644 --- a/src/pages/salesAfter/components/weightMemo/index.tsx +++ b/src/pages/salesAfter/components/weightMemo/index.tsx @@ -14,7 +14,7 @@ export default memo(({ onCheck, onCustom }: Param) => { onCheck?.()}> - 陆盈纺织 + 面料优选A+ 查看原码单 @@ -33,4 +33,4 @@ export default memo(({ onCheck, onCustom }: Param) => { ) -}) +}) diff --git a/src/pages/user/index.tsx b/src/pages/user/index.tsx index d373370..b0fdc19 100644 --- a/src/pages/user/index.tsx +++ b/src/pages/user/index.tsx @@ -103,7 +103,7 @@ export default () => { {userInfo?.adminUserInfo?.phone ? userInfo?.adminUserInfo?.user_name : '点击登录'} - {userInfo?.adminUserInfo?.phone || 'Hi,欢迎来到陆盈商城'} + {userInfo?.adminUserInfo?.phone || 'Hi,欢迎来到商城'} {!!userInfo?.adminUserInfo?.company_name &&