合并
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { memo } from "react";
|
||||
|
||||
export default memo(() => {
|
||||
return (
|
||||
<>
|
||||
|
||||
</>
|
||||
)
|
||||
})
|
||||
+15
-14
@@ -115,15 +115,15 @@ export default (props:Params) => {
|
||||
|
||||
//开始下单
|
||||
const placeOrder = async (e:any) => {
|
||||
try {
|
||||
await getPhoneNumber(e.detail.code)
|
||||
} catch(msg) {
|
||||
Taro.showToast({
|
||||
icon:"none",
|
||||
title: msg
|
||||
})
|
||||
return false
|
||||
}
|
||||
// try {
|
||||
// await getPhoneNumber(e.detail.code)
|
||||
// } catch(msg) {
|
||||
// Taro.showToast({
|
||||
// icon:"none",
|
||||
// title: msg
|
||||
// })
|
||||
// return false
|
||||
// }
|
||||
setShowOrderCount(true)
|
||||
}
|
||||
|
||||
@@ -183,11 +183,12 @@ export default (props:Params) => {
|
||||
<View className={styles.text}>购物车</View>
|
||||
</View>
|
||||
{
|
||||
!userInfo.adminUserInfo?.is_authorize_phone&&<View className={styles.buy_btn} >
|
||||
<Button className={styles.phoneBtn} open-type="getPhoneNumber" onGetPhoneNumber={(e) => placeOrder(e)}></Button>
|
||||
开始下单
|
||||
</View>
|
||||
|| <View className={styles.buy_btn} onClick={(e) => placeOrder(e)}>开始下单</View>
|
||||
// !userInfo.adminUserInfo?.is_authorize_phone&&<View className={styles.buy_btn} >
|
||||
// <Button className={styles.phoneBtn} open-type="getPhoneNumber" onGetPhoneNumber={(e) => placeOrder(e)}></Button>
|
||||
// 开始下单
|
||||
// </View>
|
||||
// || <View className={styles.buy_btn} onClick={(e) => placeOrder(e)}>开始下单</View>
|
||||
<View className={styles.buy_btn} onClick={(e) => placeOrder(e)}>开始下单</View>
|
||||
}
|
||||
</View>
|
||||
<CustomWrapper>
|
||||
|
||||
Reference in New Issue
Block a user