Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
c3ce6cdf
Commit
c3ce6cdf
authored
Mar 20, 2024
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加埋点
parent
5452841b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletions
+8
-1
src/pages/home/index.vue
+3
-1
src/pages/index/index.vue
+3
-0
src/pages/wxPay/index.vue
+2
-0
No files found.
src/pages/home/index.vue
View file @
c3ce6cdf
...
@@ -324,6 +324,7 @@ export default {
...
@@ -324,6 +324,7 @@ export default {
// };
// };
},
},
onReady
()
{
onReady
()
{
log
.
info
(
'home-onReady'
);
console
.
log
(
new
Date
().
getTime
(),
'load-----home-onReady'
)
console
.
log
(
new
Date
().
getTime
(),
'load-----home-onReady'
)
// 上报首页打开时间
// 上报首页打开时间
if
(
wx
.
canIUse
(
'reportPerformance'
))
{
if
(
wx
.
canIUse
(
'reportPerformance'
))
{
...
@@ -358,6 +359,7 @@ export default {
...
@@ -358,6 +359,7 @@ export default {
this
.
firstOpenPage
=
false
;
this
.
firstOpenPage
=
false
;
},
},
async
onLoad
(
options
)
{
async
onLoad
(
options
)
{
log
.
info
(
'home-onLoad'
)
if
(
this
.
$options
)
{
if
(
this
.
$options
)
{
Object
.
assign
(
this
.
$data
,
this
.
$options
.
data
());
Object
.
assign
(
this
.
$data
,
this
.
$options
.
data
());
}
}
...
@@ -367,6 +369,7 @@ export default {
...
@@ -367,6 +369,7 @@ export default {
this
.
pageInit
(
options
);
this
.
pageInit
(
options
);
},
},
onShow
()
{
onShow
()
{
log
.
info
(
'home-onShow'
)
console
.
log
(
new
Date
().
getTime
(),
'load-----home-onShow'
)
console
.
log
(
new
Date
().
getTime
(),
'load-----home-onShow'
)
console
.
log
(
this
.
reloadPage
,
'-reloadPage2'
)
console
.
log
(
this
.
reloadPage
,
'-reloadPage2'
)
// if (this.reloadPage) {
// if (this.reloadPage) {
...
@@ -375,7 +378,6 @@ export default {
...
@@ -375,7 +378,6 @@ export default {
// this.reloadPage = false;
// this.reloadPage = false;
// }
// }
// 设置显示条件
// 设置显示条件
log
.
info
(
'--------on--------------show'
)
//分销隔流
//分销隔流
if
(
this
.
toHomePage
)
{
if
(
this
.
toHomePage
)
{
let
linkVal
=
'/personalCenter/spokesmanCenter/mine/spokesmanHomePage?from=_goodsInfo'
let
linkVal
=
'/personalCenter/spokesmanCenter/mine/spokesmanHomePage?from=_goodsInfo'
...
...
src/pages/index/index.vue
View file @
c3ce6cdf
...
@@ -99,6 +99,7 @@ export default {
...
@@ -99,6 +99,7 @@ export default {
console
.
log
(
pageUrl1
,
'--------pageUrl1--'
)
console
.
log
(
pageUrl1
,
'--------pageUrl1--'
)
let
pageUrl
=
forUrlAddKey
(
decodeURIComponent
(
pageUrl1
));
let
pageUrl
=
forUrlAddKey
(
decodeURIComponent
(
pageUrl1
));
console
.
log
(
pageUrl
,
'--------pageUrl'
)
console
.
log
(
pageUrl
,
'--------pageUrl'
)
log
.
info
(
'index-pageUrl'
,
pageUrl
);
// let pageUrl = this.link+this.page+this.params;
// let pageUrl = this.link+this.page+this.params;
return
pageUrl
;
return
pageUrl
;
},
},
...
@@ -171,6 +172,7 @@ export default {
...
@@ -171,6 +172,7 @@ export default {
log
.
info
(
this
.
options
,
'----------------index-----options'
)
log
.
info
(
this
.
options
,
'----------------index-----options'
)
let
h5Params
=
{};
let
h5Params
=
{};
if
(
options
.
params
)
{
if
(
options
.
params
)
{
log
.
info
(
'index-onLoad-params'
);
console
.
log
(
'tool.isObjectString(options.params)'
,
tool
.
isObjectString
(
decodeURIComponent
(
options
.
params
)),
decodeURIComponent
(
options
.
params
))
console
.
log
(
'tool.isObjectString(options.params)'
,
tool
.
isObjectString
(
decodeURIComponent
(
options
.
params
)),
decodeURIComponent
(
options
.
params
))
if
(
tool
.
isObjectString
(
decodeURIComponent
(
options
.
params
)))
{
if
(
tool
.
isObjectString
(
decodeURIComponent
(
options
.
params
)))
{
console
.
log
(
'h5Params1'
)
console
.
log
(
'h5Params1'
)
...
@@ -699,6 +701,7 @@ export default {
...
@@ -699,6 +701,7 @@ export default {
query
.
sharingMethods
=
type
;
query
.
sharingMethods
=
type
;
}
}
console
.
log
(
"saveSpokesmanShareGoodsLog"
,
query
)
console
.
log
(
"saveSpokesmanShareGoodsLog"
,
query
)
log
.
info
(
'saveSpokesmanShareGoodsLog'
,
query
);
goods
.
saveSpokesmanShareGoodsLog
(
query
);
goods
.
saveSpokesmanShareGoodsLog
(
query
);
},
},
getQueryVariableNotNull
(
link
,
key
)
{
getQueryVariableNotNull
(
link
,
key
)
{
...
...
src/pages/wxPay/index.vue
View file @
c3ce6cdf
...
@@ -189,6 +189,7 @@ export default {
...
@@ -189,6 +189,7 @@ export default {
wxPay
wxPay
.
to_wx_pay
(
this
.
options
)
.
to_wx_pay
(
this
.
options
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
log
.
info
(
'api-to_wx_pay'
,
res
);
wx
.
hideLoading
();
wx
.
hideLoading
();
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
let
payData
=
JSON
.
parse
(
res
.
data
.
data
);
let
payData
=
JSON
.
parse
(
res
.
data
.
data
);
...
@@ -243,6 +244,7 @@ export default {
...
@@ -243,6 +244,7 @@ export default {
fn
(
this
);
fn
(
this
);
}
}
}
catch
(
err
)
{
}
catch
(
err
)
{
log
.
info
(
'subscribeMessage-err'
,
err
);
console
.
error
(
"subscribeMessage-err"
,
err
);
console
.
error
(
"subscribeMessage-err"
,
err
);
}
}
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment