mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-08-11 22:15:32 +08:00
购物车数量添加店铺id
This commit is contained in:
@@ -294,7 +294,7 @@ function SpSkuSelect(props) {
|
||||
discount_fee: valid_cart[0]?.discount_fee || '', //优惠金额
|
||||
storeDetails: valid_cart[0] || {}
|
||||
}
|
||||
dispatch(updateCount({ shop_type: 'distributor'}))
|
||||
dispatch(updateCount({ shop_type: 'distributor', shop_id: distributor_id }))
|
||||
dispatch(updateShopCartCount(shopCats))
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import { updateUserInfo, fetchUserFavs, clearUserInfo, updateIsNewUser } from '@
|
||||
import { updateCount, clearCart } from '@/store/slices/cart'
|
||||
import { purchaseClearCart } from '@/store/slices/purchase'
|
||||
import api from '@/api'
|
||||
import { isWeixin, showToast, entryLaunch, isAlipay, alipayAutoLogin } from '@/utils'
|
||||
import { isWeixin, showToast, entryLaunch, isAlipay, alipayAutoLogin, getDistributorId } from '@/utils'
|
||||
import S from '@/spx'
|
||||
import { SG_POLICY } from '@/consts/localstorage'
|
||||
import { INVITE_ACTIVITY_ID } from '@/consts'
|
||||
@@ -92,7 +92,7 @@ export default (props = {}) => {
|
||||
entryLaunch.postGuideTask()
|
||||
dispatch(updateIsNewUser(false))
|
||||
dispatch(fetchUserFavs())
|
||||
dispatch(updateCount({ shop_type: 'distributor' })) // 获取购物车商品数量
|
||||
dispatch(updateCount({ shop_type: 'distributor', shop_id: getDistributorId() })) // 获取购物车商品数量
|
||||
console.log('useLogin setToken redirect_url:', redirect_url, decodeURIComponent(redirect_url))
|
||||
if (redirect_url) {
|
||||
Taro.redirectTo({ url: decodeURIComponent(redirect_url) })
|
||||
|
||||
@@ -90,7 +90,7 @@ function CompGoodsItem(props) {
|
||||
shop_type: 'distributor'
|
||||
})
|
||||
)
|
||||
dispatch(updateCount({ shop_type: 'distributor' }))
|
||||
dispatch(updateCount({ shop_type: 'distributor', shop_id: distributorId }))
|
||||
Taro.hideLoading()
|
||||
showToast('成功加入购物车')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user