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

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

parent 8f70bdb4
Pipeline #8195 failed with stages
......@@ -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: 32rpx;
font-size: 32rpx;
font-weight: bold;
line-height: 28rpx;
font-size: 24rpx;
// font-weight: bold;
.order-number {
margin-left: 12rpx;
......@@ -90,20 +120,35 @@
}
.content {
padding: 32rpx 0;
padding: 24rpx 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;
}
}
......
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