Selaa lähdekoodia

友盟数据统计埋点

zhengjinyi 4 vuotta sitten
vanhempi
commit
80c2206c64

+ 7 - 0
components/cm-module/productDetails/cm-price.vue

@@ -243,6 +243,13 @@
 				this.$api.navigateTo('/pages/login/apply')
 			},
 			loginClick(){
+				// 友盟埋点商品详情登录查看价格点击事件
+				if(process.env.NODE_ENV != 'development'){
+					this.$uma.trackEvent('Um_Event_ProductLogin', {
+						Um_Key_PageName: '去登录',
+						Um_Key_SourcePage: '商品详情登录查看价格',
+					})
+				}		
 				this.$api.navigateTo('/pages/login/login')
 			},
 			goGoodActiveFn(id){

+ 7 - 0
pages/goods/cart.vue

@@ -643,6 +643,13 @@
 							productID:productID.substring(0,productID.lastIndexOf(',')),
 							productCount:''
 						}
+					// 友盟埋点购物车去结算点击事件
+					if(process.env.NODE_ENV != 'development'){
+						this.$uma.trackEvent('Um_Event_shoppingCartConfirmOrder', {
+							Um_Key_PageName: '去结算',
+							Um_Key_SourcePage: '商品详情购物车',
+						})
+					}		
 					this.$api.navigateTo(`/pages/user/order/create-order?data=${JSON.stringify({data:cartPramsData})}`)
 				}
 			},

+ 7 - 0
pages/goods/product.vue

@@ -496,6 +496,13 @@
 			},
 			buyProductCart(){//底部购物车按钮点击
 				if(this.hasLogin){
+					// 友盟埋点商品详情购物车入口点击事件
+					if(process.env.NODE_ENV != 'development'){
+						this.$uma.trackEvent('Um_Event_ProductShoppingCart', {
+							Um_Key_PageName: '去购物车',
+							Um_Key_SourcePage: '商品详情购物车入口',
+						})
+					}		
 					this.$api.navigateTo('/pages/goods/cart')
 				}else{
 					this.$api.navigateTo('/pages/login/login?type=1')

+ 8 - 1
pages/tabBar/cart/cart.vue

@@ -589,7 +589,7 @@
 					this.$util.msg(error.msg,2000);
 				})
 			 },
