Commit 72a08fa450bc05ccb979d4e8a71d1f9add25189d
1 parent
fb85b244cf
Exists in
master
icon
Showing
5 changed files
with
92 additions
and
2 deletions
Show diff stats
src/pages.json
src/pages/myOrder/myOrder.vue
... | ... | @@ -0,0 +1,59 @@ |
1 | +<template> | |
2 | + <view class="content"> | |
3 | + <view class="header"> | |
4 | + <!-- 搜索--> | |
5 | + <view class="searchBar"> | |
6 | + <icon class="searchIcon" type="search" size="14"></icon> | |
7 | + <input class="searchIpt" placeholder="老花镜" confirm-type="search"/> | |
8 | + </view> | |
9 | + | |
10 | + </view> | |
11 | + | |
12 | + </view> | |
13 | +</template> | |
14 | + | |
15 | +<script> | |
16 | + export default { | |
17 | + data() { | |
18 | + return { | |
19 | + | |
20 | + }; | |
21 | + } | |
22 | + } | |
23 | +</script> | |
24 | + | |
25 | +<style lang="scss"> | |
26 | + .content { | |
27 | + display: flex; | |
28 | + flex-direction: column; | |
29 | + align-items: center; | |
30 | + background-color: #F7F6F6; | |
31 | + height: 100vh; | |
32 | + } | |
33 | + .header{ | |
34 | + background-color: #ffffff; | |
35 | + width: 100%; | |
36 | + height: 232rpx; | |
37 | + padding: 40rpx 40rpx 36rpx 40rpx; | |
38 | + box-sizing: border-box; | |
39 | + .searchBar { | |
40 | + width: 670rpx; | |
41 | + display: flex; | |
42 | + justify-content: center; | |
43 | + align-items: center; | |
44 | + box-sizing: border-box; | |
45 | + padding: 0rpx 16rpx; | |
46 | + border: 1px solid #FF6B4A; | |
47 | + border-radius: 8rpx; | |
48 | + background-color: #ffffff; | |
49 | + } | |
50 | + | |
51 | + .searchIpt { | |
52 | + height: 68rpx; | |
53 | + width: 670rpx; | |
54 | + padding: 16rpx; | |
55 | + font-size: 28rpx; | |
56 | + box-sizing: border-box; | |
57 | + } | |
58 | + } | |
59 | +</style> | ... | ... |
src/pages/myOrder/orderCard.vue
src/pages/user/user.vue
... | ... | @@ -16,7 +16,7 @@ |
16 | 16 | <view class="myOrder"> |
17 | 17 | <view class="orderHeader"> |
18 | 18 | <text>全部订单</text> |
19 | - <view class="btn"> | |
19 | + <view class="btn" @click="toMyOrder"> | |
20 | 20 | 全部 |
21 | 21 | <image src="../../static/right.png" mode="aspectFill"></image> |
22 | 22 | </view> |
... | ... | @@ -91,7 +91,14 @@ |
91 | 91 | |
92 | 92 | }, |
93 | 93 | methods: { |
94 | - | |
94 | + toMyOrder(){ | |
95 | + uni.navigateTo({ | |
96 | + url: '../myOrder/myOrder', | |
97 | + success: res => {}, | |
98 | + fail: () => {}, | |
99 | + complete: () => {} | |
100 | + }); | |
101 | + } | |
95 | 102 | } |
96 | 103 | } |
97 | 104 | </script> | ... | ... |
src/static/detail-tabicon.png
1.22 KB