wupengfei 2 年之前
父节点
当前提交
802dc581a5
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 3 1
      application/user/controller/Level.php
  2. 1 1
      application/user/view/level/form.html

+ 3 - 1
application/user/controller/Level.php

@@ -103,7 +103,9 @@ class Level extends Controller
      */
     protected function _form_filter(&$data)
     {
-
+        if($this->request->isGet()) {
+            $this->price = !empty($data['price']) ? json_decode($data['price'],true):[];
+        }
     }
 
 }

+ 1 - 1
application/user/view/level/form.html

@@ -29,7 +29,7 @@
                             </th>
                         </tr>
                         </thead>
-                        <!--{foreach :json_decode($vo.price,true) as $param}-->
+                        <!--{foreach $price as $param}-->
                         <tr class="param_index">
                             <td class="padding-0" >
                                 <input class="layui-input  border-0" name="title[]" value="{$param.title|default=''}">