mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-08-12 06:15:38 +08:00
Merge branch 'feature/ECX-7316' into 'master'
Feature/ecx 7316 See merge request huiqi/ecshopx-vshop!83
This commit is contained in:
@@ -88,7 +88,7 @@ export default (props = {}) => {
|
||||
setIsLogin(true)
|
||||
await getUserInfo()
|
||||
// 导购UV统计
|
||||
// entryLaunch.postGuideUV()
|
||||
entryLaunch.postGuideUV()
|
||||
entryLaunch.postGuideTask()
|
||||
dispatch(updateIsNewUser(false))
|
||||
dispatch(fetchUserFavs())
|
||||
|
||||
@@ -367,6 +367,7 @@ function CartCheckout(props) {
|
||||
orderInfo,
|
||||
() => {
|
||||
entryLaunch.postGuideUV()
|
||||
entryLaunch.postGuideUVBind()
|
||||
entryLaunch.postGuideTask()
|
||||
}
|
||||
)
|
||||
@@ -476,7 +477,7 @@ function CartCheckout(props) {
|
||||
if (couponInfo?.coupon_code) {
|
||||
url = `${url}&coupon=${couponInfo?.coupon_code}`
|
||||
}
|
||||
if (storageParams?.cxdid) {
|
||||
if (storageParams?.cxdid && scene) {
|
||||
url = `${url}&cxdid=${storageParams?.cxdid}`
|
||||
}
|
||||
Taro.navigateTo({
|
||||
@@ -805,7 +806,8 @@ function CartCheckout(props) {
|
||||
distributor_id: receiptType === 'ziti' && ziti_shopid ? ziti_shopid : shop_id
|
||||
}
|
||||
// 处理导购数据(旧)
|
||||
if (storageParams?.cxdid) {
|
||||
if (storageParams?.cxdid && scene) {
|
||||
debugger
|
||||
cus_parmas.cxdid = storageParams?.cxdid;
|
||||
cus_parmas.distributor_id = storageParams?.dtid;
|
||||
cus_parmas.cart_type = "cxd";
|
||||
|
||||
@@ -46,6 +46,7 @@ function CustomPage(props) {
|
||||
|
||||
useEffect(() => {
|
||||
fetch()
|
||||
entryLaunch.postGuideUV()
|
||||
entryLaunch.postGuideTask()
|
||||
}, [])
|
||||
|
||||
|
||||
@@ -146,6 +146,7 @@ function EspierDetail(props) {
|
||||
|
||||
useEffect(() => {
|
||||
init()
|
||||
entryLaunch.postGuideUV()
|
||||
entryLaunch.postGuideTask()
|
||||
}, [])
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ function ShareIand() {
|
||||
Taro.setStorageSync(SG_GUIDE_PARAMS_UPDATETIME, dayjs().unix())
|
||||
|
||||
if (S.getAuthToken()) {
|
||||
// entryLaunch.postGuideUV()
|
||||
entryLaunch.postGuideUV()
|
||||
entryLaunch.postGuideTask()
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -43,6 +43,7 @@ export default class recommendDetail extends Component {
|
||||
screenWidth: res.screenWidth
|
||||
})
|
||||
})
|
||||
entryLaunch.postGuideUV()
|
||||
entryLaunch.postGuideTask()
|
||||
}
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ function CouponCenter(props) {
|
||||
const { couponList } = state
|
||||
|
||||
useEffect(() => {
|
||||
entryLaunch.postGuideUV()
|
||||
entryLaunch.postGuideTask()
|
||||
}, [])
|
||||
|
||||
|
||||
@@ -519,6 +519,7 @@ class EntryLaunch {
|
||||
* 导购UV统计
|
||||
*/
|
||||
async postGuideUV() {
|
||||
if (!S.getAuthToken()) return
|
||||
const routerParams = Taro.getStorageSync(SG_GUIDE_PARAMS)
|
||||
const { gu } = routerParams || {}
|
||||
if (gu) {
|
||||
@@ -526,7 +527,17 @@ class EntryLaunch {
|
||||
await api.user.uniquevisito({
|
||||
work_userid
|
||||
})
|
||||
// 导购关系绑定
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 导购关系绑定
|
||||
*/
|
||||
async postGuideUVBind() {
|
||||
const routerParams = Taro.getStorageSync(SG_GUIDE_PARAMS)
|
||||
const { gu } = routerParams || {}
|
||||
if (gu) {
|
||||
const [work_userid] = gu.split('_')
|
||||
await api.user.bindSaleperson({
|
||||
work_userid
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user