...
|
...
|
@@ -35,6 +35,9 @@ |
|
|
.log_six_pictyre_titles{
|
|
|
display: none;
|
|
|
}
|
|
|
.log_six_select_one span,.log_two_input_title span,.log_two_picture_title span{
|
|
|
color: #F20000;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
|
...
|
...
|
@@ -114,7 +117,7 @@ |
|
|
<div class="log_two_input">
|
|
|
<div class="log_two_input_one ">
|
|
|
<div class="log_two_input_title">
|
|
|
书籍
|
|
|
<span>*</span>书名
|
|
|
</div>
|
|
|
<div class="log_two_input_contant">
|
|
|
<input type="text" placeholder="请输入书籍名称" name="book_name" value="{$goods_data.book_name}" />
|
...
|
...
|
@@ -122,7 +125,7 @@ |
|
|
</div>
|
|
|
<div class="log_two_input_one ">
|
|
|
<div class="log_two_input_title">
|
|
|
佣金
|
|
|
<span>*</span>佣金
|
|
|
</div>
|
|
|
<div class="log_two_input_contant">
|
|
|
<input type="text" placeholder="请输入下级推广佣金" name="money" value="{$goods_data.money}" />
|
...
|
...
|
@@ -130,7 +133,7 @@ |
|
|
</div>
|
|
|
<div class="log_two_input_one">
|
|
|
<div class="log_two_input_title">
|
|
|
售价
|
|
|
<span>*</span>售价
|
|
|
</div>
|
|
|
<div class="log_two_input_contant">
|
|
|
<input type="text" placeholder="输入售价" name="price" value="{$goods_data.price}" />
|
...
|
...
|
@@ -171,7 +174,7 @@ |
|
|
</div>
|
|
|
<div class="log_two_input_one">
|
|
|
<div class="log_two_input_title">
|
|
|
开本
|
|
|
<span>*</span>开本
|
|
|
</div>
|
|
|
<div class="log_two_input_contant">
|
|
|
<input type="text" placeholder="请输入开本" name="book_size" value="{$goods_data.book_size}" />
|
...
|
...
|
@@ -225,7 +228,7 @@ |
|
|
<div class="log_six_select_contant">
|
|
|
<div class="log_two_input_one">
|
|
|
<div class="log_two_input_title">
|
|
|
套装
|
|
|
<span>*</span>套装
|
|
|
</div>
|
|
|
<div class="log_two_input_contant">
|
|
|
<input type="text" placeholder="请输入每套本数" name="suit" value="{$goods_data.suit}" />
|
...
|
...
|
@@ -234,7 +237,7 @@ |
|
|
<div class="log_six_select_top log_six_select_nianji">
|
|
|
<div class="log_six_select_left">
|
|
|
<div class="log_six_select_one" >
|
|
|
适合年级
|
|
|
<span>*</span>适合年级
|
|
|
</div>
|
|
|
<div class="log_six_select_two log_six_nianji_contant" id="grade" >
|
|
|
{$goods_data.grade}
|
...
|
...
|
@@ -249,7 +252,7 @@ |
|
|
<div class="log_six_wire"></div>
|
|
|
<div class="log_two_picture">
|
|
|
<div class="log_two_picture_title">
|
|
|
商品详情
|
|
|
<span>*</span>商品详情
|
|
|
</div>
|
|
|
<div class="log_six_file_picture">
|
|
|
<div class="log_six_picture">
|
...
|
...
|
@@ -359,19 +362,23 @@ |
|
|
if(img2 == "http://xkeasy.w.bronet.cn/themes/simpleboot3/public/assets/images/jiahao.png"){
|
|
|
img2 = '';
|
|
|
}
|
|
|
|
|
|
$.post("{:url('Salesmangoods/Salesman_goods_edit')}",{id:id,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){
|
|
|
if(data == 2){
|
|
|
alert('佣金不能大于售价');
|
|
|
}else{
|
|
|
if(data){
|
|
|
window.location.href="{:url('Salesmangoods/salesman_goods')}";
|
|
|
if(book_name!=""&&money!=""&&price!=""&&book_size!=""&&suit!=""&&grade!=""&&(img0!=""||img1!=""||img2!="")){
|
|
|
$.post("{:url('Salesmangoods/Salesman_goods_edit')}",{id:id,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){
|
|
|
if(data == 2){
|
|
|
alert('佣金不能大于售价');
|
|
|
}else{
|
|
|
alert('更新失败!');
|
|
|
if(data){
|
|
|
window.location.href="{:url('Salesmangoods/salesman_goods')}";
|
|
|
}else{
|
|
|
alert('更新失败!');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
});
|
|
|
});
|
|
|
}else{
|
|
|
alert("必填项不能为空")
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|