mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改商城产品模块
This commit is contained in:
parent
f930700255
commit
3180f69728
@ -244,9 +244,9 @@ class Product extends BasicAdmin
|
|||||||
public function forbid()
|
public function forbid()
|
||||||
{
|
{
|
||||||
if (DataService::update($this->table)) {
|
if (DataService::update($this->table)) {
|
||||||
$this->success("产品禁用成功!", '');
|
$this->success("产品下架成功!", '');
|
||||||
}
|
}
|
||||||
$this->error("产品禁用失败,请稍候再试!");
|
$this->error("产品下架失败,请稍候再试!");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -257,9 +257,9 @@ class Product extends BasicAdmin
|
|||||||
public function resume()
|
public function resume()
|
||||||
{
|
{
|
||||||
if (DataService::update($this->table)) {
|
if (DataService::update($this->table)) {
|
||||||
$this->success("产品启用成功!", '');
|
$this->success("产品上架成功!", '');
|
||||||
}
|
}
|
||||||
$this->error("产品启用失败,请稍候再试!");
|
$this->error("产品上架失败,请稍候再试!");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
{block name="button"}
|
{block name="button"}
|
||||||
|
|
||||||
<!--{if auth("$classuri/add")}-->
|
<!--{if auth("$classuri/add")}-->
|
||||||
<button data-open='{:url("$classuri/add")}' data-title="添加产品" class='layui-btn layui-btn-sm'>添加产品</button>
|
<button data-open='{:url("$classuri/add")}' data-title="添加产品" class='layui-btn layui-btn-sm layui-btn-primary'>添加产品</button>
|
||||||
<!--{/if}-->
|
<!--{/if}-->
|
||||||
|
|
||||||
<!--{if auth("$classuri/forbid")}-->
|
<!--{if auth("$classuri/forbid")}-->
|
||||||
@ -15,7 +15,7 @@
|
|||||||
<!--{/if}-->
|
<!--{/if}-->
|
||||||
|
|
||||||
<!--{if auth("$classuri/del")}-->
|
<!--{if auth("$classuri/del")}-->
|
||||||
<button data-update data-field='delete' data-action='{:url("$classuri/del")}' class='layui-btn layui-btn-sm layui-btn-danger'>批量删除</button>
|
<button data-update data-field='delete' data-action='{:url("$classuri/del")}' class='layui-btn layui-btn-sm layui-btn-primary'>批量删除</button>
|
||||||
<!--{/if}-->
|
<!--{/if}-->
|
||||||
|
|
||||||
{/block}
|
{/block}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user