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
c5b38348
Commit
c5b38348
authored
Jun 24, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配件单详情和物流页面间传值
parent
b51939ba
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
21 deletions
+14
-21
express.vue
src/pages/mine/warehouse/express.vue
+2
-3
index.vue
src/pages/mine/warehouse/index.vue
+2
-2
partsDetail.vue
src/pages/mine/warehouse/partsDetail.vue
+10
-16
No files found.
src/pages/mine/warehouse/express.vue
View file @
c5b38348
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
</u-navbar>
</u-navbar>
<view
class=
"content-view"
>
<view
class=
"content-view"
>
<view
class=
"contacts-view"
>
<view
class=
"contacts-view"
>
<view
:style=
"
{'color': titleColor}">
{{
title
}}
</view>
<view><image
class=
"image-view"
:src=
"imageUrl"
></image></view>
<view><image
class=
"image-view"
:src=
"imageUrl"
></image></view>
<view
class=
"right-view"
>
<view
class=
"right-view"
>
<view
class=
"title-view"
>
{{
title
}}
</view>
<view
class=
"title-view"
>
{{
title
}}
</view>
...
@@ -77,6 +76,7 @@
...
@@ -77,6 +76,7 @@
var
pages
=
getCurrentPages
();
var
pages
=
getCurrentPages
();
if
(
pages
.
length
>=
2
)
{
if
(
pages
.
length
>=
2
)
{
var
page
=
pages
[
pages
.
length
-
2
];
var
page
=
pages
[
pages
.
length
-
2
];
console
.
log
(
'-------page.info------'
,
page
.
info
)
this
.
info
=
page
.
info
this
.
info
=
page
.
info
}
}
this
.
getLogistics
()
this
.
getLogistics
()
...
@@ -204,8 +204,7 @@
...
@@ -204,8 +204,7 @@
align-items
:
center
;
align-items
:
center
;
.copy-view
{
.copy-view
{
color
:
#2272FF
;
color
:
#2272FF
;
width
:
80rpx
;
padding-left
:
30rpx
;
text-align
:
right
;
}
}
}
}
}
}
...
...
src/pages/mine/warehouse/index.vue
View file @
c5b38348
...
@@ -151,7 +151,7 @@
...
@@ -151,7 +151,7 @@
// },
// },
// tab栏切换
// tab栏切换
change
(
index
)
{
change
(
index
)
{
this
.
current
[
this
.
curNow
]
=
index
;
this
.
current
Index
=
index
;
this
.
reloadPartsList
()
this
.
reloadPartsList
()
},
},
...
@@ -290,7 +290,7 @@
...
@@ -290,7 +290,7 @@
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
margin-bottom
:
3
0rpx
;
margin-bottom
:
2
0rpx
;
.search-btn
{
.search-btn
{
height
:
72rpx
;
height
:
72rpx
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
...
...
src/pages/mine/warehouse/partsDetail.vue
View file @
c5b38348
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<view
class=
"parts-detail"
>
<view
class=
"parts-detail"
>
<u-navbar
back-icon-color=
"#333333"
background=
"#F4F5F7"
titleColor=
"#333333"
:border-bottom=
"false"
title-bold
>
<u-navbar
back-icon-color=
"#333333"
background=
"#F4F5F7"
titleColor=
"#333333"
:border-bottom=
"false"
title-bold
>
</u-navbar>
</u-navbar>
<view
class=
"title-text"
:style=
"
{'color': titleColor}"
>
<view
class=
"title-text"
>
<text>
{{
title
}}
</text>
<text>
{{
title
}}
</text>
<view
class=
"express-view"
@
click=
"$u.throttle(handleClickExpress, 500)"
>
<view
class=
"express-view"
@
click=
"$u.throttle(handleClickExpress, 500)"
>
<text>
查看物流信息
</text>
<text>
查看物流信息
</text>
...
@@ -40,8 +40,8 @@
...
@@ -40,8 +40,8 @@
<text>
{{
value
}}
:
</text>
<text>
{{
value
}}
:
</text>
<text
@
longpress=
"handleLongpress(key, detail[key] )"
>
{{
detail
[
key
]
}}
</text>
<text
@
longpress=
"handleLongpress(key, detail[key] )"
>
{{
detail
[
key
]
}}
</text>
</view>
</view>
<
view
class=
"copy-view"
v-if=
"key == 'orderNumber'"
@
click=
"$u.throttle(handleClickCopy, 500)"
>
<
text
class=
"copy-view"
v-if=
"key == 'orderNumber'"
@
click=
"$u.throttle(handleClickCopy, 500)"
>
复制
</
view
>
复制
</
text
>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -102,16 +102,6 @@
...
@@ -102,16 +102,6 @@
'1'
:
'已取消'
'1'
:
'已取消'
}
}
},
},
titleColor
()
{
switch
(
String
(
this
.
info
.
status
))
{
case
'-1'
:
// 审核未通过
return
'#FA5A49'
case
'1'
:
// 已取消
return
'#666666'
default
:
return
'#2272FF'
}
},
total
()
{
// 合计
total
()
{
// 合计
var
i
=
0
var
i
=
0
for
(
var
item
of
this
.
info
.
items
)
{
for
(
var
item
of
this
.
info
.
items
)
{
...
@@ -163,6 +153,11 @@
...
@@ -163,6 +153,11 @@
},
},
// 查看物流
// 查看物流
handleClickExpress
()
{
handleClickExpress
()
{
var
pages
=
getCurrentPages
();
if
(
pages
.
length
>=
1
)
{
var
page
=
pages
[
pages
.
length
-
1
];
page
.
info
=
this
.
info
}
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'pages/mine/warehouse/express'
url
:
'pages/mine/warehouse/express'
})
})
...
@@ -326,8 +321,7 @@
...
@@ -326,8 +321,7 @@
.copy-view
{
.copy-view
{
color
:
#2272FF
;
color
:
#2272FF
;
width
:
80rpx
;
padding-left
:
30rpx
;
text-align
:
right
;
}
}
}
}
}
}
...
...
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