Commit 89862bb2 authored by GuanHua's avatar GuanHua

fix:购买数量低于最小订购量,可以加入购物车的问题

parent 89fde2e2
......@@ -343,6 +343,13 @@ const CommodityDetail = (props) => {
message.info("请选择商品属性")
return
}
if (buyCount < commodityDetail.minOrder) {
message.destroy()
message.info("购买数量不能低于最小购买量")
return
}
if (clickFlag) {
clickFlag = false
let param: any = {
......
......@@ -27,10 +27,9 @@ const BablancePayWay: React.FC<BablancePayWayPropsType> = (props) => {
const [balanceInfo, setBalanceInfo] = useState<GetPayAssetAccountGetUserBalanceResponse>(0)
const [securityInfo, setSecurityInfo] = useState<GetMemberSecurityGetResponse>()
const [payPassword, setPayPassword] = useState<string>('')
const [type, setType] = useState<string>('normal') // normal: 普通;member:会员
const [confirmLoading, setConfirmLoading] = useState<boolean>(false)
const [pageLoading, setPageLoading] = useState<boolean>(true)
const [payDisabled, setPayDisabled] = useState<boolean>(false)
const [payDisabled] = useState<boolean>(false)
const handlePasswordChange = (value: string) => {
setPayPassword(value)
......
......@@ -27,7 +27,7 @@ const PointPayWay: React.FC<PointPayWayPropsType> = (props) => {
const [payPassword, setPayPassword] = useState<string>('')
const [pointInfo, setPointInfo] = useState<GetMemberBusinessLrcRightPointGetResponse>()
const [confirmLoading, setConfirmLoading] = useState<boolean>(false)
const [payDisabled, setPayDisabled] = useState<boolean>(false)
const [payDisabled] = useState<boolean>(false)
const [pageLoading, setPageLoading] = useState<boolean>(true)
const [relType, setRelType] = useState<number>(0) // 0: 平台;1:会员
......
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