|
@@ -154,10 +154,15 @@ $('.phone-input-content div').on('click', function() { |
|
@@ -154,10 +154,15 @@ $('.phone-input-content div').on('click', function() { |
154
|
},
|
154
|
},
|
155
|
success: function(data) {
|
155
|
success: function(data) {
|
156
|
if (data.result.code === 200) {
|
156
|
if (data.result.code === 200) {
|
157
|
- if (window._yas && window._yas.sendCustomInfo) {
|
157
|
+ if (window._yas && window._yas.sendCustomInfo && data.result.coupon) {
|
158
|
window._yas.sendCustomInfo({
|
158
|
window._yas.sendCustomInfo({
|
159
|
- activityID: activityID,
|
|
|
160
|
- returnCode: data.result.returnCode
|
159
|
+ op: 'YB_GET_COUP',
|
|
|
160
|
+ param: JSON.stringify({
|
|
|
161
|
+ PAGE_NM: document.title,
|
|
|
162
|
+ PAGE_URL: location.href,
|
|
|
163
|
+ COUP_ID: data.result.coupon,
|
|
|
164
|
+ TEL_ID: $('#phone').val()
|
|
|
165
|
+ })
|
161
|
}, true);
|
166
|
}, true);
|
162
|
}
|
167
|
}
|
163
|
if (!data.result.newUser) {
|
168
|
if (!data.result.newUser) {
|
|
@@ -235,10 +240,15 @@ $('.vertify-input-content').on('click', '.get', function() { |
|
@@ -235,10 +240,15 @@ $('.vertify-input-content').on('click', '.get', function() { |
235
|
dataType: 'json',
|
240
|
dataType: 'json',
|
236
|
success: function(data) {
|
241
|
success: function(data) {
|
237
|
if (data.result.code === 200) {
|
242
|
if (data.result.code === 200) {
|
238
|
- if (window._yas && window._yas.sendCustomInfo) {
|
243
|
+ if (window._yas && window._yas.sendCustomInfo && data.result.coupon) {
|
239
|
window._yas.sendCustomInfo({
|
244
|
window._yas.sendCustomInfo({
|
240
|
- activityID: activityID,
|
|
|
241
|
- returnCode: data.result.returnCode
|
245
|
+ op: 'YB_GET_COUP',
|
|
|
246
|
+ param: JSON.stringify({
|
|
|
247
|
+ PAGE_NM: document.title,
|
|
|
248
|
+ PAGE_URL: location.href,
|
|
|
249
|
+ COUP_ID: data.result.coupon,
|
|
|
250
|
+ TEL_ID: $('#phone').val()
|
|
|
251
|
+ })
|
242
|
}, true);
|
252
|
}, true);
|
243
|
}
|
253
|
}
|
244
|
if (!data.result.newUser) {
|
254
|
if (!data.result.newUser) {
|