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
6f9ee5b1
Commit
6f9ee5b1
authored
Jun 25, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图片更换
parent
5901682e
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
47 deletions
+46
-47
appliedPartsCell.vue
src/components/parts/appliedPartsCell.vue
+1
-1
spareCell.vue
src/components/parts/spareCell.vue
+1
-1
index.vue
src/pages/mine/warehouse/index.vue
+18
-37
return.vue
src/pages/mine/warehouse/return.vue
+12
-3
searchParts.vue
src/pages/mine/warehouse/searchParts.vue
+1
-2
spare.vue
src/pages/mine/warehouse/spare.vue
+13
-3
No files found.
src/components/parts/appliedPartsCell.vue
View file @
6f9ee5b1
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
return
array
return
array
},
},
placeholderImage
()
{
placeholderImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'
logo
.png'
return
process
.
uniEnv
.
qn_base_url
+
'
morentupian
.png'
},
},
customStyle
()
{
customStyle
()
{
return
{
return
{
...
...
src/components/parts/spareCell.vue
View file @
6f9ee5b1
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
return
this
.
item
.
images
?
process
.
uniEnv
.
systemUrl
.
apiUrl
+
this
.
item
.
images
.
split
(
','
).
shift
()
:
this
.
placeholderImage
return
this
.
item
.
images
?
process
.
uniEnv
.
systemUrl
.
apiUrl
+
this
.
item
.
images
.
split
(
','
).
shift
()
:
this
.
placeholderImage
},
},
placeholderImage
()
{
placeholderImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'
logo
.png'
return
process
.
uniEnv
.
qn_base_url
+
'
morentupian
.png'
},
},
},
},
methods
:
{
methods
:
{
...
...
src/pages/mine/warehouse/index.vue
View file @
6f9ee5b1
...
@@ -4,11 +4,9 @@
...
@@ -4,11 +4,9 @@
<u-navbar
back-icon-color=
"#333333"
background=
"#FFFFFF"
title=
"我的配件"
titleColor=
"#333333"
<u-navbar
back-icon-color=
"#333333"
background=
"#FFFFFF"
title=
"我的配件"
titleColor=
"#333333"
:border-bottom=
"false"
title-bold
></u-navbar>
:border-bottom=
"false"
title-bold
></u-navbar>
<view
class=
"search-view"
>
<view
class=
"search-view"
>
<view
class=
"search-btn"
@
click=
"handleClickSearch"
>
<u-search
:clearabled=
"false"
@
focus=
"handleClickSearch"
@
custom=
"handleClickSearch"
placeholder=
"请输入关键字"
:action-style=
"actionStyle"
placeholder-color=
"#999999"
<image
class=
"search-image"
mode=
"widthFix"
:src=
"sousuoImage"
></image>
color=
"#333333"
bg-color=
"#FFFFFF"
height=
"72"
search-icon-color=
"#999999"
>
<text
class=
"search-btn-placeholder"
>
请输入关键字
</text>
</u-search>
</view>
<text
class=
"search-btn-text"
>
搜索
</text>
</view>
</view>
<view
class=
"u-tabs-box"
>
<view
class=
"u-tabs-box"
>
<u-tabs
height=
"66"
activeColor=
"#2272FF"
bg-color=
"none"
inactive-color=
"#999"
bar-height=
"4"
<u-tabs
height=
"66"
activeColor=
"#2272FF"
bg-color=
"none"
inactive-color=
"#999"
bar-height=
"4"
...
@@ -23,7 +21,7 @@
...
@@ -23,7 +21,7 @@
<view
class=
"loading-view"
v-if=
"!loaded"
>
<view
class=
"loading-view"
v-if=
"!loaded"
>
<u-loading
mode=
"flower"
></u-loading>
<u-loading
mode=
"flower"
></u-loading>
</view>
</view>
<NoOrder
v-else-if=
"noParts"
imageName=
"
zwdd
.png"
text=
"当前暂无配件信息"
:customStyle=
"noPartsCustomStyle"
/>
<NoOrder
v-else-if=
"noParts"
imageName=
"
wupeijianxinxi
.png"
text=
"当前暂无配件信息"
:customStyle=
"noPartsCustomStyle"
/>
<template
v-else
>
<template
v-else
>
<view
v-for=
"(item, index) in partsList"
:key=
"item.id"
>
<view
v-for=
"(item, index) in partsList"
:key=
"item.id"
>
<AppliedCell
@
operate=
"handleOperate"
:info=
"item"
@
action=
"handleClickCell"
></AppliedCell>
<AppliedCell
@
operate=
"handleOperate"
:info=
"item"
@
action=
"handleClickCell"
></AppliedCell>
...
@@ -111,6 +109,13 @@
...
@@ -111,6 +109,13 @@
'width'
:
'200rpx'
'width'
:
'200rpx'
}
}
},
},
actionStyle
()
{
return
{
'font-size'
:
'32rpx'
,
'color'
:
'#2272FF'
,
'margin-left'
:
'20rpx'
}
},
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
getApp
().
trackPage
(
'我的配件页'
)
getApp
().
trackPage
(
'我的配件页'
)
...
@@ -206,7 +211,6 @@
...
@@ -206,7 +211,6 @@
}
}
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.ware-house
{
.ware-house
{
padding
:
0
30rpx
;
padding
:
0
30rpx
;
...
@@ -214,39 +218,16 @@
...
@@ -214,39 +218,16 @@
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
.search-view
{
.search-view
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
margin-bottom
:
20rpx
;
margin-bottom
:
20rpx
;
.search-btn
{
margin-top
:
10rpx
;
height
:
72rpx
;
/
deep
/
.u-search
.u-content
{
background-color
:
#ffffff
;
border-radius
:
36rpx
;
color
:
#999999
;
display
:
flex
;
align-items
:
center
;
width
:
100%
;
padding-left
:
40rpx
;
padding-left
:
40rpx
;
.search-image
{
width
:
36rpx
;
height
:
32rpx
;
flex-shrink
:
0
;
margin-right
:
24rpx
;
}
.search-btn-placeholder
{
line-height
:
36rpx
;
font-weight
:
400
;
font-size
:
26rpx
;
}
}
/
deep
/
.u-search
.u-input
{
margin
:
0
20rpx
;
}
}
.search-btn-text
{
/
deep
/
.u-search
.u-icon--right
.u-iconfont
{
line-height
:
36rpx
;
font-size
:
36rpx
!
important
;
font-weight
:
400
;
font-size
:
32rpx
;
color
:
#2272FF
;
width
:
110rpx
;
text-align
:
right
;
}
}
}
}
.u-tabs-box
{
.u-tabs-box
{
...
...
src/pages/mine/warehouse/return.vue
View file @
6f9ee5b1
...
@@ -6,11 +6,10 @@
...
@@ -6,11 +6,10 @@
<view
class=
"search-view"
>
<view
class=
"search-view"
>
<u-search
v-model=
"keyword"
:action-text=
"searchButtonText"
@
search=
"handleClickSearch"
@
clear=
"handleClear"
<u-search
v-model=
"keyword"
:action-text=
"searchButtonText"
@
search=
"handleClickSearch"
@
clear=
"handleClear"
@
custom=
"handleClickButton"
placeholder=
"请输入关键字"
:action-style=
"actionStyle"
placeholder-color=
"#999999"
@
custom=
"handleClickButton"
placeholder=
"请输入关键字"
:action-style=
"actionStyle"
placeholder-color=
"#999999"
color=
"#333333"
bg-color=
"#FFFFFF"
height=
"72"
>
color=
"#333333"
bg-color=
"#FFFFFF"
height=
"72"
search-icon-color=
"#999999"
>
</u-search>
</u-search>
</view>
</view>
<NoOrder
v-if=
"noParts"
imageName=
"zwdd.png"
text=
"当前暂无返件信息"
:customStyle=
"noPartsCustomStyle"
/>
<NoOrder
v-if=
"noParts"
imageName=
"wupeijianxinxi.png"
text=
"当前暂无返件信息"
:customStyle=
"noPartsCustomStyle"
/>
<view
v-else
class=
"tab-view"
>
<view
v-else
class=
"tab-view"
>
<scroll-view
scroll-y
style=
"height: 100%;width: 100%;"
@
scrolltolower=
"reachBottom"
scroll-anchoring
<scroll-view
scroll-y
style=
"height: 100%;width: 100%;"
@
scrolltolower=
"reachBottom"
scroll-anchoring
refresher-enabled=
"true"
:refresher-triggered=
"triggered"
:refresher-threshold=
"100"
refresher-enabled=
"true"
:refresher-triggered=
"triggered"
:refresher-threshold=
"100"
...
@@ -163,6 +162,16 @@
...
@@ -163,6 +162,16 @@
flex-direction
:
column
;
flex-direction
:
column
;
.search-view
{
.search-view
{
margin-bottom
:
30rpx
;
margin-bottom
:
30rpx
;
margin-top
:
10rpx
;
/
deep
/
.u-search
.u-content
{
padding-left
:
40rpx
;
}
/
deep
/
.u-search
.u-input
{
margin
:
0
20rpx
;
}
/
deep
/
.u-search
.u-icon--right
.u-iconfont
{
font-size
:
36rpx
!
important
;
}
}
}
.tab-view
{
.tab-view
{
...
...
src/pages/mine/warehouse/searchParts.vue
View file @
6f9ee5b1
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
}
else
{
}
else
{
console
.
log
(
res
.
message
)
console
.
log
(
res
.
message
)
}
}
self
.
loaded
=
true
this
.
loaded
=
true
});
});
},
},
handleOperate
(
type
)
{
handleOperate
(
type
)
{
...
@@ -149,7 +149,6 @@
...
@@ -149,7 +149,6 @@
padding
:
10rpx
30rpx
20rpx
30rpx
;
padding
:
10rpx
30rpx
20rpx
30rpx
;
.empty-result
{
.empty-result
{
padding-top
:
354rpx
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
justify-content
:
center
;
justify-content
:
center
;
...
...
src/pages/mine/warehouse/spare.vue
View file @
6f9ee5b1
...
@@ -6,10 +6,10 @@
...
@@ -6,10 +6,10 @@
<view
class=
"search-view"
>
<view
class=
"search-view"
>
<u-search
v-model=
"keyword"
:action-text=
"searchButtonText"
@
search=
"handleClickSearch"
@
clear=
"handleClear"
<u-search
v-model=
"keyword"
:action-text=
"searchButtonText"
@
search=
"handleClickSearch"
@
clear=
"handleClear"
@
custom=
"handleClickButton"
placeholder=
"请输入关键字"
:action-style=
"actionStyle"
placeholder-color=
"#999999"
@
custom=
"handleClickButton"
placeholder=
"请输入关键字"
:action-style=
"actionStyle"
placeholder-color=
"#999999"
color=
"#333333"
bg-color=
"#FFFFFF"
height=
"72"
>
color=
"#333333"
bg-color=
"#FFFFFF"
height=
"72"
search-icon-color=
"#999999"
>
</u-search>
</u-search>
</view>
</view>
<NoOrder
v-if=
"noParts"
imageName=
"
zwdd
.png"
text=
"当前暂无备件信息"
:customStyle=
"noPartsCustomStyle"
/>
<NoOrder
v-if=
"noParts"
imageName=
"
wupeijianxinxi
.png"
text=
"当前暂无备件信息"
:customStyle=
"noPartsCustomStyle"
/>
<template
v-else
>
<template
v-else
>
<view
class=
"title-view"
>
<view
class=
"title-view"
>
<view>
备件列表
</view>
<view>
备件列表
</view>
...
@@ -225,6 +225,16 @@
...
@@ -225,6 +225,16 @@
.search-view
{
.search-view
{
margin-bottom
:
30rpx
;
margin-bottom
:
30rpx
;
margin-top
:
10rpx
;
/
deep
/
.u-search
.u-content
{
padding-left
:
40rpx
;
}
/
deep
/
.u-search
.u-input
{
margin
:
0
20rpx
;
}
/
deep
/
.u-search
.u-icon--right
.u-iconfont
{
font-size
:
36rpx
!
important
;
}
}
}
.title-view
{
.title-view
{
...
...
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