mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-08-13 14:45:41 +08:00
分享扫码
This commit is contained in:
@@ -129,9 +129,10 @@ function CartCheckout(props) {
|
||||
group_id = routerParams.group_id, // 团购id
|
||||
source = routerParams.source,
|
||||
scene, // 情景值
|
||||
goodType = routerParams.goodType
|
||||
goodType = routerParams.goodType,
|
||||
launchScene = routerParams.launchScene
|
||||
} = $instance?.router?.params || {}
|
||||
const { scene: launchScene } = Taro.getLaunchOptionsSync()
|
||||
// const { scene: launchScene } = Taro.getLaunchOptionsSync()
|
||||
const senceCode = [1011, 1012, 1013, 1047, 1048, 1049]
|
||||
console.log('$instance.router?.params:', $instance.router)
|
||||
|
||||
@@ -559,7 +560,7 @@ function CartCheckout(props) {
|
||||
Taro.showLoading({ title: '' })
|
||||
// calc.current = true
|
||||
const cus_parmas = await getParamsInfo()
|
||||
console.log('cus_parmas:', cus_parmas)
|
||||
console.log('-------cus_parmas------:', cus_parmas)
|
||||
let orderRes
|
||||
try {
|
||||
orderRes = await api.cart.total(cus_parmas)
|
||||
|
||||
@@ -47,6 +47,8 @@ function ShareIand() {
|
||||
|
||||
// 处理落地页类型
|
||||
const handleShareLand = (routeParams) => {
|
||||
const { scene: launchScene } = Taro.getLaunchOptionsSync()
|
||||
console.log('launchScene1:', launchScene)
|
||||
const { from_scene, ...otherParams } = routeParams
|
||||
const welcomeRoutes = {
|
||||
// 导购欢迎语
|
||||
@@ -81,7 +83,7 @@ function ShareIand() {
|
||||
}
|
||||
|
||||
// 过滤掉内部使用的参数
|
||||
const filteredParams = { ...otherParams }
|
||||
const filteredParams = { ...otherParams, launchScene: launchScene }
|
||||
delete filteredParams.scene
|
||||
delete filteredParams.$taroTimestamp
|
||||
const queryString = qs.stringify(filteredParams)
|
||||
@@ -119,10 +121,12 @@ function ShareIand() {
|
||||
// 3、其他小程序跳转过来 pages/share-land?target_path=pages/item/espier-detail&id=123
|
||||
// 4、小程序卡片跳转过来 pages/share-land?target_path=pages/item/espier-detail&id=123
|
||||
const handleGeneralShare = (routeParams) => { // routeParams:pa
|
||||
const { scene: launchScene } = Taro.getLaunchOptionsSync()
|
||||
console.log('launchScene2:', launchScene)
|
||||
const { target_path, ...otherParams } = routeParams
|
||||
|
||||
// 过滤掉内部使用的参数
|
||||
const filteredParams = { ...otherParams }
|
||||
const filteredParams = { ...otherParams, launchScene: launchScene }
|
||||
delete filteredParams.scene
|
||||
delete filteredParams.$taroTimestamp
|
||||
|
||||
|
||||
Reference in New Issue
Block a user