mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-12-05 21:38:45 +08:00
21 lines
849 B
JavaScript
Executable File
21 lines
849 B
JavaScript
Executable File
$(function()
|
|
{
|
|
// 表单初始化
|
|
FromInit('form.form-validation-reply');
|
|
|
|
$(function()
|
|
{
|
|
// 处理
|
|
$('.submit-reply').on('click', function()
|
|
{
|
|
var json = $(this).data('json');
|
|
var $popup = $('#my-popup-reply');
|
|
$popup.find('input[name="id"]').val(json.id);
|
|
$popup.find('.user-info img').attr('src', json.user.avatar || $popup.find('.user-info img').attr('src'));
|
|
$popup.find('.user-info .user-base .username span').html(json.user.username || '');
|
|
$popup.find('.user-info .user-base .nickname span').html(json.user.nickname || '');
|
|
$popup.find('.user-info .user-base .mobile span').html(json.user.mobile || '');
|
|
$popup.find('.user-info .user-base .email span').html(json.user.email || '');
|
|
});
|
|
});
|
|
}); |