Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat : 华律网mip-hualv-fp组件迭代 #853

Open
wants to merge 81 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
518d99b
feat:新增组件mip-zhmsaskv2 留言面板组件
Mrchensama Jul 11, 2019
c053e0e
doc:按照规范修改代码
Mrchensama Jul 11, 2019
c02faf8
doc:规范代码
Mrchensama Jul 11, 2019
97df4af
doc:规范代码
Mrchensama Jul 11, 2019
94e5470
doc:规范代码
Mrchensama Jul 11, 2019
cdeb2a5
doc:修改请求连接为正式环境使用的https协议连接
Mrchensama Jul 11, 2019
4f15a61
doc:修改组件名称,完善RAEDME说明文档
Mrchensama Jul 11, 2019
0c7dddc
doc:规范代码 完善文档
Mrchensama Jul 12, 2019
83cb808
doc:规范代码 完善文档
Mrchensama Jul 12, 2019
40559df
doc:规范代码 完善文档
Mrchensama Jul 12, 2019
9b5d58f
doc:规范代码 完善文档
Mrchensama Jul 12, 2019
8a2e17a
remove othre files
Mrchensama Aug 6, 2019
cbde28a
remove other files
Aug 7, 2019
d659d7e
Merge branch 'master' of https://github.com/mipengine/mip2-extensions…
Aug 7, 2019
4e5fd7d
Merge branch 'master' into master
clark-t Aug 8, 2019
d0539f5
style : css modify
Mrchensama Aug 16, 2019
7791e67
style : css modify
Mrchensama Aug 16, 2019
eadb28e
style : css modify
Mrchensama Aug 16, 2019
ce6da42
Merge remote-tracking branch 'refs/remotes/origin/master'
Mrchensama Aug 16, 2019
0dbd76d
docs : add protocol tips
Mrchensama Aug 16, 2019
c545289
docs : remove tabs and semi according to ci errors
Mrchensama Aug 16, 2019
94ac347
Merge branch 'master' into master
Mrchensama Aug 16, 2019
ea48721
Merge branch 'master' into master
MiyaPan Aug 19, 2019
eb349c1
华律网mip-hualv-fp2
Mar 4, 2020
56d9c66
Merge branch 'master' of https://github.com/mipengine/mip2-extensions…
Mar 4, 2020
e16edf2
docs :规范代码格式
Mar 4, 2020
2c1f838
docs :规范代码格式
Mar 4, 2020
84938a3
docs :规范代码格式
Mar 4, 2020
11c7082
docs :规范代码格式
Mar 4, 2020
c07b879
docs :规范代码格式
Mar 4, 2020
48207c0
docs :规范代码格式
Mar 4, 2020
148ace1
docs :规范代码格式
Mar 4, 2020
7957763
docs :规范代码格式
Mar 4, 2020
e3ec38b
修改代码
Mar 5, 2020
1ceb924
规范代码、
Mar 5, 2020
0beda1a
规范代码
Mar 5, 2020
4509b87
规范代码
Mar 5, 2020
67f21e9
规范代码
Mar 5, 2020
06c9bd8
规范代码
Mar 5, 2020
b8e5959
规范代码
Mar 5, 2020
abc0963
重构代码
Mar 5, 2020
c6b30e2
规范代码
Mar 5, 2020
577f8bc
规范代码
Mar 5, 2020
d38bf49
规范代码
Mar 5, 2020
a614c39
规范代码
Mar 5, 2020
dfb6057
规范代码
Mar 5, 2020
a295b69
规范代码
Mar 5, 2020
29b8757
规范代码
Mar 5, 2020
a3b87f7
规范代码
Mar 5, 2020
7dd9d6a
规范代码
Mar 5, 2020
a326462
规范代码
Mar 5, 2020
d907883
规范代码
Mar 5, 2020
bf165cf
规范代码
Mar 5, 2020
35a68ac
规范代码
Mar 5, 2020
74a9cb4
docs :规范代码
Mar 6, 2020
6e40902
docs :规范代码
Mar 6, 2020
5680072
docs :规范代码
Mar 6, 2020
7062972
docs :规范代码
Mar 6, 2020
4253e19
docs :规范代码
Mar 6, 2020
90e5a53
docs :规范代码
Mar 6, 2020
3355a29
docs :规范代码
Mar 6, 2020
c354f23
docs :规范代码
Mar 6, 2020
4612bad
docs :规范代码
Mar 6, 2020
3ead786
docs :规范代码
Mar 6, 2020
97e3a7f
docs :规范代码
Mar 6, 2020
eeba2a4
docs :规范代码
Mar 6, 2020
08a3e25
docs :规范代码
Mar 6, 2020
d33082d
docs :规范代码
Mar 6, 2020
f9ba47d
docs :规范代码
Mar 6, 2020
07e7609
规范代码
Mar 9, 2020
36f36a7
Merge remote-tracking branch 'mip/master'
Jun 4, 2020
866e59d
test : 第一次测试提交
Jun 4, 2020
9c390ec
fix : 代码格式调整
Jun 4, 2020
f2d587e
fix : 代码格式调整
Jun 4, 2020
1932cbd
test : 规范正则表达式
Jun 4, 2020
b076f5f
test :
Jun 4, 2020
72216cb
fix : 调试
Jun 4, 2020
fd756b1
feat : 新增生命周期结束时触发用户停留时间记录
Jun 5, 2020
77ec71d
fix :代码格式调整2019-09-21 11:55:42
Jun 5, 2020
5cd603d
fix : 修复因事件委托导致的上下文切换
Jun 5, 2020
fdc842b
docs :更新说明文档
Jun 5, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 27 additions & 10 deletions sites/hualv.com/components/mip-hualv-fp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,51 @@

