Blame view
src/pages/myOrder/myOrder.vue
2.21 KB
4506eedf6 ss |
1 |
<template> |
72a08fa45 icon |
2 3 4 5 6 |
<view class="content"> <view class="header"> <!-- 搜索--> <view class="searchBar"> <icon class="searchIcon" type="search" size="14"></icon> |
987972474 订单页card组件提取 |
7 8 9 10 11 12 |
<input class="searchIpt" placeholder="搜索订单关键字..." confirm-type="search"/> </view> <view class="screenBar"> <view v-for="item in screenItems" :key="item.current" @click="onClickItem(item.current)" > <view class="screenItem" v-bind:class="{ active: current === item.current }">{{ item.text }}</view> </view> |
72a08fa45 icon |
13 |
</view> |
72a08fa45 icon |
14 |
</view> |
987972474 订单页card组件提取 |
15 |
<OrderCard></OrderCard> |
4506eedf6 ss |
16 17 18 19 |
</view> </template> |
987972474 订单页card组件提取 |
20 |
<script> |
4de4be344 客服在线和我的订单-待付款 |
21 |
import OrderCard from './orderCard.vue' |
987972474 订单页card组件提取 |
22 23 24 |
export default { components:{ 'OrderCard':OrderCard |
4506eedf6 ss |
25 26 |
}, data() { |
987972474 订单页card组件提取 |
27 28 29 30 31 32 33 34 |
return { screenItems: [ {current:0,text:'全部'}, {current:1,text:'待付款'}, {current:2,text:'待发货'}, {current:3,text:'待收货'}, {current:4,text:'退款售后'}, ], |
4506eedf6 ss |
35 36 37 |
current: 0, }; |
987972474 订单页card组件提取 |
38 39 40 41 42 43 44 |
}, methods:{ onClickItem(e) { if (this.current !== e) { this.current = e; } } |
4506eedf6 ss |
45 46 47 48 |
} } </script> |
72a08fa45 icon |
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 |
<style lang="scss"> .content { display: flex; flex-direction: column; align-items: center; background-color: #F7F6F6; height: 100vh; } .header{ background-color: #ffffff; width: 100%; height: 232rpx; padding: 40rpx 40rpx 36rpx 40rpx; box-sizing: border-box; .searchBar { width: 670rpx; display: flex; justify-content: center; align-items: center; box-sizing: border-box; padding: 0rpx 16rpx; border: 1px solid #FF6B4A; border-radius: 8rpx; background-color: #ffffff; } |
987972474 订单页card组件提取 |
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
.screenBar{ width: 670rpx; height: 110rpx; display: flex; flex-direction: row; justify-content: space-between; align-items: center; color: #333333; font-size: 32rpx; } .screenItem{ height: 50rpx; font-size: 32rpx; color: #333333; display: flex; justify-content: center; align-items: center; transition:all 0.2s; } .active{ // font-size: 34rpx; color: #EC5D3B; } |
72a08fa45 icon |
98 99 100 101 102 103 104 |
.searchIpt { height: 68rpx; width: 670rpx; padding: 16rpx; font-size: 28rpx; box-sizing: border-box; } |
4506eedf6 ss |
105 106 |
} </style> |