剪板流程
This commit is contained in:
@@ -144,16 +144,15 @@ export default memo(({show = false, onClose, title = '', productId = 0}: param)
|
||||
const {getSelfUserInfo} = UseLogin()
|
||||
const {fetchData:addFetchData} = AddShoppingCartApi()
|
||||
const addShopCart = async () => {
|
||||
// try {
|
||||
// await getSelfUserInfo()
|
||||
// } catch(msg) {
|
||||
// Taro.showToast({
|
||||
// icon:'none',
|
||||
// title:'授权失败,请求完善授权'
|
||||
// })
|
||||
// return false
|
||||
// }
|
||||
|
||||
try {
|
||||
await getSelfUserInfo()
|
||||
} catch(msg) {
|
||||
Taro.showToast({
|
||||
icon:'none',
|
||||
title:'授权失败,请求完善授权'
|
||||
})
|
||||
return false
|
||||
}
|
||||
if(selectCount.sumCount == 0) {
|
||||
Taro.showToast({
|
||||
icon:'none',
|
||||
@@ -161,6 +160,7 @@ export default memo(({show = false, onClose, title = '', productId = 0}: param)
|
||||
})
|
||||
return false
|
||||
}
|
||||
|
||||
const state = await addFetchData({
|
||||
"sale_mode": selectIndex,
|
||||
color_list: selectCount.color_list
|
||||
|
||||
Reference in New Issue
Block a user