Commit 41d9cb0e authored by 刘文虎's avatar 刘文虎

修改订单列表样式 , 与下个版本一起更新

parent 8f70bdb4
Pipeline #8195 failed with stages
...@@ -10,22 +10,29 @@ ...@@ -10,22 +10,29 @@
</view> </view>
</view> </view>
<view class="content"> <view class="content">
<view class="order-info"> <image :src="orderIcon" class="order-icon"></image>
<text class="order-name"> <view class="order-content">
{{detail.businessName}} <view class="order-info">
</text> <text class="order-name">
<text class="order-price"> {{detail.businessName}}
{{detail.amount}} </text>
</text> <text class="order-price">
</view> ¥{{detail.amount}}
<view class="order-date"> </text>
{{detail.createTime}} </view>
<view class="order-date">
{{detail.createTime}}
</view>
</view> </view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import {
parseTime
} from "@/utils/common.js"
export default { export default {
props: { props: {
detail: { detail: {
...@@ -33,12 +40,35 @@ ...@@ -33,12 +40,35 @@
default: () => {} default: () => {}
}, },
}, },
data() { data() {
return { 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: { statusColor: {
WAIT: '#fc524d', TODO: '#fc524d',
FINISH: '#333333', PAYED: '#333333',
CANCEL: '#8d8d8d', CANCEL: '#8d8d8d',
CLOSE: '#8d8d8d', CLOSE: '#8d8d8d',
REFUNDING: '#df7922', REFUNDING: '#df7922',
...@@ -70,9 +100,9 @@ ...@@ -70,9 +100,9 @@
.head-title { .head-title {
line-height: 32rpx; line-height: 28rpx;
font-size: 32rpx; font-size: 24rpx;
font-weight: bold; // font-weight: bold;
.order-number { .order-number {
margin-left: 12rpx; margin-left: 12rpx;
...@@ -90,20 +120,35 @@ ...@@ -90,20 +120,35 @@
} }
.content { .content {
padding: 32rpx 0; padding: 24rpx 0;
line-height: 40rpx; line-height: 40rpx;
font-size: 28rpx; 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 { .order-info {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
font-weight: bold;
font-size: 28rpx; font-size: 28rpx;
.order-name {} .order-name {}
.order-price {} .order-price {
font-weight: bold;
color: #FA5A49;
}
} }
...@@ -111,7 +156,36 @@ ...@@ -111,7 +156,36 @@
margin-top: 12rpx; margin-top: 12rpx;
font-size: 24rpx; font-size: 24rpx;
color: #8d8d8d; 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;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment