Authored by htoooth

change alert to tip

import 'scss/activity/have-gain-promodetail.page.scss';
import $ from 'yoho-jquery';
require('js/plugin/modal.alert');
const tip = require('js/plugin/tip');
const $promoStatus = $('.promo-status.js-submit');
... ... @@ -29,7 +29,7 @@ $promoStatus.on('click', function() {
}
if (result.code !== 200) {
$.yAlert(result.data.message);
tip.show(result.data.message, 3500);
return;
}
... ... @@ -37,15 +37,15 @@ $promoStatus.on('click', function() {
$promoStatus
.text('报名成功,去分享活动商品')
.data('status', 3);
$.yAlert(result.data.message);
tip.show(result.data.message, 3500);
} else if (result.data.result === 3) {
$promoStatus
.text('不符合条件')
.removeClass('promo-status_submit')
.addClass('promo-status_over');
$.yAlert(result.data.message);
tip.show(result.data.message, 3500);
} else {
$.yAlert(result.data.message);
tip.show(result.data.message, 3500);
}
});
}
... ...