Commit 4e57f859 authored by haiyoucuv's avatar haiyoucuv

music

parent 207d3a40
......@@ -8,6 +8,7 @@ import { extranceName } from '@src/utils/constants';
import shareStore from '@src/store/share';
import { LOG_KEY, MatterShareOpt, MatterViewOpt, sensorLog } from '@src/utils/sensors';
import { Button } from "@src/components/Button";
import { accessLog } from "duiba-utils";
@observer
class AgentSharepage extends React.Component {
constructor(props) {
......@@ -17,6 +18,10 @@ class AgentSharepage extends React.Component {
async componentDidMount() {
accessLog("505", {
from: CFG.channel
});
MatterViewOpt("b12850", {
page_name: "分享落地页",
});
......
......@@ -9,6 +9,7 @@ import store from "../../store";
import { LOG_KEY, MatterViewDuration, MatterViewOpt, sensorLog } from "../../utils/sensors";
import shareStore from "@src/store/share";
import { Button } from "@src/components/Button";
import { accessLog } from "duiba-utils";
@observer
class Sharepage extends React.Component {
......@@ -25,6 +26,11 @@ class Sharepage extends React.Component {
async componentDidMount() {
// accessLog(506)
accessLog("505", {
from: CFG.channel
});
await store.checkBindStatus();
API.outside();
// await this.getShareInfo();
......
......@@ -17,6 +17,7 @@ import MusicBtn from "@src/components/MusicBtn/MusicBtn";
import API from "@src/api";
import { isWeChat } from "@src/utils/share";
import { LOG_KEY, MatterShareOpt, MatterViewDuration, MatterViewOpt, pageView, sensorLog } from "@src/utils/sensors";
import { accessLog } from "duiba-utils";
@observer
......@@ -76,6 +77,9 @@ class Userhomepage extends React.Component {
/** 规则按钮*/
clickRule = () => {
accessLog("502", {
from: CFG.channel
});
sensorLog(LOG_KEY.click, "b12833", "d12834", {
button_name: "规则按钮",
page_name: "活动首页",
......@@ -86,6 +90,9 @@ class Userhomepage extends React.Component {
/** 奖品按钮*/
clickPrize = () => {
accessLog("502", {
from: CFG.channel
});
sensorLog(LOG_KEY.click, "b12833", "d12835", {
button_name: "奖品按钮",
page_name: "活动首页",
......@@ -100,6 +107,9 @@ class Userhomepage extends React.Component {
/** 抽奖按钮*/
clickDraw = () => {
accessLog("502", {
from: CFG.channel
});
sensorLog(LOG_KEY.click, "b12833", "d12837", {
button_name: "抽奖按钮",
page_name: "活动首页",
......@@ -110,6 +120,9 @@ class Userhomepage extends React.Component {
};
clickVisit = () => {
accessLog("502", {
from: CFG.channel
});
if (!store.checkActTime()) return;
windowJumpUrl(store.frontVariable?.SaleManUrl
+ "&actPlatforms=" + getUrlParam("actPlatforms")
......@@ -119,6 +132,9 @@ class Userhomepage extends React.Component {
};
clickDetails = () => {
accessLog("502", {
from: CFG.channel
});
sensorLog(LOG_KEY.click, "b12833", "d12836", {
button_name: "邀请明细按钮",
page_name: "活动首页",
......@@ -128,6 +144,9 @@ class Userhomepage extends React.Component {
};
clickInvite = () => {
accessLog("502", {
from: CFG.channel
});
MatterShareOpt("b12833", "d12838", {
button_name: "邀请好友助力按钮",
page_name: "活动首页",
......@@ -138,6 +157,9 @@ class Userhomepage extends React.Component {
};
clickShare = () => {
accessLog("502", {
from: CFG.channel
});
if (!store.checkActTime()) return;
shareStore.doShare();
};
......
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