فهرست منبع

行为分析埋点

xhj 2 سال پیش
والد
کامیت
d3f17e4a47

+ 2 - 0
card/cardList/cardList.vue

@@ -229,6 +229,7 @@
 				await this.getDict()
 				this.getDataList()
 			});
+			req.saveBehaviorNew('',4,4)
 		},
 		onShow() {
 			if(this.isReference){
@@ -251,6 +252,7 @@
 			jumpSingleChatRoom(item) {
 				if (item) {
 					req.jumpSingleChatRoom(item.userId, item.avatar, item.realName);
+					req.saveBehaviorNew(item.id,1,14)
 				}
 			
 			},

+ 1 - 1
card/create/create.css

@@ -4,7 +4,7 @@ page{background: #f9f9f9;padding-bottom: 130rpx;}
 .form .li{padding: 30rpx 0;position: relative;}
 .label{font-size: 30rpx;color: #999;width: 160rpx;}
 .photo{justify-content: space-between;}
-.userimg{width: 90rpx;height: 90rpx;border-radius: 6rpx;}
+.userimg{width: 120rpx;height: 90rpx;border-radius: 6rpx;}
 .rico{width: 15rpx;height: 22rpx;}
 .ipt{font-size: 30rpx;color: #333;}
 .textarea{font-size: 30rpx;color: #333;height: 100rpx;}

+ 30 - 2
card/index/index.vue

@@ -79,7 +79,7 @@
 			</view>
 			<view class="btns ddflex" v-if="cardId">
 				<view class="share-ta ddflex fflex" :style="!(cardInfo.wechat||cardInfo.wechatCode)?'background: #999':'background: linear-gradient(80deg, #7EBFF1 0%, #458EEE 100%);'"
-					@click="cardInfo.wechat||cardInfo.wechatCode?isShowCodePop=true:''">
+					@click="cardInfo.wechat||cardInfo.wechatCode?showCodePop():''">
 					<image src="../../static/pages/images/wx.png"></image>微信联系</view>
 				<view class="share-ta ddflex fflex" :style="!cardInfo.phone?'background: #999':'background: linear-gradient(84deg, #6FE5BC 0%, #27D699 100%);'"
 					@click="cardInfo.phone?goPhone():''">
@@ -492,6 +492,16 @@ import util from '../../utils/util.js';
 			if (res.from == 'button') {
 				let userInfo = req.getStorage('userInfo');
 				this.userBehavior(6)
+				req.saveBehaviorNew(this.cardInfo.id,1,6)
+				return {
+					title: this.cardInfo.realName,
+					path: '/card/index/index?cardId=' + this.cardInfo.id + '&userId=' + userInfo.id + (userInfo.userType==1?('&shareId=' + userInfo.saleNo):''),
+					imageUrl: this.cardInfo.avatar, // 分享图
+				};
+			}else{
+				let userInfo = req.getStorage('userInfo');
+				this.userBehavior(6)
+				req.saveBehaviorNew(this.cardInfo.id,1,6)
 				return {
 					title: this.cardInfo.realName,
 					path: '/card/index/index?cardId=' + this.cardInfo.id + '&userId=' + userInfo.id + (userInfo.userType==1?('&shareId=' + userInfo.saleNo):''),
@@ -580,6 +590,7 @@ import util from '../../utils/util.js';
 							// 用户浏览
 							if (this.isFirst) {
 								this.userBehavior(4)
+								req.saveBehaviorNew(this.cardInfo.id,1,4)
 							}
 						}
 						this.isFirst = false
@@ -603,6 +614,11 @@ import util from '../../utils/util.js';
 				req.postRequestLoding('/api/v3/behavior/save', dataP, data => {
 					if (type == 3) {
 						this.cardInfo.isThumbs = !this.cardInfo.isThumbs
+						// 点赞行为统计
+						if(this.cardInfo.isThumbs)
+							req.saveBehaviorNew(this.cardInfo.id,1,3)
+						//取消点赞 行为统计
+						else req.saveBehaviorNew(this.cardInfo.id,1,11)
 					}
 					if (type == 1) {
 						this.cardInfo.follow = !this.cardInfo.follow
@@ -635,6 +651,7 @@ import util from '../../utils/util.js';
 							content: '已存入通讯录,请前往手机通讯录查看',
 							showCancel: false,
 						})
+						req.saveBehaviorNew(this.cardInfo.id,1,13)
 					},
 					fail: (err) => {
 						console.log(err)
@@ -645,9 +662,17 @@ import util from '../../utils/util.js';
 
 			goPhone() {
 				uni.makePhoneCall({
-					phoneNumber: this.cardInfo.phone
+					phoneNumber: this.cardInfo.phone,
+					success(res){
+						req.saveBehaviorNew(this.cardInfo.id,1,17,this.cardInfo.phone)
+					}
 				}); // 传参带入号码即可
 			},
+			
+			showCodePop(){
+				this.isShowCodePop = true
+				req.saveBehaviorNew(this.cardInfo.id,1,18,this.cardInfo.wechat?this.cardInfo.wechat:null)
+			},
 
 			copy(valueText, type) {
 				let that = this
@@ -893,9 +918,11 @@ import util from '../../utils/util.js';
 							//已赞
 							this.pageList[index].isPraise = 0;
 							this.pageList[index].count.fabulousCount--;
+							req.saveBehaviorNew(id, this.pageList[index].pollId?10:11,11)
 						} else {
 							this.pageList[index].isPraise = 1;
 							this.pageList[index].count.fabulousCount++;
+							req.saveBehaviorNew(id, this.pageList[index].pollId?10:11,3)
 						}
 					}
 				});
@@ -913,6 +940,7 @@ import util from '../../utils/util.js';
 					req.msg('投票成功');
 					//图片完之后要将该投票的对象返回,便于做渲染%
 					this.pageList[pIndex].qyPoll = data;
+					req.saveBehaviorNew(item.id,10,5)
 				});
 			},
 			videoPlay(index){

+ 2 - 0
card/poster/poster.vue

@@ -71,6 +71,7 @@ export default {
 		if (res.from == 'button') {
 			let userInfo = req.getStorage('userInfo');
 			this.userBehavior(6)
+			req.saveBehaviorNew(this.cardInfo.id,1,6)
 			return {
 				title: this.cardInfo.realName,
 				path: '/card/index/index?cardId=' + this.cardInfo.id + '&userId=' + userInfo.id,
@@ -385,6 +386,7 @@ export default {
 		 */
 		saveImage(tempFilePath) {
 			util.saveImage(tempFilePath);
+			req.saveBehaviorNew(this.cardInfo.id,1,6)
 		}
 	}
 };

+ 3 - 0
chat/components/chat/chat.vue

@@ -113,6 +113,9 @@
 			showWeChatPop(isShowCodePop, evn) {
 				this.isShowCodePop = isShowCodePop;
 				this.recommendCard = evn;
+				if(this.isShowCodePop){
+					req.saveBehaviorNew(this.recommendCard.id,1,18)
+				}
 			},
 
 			copy(val) {

+ 1 - 0
components/service-contact/index.vue

@@ -72,6 +72,7 @@
 				if (this.recommendCard) {
 					req.jumpSingleChatRoom(this.recommendCard.userId, this.recommendCard.avatar, this.recommendCard
 						.realName);
+					req.saveBehaviorNew(this.recommendCard.id,1,14)
 				}
 
 			},

+ 1 - 0
match/activityDet/activityDet.vue

@@ -99,6 +99,7 @@ export default {
 			req.getRequest('/api/match/enlist/detailV2',{id: this.options.id},res => {
 				this.detail = res;
 				this.isShow = true;
+				req.saveBehaviorNew(this.detail.matchId,7,4)
 			},isShow);
 		},
 		formatTimeCommStr(dataStr) {

+ 10 - 0
match/activityDetail/activityDetail.vue

@@ -172,6 +172,7 @@ export default {
 		if(req.getStorage('userInfo').userType==1){
 			url += '&shareId=' + req.getStorage('userInfo').saleNo
 		}
+		req.saveBehaviorNew(this.detail.id,2,6)
 		return {
 			title: this.detail.title,
 			imageUrl: this.detail.pic,
@@ -188,6 +189,7 @@ export default {
 		if(req.getStorage('userInfo').userType==1){
 			url += '&shareId=' + req.getStorage('userInfo').saleNo
 		}
+		req.saveBehaviorNew(this.detail.id,2,6)
 		return {
 			title: this.detail.title,
 			imageUrl: this.detail.pic,
@@ -336,10 +338,18 @@ export default {
 			req.postRequestLoding('/api/v3/behavior/save', dataP, data => {
 				if (type == 2) {
 					this.detail.isCollect = !this.detail.isCollect;
+					if(this.detail.isCollect){
+						req.saveBehaviorNew(this.detail.id,2,2)
+					}else{
+						req.saveBehaviorNew(this.detail.id,2,16)
+					}
 				}
 				if (type == 3) {
 					this.cardInfo.follow = !this.cardInfo.follow
 				}
+				if(type == 4) {
+					req.saveBehaviorNew(this.detail.id,2,4)
+				}
 			});
 		},
 		showPop(){

+ 1 - 0
match/signConfirm/signConfirm.vue

@@ -171,6 +171,7 @@ export default {
 			req.getRequest('/api/myMatch/order',param,async res=>{
 				req.removeStorage('personList');
 				this.jumpUrl('/match/success/success?id=' + this.detail.id)
+				req.saveBehaviorNew(this.detail.id,8,9)
 				// await this.payOrder(res)
 			})
 		},

+ 5 - 0
office/detail/detail.vue

@@ -324,6 +324,7 @@ export default {
 			img = imgList[0];
 		} else {
 		}
+		req.saveBehaviorNew(this.detail.id, this.detail.pollId?10:11,6)
 		return {
 			title: util.removeHtml(this.detail.content),
 			imageUrl: img,
@@ -460,6 +461,7 @@ export default {
 				if (this.isNews) {
 					this.getUpdateIsSee();
 				}
+				req.saveBehaviorNew(item.id,this.detail.pollId?10:11,4)
 			});
 		},
 		getUpdateIsSee() {
@@ -533,9 +535,11 @@ export default {
 							//已赞
 							this.detail.isPraise = 0;
 							this.detail.count.fabulousCount--;
+							req.saveBehaviorNew(this.detail.id, this.detail.pollId?10:11,11)
 						} else {
 							this.detail.isPraise = 1;
 							this.detail.count.fabulousCount++;
+							req.saveBehaviorNew(this.detail.id, this.detail.pollId?10:11,3)
 						}
 					}
 				} else if (type == 5) {
@@ -607,6 +611,7 @@ export default {
 				req.msg('投票成功');
 				//图片完之后要将该投票的对象返回,便于做渲染%
 				this.detail.qyPoll = data;
+				req.saveBehaviorNew(this.detail.id,10,5)
 			});
 		},
 

+ 1 - 0
office/index - 副本/index.vue

@@ -591,6 +591,7 @@ export default {
 				req.msg('投票成功');
 				//图片完之后要将该投票的对象返回,便于做渲染%
 				this.officeList[pIndex].qyPoll = data;
+				req.saveBehaviorNew(item.id,10,5)
 			});
 		}
 	},

+ 3 - 0
office/poi/index.vue

@@ -462,9 +462,11 @@
 							//已赞
 							this.officeList[index].isPraise = 0;
 							this.officeList[index].count.fabulousCount--;
+							req.saveBehaviorNew(id, this.officeList[index].pollId?10:11,11)
 						} else {
 							this.officeList[index].isPraise = 1;
 							this.officeList[index].count.fabulousCount++;
+							req.saveBehaviorNew(id, this.officeList[index].pollId?10:11,3)
 						}
 					}
 				});
@@ -485,6 +487,7 @@
 					req.msg('投票成功');
 					//图片完之后要将该投票的对象返回,便于做渲染%
 					this.officeList[pIndex].qyPoll = data;
+					req.saveBehaviorNew(item.id,10,5)
 				});
 			},
 			goTop: function(e) {

+ 3 - 0
office/search/index.vue

@@ -425,9 +425,11 @@
 							//已赞
 							this.officeList[index].isPraise = 0;
 							this.officeList[index].count.fabulousCount--;
+							req.saveBehaviorNew(id, this.officeList[index].pollId?10:11,11)
 						} else {
 							this.officeList[index].isPraise = 1;
 							this.officeList[index].count.fabulousCount++;
+							req.saveBehaviorNew(id, this.officeList[index].pollId?10:11,3)
 						}
 					}
 				});
