Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eMall_miniapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高宇
eMall_miniapp
Commits
65491e6c
Commit
65491e6c
authored
Jul 27, 2023
by
wdy
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
ad4cc093
a9bbfb57
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
8 deletions
+37
-8
index.vue
homePage/parkingService/addplate/index.vue
+2
-2
index.vue
homePage/parkingService/index.vue
+35
-6
No files found.
homePage/parkingService/addplate/index.vue
View file @
65491e6c
...
@@ -131,8 +131,8 @@
...
@@ -131,8 +131,8 @@
type
:
this
.
type
,
type
:
this
.
type
,
userId
:
this
.
userId
userId
:
this
.
userId
}).
then
(
res
=>
{
}).
then
(
res
=>
{
uni
.
navigate
To
({
uni
.
navigate
Back
({
url
:
'/homePage/parkingService/plateManagement/index'
delta
:
1
,
//返回层数,2则上上页
})
})
})
})
}
}
...
...
homePage/parkingService/index.vue
View file @
65491e6c
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
</view>
</view>
<view
style=
"width: 100%;height: 1rpx;background-color:#eee;"
></view>
<view
style=
"width: 100%;height: 1rpx;background-color:#eee;"
></view>
</view>
</view>
<view
v-if=
"isShowButton"
class=
"addButton"
>
<view
v-if=
"isShowButton"
class=
"addButton"
@
click=
"addPark"
>
<u-icon
name=
"plus-circle"
></u-icon>
<u-icon
name=
"plus-circle"
></u-icon>
<view
style=
"margin-left: 10rpx;"
>
添加车牌
</view>
<view
style=
"margin-left: 10rpx;"
>
添加车牌
</view>
</view>
</view>
...
@@ -82,12 +82,10 @@
...
@@ -82,12 +82,10 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
showList
:
tru
e
,
showList
:
fals
e
,
isShowButton
:
tru
e
,
isShowButton
:
fals
e
,
parkingId
:
''
,
parkingId
:
''
,
parkList
:
[
parkList
:
[],
{
car
:
'111'
,
type
:
1
},
],
tenantId
:
''
,
tenantId
:
''
,
img
:
'http://192.144.239.97:20043/file/banner/20230605/6F749760FE1148369C4081EBD3248C6C.jpeg'
,
img
:
'http://192.144.239.97:20043/file/banner/20230605/6F749760FE1148369C4081EBD3248C6C.jpeg'
,
test
:
''
,
test
:
''
,
...
@@ -121,11 +119,42 @@
...
@@ -121,11 +119,42 @@
}
}
},
},
onShow
()
{
onShow
()
{
this
.
getList
()
if
(
this
.
test
===
''
)
{
if
(
this
.
test
===
''
)
{
this
.
getParking
()
this
.
getParking
()
}
}
},
},
methods
:
{
methods
:
{
getList
(){
const
that
=
this
uni
.
getStorage
({
key
:
'lifeData'
,
success
:
function
(
res
){
console
.
log
(
'data'
,
res
.
data
)
that
.
userId
=
res
.
data
.
vuex_user
.
id
that
.
$u
.
get
(
'/user/car/list?userId='
+
that
.
userId
).
then
(
Lres
=>
{
console
.
log
(
'车辆list'
,
Lres
)
if
(
Lres
.
length
&&
Lres
.
length
>
0
&&
Lres
.
length
<
3
)
{
that
.
showList
=
true
that
.
isShowButton
=
true
console
.
log
(
'1111'
)
}
else
if
(
Lres
.
length
>=
3
)
{
that
.
showList
=
true
that
.
isShowButton
=
false
}
else
{
that
.
showList
=
false
that
.
isShowButton
=
false
}
that
.
parkList
=
Lres
})
}
})
},
addPark
(){
uni
.
navigateTo
({
url
:
'/homePage/parkingService/addplate/index'
})
},
getParking
(){
getParking
(){
const
that
=
this
const
that
=
this
uni
.
getStorage
({
uni
.
getStorage
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment