order-module.vue
1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<template>
<view class="order-module">
<view class="top-wrap">
<view class="sub-title">{{subTitle}}</view>
<view class="right">
全部订单 <uv-icon name="arrow-right" top="2rpx" size="12"></uv-icon>
</view>
</view>
<view class="item-wrap">
<view class="item-inner" @click="toDifPages(item.pageUrl)" v-for="item in mineOrderList" :key="item.name">
<image class="status-img" :src="item.url" mode=""></image>
<view class="status-text">{{item.name}}</view>
</view>
</view>
</view>
</template>
<script setup>
defineProps({
mineOrderList: {
type: Array,
default: () => ([])
},
subTitle: {
type: String,
default: '我的订单',
}
})
</script>
<style lang="scss">
.order-module {
padding: 28rpx;
box-sizing: border-box;
position: relative;
top: -20rpx;
border-radius: 24rpx;
background: #ffffff;
}
.top-wrap {
@include flexCj();
.right {
@include flexcenter();
color: #00000066;
font-size: 24rpx;
}
}
.sub-title {
font-size: 34rpx;
font-weight: 700;
}
.item-wrap {
@include flexcenter();
flex-wrap: wrap;
margin-top: 46rpx;
.item-inner {
@include flexColumn();
width: 25%;
font-size: 24rpx;
font-weight: 700;
.status-img {
width: 48rpx;
height: 48rpx;
margin-bottom: 16rpx;
}
}
}
</style>