提交 4c9e202a 编写于 作者: guangjun.yang's avatar guangjun.yang

no message

上级 7f063c74
......@@ -67,6 +67,10 @@ export default {
wxBtnImg: {
type: String,
default: "https://file.yunqueyi.com/h5/images/asimg/share-btn-l.png"
},
uuid: {
type: String,
default: ""
}
},
data() {
......@@ -122,14 +126,17 @@ export default {
this.$nextTick(() => {
var btn = document.getElementById(this.wxOpenId);
if (btn != null) {
// 成功唤起事件
// btn.addEventListener(
// "launch",
// e => {
// _this.$emit("launchApp");
// },
// true
// );
成功唤起事件
btn.addEventListener(
"launch",
e => {
// _this.$emit("launchApp");
this.$sendBuriedData({
component_tag: `561#561001#${this.uuid}`
});
},
true
);
// 唤起失败事件
btn.addEventListener(
"error",
......@@ -148,7 +155,9 @@ export default {
}
}
},
created() {},
created() {
this.setPlatformMessage();
},
mounted() {
const ua = navigator.userAgent.toLowerCase();
......@@ -160,15 +169,17 @@ export default {
// 如果有微信分享进行的config设置,则此行不用打开
// this.checkInWechatFn(this.getSignMap);
// (根据项目需要)设置跳转的额外参数
this.setPlatformMessage();
},
methods: {
callAppAction() {
console.log("in callAppAction");
this.$emit("launchApp");
// this.$emit("launchApp");
this.$sendBuriedData({
component_tag: `561#561001#${this.uuid}`
});
setTimeout(() => {
this.$callApp(""); // 不用直接唤起
// this.$callApp(this.url); // 可以直接唤起指定页面,但只限于是h5页面的URL
this.$callApp(this.url); // 可以直接唤起指定页面,但只限于是h5页面的URL
}, 100);
},
......
......@@ -86,11 +86,18 @@ export default {
created() {
_this = this;
// 全局埋点--对外埋点
this.$sendBuriedData({
action: "ACTION_WEB_ENTER",
component_tag: `560#0`
});
// 截屏时通知前端
window.__screenCaptureEvent = function() {
console.log("in screenCaptureEvent");
_this.$sendBuriedData({
component_tag: "557#557002"
component_tag: "559#559003"
});
};
......@@ -237,6 +244,10 @@ export default {
// 保存图片
savePage2Picture() {
this.$sendBuriedData({
component_tag: '560#560002'
});
this.isHide = false;
this.$forceUpdate();
this.$nextTick(() => {
......@@ -249,7 +260,7 @@ export default {
// 调用原生分享(弹框)
share() {
let shareUrl = getWebPageUrl(
`annualsummary/#/as-share?uuid=${this.anualData.uuid}`
`annualsummary/#/as-share?uuid=${this.anualData.uuid}&from=h5`
);
rocNative &&
rocNative.shareWechat({
......
......@@ -59,15 +59,18 @@ export default {
isSelect: false,
isHide: true,
isAndroid: window.__isAndroid,
from: 'app',
};
},
created() {
_this = this;
const { from } = this.$route.query;
this.from = from || 'app';
// 截屏时通知前端
window.__screenCaptureEvent = function() {
console.log('in screenCaptureEvent');
_this.$sendBuriedData({
component_tag: '557#557002'
component_tag: '559#559003'
});
}
......@@ -83,7 +86,7 @@ export default {
// 全局埋点--对外埋点
this.$sendBuriedData({
action: "ACTION_WEB_ENTER",
component_tag: `559#0#app`
component_tag: `559#0#${this.channel}`
});
},
methods: {
......@@ -106,6 +109,10 @@ export default {
// 跳转到详情页面
gotoDetail() {
this.$sendBuriedData({
component_tag: `559#559002`
});
if(this.isSelect) {
this.$router.push('/as-detail');
} else {
......
......@@ -36,7 +36,7 @@
<img src="~@/images/annual/qr-code.png" alt />
</div>
<section class="bottom">
<WxOpenCommon :url="shareUrl" ></WxOpenCommon>
<WxOpenCommon :url="shareUrl" :uuid="uuid"></WxOpenCommon>
</section>
</div>
<Loading v-show="showLoading" />
......@@ -82,6 +82,13 @@ export default {
action: "ACTION_WEB_ENTER",
component_tag: `561#0#${this.uuid}`
});
window.__screenCaptureEvent = function() {
console.log('in screenCaptureEvent');
_this.$sendBuriedData({
component_tag: '559#559003'
});
}
},
methods: {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册