Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant
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 bd530a99
authored
Nov 03, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.0' into 'master'
V3.0 See merge request
!134
2 parents
da92c52d
2f83e596
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
pages/tab/discovery/components/product/product.js
pages/tab/discovery/components/product/product.js
View file @
bd530a9
...
@@ -29,10 +29,8 @@ Component({
...
@@ -29,10 +29,8 @@ Component({
lifetimes
:{
lifetimes
:{
ready
:
function
(){
ready
:
function
(){
wx
.
$eventbus
.
on
(
'evt_page_scroll'
,(
e
)
=>
{
wx
.
$eventbus
.
on
(
'evt_page_scroll'
,(
e
)
=>
{
// console.log(e)
wx
.
$util
.
getViewInfo
(
'.header'
,
async
(
res
)
=>
{
wx
.
$util
.
getViewInfo
(
'.header'
,
async
(
res
)
=>
{
let
heightTop
=
res
.
height
let
heightTop
=
this
.
data
.
isShare
?
0
:
(
res
?.
height
||
0
)
let
prodArr
=
await
this
.
getHeight
(
'.prod-wrap'
)
let
prodArr
=
await
this
.
getHeight
(
'.prod-wrap'
)
heightTop
+=
prodArr
[
0
].
height
heightTop
+=
prodArr
[
0
].
height
let
imgArr
=
await
this
.
getHeight
(
'.img-item'
)
let
imgArr
=
await
this
.
getHeight
(
'.img-item'
)
...
@@ -97,7 +95,7 @@ Component({
...
@@ -97,7 +95,7 @@ Component({
})
})
this
.
data
.
throttle
=
true
this
.
data
.
throttle
=
true
wx
.
$util
.
getViewInfo
(
'.header'
,
async
(
res
)
=>
{
wx
.
$util
.
getViewInfo
(
'.header'
,
async
(
res
)
=>
{
let
heightTop
=
res
.
height
let
heightTop
=
this
.
data
.
isShare
?
0
:
(
res
?.
height
||
0
)
let
prodArr
=
await
this
.
getHeight
(
'.prod-wrap'
)
let
prodArr
=
await
this
.
getHeight
(
'.prod-wrap'
)
heightTop
+=
prodArr
[
0
].
height
heightTop
+=
prodArr
[
0
].
height
let
imgArr
=
await
this
.
getHeight
(
'.img-item'
)
let
imgArr
=
await
this
.
getHeight
(
'.img-item'
)
...
...
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