songxingwei 3 vuotta sitten
vanhempi
commit
b8df7a8477
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 5 2
      application/store/view/article/form.html

+ 5 - 2
application/store/view/article/form.html

@@ -55,8 +55,8 @@
             <label class="layui-col-xs12 relative">
                 <span class="color-green" required>类别</span>
                 <div id="cate" lay-filter="cate">
-                    <input type="radio" name="cate"  value="3" lay-filter="cate" title="123">-->
-                    <input type="radio" name="cate"  value="4" lay-filter="cate" title="456">-->
+                    <input type="radio" name="cate"  value="3" lay-filter="cate" title="123" onchange="changetype(e)">
+                    <input type="radio" name="cate"  value="4" lay-filter="cate" title="456" onchange="changetype(e)">
 
                     <!--                    {if !isset($vo.id)}-->
 <!--                       {foreach $catelist as $key=>$v}-->
@@ -94,6 +94,9 @@
 
 {block name='script'}
 <script>
+    function changetype(e){
+        console.log(e)
+    }
     layui.form.render();
     form.render();
     layui.use(['form', 'layedit', 'laydate'], function(){