wupengfei 2 лет назад
Родитель
Сommit
41641dc86b

+ 1 - 2
application/mall/controller/WashCate.php

@@ -83,7 +83,7 @@ class WashCate extends Controller
         }
         if($this->request->isPost()) {
             // 价格设置
-            $title_arr= input('post.title');
+            $title_arr= input('post.ladder_title');
             $price_arr= input('post.price');
             $price_param = [];
             if(empty($price_arr) || empty($title_arr)) $this->error('请设置价格');
@@ -91,7 +91,6 @@ class WashCate extends Controller
                 $price_param[] = ['title'=>$t,'price'=>bcadd($price_arr[$k],0,2),'ladder_key'=>$k];
             }
             $data['ladder_set'] = json_encode($price_param);
-            $data['title'] = input('name');
         }
     }
 

+ 2 - 2
application/mall/view/wash_cate/form.html

@@ -8,7 +8,7 @@
             <div class="layui-form-item">
                 <label class="layui-form-label label-required">分类名称</label>
                 <div class="layui-input-block">
-                    <input name="name" maxlength="20"  value='{$vo.title|default=""}' placeholder="请输入分类名称" class="layui-input">
+                    <input name="title" maxlength="20"  value='{$vo.title|default=""}' placeholder="请输入分类名称" class="layui-input">
                 </div>
             </div>
 
@@ -35,7 +35,7 @@
                         <!--{foreach $ladder_set as $param}-->
                         <tr class="param_index">
                             <td class="padding-0" >
-                                <input class="layui-input  border-0" name="title[]" value="{$param.title|default=''}">
+                                <input class="layui-input  border-0" name="ladder_title[]" value="{$param.title|default=''}">
                             </td>
                             <td class="padding-0">
                                 <input class="layui-input  border-0"   type="number" step="1" name="price[]" value="{$param.price|default=''}">