forked from Tencent/tdesign-miniprogram-starter-retail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.js
60 lines (56 loc) · 1.03 KB
/
search.js
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
import { getGoodsList } from './goods';
/**
* @param {number} sort
* @param {number} pageNum
* @param {number} pageSize
* @param {number} minPrice
* @param {number} maxPrice
* @param {string} keyword
*/
export function getSearchHistory() {
return {
historyWords: [
'鸡',
'电脑',
'iPhone12',
'车载手机支架',
'自然堂',
'小米10',
'原浆古井贡酒',
'欧米伽',
'华为',
'针织半身裙',
'氢跑鞋',
'三盒处理器',
],
};
}
export function getSearchPopular() {
return {
popularWords: [
'鸡',
'电脑',
'iPhone12',
'车载手机支架',
'自然堂',
'小米10',
'原浆古井贡酒',
'欧米伽',
'华为',
'针织半身裙',
'氢跑鞋',
'三盒处理器',
],
};
}
export function getSearchResult() {
return {
saasId: null,
storeId: null,
pageNum: 1,
pageSize: 30,
totalCount: 1,
spuList: getGoodsList(7),
algId: 0,
};
}