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
2f075c82
Commit
2f075c82
authored
May 09, 2022
by
fwz
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_cd' into dev_cd
parents
d5f1e43f
f13ed3d2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
81 additions
and
13 deletions
+81
-13
shop.vue
pages/shop.vue
+29
-1
myCall.vue
pagesB/pages/move-car/myCall.vue
+24
-2
myRecord.vue
pagesB/pages/move-car/myRecord.vue
+28
-4
myOrder.vue
pagesD/pages/personal/myOrder.vue
+0
-6
No files found.
pages/shop.vue
View file @
2f075c82
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</div>
</div>
<div
class=
"shop__list__one"
>
<div
class=
"shop__list__one"
>
<div
class=
"view__title"
>
车主精选 养车必备
</div>
<div
class=
"view__title"
>
车主精选 养车必备
</div>
<scroll-list
ref=
"list"
:option=
"option"
@
load=
"load"
>
<scroll-list
ref=
"list"
:option=
"option"
@
load=
"load"
@
refresh=
"refresh"
>
<div
class=
"list__one__items"
v-if=
"boutiqueMallList.length>0"
>
<div
class=
"list__one__items"
v-if=
"boutiqueMallList.length>0"
>
<div
class=
"one__item"
v-for=
"(vo,inx) in boutiqueMallList"
:key=
"inx"
@
click=
"goDetail(vo.id)"
>
<div
class=
"one__item"
v-for=
"(vo,inx) in boutiqueMallList"
:key=
"inx"
@
click=
"goDetail(vo.id)"
>
<div
class=
"one__item__img"
>
<div
class=
"one__item__img"
>
...
@@ -103,8 +103,36 @@ export default {
...
@@ -103,8 +103,36 @@ export default {
list
:
this
.
boutiqueMallList
,
list
:
this
.
boutiqueMallList
,
total
:
res
.
data
.
data
.
total
total
:
res
.
data
.
data
.
total
});
});
}
else
{
// 加载失败
this
.
$refs
.
list
.
loadFail
()
}
})
},
this
.
$u
.
random
(
100
,
1000
));
},
// 刷新
refresh
(
paging
)
{
setTimeout
(()
=>
{
let
opts
=
{
url
:
'/app/index/mall/list?pageSize='
+
paging
.
size
+
'&pageNum='
+
paging
.
page
,
method
:
'get'
};
this
.
http
.
httpRequest
(
opts
,
{
classification
:
"2"
}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
let
list
=
res
.
data
.
data
.
rows
this
.
boutiqueMallList
=
list
;
// 加载成功 参数对象{list: 当前列表,total: 数据总长度(后端查询的total)}
this
.
$refs
.
list
.
refreshSuccess
({
list
:
this
.
boutiqueMallList
,
total
:
res
.
data
.
data
.
total
});
// 加载失败
// 加载失败
// this.$refs.list.loadFail()
// this.$refs.list.loadFail()
}
else
{
this
.
$refs
.
list
.
refreshFail
()
}
}
})
})
},
this
.
$u
.
random
(
100
,
1000
));
},
this
.
$u
.
random
(
100
,
1000
));
...
...
pagesB/pages/move-car/myCall.vue
View file @
2f075c82
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<
template
>
<
template
>
<view
class=
"appCotent"
>
<view
class=
"appCotent"
>
<div
class=
"myRecord"
>
<div
class=
"myRecord"
>
<scroll-list
ref=
"list"
:option=
"option"
@
load=
"load"
>
<scroll-list
ref=
"list"
:option=
"option"
@
load=
"load"
@
refresh=
"refresh"
>
<div
class=
"record__item"
v-for=
"(vo,inx) in items"
:key=
"inx"
>
<div
class=
"record__item"
v-for=
"(vo,inx) in items"
:key=
"inx"
>
<div
class=
"item__top"
>
<div
class=
"item__top"
>
<div
class=
"top__time"
>
<div
class=
"top__time"
>
...
@@ -65,11 +65,33 @@ export default {
...
@@ -65,11 +65,33 @@ export default {
list
:
this
.
items
,
list
:
this
.
items
,
total
:
res
.
data
.
total
total
:
res
.
data
.
total
});
});
}
else
{
// 加载失败
// 加载失败
//
this.$refs.list.loadFail()
this
.
$refs
.
list
.
loadFail
()
}
}
})
})
},
this
.
$u
.
random
(
100
,
1000
));
},
// 刷新
refresh
(
paging
)
{
setTimeout
(()
=>
{
let
list
=
[];
let
opts
=
{
url
:
'/app/moveLog/apply/list?pageSize='
+
paging
.
size
+
'&pageNum='
+
paging
.
page
,
method
:
'get'
};
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
list
=
res
.
data
.
rows
this
.
items
=
list
// 加载成功 参数对象{list: 当前列表,total: 数据总长度(后端查询的total)}
this
.
$refs
.
list
.
refreshSuccess
({
list
:
this
.
items
,
total
:
res
.
data
.
total
});
}
else
{
// 加载失败
this
.
$refs
.
list
.
refreshFail
()
}
})
},
this
.
$u
.
random
(
100
,
1000
));
},
this
.
$u
.
random
(
100
,
1000
));
},
},
goDetail
(
id
){
goDetail
(
id
){
...
...
pagesB/pages/move-car/myRecord.vue
View file @
2f075c82
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<
template
>
<
template
>
<view
class=
"appCotent"
>
<view
class=
"appCotent"
>
<div
class=
"myRecord"
>
<div
class=
"myRecord"
>
<scroll-list
ref=
"list"
:option=
"option"
@
load=
"load"
>
<scroll-list
ref=
"list"
:option=
"option"
@
load=
"load"
@
refresh=
"refresh"
>
<div
class=
"record__item"
v-for=
"(vo,inx) in items"
:key=
"inx"
>
<div
class=
"record__item"
v-for=
"(vo,inx) in items"
:key=
"inx"
>
<div
class=
"item__top"
>
<div
class=
"item__top"
>
<div
class=
"top__time"
>
<div
class=
"top__time"
>
...
@@ -67,11 +67,35 @@ export default {
...
@@ -67,11 +67,35 @@ export default {
list
:
this
.
items
,
list
:
this
.
items
,
total
:
res
.
data
.
total
total
:
res
.
data
.
total
});
});
}
else
{
// 加载失败
this
.
$refs
.
list
.
loadFail
()
}
}
})
})
},
this
.
$u
.
random
(
100
,
1000
));
},
// 刷新
refresh
(
paging
)
{
setTimeout
(()
=>
{
let
list
=
[];
let
opts
=
{
url
:
'/app/moveLog/my/list?pageSize='
+
paging
.
size
+
'&pageNum='
+
paging
.
page
,
method
:
'get'
};
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
list
=
res
.
data
.
rows
this
.
items
=
[...
this
.
items
,
...
list
]
// 加载成功 参数对象{list: 当前列表,total: 数据总长度(后端查询的total)}
this
.
$refs
.
list
.
refreshSuccess
({
list
:
this
.
items
,
total
:
res
.
data
.
total
});
}
else
{
// 加载失败
// 加载失败
// this.$refs.list.loadFail()
this
.
$refs
.
list
.
refreshFail
()
}
})
},
this
.
$u
.
random
(
100
,
1000
));
},
this
.
$u
.
random
(
100
,
1000
));
},
},
goDetail
(
id
)
{
goDetail
(
id
)
{
...
...
pagesD/pages/personal/myOrder.vue
View file @
2f075c82
...
@@ -366,12 +366,6 @@ export default {
...
@@ -366,12 +366,6 @@ export default {
onShow
()
{
onShow
()
{
//this.load()
//this.load()
},
},
onLoad
(
e
)
{
if
(
e
.
current
)
{
this
.
current
=
parseInt
(
e
.
current
)
}
},
}
}
</
script
>
</
script
>
...
...
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