作者 anyv
1 个管道 的构建 通过 耗费 0 秒

4

@@ -469,10 +469,11 @@ @@ -469,10 +469,11 @@
469 */ 469 */
470 function Sure_add(){ 470 function Sure_add(){
471 show_img = $('#show_img')[0].src; 471 show_img = $('#show_img')[0].src;
472 - console.log(show_img);  
473 - /* if(show_img == "http://www.xkeasy.com/themes/simpleboot3/public/assets/images/jiahao.png"){ 472 +
  473 + if(show_img == "http://www.xkeasy.com/themes/simpleboot3/public/assets/images/jiahao.png"){
474 show_img = ''; 474 show_img = '';
475 } 475 }
  476 + console.log(show_img);
476 thumbnail = $('#thumbnail')[0].src; 477 thumbnail = $('#thumbnail')[0].src;
477 if(thumbnail == "http://www.xkeasy.com/themes/simpleboot3/public/assets/images/jiahao.png"){ 478 if(thumbnail == "http://www.xkeasy.com/themes/simpleboot3/public/assets/images/jiahao.png"){
478 thumbnail = ''; 479 thumbnail = '';
@@ -505,7 +506,7 @@ @@ -505,7 +506,7 @@
505 img2 = ''; 506 img2 = '';
506 } 507 }
507 508
508 - $.post("{:url('Salesmangoods/Salesman_goods_add')}",{show_img:show_img,thumbnail:thumbnail,book_name:book_name,money:money,price:price,pricing:pricing,instr:instr,book_number:book_number,paper:paper,book_size:book_size,binding:binding,author:author,press:press,press_time:press_time,suit:suit,grade:grade,img0:img0,img1:img1,img2:img2,printing:printing},function(data){ 509 + /* $.post("{:url('Salesmangoods/Salesman_goods_add')}",{show_img:show_img,thumbnail:thumbnail,book_name:book_name,money:money,price:price,pricing:pricing,instr:instr,book_number:book_number,paper:paper,book_size:book_size,binding:binding,author:author,press:press,press_time:press_time,suit:suit,grade:grade,img0:img0,img1:img1,img2:img2,printing:printing},function(data){
509 if(data == 3){ 510 if(data == 3){
510 alert('添加失败,业务员书籍不能超过8本'); 511 alert('添加失败,业务员书籍不能超过8本');
511 }else if(data == 2){ 512 }else if(data == 2){