Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
8485f4f5
Commit
8485f4f5
authored
Jun 28, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
备件订单页面滚动
parent
34119e41
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
25 deletions
+27
-25
appliedPartsCell.vue
src/components/parts/appliedPartsCell.vue
+1
-1
index.vue
src/pages/mine/warehouse/index.vue
+26
-24
No files found.
src/components/parts/appliedPartsCell.vue
View file @
8485f4f5
...
...
@@ -122,7 +122,7 @@
return
'#2272FF'
}
},
// 待签收 15 -> 已签收 20;
10
待审核 1 -> 已取消 -1
// 待签收 15 -> 已签收 20; 待审核 1 -> 已取消 -1
willStatuses
()
{
return
{
'1'
:
'-1'
,
...
...
src/pages/mine/warehouse/index.vue
View file @
8485f4f5
...
...
@@ -13,26 +13,28 @@
<u-tabs
height=
"66"
activeColor=
"#2272FF"
bg-color=
"none"
inactive-color=
"#999"
bar-height=
"4"
bar-width=
"44"
:offset=
"[0,0]"
:list=
"list"
count=
"total"
:current=
"currentIndex"
@
change=
"change"
:is-scroll=
"false"
font-size=
"28"
bold
></u-tabs>
</view>
<scroll-view
scroll-y
style=
"height: 100%;width: 100%;"
@
scrolltolower=
"reachBottom"
scroll-anchoring
refresher-enabled=
"true"
:refresher-triggered=
"triggered"
:refresher-threshold=
"100"
@
scroll=
"scroll"
:scroll-top=
"scrollTop"
refresher-background=
"#F4F5F7"
@
refresherpulling=
"triggered = true"
@
refresherrefresh=
"onRefresh"
@
refresherrestore=
"onRestore"
enable-back-to-top
>
<view
class=
"loading-view"
v-if=
"!loaded"
>
<u-loading
mode=
"flower"
></u-loading>
</view>
<NoOrder
v-else-if=
"noParts"
imageName=
"wupeijianxinxi.png"
text=
"当前暂无配件信息"
:customStyle=
"noPartsCustomStyle"
/>
<template
v-else
>
<view
v-for=
"(item, index) in partsList"
:key=
"item.id"
>
<AppliedCell
@
operate=
"handleOperate"
:info=
"item"
@
action=
"handleClickCell"
@
express=
"handleClickExpress"
></AppliedCell>
</view>
<view
class=
"load-more-view"
>
<u-loadmore
v-show=
"(pageNumber == 1 && loaded) || pageNumber > 2"
:status=
"loadStatus"
bgColor=
"#F4F5F7"
></u-loadmore>
</view>
<view
class=
"tab-view"
>
<scroll-view
scroll-y
style=
"height: 100%;width: 100%;"
@
scrolltolower=
"reachBottom"
scroll-anchoring
refresher-enabled=
"true"
:refresher-triggered=
"triggered"
:refresher-threshold=
"100"
@
scroll=
"scroll"
:scroll-top=
"scrollTop"
refresher-background=
"#F4F5F7"
@
refresherpulling=
"triggered = true"
@
refresherrefresh=
"onRefresh"
@
refresherrestore=
"onRestore"
enable-back-to-top
>
<view
class=
"loading-view"
v-if=
"!loaded"
>
<u-loading
mode=
"flower"
></u-loading>
</view>
</
template
>
</scroll-view>
<NoOrder
v-else-if=
"noParts"
imageName=
"wupeijianxinxi.png"
text=
"当前暂无配件信息"
:customStyle=
"noPartsCustomStyle"
/>
<template
v-else
>
<view
v-for=
"(item, index) in partsList"
:key=
"item.id"
>
<AppliedCell
@
operate=
"handleOperate"
:info=
"item"
@
action=
"handleClickCell"
@
express=
"handleClickExpress"
></AppliedCell>
</view>
<view
class=
"load-more-view"
>
<u-loadmore
v-show=
"(pageNumber == 1 && loaded) || pageNumber > 2"
:status=
"loadStatus"
bgColor=
"#F4F5F7"
></u-loadmore>
</view>
</
template
>
</scroll-view>
</view>
<view
class=
"fixed-button"
>
<ApplyButton
:type=
"buttonType"
@
click=
"handleClickApply"
/>
</view>
...
...
@@ -161,7 +163,7 @@
this
.
_freshing
=
false
;
if
(
this
.
pageNumber
==
1
)
{
this
.
partsList
=
[]
}
}
let
list
=
res
.
data
||
[]
this
.
partsList
.
push
(...
list
)
this
.
loadStatus
=
list
.
length
<
this
.
pageSize
?
'nomore'
:
'loadmore'
...
...
@@ -279,9 +281,9 @@
margin-bottom
:
30rpx
;
}
//
.tab-view {
//
height: 100%;
//
overflow: auto;
.tab-view
{
height
:
100%
;
overflow
:
auto
;
.load-more-view
{
margin-bottom
:
20rpx
;
...
...
@@ -295,7 +297,7 @@
margin-top
:
300rpx
;
position
:
absolute
;
}
//
}
}
.fixed-button
{
position
:
fixed
;
...
...
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