[更新]修改商城产品模块

This commit is contained in:
Anyon 2018-05-03 10:59:13 +08:00
parent f930700255
commit 3180f69728
2 changed files with 6 additions and 6 deletions

View File

@ -244,9 +244,9 @@ class Product extends BasicAdmin
public function forbid()
{
if (DataService::update($this->table)) {
$this->success("产品禁用成功!", '');
$this->success("产品下架成功!", '');
}
$this->error("产品禁用失败,请稍候再试!");
$this->error("产品下架失败,请稍候再试!");
}
/**
@ -257,9 +257,9 @@ class Product extends BasicAdmin
public function resume()
{
if (DataService::update($this->table)) {
$this->success("产品启用成功!", '');
$this->success("产品上架成功!", '');
}
$this->error("产品启用失败,请稍候再试!");
$this->error("产品上架失败,请稍候再试!");
}
}

View File

@ -3,7 +3,7 @@
{block name="button"}
<!--{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 auth("$classuri/forbid")}-->
@ -15,7 +15,7 @@
<!--{/if}-->
<!--{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}-->
{/block}