|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<view class="container"> |
|
|
|
<view class="cardList" v-for="(item, index) in cardListData" :key="index"> |
|
|
|
<view class="cardList"> |
|
|
|
<view class="container" v-for="(item, index) in cardListData" :key="index"> |
|
|
|
<view class="head"> |
|
|
|
<text class="orderTime">下单时间:{{item.orderTime}}</text> |
|
|
|
<text class="orderStatus" :class="item.state === 'U' ? 'active' : ''">{{item.stateText}}</text> |
|
|
@ -19,7 +19,8 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="button-sp-area" v-if="Array.isArray(item.btnObj) && item.btnObj.length > 0"> |
|
|
|
<button :style="{background: val.bgColor, color: val.color}" v-for="(val, i) in item.btnObj" :key="i" class="mini-btn" size="mini">{{val.btnTitle}}</button> |
|
|
|
<button @click="skip(val)" :style="{background: val.bgColor, color: val.color}" v-for="(val, i) in item.btnObj" :key="i" class="mini-btn" size="mini">{{val.btnTitle}}</button> |
|
|
|
<button>4332432</button> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -52,17 +53,19 @@ export default { |
|
|
|
mounted() { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
skip(val) { |
|
|
|
uni.navigateTo({ |
|
|
|
url:'/pages_order/orderDetails' |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
$gray: #999; |
|
|
|
$red: #FF4546; |
|
|
|
.container { |
|
|
|
.cardList { |
|
|
|
padding: 10rpx 32rpx 250rpx; |
|
|
|
.cardList { |
|
|
|
.container { |
|
|
|
margin-top: 31rpx; |
|
|
|
padding: 25rpx 0; |
|
|
|
border-radius: 20rpx; |
|
|
@ -74,7 +77,7 @@ export default { |
|
|
|
border-bottom: 1px solid #2A2A2A; |
|
|
|
.orderTime { |
|
|
|
font-size: 25rpx; |
|
|
|
color: $gray; |
|
|
|
color: $uni-text-color-grey; |
|
|
|
} |
|
|
|
.orderStatus { |
|
|
|
font-size: 26rpx; |
|
|
@ -103,7 +106,7 @@ export default { |
|
|
|
justify-content: space-between; |
|
|
|
flex: 1; |
|
|
|
margin-left: 26px; |
|
|
|
color: $gray; |
|
|
|
color: $uni-text-color-grey; |
|
|
|
font-size: 24rpx; |
|
|
|
.detailed { |
|
|
|
.title { |
|
|
@ -118,7 +121,7 @@ export default { |
|
|
|
&::before { |
|
|
|
content: ''; |
|
|
|
display: block; |
|
|
|
background: url('@/static/image//cart/timeIcon.png') no-repeat; |
|
|
|
background: url('@/static/image/cart/timeIcon.png') no-repeat; |
|
|
|
background-size: 100% 100%; |
|
|
|
width: 24rpx; |
|
|
|
height: 24rpx; |
|
|
@ -131,10 +134,10 @@ export default { |
|
|
|
&::before { |
|
|
|
content: ''; |
|
|
|
display: block; |
|
|
|
background: url('@/static/image//cart/addressIcon.png') no-repeat; |
|
|
|
background: url('@/static/image/cart/addressIcon.png') no-repeat; |
|
|
|
background-size: 100% 100%; |
|
|
|
width: 24rpx; |
|
|
|
height: 24rpx; |
|
|
|
width: 22rpx; |
|
|
|
height: 26rpx; |
|
|
|
margin-right: 10rpx; |
|
|
|
} |
|
|
|
} |
|
|
@ -144,7 +147,7 @@ export default { |
|
|
|
color: #fff; |
|
|
|
text-align: right; |
|
|
|
text { |
|
|
|
color: $gray; |
|
|
|
color: $uni-text-color-grey; |
|
|
|
font-size: 25rpx; |
|
|
|
padding-right: 10rpx; |
|
|
|
} |
|
|
@ -168,6 +171,6 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
.active { |
|
|
|
color: $red!important; |
|
|
|
color: $uni-color-primary!important; |
|
|
|
} |
|
|
|
</style> |