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

no message

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