You've already forked qlg.tsgz.moe
							
							
		
			
				
	
	
		
			30 lines
		
	
	
		
			667 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			667 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
| <?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);
 | |
|     }
 | |
| } |