Merge branch 'feature/store-rule'

This commit is contained in:
maqian
2025-09-24 18:17:27 +08:00
2 changed files with 8 additions and 2 deletions

View File

@@ -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
})

View File

@@ -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)