-			toConfirmation(){//跳转确认订单页面
+			toConfirmation(){//跳转确认订单页面			
 				let setGoodsList=[];
 				this.goodsList.forEach(res=>{
 					let products = res.cartList
@@ -631,6 +631,13 @@
 							productID:productID.substring(0,productID.lastIndexOf(',')),
 							productCount:''
 						}
+					// 友盟埋点购物车去结算点击事件
+					if(process.env.NODE_ENV != 'development'){
+						this.$uma.trackEvent('Um_Event_shoppingCartConfirmOrder', {
+							Um_Key_PageName: '去结算',
+							Um_Key_SourcePage: '底部菜单购物车',
+						})
+					}	
 					this.$api.navigateTo(`/pages/user/order/create-order?data=${JSON.stringify({data:cartPramsData})}`)
 				}
 			},

+ 10 - 10
pages/tabBar/user/user.vue

@@ -189,10 +189,10 @@
 		},
 		data() {
 			return{	
-				nvabarData: {//顶部自定义导航
-					showCapsule: 1, // 是否显示左上角图标  1表示显示  0表示不显示,
+				nvabarData: {			// 顶部自定义导航
+					showCapsule: 1, 	// 是否显示左上角图标  1表示显示  0表示不显示,
 					showSearch: 0,
-					title: '我的', // 导航栏 中间的标题
+					title: '我的', 		// 导航栏中间的标题
 					haveBack:false,
 					textLeft:this.$store.state.isIphone,
 					textColor:'#FFFFFF',
@@ -216,13 +216,13 @@
 				aboutHtml:'',
 				telPhone:'',
 				bindMobile:'',
-				clubStatus:'',	//机构升级会员机构审核状态1:待审核  91:审核失败
-				userIdentity:'', //机构等级
-				confirmedCount:0,//待确认
-				paymentCount:0, //待付款角标
-				waitShipmentsCount:0, //待收货角标
-				shipmentsCount:0,  //已发货角标
-				salesReturnCount:'',//退货/款角标
+				clubStatus:'',			// 机构升级会员机构审核状态1:待审核  91:审核失败
+				userIdentity:'', 		// 机构等级
+				confirmedCount:0,		// 待确认
+				paymentCount:0, 		// 待付款角标
+				waitShipmentsCount:0, 	// 待收货角标
+				shipmentsCount:0,  		// 已发货角标
+				salesReturnCount:'',	// 退货/款角标
 				firstList:[
 					{name:'运营人员管理',path:'/pages/user/operator/list',icon:'icon-yunyingrenyuanguanli'},
 					{name:'收货地址管理',path:'/pages/user/address/address',icon:'icon-shouhuodizhiguanli'},

+ 13 - 13
pages/user/account/account-bean.vue

@@ -73,29 +73,29 @@
 		data() {
 			return{
 				StaticUrl:this.$Static,
-				nvabarData: {		//顶部自定义导航
-					showCapsule:1, // 是否显示左上角图标  1表示显示  0表示不显示,
+				nvabarData: {					// 顶部自定义导航
+					showCapsule:1, 				// 是否显示左上角图标  1表示显示  0表示不显示,
 					showSearch: 0,
-					title: '采美豆明细',  // 导航栏 中间的标题
+					title: '采美豆明细',  		// 导航栏 中间的标题
 					haveBack:true,
 					textColor:'#ffffff',
 					textLeft:this.$store.state.isIphone,
 				},
 				account_bg:'https://img.caimei365.com/group1/M00/03/D0/Cmis21-PpUqAbubBAADf1kTyhjs098.png',
 				isIphoneX:this.$store.state.isIphoneX,
-				CustomBar:this.CustomBar,// 顶部导航栏高度
+				CustomBar:this.CustomBar,		// 顶部导航栏高度
 				listQuery:{
-					year: date.getFullYear(),					//年
-					month: date.getMonth()+1,					//月
-					userId: '',		 							//用户ID
-					pageNum:1,    								//页数
-					pageSize:10,   								//加载条数
-					type: 0, 							//查询余额类型
+					year: date.getFullYear(),	// 
+					month: date.getMonth()+1,	// 
+					userId: '',		 			// 用户ID
+					pageNum:1,    				// 页数
+					pageSize:10,   				// 加载条数
+					type: 0, 					// 查询余额类型
 				},
 				userBeans:0,
-				tabCurrentIndex: 0,			//标签选择索引
-				infoData: {selected: []}, 		//日期选择
-				beansList: [],			//余额列表
+				tabCurrentIndex: 0,				// 标签选择索引
+				infoData: {selected: []}, 		// 日期选择
+				beansList: [],					// 余额列表
 				isRefreshing:false,
 				isNomore:false,
 				isEmpty:false,

+ 16 - 16
pages/user/account/account.vue

@@ -79,31 +79,31 @@
 		data() {
 			return{
 				StaticUrl:this.$Static,
-				nvabarData: {		//顶部自定义导航
-					showCapsule:1, // 是否显示左上角图标  1表示显示  0表示不显示,
+				nvabarData: {							// 顶部自定义导航
+					showCapsule:1, 						// 是否显示左上角图标  1表示显示  0表示不显示,
 					showSearch: 0,
-					title: '账户余额明细',  // 导航栏 中间的标题
+					title: '账户余额明细',  				// 导航栏 中间的标题
 					haveBack:true,
 					textColor:'#ffffff',
 					textLeft:this.$store.state.isIphone,
 				},
 				account_bg:'https://img.caimei365.com/group1/M00/03/D0/Cmis21-PpUqAbubBAADf1kTyhjs098.png',
 				isIphoneX:this.$store.state.isIphoneX,
-				CustomBar:this.CustomBar,// 顶部导航栏高度
-				year: date.getFullYear(),					//年
-				month: date.getMonth()+1,					//月
-				userID: '',		 							//用户ID
-				pageNum:1,    								//页数
-				pageSize:10,   								//加载条数
-				balanceType: '', 							//查询余额类型
+				CustomBar:this.CustomBar,				// 顶部导航栏高度
+				year: date.getFullYear(),				// 
+				month: date.getMonth()+1,				// 
+				userID: '',		 						// 用户ID
+				pageNum:1,    							// 页数
+				pageSize:10,   							// 加载条数
+				balanceType: '', 						// 查询余额类型
 				showIndexOfMoney:'',
 				smallMoney:'00',
-				ableUserMoney:58656.65,		//可用余额
-				balanceTypeText:'',			//根据类型显示文字
-				tabCurrentIndex: 0,			//标签选择索引
-				infoData: {selected: []}, 		//日期选择
-				accountList: [],			//余额列表
-				isShowAccounExp:false,		//控制明细说明文字显示
+				ableUserMoney:58656.65,					// 可用余额
+				balanceTypeText:'',						// 根据类型显示文字
+				tabCurrentIndex: 0,						// 标签选择索引
+				infoData: {selected: []}, 				// 日期选择
+				accountList: [],						// 余额列表
+				isShowAccounExp:false,					// 控制明细说明文字显示
 				isRefreshing:false,
 				isNomore:false,
 				isEmpty:false,

+ 2 - 2
services/ajax.env.js

@@ -2,10 +2,10 @@ let URL_CONFIG = ''
 if(process.env.NODE_ENV === 'development'){
     // 开发环境
 	// URL_CONFIG = 'http://192.168.2.68:8008'	 //涛涛联调地址
-	URL_CONFIG = 'http://192.168.2.67:8008'	 //裴裴联调地址
+	// URL_CONFIG = 'http://192.168.2.67:8008'	 //裴裴联调地址
 	// URL_CONFIG = 'http://192.168.2.81:8008'
 	// URL_CONFIG = 'http://192.168.2.75:8008'	 //超超联调地址
-    // URL_CONFIG = 'https://spi-b.caimei365.com'	 //采美测试地址
+    URL_CONFIG = 'https://spi-b.caimei365.com'	 //采美测试地址
 	// URL_CONFIG = 'https://spi.caimei365.com'
 }else{
     // 生产环境

+ 2 - 2
services/config.env.js

@@ -2,8 +2,8 @@ let URL_CONFIG = ''
 if(process.env.NODE_ENV === 'development'){
     // 开发环境
     // URL_CONFIG = 'http://192.168.2.75:18002'	 //超超联调地址
-	URL_CONFIG = 'http://192.168.2.67:18002'	 //裴裴联调地址
-	// URL_CONFIG = 'https://core-b.caimei365.com'
+	// URL_CONFIG = 'http://192.168.2.67:18002'	 //裴裴联调地址
+	URL_CONFIG = 'https://core-b.caimei365.com'
 	// URL_CONFIG = 'https://core.caimei365.com'
 }else{
     // 生产环境