Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
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 853e632b
authored
Oct 27, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:调整滚动,标题名字
1 parent
11df8767
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
pages/scene/components/product/product.js
pages/scene/scene.wxml
pages/scene/components/product/product.js
View file @
853e632
...
@@ -248,15 +248,15 @@ Component({
...
@@ -248,15 +248,15 @@ Component({
// });
// });
// wx.$eventbus.emit('evt_page_index',idx)
// wx.$eventbus.emit('evt_page_index',idx)
//判断当前路径
//判断当前路径
let
currentUrl
=
this
.
getCurrentPageUrl
();
//
let currentUrl = this.getCurrentPageUrl();
console
.
log
(
'currentUrl: '
,
currentUrl
);
//
console.log('currentUrl: ', currentUrl);
if
(
currentUrl
==
"/pages/tab/index/index"
)
{
//
if (currentUrl == "/pages/tab/index/index") {
console
.
log
(
123546
)
//
console.log(123546)
wx
.
pageScrollTo
({
scrollTop
:
imgTopArr
[
idx
]
-
stickyTop
+
88
+
34
});
//
wx.pageScrollTo({ scrollTop: imgTopArr[idx] - stickyTop + 88 + 34 });
// wx.pageScrollTo({ scrollTop: imgTopArr[idx] - stickyTop });
//
// wx.pageScrollTo({ scrollTop: imgTopArr[idx] - stickyTop });
}
else
{
//
} else {
wx
.
pageScrollTo
({
scrollTop
:
imgTopArr
[
idx
]
-
stickyTop
});
wx
.
pageScrollTo
({
scrollTop
:
imgTopArr
[
idx
]
-
stickyTop
/
2
-
10
});
}
//
}
},
},
// async changeTab(e){
// async changeTab(e){
// let idx = e.detail
// let idx = e.detail
...
...
pages/scene/scene.wxml
View file @
853e632
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}">
拓客户
</navigation-bar>
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}">
D+增值转化
</navigation-bar>
<view class="reclaim" style="{{tabIndx == 1 ? 'background: #fff;' : ''}}">
<view class="reclaim" style="{{tabIndx == 1 ? 'background: #fff;' : ''}}">
<!-- 头部 -->
<!-- 头部 -->
<view class="header-wrap" style="height:{{headerHeight}}rpx; background-image: url('{{IMG_URL}}index/head.png')">
<view class="header-wrap" style="height:{{headerHeight}}rpx; background-image: url('{{IMG_URL}}index/head.png')">
...
...
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