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
52086f17
Commit
52086f17
authored
Apr 24, 2022
by
fwz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并测试修改
parent
6751aaa8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
116 additions
and
29 deletions
+116
-29
getCarCode.vue
pagesA/pages/index/getCarCode.vue
+90
-7
myMoveCar.vue
pagesB/pages/move-car/myMoveCar.vue
+26
-22
No files found.
pagesA/pages/index/getCarCode.vue
View file @
52086f17
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
</div>
</div>
<u-gap
bgColor=
"transparent"
height=
"20"
></u-gap>
<u-gap
bgColor=
"transparent"
height=
"20"
></u-gap>
<div
class=
"list"
>
<div
class=
"list"
>
<div
class=
"list__item"
v-for=
"(vo,inx) in
items
"
:key=
"inx"
>
<div
class=
"list__item"
v-for=
"(vo,inx) in
mallList
"
:key=
"inx"
>
<div
class=
"list__img"
>
<div
class=
"list__img"
>
<!--
<image
:src=
"vo.img"
/>
-->
<!--
<image
:src=
"vo.img"
/>
-->
</div>
</div>
...
@@ -60,13 +60,40 @@
...
@@ -60,13 +60,40 @@
<text>
{{
vo
.
tip
}}
</text>
<text>
{{
vo
.
tip
}}
</text>
</div>
</div>
<div
class=
"money__num"
>
<div
class=
"money__num"
>
<text
class=
"num__one"
>
¥
{{
vo
.
price2
}}
</text>
<text
class=
"num__one"
>
¥
{{
vo
.
currentPrice
/
100
}}
</text>
<text
class=
"num__two"
>
¥
{{
vo
.
price2
}}
</text>
<text
class=
"num__two"
>
¥
{{
vo
.
originalPrice
/
100
}}
</text>
</div>
</div>
</div>
</div>
<div
class=
"list__add"
@
click=
"add"
>
<u-number-box
v-model=
"value"
:min=
"0"
@
click=
"selectMall(vo.id)"
>
<view
slot=
"minus"
class=
"minus"
>
<u-icon
name=
"minus"
size=
"12"
></u-icon>
</view>
<text
slot=
"input"
style=
"width: 50rpx;text-align: center;"
class=
"input"
>
{{
value
}}
</text>
<view
slot=
"plus"
class=
"plus"
>
<u-icon
name=
"plus"
color=
"#FFFFFF"
size=
"12"
></u-icon>
</view>
</u-number-box>
<!--
<div
class=
"list__add"
@
click=
"add"
>
<image
src=
"@/static/index/get-car-code2.png"
/>
<image
src=
"@/static/index/get-car-code2.png"
/>
</div>
</div>
-->
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -76,7 +103,7 @@
...
@@ -76,7 +103,7 @@
<div
class=
"price__bottom"
>
<div
class=
"price__bottom"
>
<div
class=
"price"
>
<div
class=
"price"
>
<div
class=
"price__num"
>
<div
class=
"price__num"
>
共
<span>
{{
nums
}}
</span>
件
共
<span>
{{
selectMallList
.
length
}}
</span>
件
</div>
</div>
<div
class=
"price__all"
>
<div
class=
"price__all"
>
合计
<span
class=
"num__two"
>
¥00.00
</span>
合计
<span
class=
"num__two"
>
¥00.00
</span>
...
@@ -128,6 +155,12 @@ export default {
...
@@ -128,6 +155,12 @@ export default {
addressInfo
:
{},
addressInfo
:
{},
//免费挪车码
//免费挪车码
freeCode
:
{},
freeCode
:
{},
//普通商品列表
mallList
:
[],
value
:
0
,
//
selectMallList
:
[],
}
}
},
},
methods
:
{
methods
:
{
...
@@ -235,10 +268,31 @@ export default {
...
@@ -235,10 +268,31 @@ export default {
}
}
})
})
},
},
getMallList
(){
let
opts
=
{
url
:
'/app/mall/list'
,
method
:
'get'
};
this
.
http
.
httpTokenRequest
(
opts
,
{
classification
:
"1"
}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
this
.
mallList
=
res
.
data
.
data
.
rows
}
})
},
selectMall
(
id
){
console
.
log
(
id
)
let
exist
=
false
this
.
selectMallList
.
forEach
(
element
=>
{
if
(
element
==
id
){
exist
=
true
}
})
if
(
!
exist
){
this
.
selectMallList
.
push
(
id
)
}
}
},
},
onShow
()
{
onShow
()
{
this
.
getAddressList
()
this
.
getAddressList
()
this
.
getMoveCode
()
this
.
getMoveCode
()
this
.
getMallList
()
},
},
};
};
</
script
>
</
script
>
...
@@ -505,7 +559,7 @@ export default {
...
@@ -505,7 +559,7 @@ export default {
.list__money
{
.list__money
{
margin
:
0
20rpx
;
margin
:
0
20rpx
;
margin-left
:
100rpx
;
margin-left
:
100rpx
;
width
:
400rpx
;
.money__title
{
.money__title
{
font-size
:
32rpx
;
font-size
:
32rpx
;
font-family
:
PingFang
SC
;
font-family
:
PingFang
SC
;
...
@@ -560,4 +614,33 @@ export default {
...
@@ -560,4 +614,33 @@ export default {
}
}
}
}
}
}
.minus
{
width
:
22px
;
height
:
22px
;
border-width
:
1px
;
border-color
:
#E6E6E6
;
border-top-left-radius
:
100px
;
border-top-right-radius
:
100px
;
border-bottom-left-radius
:
100px
;
border-bottom-right-radius
:
100px
;
@include
flex
;
justify-content
:
center
;
align-items
:
center
;
}
.input
{
padding
:
0
10px
;
}
.plus
{
width
:
22px
;
height
:
22px
;
background-color
:
#FF0000
;
border-radius
:
50%
;
/* #ifndef APP-NVUE */
display
:
flex
;
/* #endif */
justify-content
:
center
;
align-items
:
center
;
}
</
style
>
</
style
>
pagesB/pages/move-car/myMoveCar.vue
View file @
52086f17
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<view
class=
"appCotent"
>
<view
class=
"appCotent"
>
<div
class=
"myMoveCar"
>
<div
class=
"myMoveCar"
>
<div
class=
"my__search"
>
<div
class=
"my__search"
>
<u-search
placeholder=
"请输入车牌号"
:showAction=
'false'
bgColor=
'#ffffff'
v-model=
"keyword"
></u-search>
<u-search
placeholder=
"请输入车牌号"
:showAction=
'false'
bgColor=
'#ffffff'
v-model=
"keyword"
@
change=
"getMyMoveCodeList"
></u-search>
</div>
</div>
<div
class=
"my__list"
>
<div
class=
"my__list"
>
<scroll-list
ref=
"list"
:option=
"option"
@
load=
"load"
>
<scroll-list
ref=
"list"
:option=
"option"
@
load=
"load"
>
...
@@ -65,32 +65,33 @@ export default {
...
@@ -65,32 +65,33 @@ export default {
},
},
methods
:
{
methods
:
{
// 加载数据
// 加载数据
load
(
paging
)
{
//
load(paging) {
setTimeout
(()
=>
{
//
setTimeout(() => {
let
list
=
[];
//
let list = [];
let
opts
=
{
url
:
'/app/moveCode/list?pageSize='
+
paging
.
size
+
'&pageNum='
+
paging
.
page
,
method
:
'get'
};
//
let opts = { url: '/app/moveCode/list?pageSize='+paging.size+'&pageNum='+paging.page, method: 'get' };
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
//
this.http.httpTokenRequest(opts, {}).then(res => {
if
(
res
.
data
.
code
==
200
)
{
//
if (res.data.code == 200) {
list
=
res
.
data
.
rows
//
list = res.data.rows
this
.
items
=
[...
this
.
items
,
...
list
]
//
this.items = [...this.items, ...list]
// 加载成功 参数对象{list: 当前列表,total: 数据总长度(后端查询的total)}
//
// 加载成功 参数对象{list: 当前列表,total: 数据总长度(后端查询的total)}
this
.
$refs
.
list
.
loadSuccess
({
//
this.$refs.list.loadSuccess({
list
:
this
.
items
,
//
list: this.items,
total
:
res
.
data
.
total
//
total: res.data.total
});
//
});
// 加载失败
//
// 加载失败
// this.$refs.list.loadFail()
//
// this.$refs.list.loadFail()
}
//
}
})
//
})
},
this
.
$u
.
random
(
100
,
1000
));
//
}, this.$u.random(100, 1000));
},
//
},
goView
(
id
){
goView
(
id
){
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pagesB/pages/move-car/moveCarDetail?id='
+
id
url
:
'/pagesB/pages/move-car/moveCarDetail?id='
+
id
})
})
},
},
getMyMoveCodeList
(){
getMyMoveCodeList
(){
let
opts
=
{
url
:
'/app/moveCode/list'
,
method
:
'get'
};
let
opts
=
{
url
:
'/app/moveCode/list?carNo='
+
this
.
keyword
,
method
:
'get'
};
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
this
.
items
=
res
.
data
.
rows
this
.
items
=
res
.
data
.
rows
...
@@ -117,9 +118,12 @@ export default {
...
@@ -117,9 +118,12 @@ export default {
cancelModal
(){
cancelModal
(){
this
.
unbindShow
=
false
this
.
unbindShow
=
false
},
},
searchMoveCode
(){
}
},
},
created
()
{
created
()
{
//
this.getMyMoveCodeList()
this
.
getMyMoveCodeList
()
}
}
}
}
...
...
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