mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-08-11 06:05:31 +08:00
场景值处理
This commit is contained in:
@@ -132,6 +132,7 @@ function CartCheckout(props) {
|
||||
goodType = routerParams.goodType,
|
||||
launchScene = routerParams.launchScene
|
||||
} = $instance?.router?.params || {}
|
||||
const launchSceneNumber = launchScene ? Number(launchScene) : 0
|
||||
// const { scene: launchScene } = Taro.getLaunchOptionsSync()
|
||||
const senceCode = [1011, 1012, 1013, 1047, 1048, 1049]
|
||||
console.log('$instance.router?.params:', $instance.router)
|
||||
@@ -480,7 +481,7 @@ function CartCheckout(props) {
|
||||
if (couponInfo?.coupon_code) {
|
||||
url = `${url}&coupon=${couponInfo?.coupon_code}`
|
||||
}
|
||||
if (storageParams?.cxdid && senceCode.includes(launchScene)) {
|
||||
if (storageParams?.cxdid && senceCode.includes(launchSceneNumber)) {
|
||||
url = `${url}&cxdid=${storageParams?.cxdid}`
|
||||
}
|
||||
Taro.navigateTo({
|
||||
@@ -809,7 +810,7 @@ function CartCheckout(props) {
|
||||
distributor_id: receiptType === 'ziti' && ziti_shopid ? ziti_shopid : shop_id
|
||||
}
|
||||
// 处理导购数据(旧)
|
||||
if (storageParams?.cxdid && senceCode.includes(launchScene)) {
|
||||
if (storageParams?.cxdid && senceCode.includes(launchSceneNumber)) {
|
||||
cus_parmas.cxdid = storageParams?.cxdid;
|
||||
cus_parmas.distributor_id = storageParams?.dtid;
|
||||
cus_parmas.cart_type = "cxd";
|
||||
|
||||
Reference in New Issue
Block a user