feat:提交订单显示客户名字

This commit is contained in:
Haiyi 2022-10-09 13:51:17 +08:00
parent f551b5a015
commit 001b709ff0

View File

@ -61,9 +61,11 @@ export default () => {
}, 300)
const { fetchData: infoFetch } = mpsaleOrderpreView()
const [pussName, setPusername] = useState<String>('')
//获取订单详情
const getDetail = async () => {
let arr: any[] = []
setPusername(decodeURIComponent(router.params.purchaser_name))
arr = JSON.parse(decodeURIComponent(router.params.shopping_cart_product_color_list))
let list: any[] = []
arr?.forEach(item => {
@ -170,7 +172,7 @@ export default () => {
modeName={infoObj.sale_mode_name}
>
<View className={styles.pussBox}>
<View className={styles.pussName}>{router.params.purchaser_name}</View>
<View className={styles.pussName}>{pussName}</View>
{/* <View className={styles.pussPhone}>{infoObj.purchaser_phone}</View> */}
</View>
</DefaultBox>