@@ -448,6 +450,7 @@
 					req.msg('投票成功');
 					//图片完之后要将该投票的对象返回,便于做渲染%
 					this.officeList[pIndex].qyPoll = data;
+					req.saveBehaviorNew(item.id,10,5)
 				});
 			},
 			goTop: function(e) {

+ 5 - 0
office/team/index.vue

@@ -271,6 +271,7 @@
 		},
 		onShareAppMessage(){
 			let title = req.getStorage('userInfo').nickName+'邀请您加入'+this.teamInfo.title
+			req.saveBehaviorNew(this.teamInfo.id,9,6)
 			return {
 				title: title,
 				imageUrl:this.teamInfo.url?this.teamInfo.url:this.picUrlss+'office_images/team_default.png',
@@ -292,6 +293,7 @@
 			getTeamInfo(){
 				req.getRequest(api.user_team_info+this.opt.id,{},data=>{
 					this.teamInfo = data;
+					req.saveBehaviorNew(this.teamInfo.id,9,4)
 				})
 			},
 			joinTeam(item,index){
@@ -484,9 +486,11 @@
 							//已赞
 							this.officeList[index].isPraise = 0;
 							this.officeList[index].count.fabulousCount--;
+							req.saveBehaviorNew(id, this.officeList[index].pollId?10:11,11)
 						} else {
 							this.officeList[index].isPraise = 1;
 							this.officeList[index].count.fabulousCount++;
+							req.saveBehaviorNew(id, this.officeList[index].pollId?10:11,3)
 						}
 					}
 				});
@@ -507,6 +511,7 @@
 					req.msg('投票成功');
 					//图片完之后要将该投票的对象返回,便于做渲染%
 					this.officeList[pIndex].qyPoll = data;
+					req.saveBehaviorNew(item.id,10,5)
 				});
 			},
 			goTop: function(e) {

+ 1 - 0
pages/found/found.vue

@@ -102,6 +102,7 @@
 			await this.getConfig()
 			this.getFx()
 			this.getRecommendList()
+			req.saveBehaviorNew('',14,4)
 		},
 
 		onShow() {

+ 7 - 2
pages/index/index.vue

@@ -49,7 +49,7 @@
 							<image src="../../static/pages/images/dh.png"></image>
 							<view>电话</view>
 						</view>
-						<view class="service-person-phone" v-if="recommendCard.wechat" @click="isShowCodePop=true">
+						<view class="service-person-phone" v-if="recommendCard.wechat" @click="showCodePop()">
 							<image src="../../static/pages/images/wx.png"></image>
 							<view>微信</view>
 						</view>
@@ -473,7 +473,6 @@
 			// 	};
 			// 	QQMapWX.reverseGeocoder(to, resp => {});
 			// });
-
 		},
 
 		async onShow() {
@@ -486,6 +485,7 @@
 				console.log('onShow',req.getStorage('userInfo'))
 				if (this.firstLoad==true) {
 					this.isShowUpdate = true;
+					req.saveBehaviorNew('',15,4)
 				}
 				this.firstLoad = false
 			},500)
