Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
user
Overview
Overview
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
hooloo
mp
user
Commits
7c5d6d65
Commit
7c5d6d65
authored
2 years ago
by
weijiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化订单UI
parent
5e7d1237
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
33 deletions
+32
-33
orderSubPackage/pages/orderInfo/index.vue
+0
-0
pages/order/order.vue
+32
-33
No files found.
orderSubPackage/pages/orderInfo/index.vue
View file @
7c5d6d65
This diff is collapsed.
Click to expand it.
pages/order/order.vue
View file @
7c5d6d65
...
...
@@ -19,8 +19,8 @@
<view
class=
"order_item"
v-for=
"item in list"
:key=
"item.id"
@
click=
"openInfo(item)"
>
<view
class=
"order_header"
>
<view>
<
h3
class=
"order_adrass"
>
{{
item
.
shop
.
name
}}
</h3
>
<
text
class=
"order_time"
>
{{
item
.
createdAt
}}
</text
>
<
view
class=
"order_adrass"
>
{{
item
.
shop
.
name
}}
</view
>
<
view
class=
"order_time"
>
{{
item
.
createdAt
}}
</view
>
</view>
<view
class=
"order_status"
>
<text>
{{
getStateText
(
item
.
state
)
}}
</text>
...
...
@@ -29,9 +29,8 @@
</view>
<div
class=
"order_content"
>
<view
class=
"order_content_box1"
>
<view
class=
"goods_item"
v-for=
"good in item.orderDetails"
:key=
"good.id"
>
<image
class=
"goods_img"
v-if=
"jsonParse(good.goods.pics).thumbnailApplet"
:src=
"jsonParse(good.goods.pics).thumbnailApplet"
></image>
<view
class=
"goods_item"
v-for=
"(good,index) in item.orderDetails"
:key=
"good.id"
>
<image
class=
"goods_img"
v-if=
"jsonParse(good.goods.pics).thumbnailApplet"
:src=
"jsonParse(good.goods.pics).thumbnailApplet"
></image>
<image
v-else
class=
"goods_img"
:src=
"jsonParse(good.goods.pics).thumbnail"
></image>
<view
class=
"goods_text"
>
...
...
@@ -48,16 +47,16 @@
</view>
</view>
</view>
</view>
</view>
<view
v-if=
"item.state == 2 || item.state == 3 || item.state == 4 || item.state == 5"
class=
"qr_code"
>
<view
v-if=
"index==item.orderDetails.length-1 && (item.state == 2 || item.state == 3 || item.state == 4 || item.state == 5)"
class=
"qr_code"
>
<image
class=
"qr_code_img"
src=
"/static/imgs/icon-barcode.png"
></image>
<view
class=
"qr_text"
>
点击二维码取单
</view>
</view>
</view>
</view>
</div>
<view
class=
"order_footer"
>
<view
class=
"total"
>
共
{{
orderDetailsSize
(
item
.
orderDetails
)
}}
件商品
合计
<text
class=
"price"
>
¥
{{
Utils
.
isInteger
(
item
.
amount
)
}}
</text>
共
{{
orderDetailsSize
(
item
.
orderDetails
)
}}
件商品
实付
<text
class=
"price"
>
¥
{{
Utils
.
isInteger
(
item
.
amount
)
}}
</text>
</view>
<a
class=
"btn"
@
click
.
stop=
"PayNow(item)"
v-if=
"item.state == 1"
type=
"primary"
>
立刻支付
</a>
<a
class=
"btn"
v-else
@
click
.
stop=
"oneMoreOrder(item)"
type=
"primary"
>
再来一单
</a>
...
...
@@ -251,7 +250,7 @@ export default {
.empty_text
{
width
:
500
rpx
;
margin-top
:
3
5
rpx
;
margin-top
:
3
2
rpx
;
text-align
:
center
;
font-size
:
24
rpx
;
...
...
@@ -283,14 +282,13 @@ export default {
/* 兼容老版本的方法 */
-webkit-transform
:
translateX
(
-50%
);
transform
:
translate
(
-50%
);
margin-top
:
3
11
rpx
;
margin-top
:
3
52
rpx
;
.empty_icon
{
width
:
324
rpx
;
height
:
236
rpx
;
}
.empty_text
{
margin-top
:
3
5
rpx
;
margin-top
:
3
2
rpx
;
text-align
:
center
;
font-size
:
24
rpx
;
...
...
@@ -299,7 +297,7 @@ export default {
color
:
#999999
;
}
.empty_button
{
margin-top
:
3
5
rpx
;
margin-top
:
3
6
rpx
;
width
:
167
rpx
;
height
:
64
rpx
;
border-radius
:
2
rpx
;
...
...
@@ -322,9 +320,9 @@ export default {
.order_item
{
width
:
686
rpx
;
background
:
#FFFFFF
;
margin
:
3
0
rpx
auto
0
;
margin
:
3
2
rpx
auto
0
;
box-sizing
:
border-box
;
padding
:
25
rpx
22
rpx
32
rpx
32
rpx
;
padding
:
25
rpx
30
rpx
30
rpx
30
rpx
;
.order_header
{
display
:
flex
;
...
...
@@ -335,11 +333,14 @@ export default {
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#333333
;
line-height
:
40
rpx
;
}
.order_time
{
font-size
:
24
rpx
;
font-family
:
ArialMT
;
margin-top
:
4
rpx
;
line-height
:
28
rpx
;
color
:
#999999
;
}
...
...
@@ -351,6 +352,7 @@ export default {
display
:
flex
;
align-items
:
baseline
;
justify-content
:
flex-start
;
line-height
:
34
rpx
;
.xiaojiantou
{
width
:
12
rpx
;
height
:
16
rpx
;
...
...
@@ -361,7 +363,6 @@ export default {
}
.order_content
{
margin-top
:
42
rpx
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
...
...
@@ -370,23 +371,25 @@ export default {
flex
:
1
;
}
.goods_item
{
margin-top
:
42
rpx
;
display
:
flex
;
//
align-items
:
center
;
.qr_code
{
font-size
:
16
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#666666
;
line-height
:
22
rpx
;
text-align
:
center
;
margin-right
:
10
rpx
;
margin-left
:
39
rpx
;
margin-left
:
38
rpx
;
.qr_code_img
{
vertical-align
:
bottom
;
width
:
76
rpx
;
height
:
76
rpx
;
}
.qr_text
{
margin-top
:
10
rpx
;
line-height
:
28
rpx
;
margin-top
:
10
rpx
;
font-size
:
20
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
...
...
@@ -394,11 +397,6 @@ export default {
}
}
.goods_item
{
display
:
flex
;
align-items
:
center
;
.goods_img
{
height
:
96
rpx
;
width
:
96
rpx
;
...
...
@@ -414,21 +412,22 @@ export default {
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#666666
;
margin-top
:
10
rpx
;
line-height
:
40
rpx
;
}
.goods_spce
{
margin-top
:
2
.6
rpx
;
margin-top
:
2
rpx
;
font-size
:
24
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
line-height
:
34
rpx
;
color
:
#999999
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
}
}
}
}
...
...
@@ -436,7 +435,7 @@ export default {
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-top
:
4
1
rpx
;
margin-top
:
4
0
rpx
;
.total
{
font-size
:
28
rpx
;
...
...
This diff is collapsed.
Click to expand it.
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