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
4a2f4719
Commit
4a2f4719
authored
Mar 11, 2022
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
直播不息屏
parent
db8ec649
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
src/pages/index/index.vue
+7
-0
static/nativeComponents/GoodsList/index.js
+3
-4
No files found.
src/pages/index/index.vue
View file @
4a2f4719
...
@@ -69,6 +69,13 @@ export default {
...
@@ -69,6 +69,13 @@ export default {
},
},
watch
:
{
watch
:
{
pageUrl
(
n
,
o
)
{
pageUrl
(
n
,
o
)
{
// 进入直播页面调用不息屏api
console
.
log
(
this
.
pageUrl
,
this
.
pageUrl
.
includes
(
'/liveBroadcast/lived'
),
"this.pageUrl.includes('/liveBroadcast/lived')"
)
if
(
this
.
pageUrl
.
includes
(
'/liveBroadcast/lived'
)){
wx
.
setKeepScreenOn
({
keepScreenOn
:
true
,
})
}
//埋点未登录时进入文章
//埋点未登录时进入文章
// this.params+='&articleId=111'
// this.params+='&articleId=111'
log
.
info
(
'watch-pageUrl-sessionid'
,
wx
.
getStorageSync
(
"sessionid"
))
log
.
info
(
'watch-pageUrl-sessionid'
,
wx
.
getStorageSync
(
"sessionid"
))
...
...
static/nativeComponents/GoodsList/index.js
View file @
4a2f4719
...
@@ -218,6 +218,9 @@ const componentOptions = {
...
@@ -218,6 +218,9 @@ const componentOptions = {
async
moreProduct
(
flag
)
{
async
moreProduct
(
flag
)
{
// 没有数据了就不再请求了,直接return
// 没有数据了就不再请求了,直接return
if
(
this
.
data
.
pageGoodsList
.
length
!=
0
&&
this
.
data
.
pageGoodsList
[
this
.
data
.
datasIndex
].
length
==
wx
.
getStorageSync
(
'ids'
)[
this
.
data
.
datasIndex
].
length
)
return
if
(
this
.
data
.
pageGoodsList
.
length
!=
0
&&
this
.
data
.
pageGoodsList
[
this
.
data
.
datasIndex
].
length
==
wx
.
getStorageSync
(
'ids'
)[
this
.
data
.
datasIndex
].
length
)
return
this
.
setData
({
scrollLoading
:
true
})
let
terminalProductIds
=
[]
let
terminalProductIds
=
[]
console
.
log
(
pageNum
,
'page-----'
);
console
.
log
(
pageNum
,
'page-----'
);
let
pageNumList
=
wx
.
getStorageSync
(
'pageNumList'
)
let
pageNumList
=
wx
.
getStorageSync
(
'pageNumList'
)
...
@@ -378,10 +381,6 @@ const componentOptions = {
...
@@ -378,10 +381,6 @@ const componentOptions = {
)
{
)
{
return
return
}
}
this
.
setData
({
scrollLoading
:
true
})
wx
.
createSelectorQuery
().
selectAll
(
`.goodsListItemIndex
${
that
.
data
.
datasIndex
}
>>>.
${
type
}
`
).
boundingClientRect
(
function
(
rects
){
wx
.
createSelectorQuery
().
selectAll
(
`.goodsListItemIndex
${
that
.
data
.
datasIndex
}
>>>.
${
type
}
`
).
boundingClientRect
(
function
(
rects
){
for
(
let
index
=
0
;
index
<
rects
.
length
;
index
++
)
{
for
(
let
index
=
0
;
index
<
rects
.
length
;
index
++
)
{
if
(
rects
[
index
].
top
==
0
&&
rects
[
index
].
bottom
==
0
&&
rects
[
index
].
left
==
0
&&
rects
[
index
].
right
==
0
)
{
if
(
rects
[
index
].
top
==
0
&&
rects
[
index
].
bottom
==
0
&&
rects
[
index
].
left
==
0
&&
rects
[
index
].
right
==
0
)
{
...
...
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