@@ -557,6 +557,7 @@
 				if (this.recommendCard) {
 					req.jumpSingleChatRoom(this.recommendCard.userId, this.recommendCard.avatar, this.recommendCard
 						.realName);
+					req.saveBehaviorNew(this.recommendCard.id,1,14)
 				}
 
 			},
@@ -974,6 +975,10 @@
 				let url = event.currentTarget.dataset.url;
 				app.globalData.openPage(url);
 			},
+			showCodePop(){
+				this.isShowCodePop = true
+				req.saveBehaviorNew(this.recommendCard.id,1,18)
+			},
 			// 拨打电话
 			callPhone(val) {
 				if (!val) return false

+ 11 - 0
pages/interactive/index.vue

@@ -439,6 +439,7 @@
 					});
 				});
 			}
+			req.saveBehaviorNew('',13,4)
 			// req.silenceLogin(options.userId, '');
 			// this.getHotPoll()
 		},
@@ -497,6 +498,13 @@
 					this.form.page = 1;
 					this.getOfficeList();
 				}
+				if(index==1){
+					req.saveBehaviorNew('',17,4)
+				}else if(index==2){
+					req.saveBehaviorNew('',18,4)
+				}else if(index==3){
+					req.saveBehaviorNew('',19,4)
+				}
 			},
 			//聊一聊切换排序类型
 			swiPType(type) {
@@ -745,9 +753,11 @@
 							//已赞
 							this.officeList[index].isPraise = 0;
 							this.officeList[index].count.fabulousCount--;
+							req.saveBehaviorNew(id, this.officeList[index].pollId?10:11,11)
 						} else {
 							this.officeList[index].isPraise = 1;
 							this.officeList[index].count.fabulousCount++;
+							req.saveBehaviorNew(id, this.officeList[index].pollId?10:11,3)
 						}
 					}
 				});
