mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-08-14 17:41:45 +08:00
fix(custom): m
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user