🎈 perf(支付弹窗优化):

This commit is contained in:
czm 2022-12-13 14:53:54 +08:00
parent 23a6c22045
commit c7da1a1b25
4 changed files with 84 additions and 85 deletions

View File

@ -1,4 +1,4 @@
export const BASE_URL = CURRENT_BASE_URL // export const BASE_URL = CURRENT_BASE_URL
// export const BASE_URL = `http://192.168.0.75:50001/lymarket` // export const BASE_URL = `http://192.168.0.75:50001/lymarket`
// export const BASE_URL = `http://192.168.0.89:50001/lymarket` // export const BASE_URL = `http://192.168.0.89:50001/lymarket`
// export const BASE_URL = `http://10.0.0.5:50001/lymarket` // export const BASE_URL = `http://10.0.0.5:50001/lymarket`
@ -12,7 +12,7 @@ export const BASE_URL = CURRENT_BASE_URL
// export const BASE_URL = `https://dev.zzfzyc.com/lymarket` // 开发环境 // export const BASE_URL = `https://dev.zzfzyc.com/lymarket` // 开发环境
// export const BASE_URL = 'https://www.zzfzyc.com/lymarket' // 正式环境 // export const BASE_URL = 'https://www.zzfzyc.com/lymarket' // 正式环境
// export const BASE_URL = `http://192.168.1.5:40001/lymarket` // 王霞 // export const BASE_URL = `http://192.168.1.5:40001/lymarket` // 王霞
// export const BASE_URL = 'http://192.168.1.7:50002/lymarket' // 添 export const BASE_URL = 'http://192.168.1.7:50002/lymarket' // 添
// export const BASE_URL = 'http://192.168.1.28:50002/lymarket' // 婷 // export const BASE_URL = 'http://192.168.1.28:50002/lymarket' // 婷
// export const BASE_URL = `http://192.168.1.42:50002/lymarket` // 杰 // export const BASE_URL = `http://192.168.1.42:50002/lymarket` // 杰

View File

@ -12,7 +12,7 @@ const CloseBtn = ({ onClose, styleObj = {} }: Params) => {
<View <View
style={styleObj} style={styleObj}
className={style.icon_a_cuowuwrong_self} className={style.icon_a_cuowuwrong_self}
onClick={onClose} onClick={() => onClose?.()}
> >
<View className={style.icon_a_btn}> <View className={style.icon_a_btn}>
<IconFont name="icon-qingchuxinxi" size={40} color="#acacac"></IconFont> <IconFont name="icon-qingchuxinxi" size={40} color="#acacac"></IconFont>

View File

@ -45,6 +45,7 @@ $am-ms: 200ms;
position: absolute; position: absolute;
top: 10px; top: 10px;
left: 10px; left: 10px;
z-index: 1000;
} }
} }
.drawer_container_active { .drawer_container_active {
@ -85,7 +86,4 @@ $am-ms: 200ms;
border-radius: 20px 0 0 20px; border-radius: 20px 0 0 20px;
transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0);
} }
} }

View File

@ -153,6 +153,7 @@ const Payment = ({ show = false, onClose, orderInfo, onSubmitSuccess }: Param) =
// 是否显示七天账期 // 是否显示七天账期
const show_account_payment = useMemo(() => { const show_account_payment = useMemo(() => {
if (!payInfo?.account_period) { return false }
// 剪板和散剪不显示 // 剪板和散剪不显示
if (orderInfo?.sale_mode != 0) { return false } if (orderInfo?.sale_mode != 0) { return false }
// 支付方式是账期支付,不显示 // 支付方式是账期支付,不显示
@ -189,7 +190,7 @@ const Payment = ({ show = false, onClose, orderInfo, onSubmitSuccess }: Param) =
return ( return (
<View className={styles.payment_main}> <View className={styles.payment_main}>
<Popup show={show} showTitle={false} onClose={onClose}> <Popup show={show} showTitle={false} onClose={onClose} showIconButton>
<View className={styles.payment_con}> <View className={styles.payment_con}>
{/* <View className={classnames('iconfont icon-a-moreback', styles.miconfont_title)} onClick={onClose}></View> */} {/* <View className={classnames('iconfont icon-a-moreback', styles.miconfont_title)} onClick={onClose}></View> */}
<View className={styles.title}></View> <View className={styles.title}></View>
@ -218,7 +219,7 @@ const Payment = ({ show = false, onClose, orderInfo, onSubmitSuccess }: Param) =
<View className={styles.payment_list_item_left}> <View className={styles.payment_list_item_left}>
<View className={classnames(styles.miconfont)}><IconFont name="icon-yufukuan" size={70} /></View> <View className={classnames(styles.miconfont)}><IconFont name="icon-yufukuan" size={70} /></View>
<View className={styles.payment_list_item_left_name}> <View className={styles.payment_list_item_left_name}>
<View className={styles.payment_list_item_left_text}></View> <View className={styles.payment_list_item_left_text}></View>
{advance_payment} {advance_payment}
</View> </View>
</View> </View>