@@ -780,6 +790,7 @@
 					req.msg('投票成功');
 					//图片完之后要将该投票的对象返回,便于做渲染%
 					this.officeList[pIndex].qyPoll = data;
+					req.saveBehaviorNew(item.id,10,5)
 				});
 			},
 			goTop: function(e) {

+ 1 - 0
pages/matchList/index.vue

@@ -108,6 +108,7 @@ export default {
 	},
 	onLoad() {
 		this.getHomeTemplateConfig()
+		req.saveBehaviorNew('',12,4)
 	},
 	async onShow() {
 		this.about = await req.getsysConfig()

+ 2 - 0
pages/user/user.vue

@@ -311,6 +311,7 @@
 				}, 500);
 			}
 			// #endif
+			req.saveBehaviorNew('',16,4)
 		},
 
 		onShow: function() {
@@ -489,6 +490,7 @@
 				if (this.recommendCard) {
 					req.jumpSingleChatRoom(this.recommendCard.userId, this.recommendCard.avatar, this.recommendCard
 						.realName);
+					req.saveBehaviorNew(this.recommendCard.id,1,14)
 				}
 			
 			},

+ 8 - 0
topic/content/content.vue

@@ -104,6 +104,7 @@ export default {
 	},
 
 	onShareAppMessage() {
+		req.saveBehaviorNew(this.id,3,6)
 		return {
 			title: this.detaile.title,
 			imageUrl: this.detaile.pic,
@@ -111,6 +112,7 @@ export default {
 		};
 	},
 	onShareTimeline() {
+		req.saveBehaviorNew(this.id,3,6)
 		return {
 			title: this.detaile.title,
 			imageUrl: this.detaile.pic,
@@ -192,6 +194,7 @@ export default {
 			dataP.behavior = 4; //1、关注 2、收藏 3、点赞 4、浏览 5、确认 6、分享
 			dataP.bindId = this.id;
 			req.postRequestLoding('/api/v3/behavior/save', dataP, data => {
+				req.saveBehaviorNew(this.id,3,4)
 			});
 		},
 		// 用户行为
@@ -208,6 +211,11 @@ export default {
 					this.detaile.thumbsNumber = this.detaile.thumbsNumber+1
 				}
 				this.detaile.isThumbs = !this.detaile.isThumbs
+				if(this.detaile.isThumbs){
+					req.saveBehaviorNew(this.id,3,3)
+				}else{
+					req.saveBehaviorNew(this.id,3,11)
+				}
 			});
 		},
 		getContentList() {

+ 3 - 0
topics/collection/collection.vue

@@ -259,9 +259,11 @@ export default {
 						//已赞
 						this.pageList[index].isPraise = 0;
 						this.pageList[index].count.fabulousCount--;
+						req.saveBehaviorNew(id, this.pageList[index].pollId?10:11,11)
 					} else {
 						this.pageList[index].isPraise = 1;
 						this.pageList[index].count.fabulousCount++;
+						req.saveBehaviorNew(id, this.pageList[index].pollId?10:11,3)
 					}
 				}
 			});