## 说明

1、通过用户换机参数计算指纹(fingerprint)id,
1、通过用户换机参数计算指纹(fingerprint)id
2、用户访问日志传输至sls服务进行存储
3、无埋点统计(2020-06-05迭代 新增功能)
4、自定义事件跟踪(2020-06-05迭代 新增功能)

## 示例

示例说明

```
<mip-hualv-fp>
// FingerPrint数据接受容器,参数配置容器 必需!!!
<mip-data id="FingerPrint" scope>
<script type="application/json">
{

}
</script>
</mip-data>
// 以下为示例用显示demo,使用时可忽略
<div>duration:<span m-text="FingerPrint.duration"></span></div>
<div>fingerprint:<span m-text="FingerPrint.fingerprint"></span></div>
<div>sessionId:<span m-text="FingerPrint.sessionId"></span></div>
<div>type:<span m-text="FingerPrint.type"></span></div>
<div>request:<span m-text="FingerPrint.request"></span></div>
<div>referrer:<span m-text="FingerPrint.referrer"></span></div>
<div>agent:<span m-text="FingerPrint.agent"></span></div>
// demo开始 以下demo部分 仅为实例用,使用时可灵活改变使用位置,方式等(不局限于该组件内部使用)
// 页面交互按钮 写入事件队列 demo
<button on="tap: MIP.setData({ FingerPrint: { Hmga : ['_trackEvent','test-event',{'questionId':111123}]}})">交互测试</button>
// 使用脚本 写入事件队列 demo (使用mip-script组件需引用该组件引用方法见末尾)
<mip-script>
setTimeout(() => {
MIP.setData({FingerPrint:{Hmga:['_trackEvent','test-event',{'questionId':111123}]}})
},2000)
</mip-script>
// 指纹参数调用 demo
<div>duration:<span m-text="FingerPrint.Data.duration"></span></div>
<div>fingerprint:<span m-text="FingerPrint.Data.fingerprint"></span></div>
<div>sessionId:<span m-text="FingerPrint.Data.sessionId"></span></div>
<div>type:<span m-text="FingerPrint.Data.type"></span></div>
<div>request:<span m-text="FingerPrint.Data.request"></span></div>
<div>referrer:<span m-text="FingerPrint.Data.referrer"></span></div>
<div>agent:<span m-text="FingerPrint.Data.agent"></span></div>
//demo结束
</mip-hualv-fp>
```

## 属性


## 组件依赖

若需使用mip-script组件需添加以下引用
<script src="https://c.mipcdn.com/static/v2/mip-script/mip-script.js"></script>
74 changes: 43 additions & 31 deletions sites/hualv.com/components/mip-hualv-fp/example/index.html
Original file line number Diff line number Diff line change
@@ -1,35 +1,47 @@
<!DOCTYPE html>
<html mip>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,user-scalable=no">
<title>MIP page</title>
<link rel="canonical" href="对应的原页面地址">
<link rel="stylesheet" href="https://c.mipcdn.com/static/v2/mip.css">
<style mip-custom>

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,user-scalable=no">
<title>MIP page</title>
<link rel="canonical" href="对应的原页面地址">
<link rel="stylesheet" href="https://c.mipcdn.com/static/v2/mip.css">
<style mip-custom>
/* 自定义样式 */
</style>
</head>
<body>
<div>
<mip-hualv-fp>
<div>duration:<span m-text="FingerPrint.duration"></span></div>
<div>fingerprint:<span m-text="FingerPrint.fingerprint"></span></div>
<div>sessionId:<span m-text="FingerPrint.sessionId"></span></div>
<div>type:<span m-text="FingerPrint.type"></span></div>
<div>request:<span m-text="FingerPrint.request"></span></div>
<div>referrer:<span m-text="FingerPrint.referrer"></span></div>
<div>agent:<span m-text="FingerPrint.agent"></span></div>
<mip-data id="FingerPrint" scope>
<script type="application/json">
{

}
</style>
</head>

<body>
<div>
<mip-hualv-fp>
<a href="https://www.zhms.cn">https://www.zhms.cn</a>
<button
on="tap: MIP.setData({ FingerPrint: { Hmga : ['_trackEvent','test-event',{'questionId':111123}]}})">交互测试</button>
<div>duration:<span m-text="FingerPrint.Data.duration"></span></div>
<div>fingerprint:<span m-text="FingerPrint.Data.fingerprint"></span></div>
<div>sessionId:<span m-text="FingerPrint.Data.sessionId"></span></div>
<div>type:<span m-text="FingerPrint.Data.type"></span></div>
<div>request:<span m-text="FingerPrint.Data.request"></span></div>
<div>referrer:<span m-text="FingerPrint.Data.referrer"></span></div>
<div>agent:<span m-text="FingerPrint.Data.agent"></span></div>
<mip-data id="FingerPrint" scope>
<script type="application/json">
{

}
</script>
</mip-data>
</mip-hualv-fp>
</div>
<script src="https://c.mipcdn.com/static/v2/mip.js"></script>
<script src="/mip-hualv-fp/mip-hualv-fp.js"></script>
</body>
</html>
</mip-data>
<mip-script>
setTimeout(() => {
MIP.setData({FingerPrint:{Hmga:['_trackEvent','test-event',{'questionId':111123}]}})
},2000)
</mip-script>
</mip-hualv-fp>
</div>
<script src="https://c.mipcdn.com/static/v2/mip.js"></script>
<script src="https://c.mipcdn.com/static/v2/mip-script/mip-script.js"></script>
<script src="/mip-hualv-fp/mip-hualv-fp.js"></script>
</body>

</html>
Loading