购买确认订单埋点 review by lea.guo
Showing
4 changed files
with
67 additions
and
0 deletions
@@ -115,6 +115,17 @@ export default { | @@ -115,6 +115,17 @@ export default { | ||
115 | toast.hide(); | 115 | toast.hide(); |
116 | this.onError(result); | 116 | this.onError(result); |
117 | }); | 117 | }); |
118 | + | ||
119 | + //数据埋点 | ||
120 | + this.$store.dispatch('reportYas', { | ||
121 | + params: { | ||
122 | + appop: 'XY_UFO_SC_PAY', | ||
123 | + param: { | ||
124 | + ORD_NUM: this.orderCode, | ||
125 | + PAY_TYPE: 1 | ||
126 | + }, | ||
127 | + }, | ||
128 | + }); | ||
118 | }, | 129 | }, |
119 | onError(result) { | 130 | onError(result) { |
120 | this.$emit('payError'); | 131 | this.$emit('payError'); |
@@ -123,11 +134,39 @@ export default { | @@ -123,11 +134,39 @@ export default { | ||
123 | time: 1500, | 134 | time: 1500, |
124 | type: 'txt' | 135 | type: 'txt' |
125 | }).show(); | 136 | }).show(); |
137 | + | ||
138 | + //数据埋点 | ||
139 | + this.$store.dispatch('reportYas', { | ||
140 | + params: { | ||
141 | + appop: 'XY_UFO_SC_PAY_RES', | ||
142 | + param: { | ||
143 | + ORD_NUM: this.orderCode, | ||
144 | + PAY_TYPE: 1, //1支付宝支付,2微信支付 | ||
145 | + PAY_RES: 0, //0支付失败,1支付成功 | ||
146 | + ORDER_AMOUNT: this.price | ||
147 | + }, | ||
148 | + }, | ||
149 | + }); | ||
150 | + | ||
126 | }, | 151 | }, |
127 | onSuccess(result) { | 152 | onSuccess(result) { |
128 | this.hide(); | 153 | this.hide(); |
129 | this.$emit('paySuccess'); | 154 | this.$emit('paySuccess'); |
130 | 155 | ||
156 | + //数据埋点 | ||
157 | + this.$store.dispatch('reportYas', { | ||
158 | + params: { | ||
159 | + appop: 'XY_UFO_SC_PAY', | ||
160 | + param: { | ||
161 | + ORD_NUM: this.orderCode, | ||
162 | + PAY_TYPE: 1, | ||
163 | + PAY_RES: 1, | ||
164 | + ORDER_AMOUNT: this.price | ||
165 | + }, | ||
166 | + }, | ||
167 | + }); | ||
168 | + | ||
169 | + | ||
131 | this.$router.replace({ | 170 | this.$router.replace({ |
132 | name: 'OrderPay', | 171 | name: 'OrderPay', |
133 | query: { | 172 | query: { |
@@ -246,6 +246,21 @@ export default { | @@ -246,6 +246,21 @@ export default { | ||
246 | vm.onClose(result.data.orderCode); | 246 | vm.onClose(result.data.orderCode); |
247 | }, | 247 | }, |
248 | }).show(); | 248 | }).show(); |
249 | + | ||
250 | + //数据埋点 | ||
251 | + this.$store.dispatch('reportYas', { | ||
252 | + params: { | ||
253 | + appop: 'XY_UFO_SC_ORD', | ||
254 | + param: { | ||
255 | + ORD_NUM: result.data.orderCode, | ||
256 | + PRD_ID: this.productId, | ||
257 | + PRD_SKU: this.productDetail.skup, | ||
258 | + PRD_SIZE: this.productDetail.sizeName, | ||
259 | + ORD_AMOUNT: this.orderDetail.amount, | ||
260 | + PRD_PRICE: this.productDetail.goodPrice, | ||
261 | + }, | ||
262 | + }, | ||
263 | + }); | ||
249 | }, | 264 | }, |
250 | onClose(orderCode) { | 265 | onClose(orderCode) { |
251 | this.$router.replace({ | 266 | this.$router.replace({ |
@@ -170,6 +170,7 @@ export default { | @@ -170,6 +170,7 @@ export default { | ||
170 | return; | 170 | return; |
171 | } | 171 | } |
172 | this.$emit('select', { | 172 | this.$emit('select', { |
173 | + size_name: this.selectedSize.size_name, | ||
173 | productId: this.product.product_id, | 174 | productId: this.product.product_id, |
174 | storageId: this.selectedSize.storage_id, | 175 | storageId: this.selectedSize.storage_id, |
175 | skup: this.selectedSize.skup, | 176 | skup: this.selectedSize.skup, |
@@ -319,6 +319,18 @@ export default { | @@ -319,6 +319,18 @@ export default { | ||
319 | }, | 319 | }, |
320 | async onSelectTradeProduct(tradeProduct) { | 320 | async onSelectTradeProduct(tradeProduct) { |
321 | if (this.selectSizeConfig.type === 'buy') { | 321 | if (this.selectSizeConfig.type === 'buy') { |
322 | + //数据埋点 | ||
323 | + this.$store.dispatch('reportYas', { | ||
324 | + params: { | ||
325 | + appop: 'XY_UFO_PRD_DT_BUY_SEL_C', | ||
326 | + param: { | ||
327 | + PRD_ID: tradeProduct.productId, | ||
328 | + PRD_SKU: tradeProduct.skup, | ||
329 | + PRD_SIZE: tradeProduct.size_name, | ||
330 | + }, | ||
331 | + } | ||
332 | + }); | ||
333 | + | ||
322 | try { | 334 | try { |
323 | const info = await this.payment({ | 335 | const info = await this.payment({ |
324 | skup: tradeProduct.skup, | 336 | skup: tradeProduct.skup, |
-
Please register or login to post a comment