🎈 perf(ID1000823客服窗口优化):
This commit is contained in:
@@ -16,11 +16,11 @@ interface param {
|
||||
children?: ReactElement | null
|
||||
onShopClick?: () => void
|
||||
showList?: ShowStatus[]
|
||||
messageTitle: string
|
||||
messagePath: string
|
||||
showCart: false|true
|
||||
messageTitle?: string
|
||||
messagePath?: string
|
||||
showCart?: false|true
|
||||
}
|
||||
const MoveBtn = ({ children = null, onShopClick, showList = [], messageTitle = '', messagePath = '', showCart }: param) => {
|
||||
const MoveBtn = ({ children = null, onShopClick, showList = [], messageTitle = '', messagePath = '', showCart = false }: param) => {
|
||||
const userInfo = useSelector(state => state.userInfo)
|
||||
// 获取购物车数据数量
|
||||
const { getShopCount, commonData } = useCommonData()
|
||||
@@ -82,7 +82,7 @@ const MoveBtn = ({ children = null, onShopClick, showList = [], messageTitle = '
|
||||
</MovableView>}
|
||||
{onShow('order') && <MovableView
|
||||
onClick={() => set_customer_service_show(true) }
|
||||
className={styles.moveBtn}
|
||||
className={classnames(styles.moveBtn, styles.no_bg_moveBtn)}
|
||||
direction="all"
|
||||
inertia
|
||||
x="630rpx"
|
||||
@@ -92,7 +92,7 @@ const MoveBtn = ({ children = null, onShopClick, showList = [], messageTitle = '
|
||||
</MovableView>}
|
||||
{onShow('customer') && <MovableView
|
||||
onClick={onPhone}
|
||||
className={styles.moveBtn}
|
||||
className={classnames(styles.moveBtn, styles.no_bg_moveBtn)}
|
||||
direction="all"
|
||||
inertia
|
||||
x="630rpx"
|
||||
@@ -100,7 +100,7 @@ const MoveBtn = ({ children = null, onShopClick, showList = [], messageTitle = '
|
||||
>
|
||||
<Image mode="aspectFit" src={formatImgUrl('/mall/float_button_customer_service.png')} />
|
||||
</MovableView>}
|
||||
<Customer messageTitle={messageTitle} messagePath={messageTitle} show={customer_service_show} onClose={customerClose} />
|
||||
<Customer messageTitle={messageTitle} messagePath={messageTitle} show={customer_service_show} showCard={showCart} onClose={customerClose} />
|
||||
</MovableArea>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user