切换导航条
此项目
正在载入...
登录
李涵
/
integral
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
李涵
6 years ago
提交
50404b4f4c7ba15f7027eb82c8037c1176bfe5ec
2 个父辈
bb5ea1d7
ab04a6e1
1 个管道 的构建
通过
耗费 0 秒
合并分支 'li' 到 'master'
修改bug阶段 查看合并请求
!374
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
23 行增加
和
3 行删除
app/admin/controller/ZjGoodsController.php
public/themes/admin_simpleboot3/admin/zj_goods/index.html
app/admin/controller/ZjGoodsController.php
查看文件 @
50404b4
...
...
@@ -460,4 +460,11 @@ class ZjGoodsController extends AdminBaseController
}
}
public
function
listorder
()
{
$request
=
request
();
if
(
$request
->
isAjax
())
{
Db
::
name
(
'zj_goods'
)
->
update
(
$request
->
param
());
}
}
}
\ No newline at end of file
...
...
public/themes/admin_simpleboot3/admin/zj_goods/index.html
查看文件 @
50404b4
...
...
@@ -47,7 +47,7 @@
<table
class=
"table table-hover table-bordered"
>
<thead>
<tr>
<
th
style=
"width: 50px;"
>
id
</th
>
<
!--<th style="width: 50px;">id</th>--
>
<th>
权重
</th>
<th>
商品名称
</th>
<th>
商品简介
</th>
...
...
@@ -64,8 +64,8 @@
<tbody>
<foreach
name=
"all"
item=
"vo"
>
<tr>
<td>
{$vo.id}
</td>
<td>
{$vo.listorder}
</td>
<!--<td>{$vo.id}</td>-->
<td><input
type=
"number"
value=
"{$vo.listorder}"
class=
"listorder"
data-id=
"{$vo.id}"
></td>
<td>
{$vo.name}
</td>
<td>
{$vo.intro}
</td>
<td>
{$vo.caname}
</td>
...
...
@@ -158,6 +158,19 @@
selectbox
.
remove
(
i
);
}
}
$
(
".listorder"
).
change
(
function
()
{
$
.
ajax
({
url
:
"{:url('ZjGoods/listorder')}"
,
data
:{
id
:
$
(
this
).
attr
(
'data-id'
),
listorder
:
$
(
this
).
val
()
},
type
:
"POST"
,
dataType
:
"JSON"
})
})
</script>
</body>
</html>
\ No newline at end of file
...
...
请
注册
或
登录
后发表评论