作者 刘朕
1 个管道 的构建 通过 耗费 1 秒

后台取消提现列表删除功能

... ... @@ -74,21 +74,6 @@ class WithdrawalController extends AdminBaseController{
}
/**
* 提现列表删除
*/
public function withd_del(){
$id = $_POST['id'];
$data = Db::name('money_expend') -> delete($id);
if($data){
return true;
}else{
return false;
}
}
/**
* 提现审核拒绝
*/
... ...
... ... @@ -100,7 +100,6 @@
<td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
<td style="width: 130px;">
<a href="{:url('Salesmanorder/sale_order_show',array('id'=>$vo.id))}"><button type="button" class="btn btn-default">查看</button></a>
<button type="button" class="btn btn-default" onclick="sale_order_del({$vo.id})">删除</button>
</td>
</tr>
</volist>
... ... @@ -111,23 +110,5 @@
{$data_arr->render()}
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>
/**
*点击删除
*/
function sale_order_del(id){
ccc = window.confirm('是否删除这条订单?');
if(ccc){
$.post("{:url('Salesmanorder/sale_order_del')}",{id:id},function(data){
if(data){
$('.tr'+id).remove();
}else{
alert('删除失败!');
}
});
}
}
</script>
</body>
</html>
\ No newline at end of file
... ...
... ... @@ -52,7 +52,7 @@
<td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
<td style="width: 80px;">
<button type="button" class="btn btn-default" onclick="withd_del({$vo.id})">删除</button>
</td>
</tr>
</volist>
... ... @@ -63,22 +63,5 @@
{$data->render()}
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>
/**
*点击删除
*/
function withd_del(id){
ccc = window.confirm('是否删除?');
if(ccc){
$.post("{:url('Withdrawal/withd_del')}",{id:id},function(data){
if(data){
$('.tr'+id).remove();
}else{
alert('删除失败!');
}
});
}
}
</script>
</body>
</html>
\ No newline at end of file
... ...