wupengfei 2 years ago
parent
commit
265b7c222b
2 changed files with 2 additions and 4 deletions
  1. 1 1
      .idea/workspace.xml
  2. 1 3
      application/mall/view/store_goods/form.html

+ 1 - 1
.idea/workspace.xml

@@ -201,7 +201,7 @@
       <workItem from="1662342663926" duration="3749000" />
       <workItem from="1662424055312" duration="8281000" />
       <workItem from="1662528828371" duration="14923000" />
-      <workItem from="1662597494801" duration="11725000" />
+      <workItem from="1662597494801" duration="11902000" />
     </task>
     <servers />
   </component>

+ 1 - 3
application/mall/view/store_goods/form.html

@@ -65,6 +65,7 @@
                                     </select>
                                 </div>
                                 <input type="hidden" id="first"  value="{$vo.first_classify|default='-1'}"/>
+                                <input type="hidden" id="second" value="{$vo.second_classify|default='-1'}"/>
                             </div>
                         </div>
 
@@ -468,12 +469,9 @@
         var first_key = $("select[name='first_classify']").find("option:selected").data("first_key")
         $("#first").val(first_key);
         $("select[name='second_classify']").html('');
-        $("select[name='third_classify']").html('');
-        $("select[name='fourth_classify']").html('');
         // 没有下级不继续
         if(first_key == -1 || !("children" in goods_spec[first_key])){
             $("#second").val(-1);
-            $("#third").val(-1);
             window.form.render();
             return true;
         }else{