Commit 8a2079f8 by 李嘉林

微信分享埋点

parent 55d2c52c
......@@ -63,6 +63,10 @@ export default {
},
// 获取直播配置
getConfigValueByConfigCode(options) {
return requestPOST(`${process.env.OLSHOP_URL}/liveBroadcastInfo/getConfigValueByConfigCode?configCode`,options);
return requestPOST(`${process.env.OLSHOP_URL}/liveBroadcastInfo/getConfigValueByConfigCode`,options);
},
// 分享时记录
addShareRecord(options) {
return requestPOST(`${process.env.OLSHOP_URL}/liveBroadcastInfo/addShareRecord`,options);
},
};
\ No newline at end of file
......@@ -15,6 +15,7 @@
</template>
<script type="text/ecmascript-6">
import live from "@/api/live";
export default {
props: ["showPosterDia", "posterInfo"],
name: "",
......@@ -127,6 +128,11 @@ export default {
});
},
getImg() {
let query = {
liveBroadcastId: this.liveId,
shareType: "HB"
};
live.addShareRecord(query).then();
this.handleSave();
},
// 点击保存时,将画布生成海报
......
......@@ -133,7 +133,7 @@ export default {
onLoad(options) {
wx.setKeepScreenOn({
keepScreenOn: true
})
});
getNavbarInfo(res => {
console.log(res, "--------------------125");
this.navTop = res.navTop;
......@@ -183,6 +183,11 @@ export default {
},
onShareAppMessage(options) {
let query = {
liveBroadcastId: this.liveId,
shareType: "WX"
};
live.addShareRecord(query).then();
let _this = this;
if (this.hasInvitationStatus == 1) {
Object.assign(this.params, this.params, this.spokesmanObj);
......@@ -371,12 +376,12 @@ export default {
this.liveNoticeInfo.liveBroadcastState == 1 &&
resData.liveState == "PAUSE_LIVE"
) {
this.liveNoticeInfo.liveBroadcastState = 3
this.liveNoticeInfo.liveBroadcastState = 3;
} else if (
this.liveNoticeInfo.liveBroadcastState == 3 &&
resData.liveState == "IN_LIVE"
) {
this.liveNoticeInfo.liveBroadcastState = 1
this.liveNoticeInfo.liveBroadcastState = 1;
}
this.guestBookList = resData.guestBookList; //评论列表
this.likeInfo = resData.likeInfo; //点赞信息
......@@ -388,9 +393,9 @@ export default {
if (resData.entryNoticeList.length == 1) {
this.entryNoticeText = `${resData.entryNoticeList[0].userName}`; //用户进入
} else {
this.entryNoticeText = `${
resData.entryNoticeList[0].userName
}${resData.entryNoticeList.length}人`; //用户进入
this.entryNoticeText = `${resData.entryNoticeList[0].userName}${
resData.entryNoticeList.length
}人`; //用户进入
}
}
this.updateVal = Math.random(); //监听使用数据
......@@ -566,7 +571,11 @@ img {
}
}
.toShop {
background:linear-gradient(90deg,rgba(255,135,125,1),rgba(251,86,109,1));
background: linear-gradient(
90deg,
rgba(255, 135, 125, 1),
rgba(251, 86, 109, 1)
);
padding: 0 8px;
color: #fff;
font-size: 14px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment