Init Repo

This commit is contained in:
root
2019-09-06 23:53:10 +08:00
commit f0ef89dfbb
7905 changed files with 914138 additions and 0 deletions

View File

@ -0,0 +1,30 @@
<?php
namespace wstmart\admin\controller;
use wstmart\admin\model\Carts as M;
/**
* ============================================================================
* 基础控业务处理
*/
use think\Db;
class Carts extends Base{
//购物车列表
public function cart(){
$m = new M();
return $this->fetch('carts');
}
//获取分页
public function cartsByPage(){
$m=new M();
$result=$m->cartsByPage();
$result['status'] = 1;
return WSTGrid($result);
}
/**
* 导出购物车数据
*/
public function toExport(){
$m = new M();
$rs = $m->toExport();
$this->assign('rs',$rs);
}
}