|
@@ -47,7 +47,7 @@ |
|
@@ -47,7 +47,7 @@ |
47
|
<table class="table table-hover table-bordered">
|
47
|
<table class="table table-hover table-bordered">
|
48
|
<thead>
|
48
|
<thead>
|
49
|
<tr>
|
49
|
<tr>
|
50
|
- <th style="width: 50px;">id</th>
|
50
|
+ <!--<th style="width: 50px;">id</th>-->
|
51
|
<th>权重</th>
|
51
|
<th>权重</th>
|
52
|
<th>商品名称</th>
|
52
|
<th>商品名称</th>
|
53
|
<th>商品简介</th>
|
53
|
<th>商品简介</th>
|
|
@@ -64,8 +64,8 @@ |
|
@@ -64,8 +64,8 @@ |
64
|
<tbody>
|
64
|
<tbody>
|
65
|
<foreach name="all" item="vo">
|
65
|
<foreach name="all" item="vo">
|
66
|
<tr>
|
66
|
<tr>
|
67
|
- <td>{$vo.id}</td>
|
|
|
68
|
- <td>{$vo.listorder}</td>
|
67
|
+ <!--<td>{$vo.id}</td>-->
|
|
|
68
|
+ <td><input type="number" value="{$vo.listorder}" class="listorder" data-id="{$vo.id}"></td>
|
69
|
<td>{$vo.name}</td>
|
69
|
<td>{$vo.name}</td>
|
70
|
<td>{$vo.intro}</td>
|
70
|
<td>{$vo.intro}</td>
|
71
|
<td>{$vo.caname}</td>
|
71
|
<td>{$vo.caname}</td>
|
|
@@ -158,6 +158,19 @@ |
|
@@ -158,6 +158,19 @@ |
158
|
selectbox.remove(i);
|
158
|
selectbox.remove(i);
|
159
|
}
|
159
|
}
|
160
|
}
|
160
|
}
|
|
|
161
|
+
|
|
|
162
|
+ $(".listorder").change(function () {
|
|
|
163
|
+ $.ajax({
|
|
|
164
|
+ url:"{:url('ZjGoods/listorder')}",
|
|
|
165
|
+ data:{
|
|
|
166
|
+ id:$(this).attr('data-id'),
|
|
|
167
|
+ listorder:$(this).val()
|
|
|
168
|
+ },
|
|
|
169
|
+ type:"POST",
|
|
|
170
|
+ dataType:"JSON"
|
|
|
171
|
+ })
|
|
|
172
|
+ })
|
|
|
173
|
+
|
161
|
</script>
|
174
|
</script>
|
162
|
</body>
|
175
|
</body>
|
163
|
</html> |
176
|
</html> |