feat: 完善站点选择埋点数据并移除调试日志
- 为起点站点选择添加地理坐标、网格ID和时间戳字段
- 为终点站点选择添加相同埋点字段增强数据收集
- 移除调试用的console.log语句
- 暂时注释导航返回代码以便调试
| | |
| | | $app.xpReportSend({ |
| | | eventId: 'RT_mp_user_address_searched', |
| | | para: { |
| | | eventId: 'RT_mp_user_address_searched', |
| | | user_id: uid || '-1', |
| | | search_type: pageType === 'start' ? 'pickup ' : 'dropoff ', |
| | | geo_lat: item.latitude, |
| | | geo_lng: item.longitude, |
| | | odd_grid_id: item.electronicAreaId, |
| | | timestamp: Date.now(), |
| | | }, |
| | | }); |
| | | console.log('选择起点站点埋点成功', 'RT_mp_user_address_searched', 'user_id' + uid, 'search_type' + (pageType === 'start' ? 'pickup ' : 'dropoff ')); |
| | | }); |
| | | Taro.setStorageSync('startSite', item); |
| | | Taro.navigateBack() |
| | | // Taro.navigateBack() |
| | | } else if (pageType == 'end') { |
| | | const otp = await checkOtp(false); |
| | | if (!otp) { |
| | |
| | | setDistanceConfig({ |
| | | maxDistance: res.maxDistance, |
| | | minDistance: res.minDistance, |
| | | adsorptionDistance: res.adsorptionDistance |
| | | adsorptionDistance: res.adsorptionDistance, |
| | | geo_lat: item.latitude, |
| | | geo_lng: item.longitude, |
| | | odd_grid_id: item.electronicAreaId, |
| | | timestamp: Date.now(), |
| | | }); |
| | | } |
| | | } |
| | |
| | | $app.xpReportSend({ |
| | | eventId: 'RT_mp_user_address_searched', |
| | | para: { |
| | | eventId: 'RT_mp_user_address_searched', |
| | | user_id: uid || '-1', |
| | | search_type: pageType === 'start' ? 'pickup ' : 'dropoff ', |
| | | }, |
| | | }); |
| | | }); |
| | | console.log('选择终点站点埋点成功', 'RT_mp_user_address_searched', 'user_id' + uid, 'search_type' + (pageType === 'start' ? 'pickup ' : 'dropoff ')); |
| | | Taro.setStorageSync('endSite', item) |
| | | Taro.reLaunch({ |
| | | url: Taro.getStorageSync('orderId') ? '/robotaxi/pages/begin-route/index?skipPageFlag=1' : '/robotaxi/pages/begin-route/index', |