|
@@ -5,6 +5,7 @@ import Picker from '@/components/Picker'
|
5
|
5
|
import Popup from '@/components/Popup'
|
6
|
6
|
import ShopUsed from '@/components/ShopUsed' //已核销
|
7
|
7
|
import ShopUnused from '@/components/ShopUnused' //未核销
|
|
8
|
+import SearchBar from '@/components/SearchBar'
|
8
|
9
|
import eyes from '@/assets/icons/shopKeeper/小眼睛.png'
|
9
|
10
|
import ceyes from '@/assets/icons/shopKeeper/小眼睛-闭上.png'
|
10
|
11
|
import iconsearch from '@/assets/icons/housemantj/search.png'
|
|
@@ -42,23 +43,15 @@ export default (props) => {
|
42
|
43
|
}
|
43
|
44
|
|
44
|
45
|
|
45
|
|
- //搜索
|
46
|
|
- const search = (value) => {
|
47
|
|
- console.log(value);
|
48
|
46
|
|
49
|
|
- return new Promise((resolve, reject) => {
|
50
|
|
- console.log(resolve, reject);
|
51
|
|
- resolve([{ text: '搜索结果', value: 1 }, { text: '搜索结果2', value: 2 }])
|
52
|
47
|
|
53
|
|
- })
|
54
|
|
- }
|
55
|
|
- const handeInput = (e) => {
|
56
|
|
- const value = e.detail.value
|
57
|
|
- console.log("🚀 ~ file: shopKeeper.jsx ~ line 57 ~ handeInput ~ value", value)
|
58
|
48
|
|
59
|
49
|
|
60
|
|
- }
|
|
50
|
+ const handleChange = (e) => {
|
|
51
|
+ console.log("🚀 ~ file: shopKeeper.jsx ~ line 67 ~ handleChange ~ e", e)
|
|
52
|
+
|
61
|
53
|
|
|
54
|
+ }
|
62
|
55
|
|
63
|
56
|
|
64
|
57
|
useEffect(() => {
|
|
@@ -120,12 +113,8 @@ export default (props) => {
|
120
|
113
|
</view>
|
121
|
114
|
</view>
|
122
|
115
|
<view className='search'>
|
123
|
|
- <mp-searchbar
|
124
|
|
- placeholder='搜索订单(输入客户手机号码)'
|
125
|
|
- search={search}
|
126
|
|
- onInput={(e) => handeInput(e)}
|
127
|
|
- >
|
128
|
|
- </mp-searchbar>
|
|
116
|
+
|
|
117
|
+ <SearchBar onChange={e => handleChange()} />
|
129
|
118
|
</view>
|
130
|
119
|
<view className='index-tabs'>
|
131
|
120
|
<mp-tabs
|