orderCenter.vue
3.1 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<template>
<view class="mainBox">
<!-- tabber栏 -->
<view class="tabberBox flexJ">
<view class="flexC" v-for="(item,index) in List1" :class="curIdx == index?'whole':'tobePaid'"
@click="clickone(index)">
{{item.name}}
</view>
</view>
<!-- 商品盒子 -->
<view class="commodityBox" v-for="item in 4" @click="toGoodsDetailHandler">
<!-- 订单号 -->
<view class="dingdanhao flexJ">
<view class="">订单号:32423432432423</view>
<img src="/static/Rectangle 2374@2x.png" alt="" style="width: 168rpx; height: 80rpx;">
<view class="text">
待支付</view>
</view>
<view class="line"></view>
<view class="shangping flexJ">
<!-- 左边商品图 -->
<view class="leftoneBox ">
<img src="/static/ic-tabbar-home-s@2x.png" alt="">
</view>
<!-- 右边简介 -->
<view class="rightoneBox">
<view class="">乐事薯片美国经典原味135g</view>
<view class="one">规格规格规格规格规格规格</view>
<view class="flexJ">
<view class="flexC">¥288.8</view>
<view class="two">x3</view>
</view>
</view>
</view>
<view class="flexJ">
<view class=""></view>
<view class="lijizhifu flexC">立即支付</view>
</view>
</view>
<view class="" style="height:100rpx;">
</view>
</view>
</template>
<script>
export default {
data() {
return {
curIdx: 0,
List1: [{
status: true,
name: '全部'
},
{
status: false,
name: '待支付'
},
{
status: false,
name: '待自提'
},
{
status: false,
name: '已完成'
},
],
}
},
methods: {
clickone(index) {
this.curIdx = index
},
toGoodsDetailHandler(){
uni.navigateTo({
url:'/pages/car/goodsState'
})
}
},
}
</script>
<style lang="scss">
page {
background-color: #f6f6f6;
}
.mainBox {
width: 686rpx;
margin: 0 auto;
}
.tabberBox {
margin-top: 20rpx;
width: 686rpx;
height: 64rpx;
border-radius: 200rpx;
opacity: 1;
background: rgba(47, 159, 97, 1);
}
.whole {
color: rgba(47, 159, 97, 1);
width: 168rpx;
height: 56rpx;
border-radius: 200rpx;
background: rgba(255, 255, 255, 1);
}
.tobePaid {
color: #fff;
width: 168rpx;
height: 56rpx;
border-radius: 200rpx;
}
.commodityBox {
margin-top: 24rpx;
padding: 0 32rpx 32rpx 32rpx;
box-sizing: border-box;
background-color: #fff;
}
.leftoneBox {
img {
width: 155rpx;
height: 155rpx;
}
}
.rightoneBox {
margin-left: 16rpx;
}
.one {
padding: 25rpx 0 20rpx 0;
color: rgba(0, 0, 0, 0.26);
font-size: 24rpx;
font-weight: 400;
}
.two {
color: rgba(0, 0, 0, 0.26);
font-size: 24rpx;
font-weight: 400;
}
.line {
width: 622rpx;
height: 1rpx;
background: rgba(235, 237, 240, 1);
}
.dingdanhao {
position: relative;
padding: 24rpx 0;
.text {
position: absolute;
right: 0;
}
}
.shangping {
padding: 24rpx 0 12rpx 0;
}
.lijizhifu {
color: #fff;
width: 168rpx;
height: 64rpx;
border-radius: 8rpx;
opacity: 1;
border: 1rpx solid #fff;
background: rgba(52,177,107,1);
}
</style>