🌈 style:日历组件衔接scss文件

This commit is contained in:
Haiyi
2022-09-21 10:17:33 +08:00
parent adc7c36193
commit 6757d91a03
12 changed files with 1318 additions and 187 deletions
@@ -0,0 +1,49 @@
import { Image, Text, View } from "@tarojs/components";
import { memo, useEffect, useMemo, useRef, useState } from "react";
import classnames from "classnames";
import styles from './index.module.scss'
interface propsObj {
receivingStatus?: Number | null,
onReceivingStatus?: (any, Number) => void,
obj: any,
handUp?: (any) => void
}
export default memo((props: propsObj) => {
const {
obj = {},
handUp
} = props
const seeFont = useMemo(() => {
if (obj.stage == 1) {
return '上传物流回单'
} else {
return '查看物流回单'
}
}, [obj])
return (
<View className={styles.addressBox}>
<View className={styles.topFont}>请按以下退货地址寄回货物并提供退货物流信息</View>
<View className={styles.topBox}>
<View className={styles.cirle}>
<View className={classnames('iconfont', 'icon-dingwei', styles.dingwei)}></View>
</View>
<View className={styles.address}>{'广东省佛山市禅城区陆盈纺织仓库'}</View>
</View>
<View className={styles.line}></View>
<View className={styles.bottom}>
<View className={styles.name}>{'谭先生'}</View>
<View className={styles.phone}>{13242128982}</View>
<View className={styles.btn} onClick={() => handUp?.(obj)}>{seeFont}</View>
{/* {
obj.stage !== 1 && <View className={styles.nobtn}></View>
} */}
</View>
</View >
)
})