', '', '', '网址', '', '',
'', '',
'', '联系方式', '', '',
'', '',
'',
'类型',
'', '', '', '', '', '', '', '', '', '', '', '申请前请先将本站设为您的友链,且百度权重>=1!'
].join(''),
success: function(layero, index) {
var image = layero.find('.fly-case-image'),
preview = $('#preview');
upload.render({
url: '/index/upload/upimage.html',
elem: '#caseUpload',
size: 30,
done: function(res) {
if (res.code == 200) {
image.val(res.data.id);
preview.html('');
} else {
layer.msg(res.msg, {
icon: 5
});
}
}
});
form.on('radio(linktype)', function(data) {
if (data.value == 1) {
$("#img_area").show();
} else {
$("#img_area").hide();
}
});
form.render('radio').on('submit(pushCase)', function(data) {
var param = data.field;
var url = '/index/api/applysuperlink.html';
$.post(url, param, function(res) {
layer.close(index);
layer.alert(res.msg, {
icon: 1
});
});
});
}
});
});
});
}