Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
zhwy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d8a59eb1
authored
Dec 20, 2023
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加埋点字段
1 parent
a8ac514f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
18 deletions
packageDiscovery/pages/pay/index.js
packageMall/pages/detail/detail.js
packageMall/pages/pay/pay.js
packageMine/pages/order/index/index.js
packageSaveMoney/pages/chargeDetail/chargeDetail.js
packageSaveMoney/pages/detail/detail.js
packageStrategy/pages/strategyDetail/index.js
packageDiscovery/pages/pay/index.js
View file @
d8a59eb
...
@@ -649,7 +649,8 @@ Page({
...
@@ -649,7 +649,8 @@ Page({
status
:
'已支付'
,
status
:
'已支付'
,
trade_pay_price
:
query
.
trade_pay_price
||
0
,
trade_pay_price
:
query
.
trade_pay_price
||
0
,
trade_name
:
query
.
trade_name
||
''
,
trade_name
:
query
.
trade_name
||
''
,
trade_classification
:
query
.
trade_classification
||
''
trade_classification
:
query
.
trade_classification
||
''
,
association_classify_first_name
:
query
.
trade_classification
||
''
}
}
const
jsonList
=
[
JSON
.
stringify
(
data
)]
const
jsonList
=
[
JSON
.
stringify
(
data
)]
const
res
=
await
wx
.
p
.
api
.
shopmallApi
.
trackHttp
({
const
res
=
await
wx
.
p
.
api
.
shopmallApi
.
trackHttp
({
...
...
packageMall/pages/detail/detail.js
View file @
d8a59eb
...
@@ -61,7 +61,9 @@ Page({
...
@@ -61,7 +61,9 @@ Page({
add_way
:
104
,
add_way
:
104
,
merchant_id
:
merchantId
,
merchant_id
:
merchantId
,
guest_no
:
wx
.
p
.
$Track
.
getGuestNo
(),
//游客ID,
guest_no
:
wx
.
p
.
$Track
.
getGuestNo
(),
//游客ID,
user_open_id
:
this
.
shareOpenId
||
''
user_open_id
:
this
.
shareOpenId
||
''
,
association_classify_first_name
:
this
.
data
?.
goodsInfo
?.
associationClassifyFirstName
||
''
,
trade_classification
:
this
.
data
?.
goodsInfo
?.
associationClassifyFirstName
||
''
}
}
this
.
firstEnter
=
false
this
.
firstEnter
=
false
const
jsonList
=
[
JSON
.
stringify
(
data
)]
const
jsonList
=
[
JSON
.
stringify
(
data
)]
...
...
packageMall/pages/pay/pay.js
View file @
d8a59eb
...
@@ -636,7 +636,8 @@ Page({
...
@@ -636,7 +636,8 @@ Page({
status
:
'已支付'
,
status
:
'已支付'
,
trade_pay_price
:
query
.
trade_pay_price
||
0
,
trade_pay_price
:
query
.
trade_pay_price
||
0
,
trade_name
:
query
.
trade_name
||
''
,
trade_name
:
query
.
trade_name
||
''
,
trade_classification
:
query
.
trade_classification
||
''
trade_classification
:
query
.
trade_classification
||
''
,
association_classify_first_name
:
query
.
trade_classification
||
''
}
}
const
jsonList
=
[
JSON
.
stringify
(
data
)]
const
jsonList
=
[
JSON
.
stringify
(
data
)]
const
res
=
await
wx
.
p
.
api
.
shopmallApi
.
trackHttp
({
const
res
=
await
wx
.
p
.
api
.
shopmallApi
.
trackHttp
({
...
...
packageMine/pages/order/index/index.js
View file @
d8a59eb
...
@@ -501,7 +501,8 @@ Page({
...
@@ -501,7 +501,8 @@ Page({
status
:
'已支付'
,
status
:
'已支付'
,
trade_pay_price
:
query
.
trade_pay_price
||
0
,
trade_pay_price
:
query
.
trade_pay_price
||
0
,
trade_name
:
query
.
trade_name
||
''
,
trade_name
:
query
.
trade_name
||
''
,
trade_classification
:
query
.
trade_classification
||
''
trade_classification
:
query
.
trade_classification
||
''
,
association_classify_first_name
:
query
.
trade_classification
||
''
}
}
const
jsonList
=
[
JSON
.
stringify
(
data
)]
const
jsonList
=
[
JSON
.
stringify
(
data
)]
const
res
=
await
wx
.
p
.
api
.
shopmallApi
.
trackHttp
({
const
res
=
await
wx
.
p
.
api
.
shopmallApi
.
trackHttp
({
...
...
packageSaveMoney/pages/chargeDetail/chargeDetail.js
View file @
d8a59eb
...
@@ -233,7 +233,7 @@ Page({
...
@@ -233,7 +233,7 @@ Page({
let
{
query
,
selectedItem
,
rechageNum
,
curIndex
,
listData
}
=
self
.
data
let
{
query
,
selectedItem
,
rechageNum
,
curIndex
,
listData
}
=
self
.
data
// 设置埋点参数
// 设置埋点参数
const
tracker
=
{
const
tracker
=
{
item_type
:
1
,
item_type
:
7
,
view
:
3
,
view
:
3
,
id
:
selectedItem
.
id
id
:
selectedItem
.
id
}
}
...
@@ -364,7 +364,8 @@ Page({
...
@@ -364,7 +364,8 @@ Page({
status
:
'已支付'
,
status
:
'已支付'
,
trade_pay_price
:
this
.
order_total_price
||
0
,
trade_pay_price
:
this
.
order_total_price
||
0
,
trade_name
:
this
.
trade_name
||
''
,
trade_name
:
this
.
trade_name
||
''
,
trade_classification
:
this
.
trade_classification
||
''
trade_classification
:
this
.
trade_classification
||
''
,
association_classify_first_name
:
this
.
trade_classification
||
''
}
}
this
.
firstEnter
=
false
this
.
firstEnter
=
false
const
jsonList
=
[
JSON
.
stringify
(
data
)]
const
jsonList
=
[
JSON
.
stringify
(
data
)]
...
...
packageSaveMoney/pages/detail/detail.js
View file @
d8a59eb
...
@@ -296,7 +296,7 @@ Page({
...
@@ -296,7 +296,7 @@ Page({
// 设置埋点参数
// 设置埋点参数
const
{
curentGoodsItem
}
=
self
.
data
const
{
curentGoodsItem
}
=
self
.
data
const
query
=
{
const
query
=
{
item_type
:
1
,
item_type
:
7
,
view
:
3
,
view
:
3
,
id
:
curentGoodsItem
.
id
id
:
curentGoodsItem
.
id
}
}
...
@@ -457,7 +457,8 @@ Page({
...
@@ -457,7 +457,8 @@ Page({
status
:
'已支付'
,
status
:
'已支付'
,
trade_pay_price
:
this
.
order_total_price
||
0
,
trade_pay_price
:
this
.
order_total_price
||
0
,
trade_name
:
this
.
trade_name
||
''
,
trade_name
:
this
.
trade_name
||
''
,
trade_classification
:
this
.
trade_classification
||
''
trade_classification
:
this
.
trade_classification
||
''
,
association_classify_first_name
:
this
.
trade_classification
||
''
}
}
this
.
firstEnter
=
false
this
.
firstEnter
=
false
const
jsonList
=
[
JSON
.
stringify
(
data
)]
const
jsonList
=
[
JSON
.
stringify
(
data
)]
...
...
packageStrategy/pages/strategyDetail/index.js
View file @
d8a59eb
...
@@ -5,7 +5,7 @@ Page({
...
@@ -5,7 +5,7 @@ Page({
strategyDetailObj
:
{},
strategyDetailObj
:
{},
},
},
onLoad
(
options
)
{
async
onLoad
(
options
)
{
console
.
log
(
options
);
console
.
log
(
options
);
if
(
options
&&
options
.
openId
)
{
if
(
options
&&
options
.
openId
)
{
this
.
shareOpenId
=
options
.
openId
this
.
shareOpenId
=
options
.
openId
...
@@ -15,26 +15,27 @@ Page({
...
@@ -15,26 +15,27 @@ Page({
}
}
this
.
data
.
enter_time
=
new
Date
().
format
(
'yyyy-MM-dd hh:mm:ss'
)
this
.
data
.
enter_time
=
new
Date
().
format
(
'yyyy-MM-dd hh:mm:ss'
)
this
.
firstEnter
=
true
this
.
firstEnter
=
true
this
.
getStrategyDetail
(
options
.
id
);
await
this
.
getStrategyDetail
(
options
.
id
);
// 触发埋点
this
.
heartbeatFn
({
id
:
options
.
id
,
item_type
:
6
,
view
:
1
})
},
},
getStrategyDetail
(
id
)
{
async
getStrategyDetail
(
id
)
{
wx
.
p
.
api
.
strategyApi
wx
.
p
.
api
.
strategyApi
.
getStrategyDetail
({
.
getStrategyDetail
({
id
,
id
,
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
Util
.
setNavigationBarTitle
(
res
.
strategyName
);
Util
.
setNavigationBarTitle
(
res
.
strategyName
);
this
.
categoryName
=
res
.
categoryName
this
.
setData
({
this
.
setData
({
strategyDetailObj
:
res
,
strategyDetailObj
:
res
,
},
()
=>
{
},
()
=>
{
// 触发埋点
this
.
heartbeatFn
({
id
,
item_type
:
6
,
view
:
1
})
this
.
handlerShareQuery
()
this
.
handlerShareQuery
()
});
});
});
});
...
@@ -69,7 +70,9 @@ Page({
...
@@ -69,7 +70,9 @@ Page({
merchant_id
:
merchantId
,
merchant_id
:
merchantId
,
guest_no
:
wx
.
p
.
$Track
.
getGuestNo
(),
//游客ID,
guest_no
:
wx
.
p
.
$Track
.
getGuestNo
(),
//游客ID,
user_open_id
:
this
.
shareOpenId
||
""
,
user_open_id
:
this
.
shareOpenId
||
""
,
share_guest_no
:
this
.
share_guest_no
||
''
share_guest_no
:
this
.
share_guest_no
||
''
,
trade_classification
:
this
.
categoryName
||
''
,
association_classify_first_name
:
this
.
categoryName
||
''
,
};
};
this
.
firstEnter
=
false
;
this
.
firstEnter
=
false
;
const
jsonList
=
[
JSON
.
stringify
(
data
)];
const
jsonList
=
[
JSON
.
stringify
(
data
)];
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment