|
|
@@ -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){
|