Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
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
刘文虎
account-book
Commits
41d9cb0e
Commit
41d9cb0e
authored
Mar 19, 2024
by
刘文虎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改订单列表样式 , 与下个版本一起更新
parent
8f70bdb4
Pipeline
#8195
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
94 additions
and
20 deletions
+94
-20
order-item.vue
pages/mine/order/components/order-item.vue
+94
-20
No files found.
pages/mine/order/components/order-item.vue
View file @
41d9cb0e
...
...
@@ -10,22 +10,29 @@
</view>
</view>
<view
class=
"content"
>
<view
class=
"order-info"
>
<text
class=
"order-name"
>
{{
detail
.
businessName
}}
</text>
<text
class=
"order-price"
>
{{
detail
.
amount
}}
</text>
</view>
<view
class=
"order-date"
>
{{
detail
.
createTime
}}
<image
:src=
"orderIcon"
class=
"order-icon"
></image>
<view
class=
"order-content"
>
<view
class=
"order-info"
>
<text
class=
"order-name"
>
{{
detail
.
businessName
}}
</text>
<text
class=
"order-price"
>
¥
{{
detail
.
amount
}}
</text>
</view>
<view
class=
"order-date"
>
{{
detail
.
createTime
}}
</view>
</view>
</view>
</view>
</
template
>
<
script
>
import
{
parseTime
}
from
"@/utils/common.js"
export
default
{
props
:
{
detail
:
{
...
...
@@ -33,12 +40,35 @@
default
:
()
=>
{}
},
},
data
()
{
return
{
orderIcon
:
"https://img-code.banshouhui.com/icon/huiyuantupian@3x.png"
,
parseTime
,
buttons
:
[{
label
:
"取消订单"
,
value
:
"TODO"
,
type
:
1
},
{
label
:
"立即支付"
,
value
:
"TODO"
,
type
:
2
},
{
label
:
"申请售后"
,
value
:
"FINISH"
,
type
:
3
},
{
label
:
"再次购买"
,
value
:
"FINISH,CLOSE"
,
type
:
4
},
],
statusColor
:
{
WAIT
:
'#fc524d'
,
FINISH
:
'#333333'
,
TODO
:
'#fc524d'
,
PAYED
:
'#333333'
,
CANCEL
:
'#8d8d8d'
,
CLOSE
:
'#8d8d8d'
,
REFUNDING
:
'#df7922'
,
...
...
@@ -70,9 +100,9 @@
.head-title
{
line-height
:
32
rpx
;
font-size
:
32
rpx
;
font-weight
:
bold
;
line-height
:
28
rpx
;
font-size
:
24
rpx
;
//
font-weight: bold;
.order-number
{
margin-left
:
12rpx
;
...
...
@@ -90,20 +120,35 @@
}
.content
{
padding
:
32
rpx
0
;
padding
:
24
rpx
0
;
line-height
:
40rpx
;
font-size
:
28rpx
;
display
:
flex
;
.order-icon
{
width
:
120rpx
;
height
:
120rpx
;
margin-right
:
24rpx
;
flex-shrink
:
0
;
}
.order-content
{
flex
:
1
;
padding-top
:
8rpx
;
}
.order-info
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
font-weight
:
bold
;
font-size
:
28rpx
;
.order-name
{}
.order-price
{}
.order-price
{
font-weight
:
bold
;
color
:
#FA5A49
;
}
}
...
...
@@ -111,7 +156,36 @@
margin-top
:
12rpx
;
font-size
:
24rpx
;
color
:
#8d8d8d
;
text-align
:
right
;
// text-align: right;
}
}
.bottom
{
padding-top
:
24rpx
;
width
:
100%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
flex-end
;
border-Top
:
2px
solid
#f6f7fa
;
.buttons
{
width
:
138rpx
;
height
:
56rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
border-radius
:
28rpx
;
font-size
:
24rpx
;
margin-left
:
24rpx
;
border
:
2rpx
solid
#cccccc
;
color
:
#333333
;
background-color
:
#ffffff
;
}
.pay
{
border
:
2rpx
solid
#00c802
;
color
:
#ffffff
;
background-color
:
#00c802
;
}
}
...
...
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