admin
2021-05-11 e5ca87e89fef96c827ec37d1d91082f626cbb17d
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
package com.tejia.lijin.app.util.umengCustomEvent;
 
import android.content.Context;
 
import com.umeng.analytics.MobclickAgent;
 
import java.util.HashMap;
import java.util.Map;
 
/**
 * 搜索自定义事件
 */
public class SearchCustomEvent {
 
    /*
     * 首页搜索框
     */
    public static void searchHome(Context context) {
        MobclickAgent.onEvent(context, "search_home");
    }
 
    /*
     * 热门搜索点击
     */
    public static void searchHot(Context context, String name) {
        Map<String, Object> map = new HashMap<>();
        map.put("name", name);
        MobclickAgent.onEventObject(context, "search_hot", map);
    }
 
    /*
     * 历史搜索点击
     */
    public static void searchHistory(Context context) {
        MobclickAgent.onEvent(context, "search_history");
    }
 
    /*
     * 综合点击
     */
    public static void searchResultZhonghe(Context context) {
        MobclickAgent.onEvent(context, "search_result_zhonghe");
    }
 
    /*
     * 综合选择
     */
    public static void searchResultZhongheChoice(Context context, String type) {
        Map<String, Object> map = new HashMap<>();
        map.put("type", type);
        MobclickAgent.onEventObject(context, "search_result_zhonghe_choice", map);
    }
 
    /*
     * 价格点击
     */
    public static void searchResultPrice(Context context) {
        MobclickAgent.onEvent(context, "search_result_price");
    }
 
    /*
     * 销量点击
     */
    public static void searchResultSale(Context context) {
        MobclickAgent.onEvent(context, "search_result_sale");
    }
 
    /*
     * 横版切换点击
     */
    public static void searchResultView(Context context, String type) {
        Map<String, Object> map = new HashMap<>();
        map.put("type", type);
        MobclickAgent.onEventObject(context, "search_result_view", map);
    }
 
    /*
     * 筛选点击
     */
    public static void searchResultFilter(Context context) {
        MobclickAgent.onEvent(context, "search_result_filter");
    }
 
    /*
     * 只看天猫点击
     */
    public static void searchResultTm(Context context) {
        MobclickAgent.onEvent(context, "search_result_tm");
    }
 
    /*
     * 只看优惠券点击
     */
    public static void searchResultQuan(Context context) {
        MobclickAgent.onEvent(context, "search_result_quan");
    }
 
    /*
     * 只看包邮点击
     */
    public static void searchResultBaoyou(Context context) {
        MobclickAgent.onEvent(context, "search_result_baoyou");
    }
 
    /*
     * 价格区间
     */
    public static void searchResultPriceSection(Context context, String type) {
        Map<String, Object> map = new HashMap<>();
        map.put("type", type);
        MobclickAgent.onEventObject(context, "search_result_price_section", map);
    }
 
    /*
     * 返利比点击
     */
    public static void searchResultFanlibi(Context context) {
        MobclickAgent.onEvent(context, "search_result_fanlibi");
    }
 
    /*
     * 发货地点击
     */
    public static void searchResultAddress(Context context) {
        MobclickAgent.onEvent(context, "search_result_address");
    }
 
}