提交 87e2ba6b 编写于 作者: M mehaotian

fix: 统计页面新增自定义事件上传,navbar-lite 新增标题上报

无相关合并请求
......@@ -44,7 +44,11 @@
statusBar: {
type: Boolean,
default: false,
}
},
stat: {
type: Boolean,
default: false,
},
},
data() {
return {
......@@ -65,7 +69,15 @@
fail(err) {
console.log(err);
},
});
});
if (this.stat && this.title != '') {
uni.report({
name:'title',
options: this.title
})
}
},
mounted() {
uni.setNavigationBarColor({
......
......@@ -38,7 +38,20 @@
return {
msg: '点击按钮,测试上报'
}
},
},
onLoad(){
uni.report({
name: '自定义上报-report页面打开',
options: '1'
})
},
onUnload(){
uni.report({
name: '自定义上报-report页面关闭',
options: '1'
})
},
methods: {
handleAppLaunch() {
const options = uni.getLaunchOptionsSync()
......
<template>
<view class="content">
<uni-navbar-lite :status-bar="true" :title="title" :is-left="isLeft" :text-color="navigationBarTextColor"></uni-navbar-lite>
<uni-navbar-lite :status-bar="true" stat :title="title" :is-left="isLeft" :text-color="navigationBarTextColor"></uni-navbar-lite>
<view class="content-item" @click="onClick">
<text>点击此处,将标题切换为{{isLeft?'居中':'左侧'}}显示</text>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部