Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
sales-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 5ed7b658
authored
Oct 30, 2025
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
a3ee62e9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
components/TabBar/TabBar.js
pages/tab/customer/customer.js
utils/request/environment.js
components/TabBar/TabBar.js
View file @
5ed7b65
...
@@ -55,13 +55,11 @@ Component({
...
@@ -55,13 +55,11 @@ Component({
tabIndex
,
tabIndex
,
}
=
this
.
data
}
=
this
.
data
wx
.
$api
.
getViewInfo
(
`#tab-
${
tabIndex
}
`
,
old
=>
{
wx
.
$api
.
getViewInfo
(
`#tab-
${
tabIndex
}
`
,
old
=>
{
let
oldLeft
=
old
[
0
]
.
left
let
oldLeft
=
old
?.[
0
]?
.
left
let
oldWidth
=
old
.
width
let
oldWidth
=
old
?
.
width
wx
.
$api
.
getViewInfo
(
`#tab-
${
index
}
`
,
res
=>
{
wx
.
$api
.
getViewInfo
(
`#tab-
${
index
}
`
,
res
=>
{
let
{
let
left
=
res
?.[
0
]?.
left
left
,
let
width
=
res
?.[
0
]?.
width
width
}
=
res
[
0
]
if
(
tabIndex
!=
index
)
{
if
(
tabIndex
!=
index
)
{
let
readyLeft
=
oldLeft
>
left
?
left
:
oldLeft
let
readyLeft
=
oldLeft
>
left
?
left
:
oldLeft
let
readyWidth
=
oldLeft
>
left
?
oldLeft
-
left
:
left
-
oldLeft
let
readyWidth
=
oldLeft
>
left
?
oldLeft
-
left
:
left
-
oldLeft
...
...
pages/tab/customer/customer.js
View file @
5ed7b65
...
@@ -128,7 +128,7 @@ Page({
...
@@ -128,7 +128,7 @@ Page({
})
})
}
}
const
params
=
app
.
getTabParams
(
'customer
Type
'
)
const
params
=
app
.
getTabParams
(
'customer'
)
let
myTabIdx
let
myTabIdx
if
(
params
)
{
if
(
params
)
{
this
.
setData
({
myTabIdx
:
Number
(
params
.
type
)})
this
.
setData
({
myTabIdx
:
Number
(
params
.
type
)})
...
...
utils/request/environment.js
View file @
5ed7b65
...
@@ -21,7 +21,7 @@ const h5Obj = {
...
@@ -21,7 +21,7 @@ const h5Obj = {
2测试
2测试
3生产
3生产
*/
*/
cons
t
index
=
0
le
t
index
=
0
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
// console.log(systemInfo);
// console.log(systemInfo);
...
...
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