Authored by rqq

埋点设置

@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 <div id="search-input" class="search-input"> 4 <div id="search-input" class="search-input">
5 <form id="search-form" action={{url}} method="get"> 5 <form id="search-form" action={{url}} method="get">
6 <i class="search-icon iconfont">&#xe60f;</i> 6 <i class="search-icon iconfont">&#xe60f;</i>
7 - <input type="text" placeholder="搜索商品" name="query" data-dp-id="search_page_input_true"> 7 + <input type="text" placeholder="搜索商品" name="query" data-bp-id="search_page_input_true">
8 <input type="hidden" name="from" value="search"> 8 <input type="hidden" name="from" value="search">
9 <i class="clear-input iconfont hide">&#xe626;</i> 9 <i class="clear-input iconfont hide">&#xe626;</i>
10 <span id="search" class="search" type="submit">搜索</span> 10 <span id="search" class="search" type="submit">搜索</span>
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 2
3 <div class="product-category yoho-page"> 3 <div class="product-category yoho-page">
4 {{# content}} 4 {{# content}}
5 - <a class="allproduct" href="{{allproduct}}"data-dp-id="page_product-category_true" > 5 + <a class="allproduct" href="{{allproduct}}"data-bp-id="page_product-category_true" >
6 全部商品 6 全部商品
7 <span class="arrow-icon iconfont"> 7 <span class="arrow-icon iconfont">
8 &#xe614; 8 &#xe614;
@@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
16 <div class="content"> 16 <div class="content">
17 <ul class="primary-level"> 17 <ul class="primary-level">
18 {{# class}} 18 {{# class}}
19 - <li class="p-level-item" data-dp-id="product-primarylevel_{{name}}_true">{{name}} 19 + <li class="p-level-item" data-bp-id="product-primarylevel_{{name}}_true">{{name}}
20 <div class="primary-level-trilangle hide"></div> 20 <div class="primary-level-trilangle hide"></div>
21 </li> 21 </li>
22 {{/ class}} 22 {{/ class}}
@@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
25 {{# category}} 25 {{# category}}
26 <ul class="sub-level"> 26 <ul class="sub-level">
27 {{# subcategory}} 27 {{# subcategory}}
28 - <li data-dp-id="product-sublevel_{{category_name}}_false"> 28 + <li data-bp-id="product-sublevel_{{category_name}}_false">
29 <a href={{url}}> 29 <a href={{url}}>
30 {{category_name}} 30 {{category_name}}
31 </a> 31 </a>
@@ -70,7 +70,7 @@ @@ -70,7 +70,7 @@
70 70
71 <ul class="spring"> 71 <ul class="spring">
72 {{#each spring}} 72 {{#each spring}}
73 - <li data-dp-id="shop_spring_one_false"> 73 + <li data-dp-id="shop_spring_{{springType}}_false">
74 <a href="{{url}}"> 74 <a href="{{url}}">
75 <img src="{{springType}}"> 75 <img src="{{springType}}">
76 </a> 76 </a>
@@ -90,7 +90,7 @@ @@ -90,7 +90,7 @@
90 90
91 <ul class="product-list"> 91 <ul class="product-list">
92 {{#each hotList}} 92 {{#each hotList}}
93 - <li data-dp-id="shop_popularity__{{productName}}_false"> 93 + <li data-dp-id="shop_popularity_{{productName}}_false">
94 <a href="{{url}}"> 94 <a href="{{url}}">
95 <img src="{{listUrl}}"> 95 <img src="{{listUrl}}">
96 </a> 96 </a>
@@ -116,22 +116,22 @@ @@ -116,22 +116,22 @@
116 {{> product/shop-footer}} 116 {{> product/shop-footer}}
117 {{/unless}} 117 {{/unless}}
118 <ul id="pos-nav" class="nav hide"> 118 <ul id="pos-nav" class="nav hide">
119 - <li class="active color" tab="home-page" data-dp-id="shop_posnav_one_true">首页</li>  
120 - <li tab="new-arrival" data-dp-id="shop_posnav_two_true">上新</li>  
121 - <li tab="popularity" data-dp-id="shop_posnav_three_true">人气</li>  
122 - <li> 119 + <li class="active color" tab="home-page" data-bp-id="shop_posnav_one_true">首页</li>
  120 + <li tab="new-arrival" data-bp-id="shop_posnav_two_true">上新</li>
  121 + <li tab="popularity" data-bp-id="shop_posnav_three_true">人气</li>
  122 + <li data-bp-id="shop_posnav_four_true">
123 <a href="{{allGoods}}" target="_blank" data-dp-id="shop_posnav_four_true">全部商品</a> 123 <a href="{{allGoods}}" target="_blank" data-dp-id="shop_posnav_four_true">全部商品</a>
124 </li> 124 </li>
125 </ul> 125 </ul>
126 126
127 <ul id="pos-list" class="home-sub-nav pos-list nav hide"> 127 <ul id="pos-list" class="home-sub-nav pos-list nav hide">
128 - <li class="new active" data-dp-id="shop_poslist_new_true"> 128 + <li class="new active" data-bp-id="shop_poslist_new_true">
129 <a href="javascript:void(0);"> 129 <a href="javascript:void(0);">
130 <span class="spanTest">最新</span> 130 <span class="spanTest">最新</span>
131 <span class="iconfont cur">&#xe616;</span> 131 <span class="iconfont cur">&#xe616;</span>
132 </a> 132 </a>
133 </li> 133 </li>
134 - <li class="price" data-dp-id="shop_posnav_price_true"> 134 + <li class="price" data-bp-id="shop_posnav_price_true">
135 <a href="javascript:void(0);"> 135 <a href="javascript:void(0);">
136 <span class="spanTest">价格</span> 136 <span class="spanTest">价格</span>
137 <span class="icon"> 137 <span class="icon">
@@ -140,7 +140,7 @@ @@ -140,7 +140,7 @@
140 </span> 140 </span>
141 </a> 141 </a>
142 </li> 142 </li>
143 - <li class="discount" data-dp-id="shop_posnav_discount_true"> 143 + <li class="discount" data-bp-id="shop_posnav_discount_true">
144 <a href="javascript:void(0);"> 144 <a href="javascript:void(0);">
145 <span class="spanTest">折扣</span> 145 <span class="spanTest">折扣</span>
146 <span class="icon"> 146 <span class="icon">
@@ -149,7 +149,7 @@ @@ -149,7 +149,7 @@
149 </span> 149 </span>
150 </a> 150 </a>
151 </li> 151 </li>
152 - <li class="filter" data-dp-id="shop_posnav_filter_true"> 152 + <li class="filter" data-bp-id="shop_posnav_filter_true">
153 <a href="javascript:void(0);"> 153 <a href="javascript:void(0);">
154 <span class="spanTest">筛选</span> 154 <span class="spanTest">筛选</span>
155 <span class="iconfont cur">&#xe613;</span> 155 <span class="iconfont cur">&#xe613;</span>
@@ -3,14 +3,14 @@ @@ -3,14 +3,14 @@
3 <div class="filter-body"> 3 <div class="filter-body">
4 <ul class="classify"> 4 <ul class="classify">
5 {{#each classify}} 5 {{#each classify}}
6 - <li class="classify-item{{#if @first}} active{{/if}}" data-dp-id="filter_classify_{{name}}_true"> 6 + <li class="classify-item{{#if @first}} active{{/if}}" data-bp-id="filter_classify_{{name}}_true">
7 <p class="shower{{#if default}} default{{/if}}"> 7 <p class="shower{{#if default}} default{{/if}}">
8 <span class="title">{{title}}:</span> 8 <span class="title">{{title}}:</span>
9 {{name}} 9 {{name}}
10 </p> 10 </p>
11 <ul class="sub-classify" data-type={{dataType}}> 11 <ul class="sub-classify" data-type={{dataType}}>
12 {{# subs}} 12 {{# subs}}
13 - <li class="sub-item{{#if chosed}} chosed{{/if}}" data-id={{dataId}} data-dp-id="filter_subclassify_{{name}}_true"> 13 + <li class="sub-item{{#if chosed}} chosed{{/if}}" data-id={{dataId}} data-bp-id="filter_subclassify_{{name}}_true">
14 {{name}} 14 {{name}}
15 <i class="iconfont chosed-icon">&#xe617;</i> 15 <i class="iconfont chosed-icon">&#xe617;</i>
16 </li> 16 </li>
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 <div class="sub-group hide"> 8 <div class="sub-group hide">
9 <dl> 9 <dl>
10 {{# shopCategory.list}} 10 {{# shopCategory.list}}
11 - <dd data-dp-id="shop_subgroup_{{name}}_true"><a href="{{url}}">{{name}}</a></dd> 11 + <dd data-bp-id="shop_subgroup_{{name}}_true"><a href="{{url}}">{{name}}</a></dd>
12 {{/ shopCategory.list}} 12 {{/ shopCategory.list}}
13 </dl> 13 </dl>
14 <div class="sharp"></div> 14 <div class="sharp"></div>
@@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
17 <div class="wall"></div> 17 <div class="wall"></div>
18 </li> 18 </li>
19 {{#if brandList}} 19 {{#if brandList}}
20 - <li data-dp-id="shop_footnav_two_true"> 20 + <li data-bp-id="shop_footnav_two_true">
21 {{#if brandList.url}} 21 {{#if brandList.url}}
22 <a href="{{shopCategory.url}}">品牌一览</a> 22 <a href="{{shopCategory.url}}">品牌一览</a>
23 {{^}} 23 {{^}}
@@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
25 <div class="sub-group hide"> 25 <div class="sub-group hide">
26 <dl> 26 <dl>
27 {{# brandList.list}} 27 {{# brandList.list}}
28 - <dd><a href="{{url}}" data-dp-id="shop_subgroup_{{brandName}}_true">{{brandName}}</a></dd> 28 + <dd><a href="{{url}}" data-bp-id="shop_subgroup_{{brandName}}_true">{{brandName}}</a></dd>
29 {{/ brandList.list}} 29 {{/ brandList.list}}
30 </dl> 30 </dl>
31 <div class="sharp"></div> 31 <div class="sharp"></div>
@@ -34,7 +34,7 @@ @@ -34,7 +34,7 @@
34 <div class="wall"></div> 34 <div class="wall"></div>
35 </li> 35 </li>
36 {{/if}} 36 {{/if}}
37 - <li data-dp-id="shop_footnav_three_true"> 37 + <li data-bp-id="shop_footnav_three_true">
38 <a href="{{shopIntroHref}}">店铺简介</a> 38 <a href="{{shopIntroHref}}">店铺简介</a>
39 </li> 39 </li>
40 </ul> 40 </ul>