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
| <template>
| <div class="personal">
| <div class="person-header">
| <img src="@/assets/images/profile.png" alt="" @click="jumpprivate()">
| <span>king</span>
| </div>
| <div class="weui-cell">
| <div class="weui-cell__bd">
| <p>我的订单</p>
| </div>
| <div class="weui-cell__ft">
| <a href="javascript:;" @click="jumpOrder()">全部订单></a>
| </div>
| </div>
| <nav-grids class="border-bottom-5" :grids="navGrids" :type="'small'"></nav-grids>
| <nav-grids class="border-bottom-1" :grids="setting1" :type="'large'"></nav-grids>
| <nav-grids class="border-bottom-1" :grids="setting2" :type="'large'"></nav-grids>
| <tab-bar :menu="tabMenu"></tab-bar>
| </div>
| </template>
|
| <script>
| import {dict} from '../store/dictionary'
| import navGrids from '../components/navGrids'
| import tabBar from '../components/tabBar'
| export default {
| name: 'personal',
| components: {tabBar, navGrids},
| data () {
| return {
| dict: dict,
| tabMenu: [
| {
| name: '首页',
| type: 'home',
| imgurl: require('@/assets/images/home/home1.png'),
| badge: null
| },
| {
| name: '分类',
| type: 'goods',
| imgurl: require('@/assets/images/home/class1.png'),
| badge: null
| },
| {
| name: '购物车',
| type: 'shoppingcar',
| imgurl: require('@/assets/images/home/car1.png'),
| badge: 8
| },
| {
| name: '个人中心',
| type: 'personal',
| imgurl: require('@/assets/images/home/private1.png'),
| badge: null
| }
| ],
| navGrids: [
| {
| name: '待付款',
| type: 'home',
| imgurl: require('@/assets/images/active/1.png'),
| badge: 1
| },
| {
| name: '待发货',
| type: 'goods',
| imgurl: require('@/assets/images/active/2.png'),
| badge: 2
| },
| {
| name: '待收货',
| type: 'shoppingcar',
| imgurl: require('@/assets/images/active/3.png'),
| badge: 1
| },
| {
| name: '待评价',
| type: 'private',
| imgurl: require('@/assets/images/active/4.png'),
| badge: 3
| },
| {
| name: '退款/售后',
| type: 'privatea',
| imgurl: require('@/assets/images/active/1.png'),
| badge: 1
| }
| ],
| setting1: [
| {
| name: '我的收藏',
| type: 'collection',
| imgurl: require('@/assets/images/active/1.png')
| },
| {
| name: '收货地址',
| type: 'goods',
| imgurl: require('@/assets/images/active/2.png')
| },
| {
| name: '设置',
| type: 'shoppingcar',
| imgurl: require('@/assets/images/active/3.png')
| }
| ],
| setting2: [
| {
| name: '消息中心',
| type: 'home',
| imgurl: require('@/assets/images/active/1.png')
| },
| {
| name: '',
| type: '1',
| imgurl: null
| },
| {
| name: '',
| type: '2',
| imgurl: null
| }
| ]
| }
| },
| methods: {
| jumpBack () {
| this.$router.back(-1)
| },
| jumpOrder () {
| this.$router.push({name: 'order'})
| },
| jumpprivate () {
| this.$router.push({name: 'private'})
| }
| },
| mounted: function () {
|
| }
| }
| </script>
|
| <style scoped>
| .person-header {
| height: 60px;
| background: #EA2E57;
| padding: 20px;
| color: #ffffff;
| }
| .person-header img {
| width: 50px;
| height: 50px;
| border-radius: 45px;
| vertical-align: middle;
| margin-right: 10px;
| }
| .weui-cell {
| border-bottom: 1px solid #eeeeee;
| }
| .weui-cell a {
| color: #757575;
| }
| .weui-grid {
| padding: 5px 10px!important;
| }
| </style>
|
|