Files
addons
app_download_files
extend
hyhproject
admin
behavior
common
conf
controller
Accreds.php
Addons.php
Adgoods.php
Adpositions.php
Ads.php
Areas.php
Articlecats.php
Articles.php
Attributes.php
Banks.php
Base.php
Brands.php
Carts.php
Cashdraws.php
Chargeitems.php
Cronjobs.php
Datacats.php
Datas.php
Ectday.php
Ectdeal.php
Ecttarget.php
Express.php
Friendlinks.php
Goods.php
Goodsappraises.php
Goodscats.php
Goodsclassify.php
Goodsconsult.php
Homemenus.php
Hooks.php
Images.php
Index.php
Informs.php
Logmoneys.php
Logoperates.php
Logsms.php
Logstafflogins.php
Member.php
Menus.php
Messages.php
Mobilebtns.php
Navs.php
Ordercomplains.php
Orderrefunds.php
Orders.php
Payments.php
Platform.php
Privileges.php
Recommends.php
Reports.php
Roles.php
Settlements.php
Shops.php
Speccats.php
Staffs.php
Styles.php
Sysconfigs.php
Templatemsgs.php
Userranks.php
Users.php
Userscores.php
Wsysconfigs.php
Wxmenus.php
Wxpassivereplys.php
Wxtemplatemsgs.php
Wxusers.php
model
validate
view
app
common
home
home2
mobile2
wechat2
.htaccess
command.php
mobile
oss
static
thinkphp
upload
vendor
wxtmp
.gitignore
.htaccess
.user.ini
404.html
H5B854518.wgt
admin.php
app-release.apk
app_download.html
cash.lock
demo.php
get_startup.php
get_version.php
get_version_new.php
hyhproject.tar.gz
index.html
index.php
qlg.tar.gz
reg.lock
robots.txt
qlg.tsgz.moe/hyhproject/admin/controller/Goods.php
2019-09-06 23:53:10 +08:00

133 lines
2.7 KiB
PHP
Executable File

<?php
namespace wstmart\admin\controller;
use wstmart\admin\model\Goods as M;
/**
* ============================================================================
* 商品控制器
*/
class Goods extends Base{
/**
* 查看上架商品列表
*/
public function index(){
$this->assign("areaList",model('areas')->listQuery(0));
return $this->fetch('list_sale');
}
/**
* 批量删除商品
*/
public function batchDel(){
$m = new M();
return $m->batchDel();
}
/**
* 设置违规商品
*/
public function illegal(){
$m = new M();
return $m->illegal();
}
/**
* 批量设置违规商品
*/
public function batchIllegal(){
$m = new M();
return $m->batchIllegal();
}
/**
* 通过商品审核
*/
public function allow(){
$m = new M();
return $m->allow();
}
/**
* 批量通过商品审核
*/
public function batchAllow(){
$m = new M();
return $m->batchAllow();
}
/**
* 获取上架商品列表
*/
public function saleByPage(){
$m = new M();
$rs = $m->saleByPage();
$rs['status'] = 1;
return WSTGrid($rs);
}
/**
* 已下架的商品
*/
public function shelves(){
$this->assign("areaList",model('areas')->listQuery(0));
return $this->fetch('goods/list_shelves');
}
/**
* 获取已下架的商品
*/
public function shelvesByPage(){
$m = new M();
$rs = $m->shelvesByPage();
$rs['status'] = 1;
return WSTGrid($rs);
}
/**
* 审核中的商品
*/
public function auditIndex(){
$this->assign("areaList",model('areas')->listQuery(0));
return $this->fetch('goods/list_audit');
}
/**
* 获取审核中的商品
*/
public function auditByPage(){
$m = new M();
$rs = $m->auditByPage();
$rs['status'] = 1;
return WSTGrid($rs);
}
/**
* 审核中的商品
*/
public function illegalIndex(){
$this->assign("areaList",model('areas')->listQuery(0));
return $this->fetch('list_illegal');
}
/**
* 获取违规商品列表
*/
public function illegalByPage(){
$m = new M();
$rs = $m->illegalByPage();
$rs['status'] = 1;
return WSTGrid($rs);
}
/**
* 删除商品
*/
public function del(){
$m = new M();
return $m->del();
}
/**
* 导出购物车数据
*/
public function toExportSale(){
$m = new M();
$rs = $m->toExportSale();
$this->assign('rs',$rs);
}
/**
* 商品ECT支付状态
*/
public function goodsEct(){
$m = new M();
return $m->goodsEct();
}
}