Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 62fdd1a4
authored
Jun 25, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
be3b7e7f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
4 additions
and
11 deletions
components/CarBrands.vue
components/HomeFrame/components/SettingBox.vue
components/HomeFrame/index.vue
mixin/loginMixin.js
pages/common/login.vue
pages/equity/index.vue
utils/cache/constantData.js
components/CarBrands.vue
View file @
62fdd1a
...
...
@@ -135,7 +135,7 @@ export default {
}).
then
(
res
=>
{
uni
.
hideLoading
()
this
.
carlist
=
res
uni
.
setStorageSync
(
`
${
e
.
id
}
_
${
e
.
brandId
}
_carlist`
,
res
)
if
(
res
)
uni
.
setStorageSync
(
`
${
e
.
id
}
_
${
e
.
brandId
}
_carlist`
,
res
)
if
(
!
carList
)
{
if
(
auto
&&
res
.
length
)
this
.
handleSelect
(
res
[
0
])
else
this
.
$refs
.
carBoxVisible
.
open
()
...
...
components/HomeFrame/components/SettingBox.vue
View file @
62fdd1a
...
...
@@ -22,7 +22,6 @@
</view>
</view>
<view
class=
"btn-box"
>
<!-- v-if="accountLength" -->
<view
class=
"btn flex"
@
click=
"changeAccount"
...
...
@@ -55,7 +54,6 @@ export default {
name
:
'SettingBox'
,
data
()
{
return
{
accountLength
:
uni
.
$storage
.
get
(
'accountLength'
),
version
:
''
,
}
},
...
...
components/HomeFrame/index.vue
View file @
62fdd1a
...
...
@@ -375,7 +375,7 @@ export default {
position
:
absolute
;
z-index
:
1
;
visibility
:
visible
;
animation
:
show-content-left
0.
4
s
forwards
;
animation
:
show-content-left
0.
15
s
forwards
;
}
}
@keyframes
show-content-left
{
...
...
mixin/loginMixin.js
View file @
62fdd1a
...
...
@@ -6,7 +6,6 @@ export default {
try
{
let
{
merchantId
,
isSuper
,
uuid
}
=
loginUserObj
if
(
isSuper
)
{
uni
.
$storage
.
set
(
'accountLength'
,
Date
.
now
())
this
.
$emit
(
'chooseAccount'
,
loginUserObj
)
return
}
...
...
@@ -34,14 +33,12 @@ export default {
merchantName
:
merchantName
}
})
uni
.
$storage
.
set
(
'accountLength'
,
null
)
}
else
if
(
!
result
?.
length
)
{
return
uni
.
showToast
({
title
:
'园区店关联的4s店商户账号无效,请联系总部管理员'
,
icon
:
'none'
,
})
}
else
{
uni
.
$storage
.
set
(
'accountLength'
,
Date
.
now
())
this
.
$emit
(
'chooseAccount'
,
loginUserObj
)
}
})
...
...
pages/common/login.vue
View file @
62fdd1a
...
...
@@ -101,7 +101,6 @@ export default {
},
onLoad
(
options
)
{
if
(
options
.
mobile
)
this
.
mobile
=
options
.
mobile
uni
.
$storage
.
rm
(
'accountLength'
)
const
noSignInUuid
=
uni
.
$storage
.
get
(
'noSignInUuid'
)
if
(
noSignInUuid
)
this
.
autoLogin
(
noSignInUuid
)
},
...
...
pages/equity/index.vue
View file @
62fdd1a
...
...
@@ -142,8 +142,8 @@ export default {
merchantId
:
shopMerchantId
,
})
.
then
((
res
)
=>
{
this
.
$store
.
dispatch
(
"setEmployeeList"
,
res
);
uni
.
$storage
.
set
(
'employeeList'
,
res
)
this
.
$store
.
dispatch
(
"setEmployeeList"
,
res
||
[]
);
uni
.
$storage
.
set
(
'employeeList'
,
res
||
[]
)
});
},
// 查询素材
...
...
utils/cache/constantData.js
View file @
62fdd1a
...
...
@@ -15,7 +15,6 @@ export const STORAGE_OBJECTkEY = {
customerInfo
:
"customerInfo"
,
noSignInUuid
:
"noSignInUuid"
,
noviceGuideStatus
:
"noviceGuideStatus"
,
accountLength
:
"accountLength"
,
carBrandList
:
'carBrandList'
,
employeeList
:
'employeeList'
};
...
...
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