Nenhuma descrição
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

users_welcome.js 978B

12345678910111213141516171819202122232425262728293031323334
  1. $(function() {
  2. // 如果拓展应用中没有应用则隐藏,有应用则显示
  3. if (0 === parseInt($('#eyExpandTpl').find('a').length)) {
  4. $('#eyExpandTpl').hide();
  5. } else {
  6. $('#eyExpandTpl').show();
  7. }
  8. });
  9. // 会员签到
  10. function userSignin(obj) {
  11. showLayerLoad();
  12. $.ajax({
  13. url : $(obj).attr('data-url'),
  14. url : eyou_basefile + "?m=api&c=Ajax&a=signin_save",
  15. data: {_ajax: 1},
  16. type: "POST",
  17. dataType: 'json',
  18. success: function (res) {
  19. layer.closeAll();
  20. if (res.code == 1) {
  21. showLayerMsg(res.msg);
  22. $('#usersScores').html(res.data.scores);
  23. $(obj).removeAttr('onclick').find('#user_signin').html('已签到');
  24. } else {
  25. showLayerAlert(res.msg);
  26. }
  27. },
  28. error: function(e) {
  29. layer.closeAll();
  30. showLayerAlert(e.responseText);
  31. }
  32. });
  33. }