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
Jun 29, 2022
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 @@
...
@@ -19,8 +19,8 @@
<view
class=
"order_item"
v-for=
"item in list"
:key=
"item.id"
@
click=
"openInfo(item)"
>
<view
class=
"order_item"
v-for=
"item in list"
:key=
"item.id"
@
click=
"openInfo(item)"
>
<view
class=
"order_header"
>
<view
class=
"order_header"
>
<view>
<view>
<
h3
class=
"order_adrass"
>
{{
item
.
shop
.
name
}}
</h3
>
<
view
class=
"order_adrass"
>
{{
item
.
shop
.
name
}}
</view
>
<
text
class=
"order_time"
>
{{
item
.
createdAt
}}
</text
>
<
view
class=
"order_time"
>
{{
item
.
createdAt
}}
</view
>
</view>
</view>
<view
class=
"order_status"
>
<view
class=
"order_status"
>
<text>
{{
getStateText
(
item
.
state
)
}}
</text>
<text>
{{
getStateText
(
item
.
state
)
}}
</text>
...
@@ -29,9 +29,8 @@
...
@@ -29,9 +29,8 @@
</view>
</view>
<div
class=
"order_content"
>
<div
class=
"order_content"
>
<view
class=
"order_content_box1"
>
<view
class=
"order_content_box1"
>
<view
class=
"goods_item"
v-for=
"good in item.orderDetails"
:key=
"good.id"
>
<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"
<image
class=
"goods_img"
v-if=
"jsonParse(good.goods.pics).thumbnailApplet"
:src=
"jsonParse(good.goods.pics).thumbnailApplet"
></image>
:src=
"jsonParse(good.goods.pics).thumbnailApplet"
></image>
<image
v-else
class=
"goods_img"
:src=
"jsonParse(good.goods.pics).thumbnail"
></image>
<image
v-else
class=
"goods_img"
:src=
"jsonParse(good.goods.pics).thumbnail"
></image>
<view
class=
"goods_text"
>
<view
class=
"goods_text"
>
...
@@ -48,16 +47,16 @@
...
@@ -48,16 +47,16 @@
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view
v-if=
"index==item.orderDetails.length-1 && (item.state == 2 || item.state == 3 || item.state == 4 || item.state == 5)"
class=
"qr_code"
>
</view>
<view
v-if=
"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>
<image
class=
"qr_code_img"
src=
"/static/imgs/icon-barcode.png"
></image>
<view
class=
"qr_text"
>
点击二维码取单
</view>
<view
class=
"qr_text"
>
点击二维码取单
</view>
</view>
</view>
</view>
</view>
</div>
</div>
<view
class=
"order_footer"
>
<view
class=
"order_footer"
>
<view
class=
"total"
>
<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>
</view>
<a
class=
"btn"
@
click
.
stop=
"PayNow(item)"
v-if=
"item.state == 1"
type=
"primary"
>
立刻支付
</a>
<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>
<a
class=
"btn"
v-else
@
click
.
stop=
"oneMoreOrder(item)"
type=
"primary"
>
再来一单
</a>
...
@@ -251,7 +250,7 @@ export default {
...
@@ -251,7 +250,7 @@ export default {
.empty_text
{
.empty_text
{
width
:
500
rpx
;
width
:
500
rpx
;
margin-top
:
3
5
rpx
;
margin-top
:
3
2
rpx
;
text-align
:
center
;
text-align
:
center
;
font-size
:
24
rpx
;
font-size
:
24
rpx
;
...
@@ -283,14 +282,13 @@ export default {
...
@@ -283,14 +282,13 @@ export default {
/* 兼容老版本的方法 */
/* 兼容老版本的方法 */
-webkit-transform
:
translateX
(
-50%
);
-webkit-transform
:
translateX
(
-50%
);
transform
:
translate
(
-50%
);
transform
:
translate
(
-50%
);
margin-top
:
3
11
rpx
;
margin-top
:
3
52
rpx
;
.empty_icon
{
.empty_icon
{
width
:
324
rpx
;
width
:
324
rpx
;
height
:
236
rpx
;
height
:
236
rpx
;
}
}
.empty_text
{
.empty_text
{
margin-top
:
3
5
rpx
;
margin-top
:
3
2
rpx
;
text-align
:
center
;
text-align
:
center
;
font-size
:
24
rpx
;
font-size
:
24
rpx
;
...
@@ -299,7 +297,7 @@ export default {
...
@@ -299,7 +297,7 @@ export default {
color
:
#999999
;
color
:
#999999
;
}
}
.empty_button
{
.empty_button
{
margin-top
:
3
5
rpx
;
margin-top
:
3
6
rpx
;
width
:
167
rpx
;
width
:
167
rpx
;
height
:
64
rpx
;
height
:
64
rpx
;
border-radius
:
2
rpx
;
border-radius
:
2
rpx
;
...
@@ -322,9 +320,9 @@ export default {
...
@@ -322,9 +320,9 @@ export default {
.order_item
{
.order_item
{
width
:
686
rpx
;
width
:
686
rpx
;
background
:
#FFFFFF
;
background
:
#FFFFFF
;
margin
:
3
0
rpx
auto
0
;
margin
:
3
2
rpx
auto
0
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
25
rpx
22
rpx
32
rpx
32
rpx
;
padding
:
25
rpx
30
rpx
30
rpx
30
rpx
;
.order_header
{
.order_header
{
display
:
flex
;
display
:
flex
;
...
@@ -335,11 +333,14 @@ export default {
...
@@ -335,11 +333,14 @@ export default {
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#333333
;
color
:
#333333
;
line-height
:
40
rpx
;
}
}
.order_time
{
.order_time
{
font-size
:
24
rpx
;
font-size
:
24
rpx
;
font-family
:
ArialMT
;
font-family
:
ArialMT
;
margin-top
:
4
rpx
;
line-height
:
28
rpx
;
color
:
#999999
;
color
:
#999999
;
}
}
...
@@ -351,6 +352,7 @@ export default {
...
@@ -351,6 +352,7 @@ export default {
display
:
flex
;
display
:
flex
;
align-items
:
baseline
;
align-items
:
baseline
;
justify-content
:
flex-start
;
justify-content
:
flex-start
;
line-height
:
34
rpx
;
.xiaojiantou
{
.xiaojiantou
{
width
:
12
rpx
;
width
:
12
rpx
;
height
:
16
rpx
;
height
:
16
rpx
;
...
@@ -361,7 +363,6 @@ export default {
...
@@ -361,7 +363,6 @@ export default {
}
}
.order_content
{
.order_content
{
margin-top
:
42
rpx
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
...
@@ -370,23 +371,25 @@ export default {
...
@@ -370,23 +371,25 @@ export default {
flex
:
1
;
flex
:
1
;
}
}
.goods_item
{
margin-top
:
42
rpx
;
display
:
flex
;
//
align-items
:
center
;
.qr_code
{
.qr_code
{
font-size
:
16
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#666666
;
line-height
:
22
rpx
;
text-align
:
center
;
text-align
:
center
;
margin-right
:
10
rpx
;
margin-right
:
10
rpx
;
margin-left
:
39
rpx
;
margin-left
:
38
rpx
;
.qr_code_img
{
.qr_code_img
{
vertical-align
:
bottom
;
width
:
76
rpx
;
width
:
76
rpx
;
height
:
76
rpx
;
height
:
76
rpx
;
}
}
.qr_text
{
.qr_text
{
margin-top
:
10
rpx
;
line-height
:
28
rpx
;
margin-top
:
10
rpx
;
font-size
:
20
rpx
;
font-size
:
20
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
font-weight
:
400
;
...
@@ -394,11 +397,6 @@ export default {
...
@@ -394,11 +397,6 @@ export default {
}
}
}
}
.goods_item
{
display
:
flex
;
align-items
:
center
;
.goods_img
{
.goods_img
{
height
:
96
rpx
;
height
:
96
rpx
;
width
:
96
rpx
;
width
:
96
rpx
;
...
@@ -414,21 +412,22 @@ export default {
...
@@ -414,21 +412,22 @@ export default {
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#666666
;
color
:
#666666
;
margin-top
:
10
rpx
;
line-height
:
40
rpx
;
}
}
.goods_spce
{
.goods_spce
{
margin-top
:
2
.6
rpx
;
margin-top
:
2
rpx
;
font-size
:
24
rpx
;
font-size
:
24
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
font-weight
:
400
;
line-height
:
34
rpx
;
color
:
#999999
;
color
:
#999999
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
}
}
}
}
}
}
}
}
...
@@ -436,7 +435,7 @@ export default {
...
@@ -436,7 +435,7 @@ export default {
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
margin-top
:
4
1
rpx
;
margin-top
:
4
0
rpx
;
.total
{
.total
{
font-size
:
28
rpx
;
font-size
:
28
rpx
;
...
...
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