@@ -278,6 +280,7 @@ export default {
 				req.msg('投票成功');
 				//图片完之后要将该投票的对象返回,便于做渲染%
 				this.pageList[pIndex].qyPoll = data;
+				req.saveBehaviorNew(item.id,10,5)
 			});
 		},
 		videoPlay(index){

+ 5 - 0
topics/detail/detail.vue

@@ -198,6 +198,7 @@ export default {
 	},
 	onLoad(opt) {
 		this.topicId = opt.topicId;
+		req.saveBehaviorNew(this.topicId,21,4)
 	},
 	onShow() {
 		this.getTopicsInfo();
@@ -215,6 +216,7 @@ export default {
 			img = imgList[0];
 		} else {
 		}
+		req.saveBehaviorNew(item.id, item.pollId?10:11,6)
 		return {
 			title: util.removeHtml(item.content),
 			imageUrl: img,
@@ -355,9 +357,11 @@ export default {
 						//已赞
 						this.officeList[index].isPraise = 0;
 						this.officeList[index].count.fabulousCount--;
+						req.saveBehaviorNew(id, this.officeList[index].pollId?10:11,11)
 					} else {
 						this.officeList[index].isPraise = 1;
 						this.officeList[index].count.fabulousCount++;
+						req.saveBehaviorNew(id, this.officeList[index].pollId?10:11,3)
 					}
 				}
 			});
@@ -375,6 +379,7 @@ export default {
 				req.msg('投票成功');
 				//图片完之后要将该投票的对象返回,便于做渲染%
 				this.officeList[pIndex].qyPoll = data;
+				req.saveBehaviorNew(item.id,10,5)
 			});
 		},
 		appToShare(item) {

+ 3 - 0
topics/home/home.vue

@@ -438,9 +438,11 @@ export default {
 						//已赞
 						this.pageList[index].isPraise = 0;
 						this.pageList[index].count.fabulousCount--;
+						req.saveBehaviorNew(id, this.pageList[index].pollId?10:11,11)
 					} else {
 						this.pageList[index].isPraise = 1;
 						this.pageList[index].count.fabulousCount++;
+						req.saveBehaviorNew(id, this.pageList[index].pollId?10:11,3)
 					}
 				}
 			});
