支付页面开发

This commit is contained in:
2022-05-23 20:31:38 +08:00
parent 07e4c028d1
commit a3780aba0f
14 changed files with 504 additions and 21 deletions
+1 -1
View File
@@ -26,6 +26,6 @@
text-align: center;
line-height: 40px;
.miconfont{
font-size: 26px;
font-size: 32px;
}
}
+7 -3
View File
@@ -12,6 +12,8 @@ type Params = {
changeOnInput?: (string) => void,
clickOnInput?: () => void,
children?: ReactNode
height?: number,
titleStyle?: Object
}
@@ -24,7 +26,9 @@ export default memo((props: Params) => {
placeholder = '请输入',
showBorder = true,
changeOnInput,
clickOnInput
clickOnInput,
height = 80,
titleStyle = {}
} = props
let stylen = useMemo(() => {
@@ -34,8 +38,8 @@ export default memo((props: Params) => {
return {}
}, [showBorder])
return (
<View className={styles.searchInput_main} style={stylen}>
{showTitle&&<View className={styles.searchInput_title}>{title}</View>}
<View className={styles.searchInput_main} style={{height: height + 'rpx'}}>
{showTitle&&<View className={styles.searchInput_title} style={titleStyle}>{title}</View>}
<View className={styles.searchInput_con}>
{!props.children&&<Input disabled={disabled} placeholder={placeholder} onClick={() => clickOnInput?.()} onInput={(e) => changeOnInput?.(e.detail.value)}/>
||<View>{props.children}</View>