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 0891d7ff
authored
Jun 20, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 车型销售打开时请求
1 parent
6ceb0202
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
27 deletions
components/CarBrands.vue
components/Employee.vue
pages/equity/index.vue
components/CarBrands.vue
View file @
0891d7f
...
@@ -83,9 +83,7 @@ export default {
...
@@ -83,9 +83,7 @@ export default {
if
(
carBrandList
.
length
)
this
.
selectCar
(
carBrandList
[
0
],
true
)
if
(
carBrandList
.
length
)
this
.
selectCar
(
carBrandList
[
0
],
true
)
},
},
open
()
{
open
()
{
uni
.
showLoading
({
this
.
$refs
.
carBrandListVisible
.
open
()
mask
:
true
})
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
{
shopMerchantId
}
=
userInfo
;
{
shopMerchantId
}
=
userInfo
;
/**获取品牌车型 */
/**获取品牌车型 */
...
@@ -101,13 +99,7 @@ export default {
...
@@ -101,13 +99,7 @@ export default {
});
});
});
});
this
.
$store
.
dispatch
(
"setCarBrandsList"
,
carBrandList
);
this
.
$store
.
dispatch
(
"setCarBrandsList"
,
carBrandList
);
this
.
$refs
.
carBrandListVisible
.
open
()
uni
.
hideLoading
()
}).
catch
(()
=>
{
this
.
$refs
.
carBrandListVisible
.
open
()
uni
.
hideLoading
()
})
})
},
},
selectCar
(
e
,
auto
=
false
)
{
selectCar
(
e
,
auto
=
false
)
{
let
{
clickFlga
}
=
this
let
{
clickFlga
}
=
this
...
...
components/Employee.vue
View file @
0891d7f
...
@@ -57,9 +57,7 @@ export default {
...
@@ -57,9 +57,7 @@ export default {
},
},
methods
:
{
methods
:
{
open
()
{
open
()
{
uni
.
showLoading
({
this
.
$refs
.
employeeBoxVisible
.
open
()
mask
:
true
})
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
{
shopMerchantId
}
=
userInfo
;
{
shopMerchantId
}
=
userInfo
;
/**获取销售人员 */
/**获取销售人员 */
...
@@ -69,11 +67,6 @@ export default {
...
@@ -69,11 +67,6 @@ export default {
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
$store
.
dispatch
(
"setEmployeeList"
,
res
);
this
.
$store
.
dispatch
(
"setEmployeeList"
,
res
);
this
.
$refs
.
employeeBoxVisible
.
open
()
uni
.
hideLoading
()
}).
catch
(()
=>
{
this
.
$refs
.
employeeBoxVisible
.
open
()
uni
.
hideLoading
()
})
})
},
},
handleSelect
(
item
)
{
handleSelect
(
item
)
{
...
...
pages/equity/index.vue
View file @
0891d7f
...
@@ -82,16 +82,6 @@ export default {
...
@@ -82,16 +82,6 @@ export default {
return
false
;
return
false
;
},
},
onShow
()
{
onShow
()
{
var
localStorageSpace
=
function
()
{
var
allStrings
=
''
;
for
(
var
key
in
window
.
localStorage
)
{
if
(
window
.
localStorage
.
hasOwnProperty
(
key
))
{
allStrings
+=
window
.
localStorage
[
key
];
}
}
return
allStrings
?
3
+
((
allStrings
.
length
*
16
)
/
(
8
*
1024
))
+
' KB'
:
'Empty (0 KB)'
;
}
console
.
log
(
'localStorage当前占用'
+
localStorageSpace
())
this
.
init
();
this
.
init
();
},
},
async
onReachBottom
()
{
async
onReachBottom
()
{
...
...
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