fix(custom): m

This commit is contained in:
lukaijie
2025-08-29 16:59:50 +08:00
parent 24d7e92002
commit 4191e86b46

View File

@@ -234,13 +234,8 @@ function withPageWrapper(Component) {
contentAlign: 'center'
})
if (resModalConnectStore.confirm) {
Taro.makePhoneCall({
phoneNumber: currentShopInfo.phone,
fail: async () => {
return await resloveCheckUserInStoreWhiteList(currentShopInfo)
}
})
throw new Error('PHONE_CALL_TO_STORE')
await makePhoneCall(currentShopInfo.phone)
dispatch(updateShopInfo(myShopInfo))
} else {
dispatch(updateShopInfo(myShopInfo))
}
@@ -284,6 +279,20 @@ function withPageWrapper(Component) {
}
}
const makePhoneCall = async (phoneNumber) => {
return new Promise((resolve, reject) => {
Taro.makePhoneCall({
phoneNumber: phoneNumber,
success: async () => {
resolve()
},
fail: async () => {
reject()
}
})
})
}
if (state) {
return <Component {...props} />
} else {