Commit 4e57f859 authored by haiyoucuv's avatar haiyoucuv

music

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