Merge branch 'feature/givePoint'
Showing
3 changed files
with
4 additions
and
10 deletions
@@ -217,7 +217,7 @@ function getTogetherProduct($obj, url, page) { | @@ -217,7 +217,7 @@ function getTogetherProduct($obj, url, page) { | ||
217 | window.givePoint({ | 217 | window.givePoint({ |
218 | 'REC_POSE': 120003, | 218 | 'REC_POSE': 120003, |
219 | 'PRD_ID': $(this).closest('li').find('.btn_view_s').data('id'), | 219 | 'PRD_ID': $(this).closest('li').find('.btn_view_s').data('id'), |
220 | - 'PRD_NUM': $(this).closest('li').index(), | 220 | + 'PRD_NUM': $(this).closest('li').index() + 1, |
221 | 'ACTION_ID': 1, | 221 | 'ACTION_ID': 1, |
222 | 'page_num': page && page.page ? page.page : 1 | 222 | 'page_num': page && page.page ? page.page : 1 |
223 | }); | 223 | }); |
@@ -189,7 +189,7 @@ $.extend({ | @@ -189,7 +189,7 @@ $.extend({ | ||
189 | function givePoint(parameter) { | 189 | function givePoint(parameter) { |
190 | var CID = 1; | 190 | var CID = 1; |
191 | 191 | ||
192 | - if (!window._yas.sendCustomInfo) { | 192 | + if (!window._yas) { |
193 | return false; | 193 | return false; |
194 | } | 194 | } |
195 | 195 | ||
@@ -219,12 +219,6 @@ function givePoint(parameter) { | @@ -219,12 +219,6 @@ function givePoint(parameter) { | ||
219 | 'page_num': 1 | 219 | 'page_num': 1 |
220 | }, parameter); | 220 | }, parameter); |
221 | 221 | ||
222 | - console.log({ | ||
223 | - 'op': 'YB_CHOOSE_FOR_YOU_Y', | ||
224 | - 'uid': getUid(), | ||
225 | - 'param': parameter | ||
226 | - }, 'yas==='); | ||
227 | - | ||
228 | if (parameter.REC_POSE === '' || parameter.PRD_ID === '') { | 222 | if (parameter.REC_POSE === '' || parameter.PRD_ID === '') { |
229 | return true; | 223 | return true; |
230 | } | 224 | } |
@@ -232,7 +226,7 @@ function givePoint(parameter) { | @@ -232,7 +226,7 @@ function givePoint(parameter) { | ||
232 | window._yas.sendCustomInfo({ | 226 | window._yas.sendCustomInfo({ |
233 | 'op': 'YB_CHOOSE_FOR_YOU_Y', | 227 | 'op': 'YB_CHOOSE_FOR_YOU_Y', |
234 | 'uid': getUid(), | 228 | 'uid': getUid(), |
235 | - 'param': parameter | 229 | + 'param': JSON.stringify(parameter) |
236 | }, true); | 230 | }, true); |
237 | } | 231 | } |
238 | 232 |
@@ -120,7 +120,7 @@ function pageChange(self, $ul, page, itemWith, curPage, num) { | @@ -120,7 +120,7 @@ function pageChange(self, $ul, page, itemWith, curPage, num) { | ||
120 | window.givePoint({ | 120 | window.givePoint({ |
121 | 'REC_POSE': 120004, | 121 | 'REC_POSE': 120004, |
122 | 'PRD_ID': $(this).data('id'), | 122 | 'PRD_ID': $(this).data('id'), |
123 | - 'PRD_NUM': $(this).closest('li').index(), | 123 | + 'PRD_NUM': $(this).closest('li').index() + 1, |
124 | 'ACTION_ID': 1, | 124 | 'ACTION_ID': 1, |
125 | 'page_num': 1 | 125 | 'page_num': 1 |
126 | }); | 126 | }); |
-
Please register or login to post a comment