@@ -458,6 +460,7 @@ export default {
 				req.msg('投票成功');
 				//图片完之后要将该投票的对象返回,便于做渲染%
 				this.pageList[pIndex].qyPoll = data;
+				req.saveBehaviorNew(item.id,10,5)
 			});
 		},
 		videoPlay(index){

+ 4 - 0
topics/release/release.vue

@@ -165,6 +165,7 @@ export default {
 			img = imgList[0];
 		} else {
 		}
+		req.saveBehaviorNew(item.id, item.pollId?10:11,6)
 		return {
 			title: util.removeHtml(item.content),
 			imageUrl: img,
@@ -316,9 +317,11 @@ export default {
 						//已赞
 						this.pageList[index].isPraise = 0;
 						this.pageList[index].count.fabulousCount--;
+						req.saveBehaviorNew(id, this.pageList[index].pollId?10:11,11)
 					} else {
 						this.pageList[index].isPraise = 1;
 						this.pageList[index].count.fabulousCount++;
+						req.saveBehaviorNew(id, this.pageList[index].pollId?10:11,3)
 					}
 				}
 			});
@@ -339,6 +342,7 @@ export default {
 				req.msg('投票成功');
 				//图片完之后要将该投票的对象返回,便于做渲染%
 				this.pageList[pIndex].qyPoll = data;
+				req.saveBehaviorNew(item.id,10,5)
 			});
 		},
 

+ 48 - 0
utils/request.js

@@ -1154,6 +1154,53 @@ const getBehavior = (params, success) => {
 }
 
 /**
+  * @Description:
+  * @author: xionghaojie
+  * @param bindId  操作对象ID(如果是页面不需要传)
+  * @param type  用户行为操作对象(1.名片 2.活动 3.文章 4.社区页面 5.海报 6.点击发现页面 7.点击首页页面 8.点击我的页面 10.聊一聊 11.电话 12.微信 13.通讯录 14.评价名片)
+  * @param behavior  用户行为(1.关注 2.收藏 3.点赞 4.浏览 5.确认 6.分享 7.发布 8.评价 9.投票 10.点击 11.取消关注 12.取消点赞 13.评价 14.保存通讯录 15.聊一聊 16.加入)
+  * @param content  用户行为内容(非必填)
+  * @return 
+  * @createTime: 2023-10-16 10:48:32
+  */
+const saveBehaviorNew = async (bindId,type,behavior,content, success) => {
+	let params = {
+		uid:'',
+		bindId:bindId,
+		behavior:behavior,
+		type:type,
+		ip:'',//ip
+		manufacturer:'',
+		model:'',//设备型号
+		os:'',//操作系统
+		osVersion:'',//操作系统版本
+		
+	}
+	await new Promise((resolve,reject)=>{
+		uni.getSystemInfoAsync({
+			success(res) {
+				console.log(res)
+				params.manufacturer = res.brand //手机牌子
+				params.model = res.model
+				params.os = res.system
+				params.osVersion = res.version
+				resolve()
+			},
+			fail(error){
+				console.log('getSystemInfoSync error',error)
+				resolve()
+			}
+		})
+	})
+	params.uid = getStorage('userInfo')?getStorage('userInfo').id:''
+	//用户行为:behavior 1、关注 2、收藏 3、点赞 4、浏览 5、确认 6、海报
+	//用户行为操作对象:type 1、产品 2、赛事 3、未知 4、内容 5、课程 6、老师 7、素材 8、题目 9、资料领取 10、招聘职位 11、用户 12、用户须知 13、素材 15、科室 16、海报 20、医生 21日历、探索 47评价
+	postRequest('/api/behaviorNew/save', params, data => {
+		success.call(this, data)
+	})
+}
+
+/**
  * 跳入聊天
  * @param {Object} userId 对方用户ID
  * @param {Object} avatar 对方用户头像
@@ -1287,6 +1334,7 @@ module.exports = {
 	updataWxInfos: updataWxInfos,
 	saveBehavior: saveBehavior,
 	getBehavior: getBehavior,
+	saveBehaviorNew:saveBehaviorNew,
 	unitConverter: unitConverter,
 	initIMChat: initIMChat,
 	getIMToken: getIMToken,