mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-08-13 06:35:41 +08:00
Merge branch 'feature/store-rule'
This commit is contained in:
@@ -459,6 +459,7 @@ function CartCheckout(props) {
|
||||
|
||||
const handleCouponsClick = async () => {
|
||||
const { cart_type, distributor_id: id } = paramsInfo
|
||||
const storageParams = await Taro.getStorageSync(SG_GUIDE_PARAMS) || {}
|
||||
const items = detailInfo
|
||||
.filter((item) => item.orderItemType !== 'gift')
|
||||
.map((item) => {
|
||||
@@ -475,6 +476,9 @@ function CartCheckout(props) {
|
||||
if (couponInfo?.coupon_code) {
|
||||
url = `${url}&coupon=${couponInfo?.coupon_code}`
|
||||
}
|
||||
if (storageParams?.cxdid) {
|
||||
url = `${url}&cxdid=${storageParams?.cxdid}`
|
||||
}
|
||||
Taro.navigateTo({
|
||||
url
|
||||
})
|
||||
|
||||
@@ -30,7 +30,8 @@ function CouponPicker(props) {
|
||||
distributor_id,
|
||||
source,
|
||||
goodType,
|
||||
coupon = null
|
||||
coupon = null,
|
||||
cxdid
|
||||
} = $instance.router.params
|
||||
const params = {
|
||||
page_no: pageIndex,
|
||||
@@ -42,7 +43,8 @@ function CouponPicker(props) {
|
||||
valid: true,
|
||||
is_checkout,
|
||||
cart_type,
|
||||
iscrossborder: 0
|
||||
iscrossborder: 0,
|
||||
cxdid
|
||||
}
|
||||
const { list, total_count: total } = await api.cart.coupons(params)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user