dyjh 6 年之前
父節點
當前提交
49747ad859
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      resources/views/admin/album/product/price/index.blade.php

+ 4 - 0
resources/views/admin/album/product/price/index.blade.php

xqd
@@ -142,6 +142,10 @@
 
     function getLevelSecondCategory(){
         var first = $('#data_parent_id').val();
+        if (first == 0) {
+            level.changeData([{'id':0,'name':'请先选择一级类目'}]);
+            return;
+		}
         $.ajax({
             url: "{{ U('Album/Product/getSecondCategory') }}",
             method: 'POST',