🎈 perf(UI界面): 完成UI界面和逻辑,等待后端对接
This commit is contained in:
@@ -7,6 +7,7 @@ import type { SalesManDialogRef } from '../bindSalesManDialog'
|
||||
import BindSalesManDialog from '../bindSalesManDialog'
|
||||
import LabAndImgShow from '../LabAndImgShow'
|
||||
import LabAndImg from '../LabAndImg'
|
||||
import OrganizationNameModal from '../organizationNameModal'
|
||||
import styles from './index.module.scss'
|
||||
import ProductItem from './components/productItem'
|
||||
import Popup from '@/components/popup'
|
||||
@@ -258,6 +259,15 @@ const ShopCart = ({ show = false, onClose, intoStatus = 'shop', default_sale_mod
|
||||
}
|
||||
}, [list])
|
||||
|
||||
const [showModal, setShowModal] = useState(false)
|
||||
|
||||
const handleClose = () => {
|
||||
setShowModal(false)
|
||||
}
|
||||
const handleShowChange = (val: boolean) => {
|
||||
setShowModal(val)
|
||||
}
|
||||
|
||||
// 去结算
|
||||
const { fetchData: FetchData } = GetAdminUserInfoApi()
|
||||
const { fetchData: applyOrderAccessFetchData } = ApplyOrderAccessApi()
|
||||
@@ -268,7 +278,12 @@ const ShopCart = ({ show = false, onClose, intoStatus = 'shop', default_sale_mod
|
||||
bindSalesManDialogRef.current?.handleChange(true)
|
||||
// setShowBindSalesman(() => true)
|
||||
onClose?.()
|
||||
return false
|
||||
return
|
||||
}
|
||||
// TODO 检测是否修改过组织昵称
|
||||
if (false) {
|
||||
setShowModal(true)
|
||||
return
|
||||
}
|
||||
getSelectId()
|
||||
if (selectIds.current.length == 0) {
|
||||
@@ -308,6 +323,7 @@ const ShopCart = ({ show = false, onClose, intoStatus = 'shop', default_sale_mod
|
||||
setSelectStatus(true)
|
||||
})
|
||||
}, [selectIndex])
|
||||
|
||||
return (
|
||||
<View className={styles.shop_cart_main}>
|
||||
<Popup showTitle={false} show={showPopup} onClose={() => closePopup()}>
|
||||
@@ -378,6 +394,7 @@ const ShopCart = ({ show = false, onClose, intoStatus = 'shop', default_sale_mod
|
||||
<View>
|
||||
<LabAndImgShow value={labImageValue} show={showLabImage} onClose={closeLabImgShow} />
|
||||
</View>
|
||||
<OrganizationNameModal showModal={showModal} onClose={handleClose} onShowModalChange={handleShowChange} />
|
||||
</View>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user