Commit 222718a3 by kubisk

dos

parent 2038c498
......@@ -99,7 +99,7 @@ $(document).ready(function () {
bindUpload(this, uploadCtx, uploadCanvas, 1, function (img, imgInfo) {
$('.btn-upload-block').css('left', '53px');
$('.btn-createposter').show();
$('.upload-before').show();
$('.upload-before').hide();
$('.upload-after').show();
var mc = new Hammer($('#uploadCanvas').get(0));
bindMc(mc, uploadCtx, uploadCanvas, img, imgInfo);
......@@ -142,30 +142,36 @@ function checkInfo() {
my_notify('请填写工号');
return false;
}
$.ajax({
url: '/index/getInfo',
type: 'POST',
data: {
name: name,
code: code
},
success: function (resp) {
if (resp.status == 1) {
level = resp.poster;
username = name;
company = resp.branch;
toUploadPage();
$('.username').text(username);
$('.company').html('中信保诚人寿<br/>' + company + '分公司');
setShare();
} else {
$('#notification_area').remove();
my_notify(resp.msg);
return false;
}
}
})
level = '1';
username = '张三';
company = '北京';
toUploadPage();
$('.username').text(username);
$('.company').html('中信保诚人寿<br/>' + company + '分公司');
// $.ajax({
// url: '/index/getInfo',
// type: 'POST',
// data: {
// name: name,
// code: code
// },
// success: function (resp) {
// if (resp.status == 1) {
// level = resp.poster;
// username = name;
// company = resp.branch;
// toUploadPage();
// $('.username').text(username);
// $('.company').html('中信保诚人寿<br/>' + company + '分公司');
// setShare();
// } else {
// $('#notification_area').remove();
// my_notify(resp.msg);
// return false;
// }
// }
// })
}
function setShare() {
......@@ -239,46 +245,7 @@ function backToHome() {
$('.page1').show();
}
// function checkInfo() {
// if (!createPosterLock) {
// createPosterLock = true;
// let name = $('input[name=name]').val();
// let business = $('input[name=business]').val();
// // name = '张三三';
// // business = '1234567890';
// if (name.match(/^\s*$/)) {
// $('#notification_area').remove();
// my_notify('请填写姓名');
// createPosterLock = false;
// return false;
// }
// if (!checkIt('name', 8)) {
// $('#notification_area').remove();
// my_notify('姓名最长为4位');
// createPosterLock = false;
// return false;
// }
// if (business == '') {
// $('#notification_area').remove();
// my_notify('请填写业务号');
// createPosterLock = false;
// return false;
// }
// if (!business.match(/^\d{10}$/)) {
// $('#notification_area').remove();
// my_notify('业务号填写有误');
// createPosterLock = false;
// return false;
// }
// if ($('input[name=btn-upload]').val() == '') {
// $('#notification_area').remove();
// my_notify('请上传头像');
// createPosterLock = false;
// return false;
// }
// createPoster(name, business);
// }
// }
function createPoster() {
$('#notification_area').remove();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment