Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jd-vx-app
Project
Project
Details
Activity
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
Administrator
jd-vx-app
Commits
41e5bbb1
Commit
41e5bbb1
authored
Apr 26, 2022
by
程新智
👽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
78df98d1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
657 additions
and
526 deletions
+657
-526
getCarCode.vue
pagesA/pages/index/getCarCode.vue
+4
-2
getPrice.vue
pagesA/pages/index/getPrice.vue
+91
-69
addCar.vue
pagesB/pages/move-car/addCar.vue
+83
-64
editCar.vue
pagesB/pages/move-car/editCar.vue
+123
-99
loveCar.vue
pagesB/pages/move-car/loveCar.vue
+5
-2
index.vue
pagesC/pages/shop/index.vue
+117
-96
userInfo.vue
pagesD/pages/personal/userInfo.vue
+234
-194
No files found.
pagesA/pages/index/getCarCode.vue
View file @
41e5bbb1
...
...
@@ -12,8 +12,8 @@
{{
addressInfo
.
address
}}
 
{{
addressInfo
.
detailInfo
}}
</div>
<div
class=
"right__phone"
>
<span>
{{
addressInfo
.
userName
}}
</span>
<span>
{{
addressInfo
.
telNumber
}}
</span>
<span
v-if=
"addressInfo.defaultFlag"
>
默认
</span>
<span>
{{
addressInfo
.
userName
}}
</span>
<span>
{{
addressInfo
.
telNumber
}}
</span>
</div>
</div>
<div
class=
"address__right"
@
click=
"goAddress"
>
...
...
@@ -329,7 +329,9 @@ export default {
/
deep
/
.u-modal__content__text
{
text-align
:
center
!
important
;
}
/
deep
/
.u-input__content__field-wrapper__field
{
text-align
:
right
!
important
;
}
.price__bottom
{
width
:
100%
;
height
:
156rpx
;
...
...
pagesA/pages/index/getPrice.vue
View file @
41e5bbb1
...
...
@@ -8,8 +8,8 @@
<u-gap
bgColor=
"transparent"
height=
"30"
></u-gap>
<div
class=
"content__code"
>
<div
class=
"code__img"
>
<image
:src=
"freeCode.mainImgUrl"
class=
"code__img"
></image>
</div>
<image
:src=
"freeCode.mainImgUrl"
class=
"code__img"
></image>
</div>
<div
class=
"code__money"
>
<div
class=
"money__title"
>
<text>
{{
freeCode
.
title
}}
</text>
...
...
@@ -33,9 +33,9 @@
<u--input
v-model=
"model1.carInfo.carModel"
placeholder=
"请输入"
border=
"none"
></u--input>
</u-form-item>
<u-form-item
label=
"行驶里程"
prop=
"carInfo.mileage"
borderBottom
ref=
"item3"
>
<div
class=
"self__input__km"
>
<u--input
v-model=
"model1.carInfo.mileage"
placeholder=
"请输入"
border=
"none"
></u--input>
KM
</div>
<div
class=
"self__input__km"
>
<u--input
v-model=
"model1.carInfo.mileage"
placeholder=
"请输入"
border=
"none"
></u--input>
KM
</div>
</u-form-item>
<u-form-item
label=
"车牌号"
prop=
"carInfo.carNo"
ref=
"item1"
>
</u-form-item>
<car-number
v-model=
"model1.carInfo.carNo"
></car-number>
...
...
@@ -88,22 +88,29 @@ export default {
message
:
"请填写品牌"
,
trigger
:
[
"blur"
,
"change"
],
},
"carInfo.carModel"
:
{
type
:
"string"
,
required
:
true
,
message
:
"请填写车型"
,
trigger
:
[
"blur"
,
"change"
],
},
"carInfo.carNo"
:
{
type
:
"string"
,
required
:
true
,
message
:
"请填写车牌号"
,
trigger
:
[
"blur"
,
"change"
],
},
"carInfo.carModel"
:
{
type
:
"string"
,
required
:
true
,
message
:
"请填写车型"
,
trigger
:
[
"blur"
,
"change"
],
},
"carInfo.carNo"
:
[{
min
:
7
,
max
:
8
,
message
:
'车牌长度在7-8个字符之间'
},
{
type
:
"string"
,
required
:
true
,
message
:
"请填写车牌号"
,
trigger
:
[
"blur"
,
"change"
],
},
]
},
carId
:
''
,
//免费挪车码
freeCode
:
{},
carId
:
''
,
//免费挪车码
freeCode
:
{},
};
},
watch
:
{
...
...
@@ -112,61 +119,70 @@ export default {
},
},
methods
:
{
goLoveCar
(){
goLoveCar
()
{
uni
.
navigateTo
({
url
:
'/pagesB/pages/move-car/loveCar?price=1'
});
url
:
'/pagesB/pages/move-car/loveCar?price=1'
});
},
getCarCode
()
{
//跳转到获取挪车码页面
this
.
$refs
.
form1
.
validate
().
then
(
res
=>
{
if
(
!
this
.
model1
.
carInfo
.
id
){
let
opts
=
{
url
:
'/app/vehicleAdmin/add'
,
method
:
'post'
};
this
.
http
.
httpTokenRequest
(
opts
,
this
.
model1
.
carInfo
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
}
})
}
this
.
$refs
.
form1
.
validate
().
then
(
res
=>
{
if
(
!
this
.
model1
.
carInfo
.
id
)
{
let
opts
=
{
url
:
'/app/vehicleAdmin/add'
,
method
:
'post'
};
this
.
http
.
httpTokenRequest
(
opts
,
this
.
model1
.
carInfo
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
}
})
}
uni
.
navigateTo
({
url
:
'/pagesA/pages/index/getCarCode?carNo='
+
this
.
model1
.
carInfo
.
carNo
});
}).
catch
(
errors
=>
{
uni
.
$u
.
toast
(
'校验失败'
)
})
}).
catch
(
errors
=>
{
uni
.
$u
.
toast
(
'校验失败'
)
})
},
getCarInfo
(){
if
(
this
.
carId
){
let
opts
=
{
url
:
'/app/vehicleAdmin/'
+
this
.
carId
,
method
:
'get'
};
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
this
.
model1
.
carInfo
=
res
.
data
.
data
}
})
}
},
getMoveCode
(){
let
opts
=
{
url
:
'/app/mall/free/code'
,
method
:
'get'
};
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
this
.
freeCode
=
res
.
data
.
data
}
})
},
getCarInfo
()
{
if
(
this
.
carId
)
{
let
opts
=
{
url
:
'/app/vehicleAdmin/'
+
this
.
carId
,
method
:
'get'
};
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
this
.
model1
.
carInfo
=
res
.
data
.
data
}
})
}
},
getMoveCode
()
{
let
opts
=
{
url
:
'/app/mall/free/code'
,
method
:
'get'
};
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
this
.
freeCode
=
res
.
data
.
data
}
})
},
},
onReady
()
{
// 如果需要兼容微信小程序,并且校验规则中含有方法等,只能通过setRules方法设置规则
this
.
$refs
.
form1
.
setRules
(
this
.
rules
)
},
onShow
()
{
this
.
getCarInfo
()
this
.
getMoveCode
()
},
onLoad
(
e
)
{
this
.
orderId
=
e
.
orderId
},
onReady
()
{
// 如果需要兼容微信小程序,并且校验规则中含有方法等,只能通过setRules方法设置规则
this
.
$refs
.
form1
.
setRules
(
this
.
rules
)
},
onShow
()
{
this
.
getCarInfo
()
this
.
getMoveCode
()
},
onLoad
(
e
)
{
this
.
orderId
=
e
.
orderId
},
};
</
script
>
...
...
@@ -175,16 +191,21 @@ export default {
width
:
100%
;
height
:
100%
;
/
deep
/
.uni-input-input
,
/
deep
/
.uni-input-input
,
.uni-input-placeholder
{
text-align
:
right
;
}
/
deep
/
.u-input__content__field-wrapper__field
{
text-align
:
right
!
important
;
}
.self__input__km
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
span
{
span
{
text-align
:
right
;
display
:
inline-block
;
width
:
100rpx
;
...
...
@@ -287,7 +308,8 @@ export default {
color
:
#f1251b
;
text-align
:
right
;
margin-top
:
40rpx
;
margin-bottom
:
200rpx
;
margin-bottom
:
200rpx
;
image
{
width
:
10rpx
;
height
:
20rpx
;
...
...
pagesB/pages/move-car/addCar.vue
View file @
41e5bbb1
...
...
@@ -4,39 +4,39 @@
-->
<
template
>
<view
class=
"appCotent"
>
<div
class=
"addCar"
>
<div
class=
"add__content"
>
<div
class=
"add__title"
>
填写车辆信息
<div
class=
"addCar"
>
<div
class=
"add__content"
>
<div
class=
"add__title"
>
填写车辆信息
</div>
<div>
<u--form
labelPosition=
"left"
:model=
"model1"
:rules=
"rules"
ref=
"form1"
labelWidth=
"100"
>
<u-form-item
label=
"品牌"
prop=
"carInfo.brand"
borderBottom
ref=
"item1"
>
<u--input
v-model=
"model1.carInfo.brand"
placeholder=
"请输入"
border=
"none"
></u--input>
</u-form-item>
<u-form-item
label=
"车型"
prop=
"carInfo.carModel"
borderBottom
ref=
"item1"
>
<u--input
v-model=
"model1.carInfo.carModel"
placeholder=
"请输入"
border=
"none"
></u--input>
</u-form-item>
<u-form-item
label=
"行驶里程"
prop=
"carInfo.mileage"
borderBottom
ref=
"item1"
>
<div
class=
"self__input__km"
>
<u--input
v-model=
"model1.carInfo.mileage"
placeholder=
"请输入"
border=
"none"
></u--input>
KM
</div>
</u-form-item>
<u-form-item
label=
"车牌号"
prop=
"carInfo.carNo"
ref=
"item1"
>
</u-form-item>
<car-number
v-model=
"model1.carInfo.carNo"
></car-number>
</u--form>
</div>
</div>
<div>
<u--form
labelPosition=
"left"
:model=
"model1"
:rules=
"rules"
ref=
"form1"
labelWidth=
"100"
>
<u-form-item
label=
"品牌"
prop=
"carInfo.brand"
borderBottom
ref=
"item1"
>
<u--input
v-model=
"model1.carInfo.brand"
placeholder=
"请输入"
border=
"none"
></u--input>
</u-form-item>
<u-form-item
label=
"车型"
prop=
"carInfo.carModel"
borderBottom
ref=
"item1"
>
<u--input
v-model=
"model1.carInfo.carModel"
placeholder=
"请输入"
border=
"none"
></u--input>
</u-form-item>
<u-form-item
label=
"行驶里程"
prop=
"carInfo.mileage"
borderBottom
ref=
"item1"
>
<div
class=
"self__input__km"
>
<u--input
v-model=
"model1.carInfo.mileage"
placeholder=
"请输入"
border=
"none"
></u--input>
KM
</div>
</u-form-item>
<u-form-item
label=
"车牌号"
prop=
"carInfo.carNo"
ref=
"item1"
>
</u-form-item>
<car-number
v-model=
"model1.carInfo.carNo"
></car-number>
</u--form>
<div
class=
"add__user"
>
<u-checkbox-group
placement=
"row"
>
<u-checkbox
:checked=
'checked'
@
change=
"changeBtn"
></u-checkbox>
</u-checkbox-group>
勾选同意
<span>
《用户服务协议》
</span>
</div>
<div
class=
"add__btn add__no__bind"
@
click=
"addCarInfo()"
>
完成
</div>
</div>
<div
class=
"add__user"
>
<u-checkbox-group
placement=
"row"
>
<u-checkbox
:checked=
'checked'
@
change=
"changeBtn"
></u-checkbox>
</u-checkbox-group>
勾选同意
<span>
《用户服务协议》
</span>
</div>
<div
class=
"add__btn add__no__bind"
@
click=
"addCarInfo()"
>
完成
</div>
</div>
</view>
</
template
>
...
...
@@ -48,7 +48,7 @@ export default {
},
data
()
{
return
{
checked
:
false
,
checked
:
false
,
model1
:
{
carInfo
:
{
brand
:
''
,
...
...
@@ -61,18 +61,25 @@ export default {
message
:
"请填写品牌"
,
trigger
:
[
"blur"
,
"change"
],
},
"carInfo.carModel"
:
{
type
:
"string"
,
required
:
true
,
message
:
"请填写车型"
,
trigger
:
[
"blur"
,
"change"
],
},
"carInfo.carNo"
:
{
type
:
"string"
,
required
:
true
,
message
:
"请填写车牌号"
,
trigger
:
[
"blur"
,
"change"
],
},
"carInfo.carModel"
:
{
type
:
"string"
,
required
:
true
,
message
:
"请填写车型"
,
trigger
:
[
"blur"
,
"change"
],
},
"carInfo.carNo"
:
[{
min
:
7
,
max
:
8
,
message
:
'车牌长度在7-8个字符之间'
},
{
type
:
"string"
,
required
:
true
,
message
:
"请填写车牌号"
,
trigger
:
[
"blur"
,
"change"
],
},
]
},
items
:
[{
title
:
"挪车码编号"
,
...
...
@@ -97,7 +104,7 @@ export default {
};
},
methods
:
{
changeBtn
(){
changeBtn
()
{
this
.
checked
=
!
this
.
checked
;
},
goBack
()
{
...
...
@@ -105,33 +112,45 @@ export default {
delta
:
1
})
},
addCarInfo
(){
//表单验证
this
.
$refs
.
form1
.
validate
().
then
(
res
=>
{
let
opts
=
{
url
:
'/app/vehicleAdmin/add'
,
method
:
'post'
};
this
.
http
.
httpTokenRequest
(
opts
,
this
.
model1
.
carInfo
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
//添加成功
uni
.
$u
.
toast
(
'添加成功'
)
this
.
goBack
()
}
})
}).
catch
(
errors
=>
{
uni
.
$u
.
toast
(
'校验失败'
)
})
},
addCarInfo
()
{
//表单验证
this
.
$refs
.
form1
.
validate
().
then
(
res
=>
{
if
(
!
this
.
checked
)
{
uni
.
showToast
({
title
:
"请同意用户协议"
,
icon
:
'none'
,
duration
:
2000
,
});
return
}
let
opts
=
{
url
:
'/app/vehicleAdmin/add'
,
method
:
'post'
};
this
.
http
.
httpTokenRequest
(
opts
,
this
.
model1
.
carInfo
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
//添加成功
uni
.
$u
.
toast
(
'添加成功'
)
this
.
goBack
()
}
})
}).
catch
(
errors
=>
{
uni
.
$u
.
toast
(
'校验失败'
)
})
},
},
onReady
()
{
// 如果需要兼容微信小程序,并且校验规则中含有方法等,只能通过setRules方法设置规则
this
.
$refs
.
form1
.
setRules
(
this
.
rules
)
},
onReady
()
{
// 如果需要兼容微信小程序,并且校验规则中含有方法等,只能通过setRules方法设置规则
this
.
$refs
.
form1
.
setRules
(
this
.
rules
)
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
.addCar
{
padding
:
40rpx
0rpx
;
/
deep
/
.u-input__content__field-wrapper__field
{
/
deep
/
.u-input__content__field-wrapper__field
{
text-align
:
right
!
important
;
padding-right
:
30rpx
;
}
...
...
pagesB/pages/move-car/editCar.vue
View file @
41e5bbb1
...
...
@@ -4,39 +4,38 @@
-->
<
template
>
<view
class=
"appCotent"
>
<div
class=
"editCar"
>
<div
class=
"add__content"
>
<div
class=
"add__title"
>
填写车辆信息
<div
class=
"editCar"
>
<div
class=
"add__content"
>
<div
class=
"add__title"
>
填写车辆信息
</div>
<div>
<u--form
labelPosition=
"left"
:model=
"model1"
:rules=
"rules"
ref=
"form1"
labelWidth=
"100"
>
<u-form-item
label=
"品牌"
prop=
"carInfo.brand"
borderBottom
ref=
"item1"
>
<u--input
v-model=
"model1.carInfo.brand"
placeholder=
"请输入"
border=
"none"
></u--input>
</u-form-item>
<u-form-item
label=
"车型"
prop=
"carInfo.carModel"
borderBottom
ref=
"item2"
>
<u--input
v-model=
"model1.carInfo.carModel"
placeholder=
"请输入"
border=
"none"
></u--input>
</u-form-item>
<u-form-item
label=
"行驶里程"
prop=
"carInfo.mileage"
borderBottom
ref=
"item3"
>
<div
class=
"self__input__km"
>
<u--input
v-model=
"model1.carInfo.mileage"
placeholder=
"请输入"
border=
"none"
></u--input>
KM
</div>
</u-form-item>
<u-form-item
label=
"车牌号"
prop=
"carInfo.carNo"
ref=
"item1"
>
</u-form-item>
<car-number
v-if=
"model1.carInfo.carNo"
v-model=
"model1.carInfo.carNo"
></car-number>
</u--form>
</div>
</div>
<div>
<u--form
labelPosition=
"left"
:model=
"model1"
:rules=
"rules"
ref=
"form1"
labelWidth=
"100"
>
<u-form-item
label=
"品牌"
prop=
"carInfo.brand"
borderBottom
ref=
"item1"
>
<u--input
v-model=
"model1.carInfo.brand"
placeholder=
"请输入"
border=
"none"
></u--input>
</u-form-item>
<u-form-item
label=
"车型"
prop=
"carInfo.carModel"
borderBottom
ref=
"item2"
>
<u--input
v-model=
"model1.carInfo.carModel"
placeholder=
"请输入"
border=
"none"
></u--input>
</u-form-item>
<u-form-item
label=
"行驶里程"
prop=
"carInfo.mileage"
borderBottom
ref=
"item3"
>
<div
class=
"self__input__km"
>
<u--input
v-model=
"model1.carInfo.mileage"
placeholder=
"请输入"
border=
"none"
></u--input>
KM
</div>
</u-form-item>
<u-form-item
label=
"车牌号"
prop=
"carInfo.carNo"
ref=
"item1"
>
</u-form-item>
<car-number
v-model=
"model1.carInfo.carNo"
></car-number>
</u--form>
</div>
</div>
<div
class=
"add__btn add__no__bind"
@
click=
"editCarInfo"
>
保存
</div>
<div
class=
"add__btn add__back"
@
click=
"delModal"
>
删除
<div
class=
"add__btn add__no__bind"
@
click=
"editCarInfo"
>
保存
</div>
<div
class=
"add__btn add__back"
@
click=
"delModal"
>
删除
</div>
<u-modal
:show=
"deleteShow"
:title=
"deleteTitle"
:content=
'deleteContent'
@
confirm=
"confirmModal"
@
cancel=
"cancelModal"
showCancelButton=
"true"
></u-modal>
</div>
<u-modal
:show=
"deleteShow"
:title=
"deleteTitle"
:content=
'deleteContent'
@
confirm=
"confirmModal"
@
cancel=
"cancelModal"
showCancelButton=
"true"
></u-modal>
</div>
</view>
</
template
>
...
...
@@ -51,11 +50,13 @@ export default {
//车辆id
id
:
''
,
model1
:
{
carInfo
:
{},
carInfo
:
{
carNo
:
''
,
},
},
deleteShow
:
false
,
deleteTitle
:
'删除车辆'
,
deleteContent
:
'确定删除车辆?'
,
deleteShow
:
false
,
deleteTitle
:
'删除车辆'
,
deleteContent
:
'确定删除车辆?'
,
rules
:
{
"carInfo.brand"
:
{
type
:
"string"
,
...
...
@@ -63,18 +64,25 @@ export default {
message
:
"请填写品牌"
,
trigger
:
[
"blur"
,
"change"
],
},
"carInfo.carModel"
:
{
type
:
"string"
,
required
:
true
,
message
:
"请填写车型"
,
trigger
:
[
"blur"
,
"change"
],
},
"carInfo.carNo"
:
{
type
:
"string"
,
required
:
true
,
message
:
"请填写车牌号"
,
trigger
:
[
"blur"
,
"change"
],
},
"carInfo.carModel"
:
{
type
:
"string"
,
required
:
true
,
message
:
"请填写车型"
,
trigger
:
[
"blur"
,
"change"
],
},
"carInfo.carNo"
:
[{
min
:
7
,
max
:
8
,
message
:
'车牌长度在7-8个字符之间'
},
{
type
:
"string"
,
required
:
true
,
message
:
"请填写车牌号"
,
trigger
:
[
"blur"
,
"change"
],
},
]
},
items
:
[{
title
:
"挪车码编号"
,
...
...
@@ -104,64 +112,77 @@ export default {
delta
:
1
})
},
getCarInfo
(){
let
opts
=
{
url
:
'/app/vehicleAdmin/'
+
this
.
id
,
method
:
'get'
};
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
this
.
model1
.
carInfo
=
res
.
data
.
data
}
})
getCarInfo
()
{
let
opts
=
{
url
:
'/app/vehicleAdmin/'
+
this
.
id
,
method
:
'get'
};
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
this
.
$nextTick
(()
=>
{
this
.
model1
.
carInfo
=
res
.
data
.
data
;
this
.
model1
.
carInfo
.
carNo
=
res
.
data
.
data
.
carNo
;
this
.
$set
(
this
.
model1
.
carInfo
,
'carNo'
,
res
.
data
.
data
.
carNo
);
});
}
})
},
editCarInfo
()
{
this
.
$refs
.
form1
.
validate
().
then
(
res
=>
{
let
opts
=
{
url
:
'/app/vehicleAdmin/edit'
,
method
:
'put'
};
this
.
http
.
httpTokenRequest
(
opts
,
this
.
model1
.
carInfo
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
//添加成功
uni
.
$u
.
toast
(
'修改成功'
)
this
.
goBack
()
}
})
}).
catch
(
errors
=>
{
uni
.
$u
.
toast
(
'校验失败'
)
})
},
editCarInfo
(){
this
.
$refs
.
form1
.
validate
().
then
(
res
=>
{
let
opts
=
{
url
:
'/app/vehicleAdmin/edit'
,
method
:
'put'
};
this
.
http
.
httpTokenRequest
(
opts
,
this
.
model1
.
carInfo
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
//添加成功
uni
.
$u
.
toast
(
'修改成功'
)
this
.
goBack
()
}
})
}).
catch
(
errors
=>
{
uni
.
$u
.
toast
(
'校验失败'
)
})
//确认删除车辆
confirmModal
()
{
let
opts
=
{
url
:
'/app/vehicleAdmin/remove/'
+
this
.
id
,
method
:
'delete'
};
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
uni
.
showToast
({
title
:
'删除成功'
,
icon
:
"success"
,
});
this
.
goBack
()
}
else
{
uni
.
showToast
({
title
:
res
.
data
.
msg
,
icon
:
"error"
,
});
}
})
this
.
deleteShow
=
false
},
cancelModal
()
{
this
.
deleteShow
=
false
},
delModal
()
{
this
.
deleteShow
=
true
},
//确认删除车辆
confirmModal
(){
let
opts
=
{
url
:
'/app/vehicleAdmin/remove/'
+
this
.
id
,
method
:
'delete'
};
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
uni
.
showToast
({
title
:
'删除成功'
,
icon
:
"success"
,
});
this
.
goBack
()
}
else
{
uni
.
showToast
({
title
:
res
.
data
.
msg
,
icon
:
"error"
,
});
}
})
this
.
deleteShow
=
false
},
cancelModal
(){
this
.
deleteShow
=
false
},
delModal
(){
this
.
deleteShow
=
true
},
},
onLoad
(
option
)
{
this
.
id
=
option
.
id
this
.
id
=
option
.
id
},
onReady
()
{
// 如果需要兼容微信小程序,并且校验规则中含有方法等,只能通过setRules方法设置规则
this
.
$refs
.
form1
.
setRules
(
this
.
rules
)
// 如果需要兼容微信小程序,并且校验规则中含有方法等,只能通过setRules方法设置规则
this
.
$refs
.
form1
.
setRules
(
this
.
rules
)
},
onShow
(){
this
.
getCarInfo
()
onShow
()
{
this
.
getCarInfo
()
},
}
</
script
>
...
...
@@ -169,15 +190,18 @@ export default {
<
style
lang=
"scss"
scoped
>
.editCar
{
padding
:
40rpx
0rpx
;
/
deep
/
.u-input__content__field-wrapper__field
{
/
deep
/
.u-input__content__field-wrapper__field
{
text-align
:
right
!
important
;
padding-right
:
30rpx
;
justify-content
:
space-evenly
;
}
.u-checkbox-group
{
display
:
inline-block
!
important
;
}
/
deep
/
.u-checkbox-group--row
{
/
deep
/
.u-checkbox-group--row
{
display
:
inline-block
!
important
;
}
...
...
pagesB/pages/move-car/loveCar.vue
View file @
41e5bbb1
...
...
@@ -28,6 +28,7 @@
<u-modal
:show=
"deleteShow"
:title=
"deleteTitle"
:content=
'deleteContent'
@
confirm=
"confirmModal"
@
cancel=
"cancelModal"
showCancelButton=
"true"
></u-modal>
</div>
<u-gap
bgColor=
"transparent"
height=
"60"
></u-gap>
<div
class=
"love__btn"
@
click=
"addCar"
>
<image
src=
"@/static/move-car/love-car5.png"
>
添加车辆
</div>
...
...
@@ -193,7 +194,7 @@ export default {
}
}
.love__btn
{
.love__btn
{
height
:
76rpx
;
background
:
url('@/static/move-car/love-car4.png')
no-repeat
;
background-size
:
contain
;
...
...
@@ -203,7 +204,9 @@ export default {
color
:
#FFFFFF
;
line-height
:
76rpx
;
text-align
:
center
;
position
:
fixed
;
width
:
670rpx
;
bottom
:
60rpx
;
image
{
width
:
30rpx
;
height
:
30rpx
;
...
...
pagesC/pages/shop/index.vue
View file @
41e5bbb1
This diff is collapsed.
Click to expand it.
pagesD/pages/personal/userInfo.vue
View file @
41e5bbb1
This diff is collapsed.
Click to expand it.
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