添加网站文件
This commit is contained in:
347
application/admin/controller/Clasorder.php
Normal file
347
application/admin/controller/Clasorder.php
Normal file
@@ -0,0 +1,347 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\controller;
|
||||
|
||||
use app\admin\logic\ClasorderLogic;
|
||||
use app\admin\logic\StatcLogic;
|
||||
use app\common\model\Order as CommonOrder;
|
||||
use app\common\model\Pay;
|
||||
use app\common\model\Client_;
|
||||
use think\Db;
|
||||
|
||||
class Clasorder extends AdminBase
|
||||
{
|
||||
/**
|
||||
* Notes: 保洁订单列表
|
||||
* @param $get
|
||||
* @author 杨左(2021/2/1 10:12)
|
||||
* @return array
|
||||
*/
|
||||
public function cleaning(){
|
||||
if ($this->request->isAjax()) {
|
||||
$get = $this->request->get();
|
||||
$this->_success('获取成功', ClasorderLogic::cleaning($get));
|
||||
}
|
||||
$this->assign('order_status', CommonOrder::getOrderStatus(true));
|
||||
$this->assign('order_type', CommonOrder::getOrderType(true));
|
||||
$this->assign('pay_way', Pay::getPayWay(true));
|
||||
$this->assign('delivery_type', CommonOrder::getDeliveryType(true));
|
||||
$this->assign('order_source', Client_::getClient(true));
|
||||
$ceenl=Db::name('orderchannel')->select();
|
||||
$goods=Db::name('goods')->select();
|
||||
$this->assign('ceenl',$ceenl);
|
||||
$this->assign('goods',$goods);
|
||||
$admin=Db::name('admin')->select();
|
||||
$this->assign('admin',$admin);
|
||||
$this->assign('num', StatcLogic::cleaning());
|
||||
return $this->fetch();
|
||||
}
|
||||
/**
|
||||
* Notes: 收纳整理
|
||||
* @param $get
|
||||
* @author 杨左(2021/2/1 10:12)
|
||||
* @return array
|
||||
*/
|
||||
public function storage(){
|
||||
if ($this->request->isAjax()) {
|
||||
$get = $this->request->get();
|
||||
$this->_success('获取成功', ClasorderLogic::storage($get));
|
||||
}
|
||||
$this->assign('order_status', CommonOrder::getOrderStatus(true));
|
||||
$this->assign('order_type', CommonOrder::getOrderType(true));
|
||||
$this->assign('pay_way', Pay::getPayWay(true));
|
||||
$this->assign('delivery_type', CommonOrder::getDeliveryType(true));
|
||||
$this->assign('order_source', Client_::getClient(true));
|
||||
$ceenl=Db::name('orderchannel')->select();
|
||||
$goods=Db::name('goods')->select();
|
||||
$this->assign('ceenl',$ceenl);
|
||||
$this->assign('goods',$goods);
|
||||
$admin=Db::name('admin')->select();
|
||||
$this->assign('admin',$admin);
|
||||
return $this->fetch();
|
||||
}
|
||||
/**
|
||||
* Notes: 深度清洗
|
||||
* @param $get
|
||||
* @author 杨左(2021/2/1 10:12)
|
||||
* @return array
|
||||
*/
|
||||
public function depth(){
|
||||
if ($this->request->isAjax()) {
|
||||
$get = $this->request->get();
|
||||
$this->_success('获取成功', ClasorderLogic::depth($get));
|
||||
}
|
||||
$this->assign('order_status', CommonOrder::getOrderStatus(true));
|
||||
$this->assign('order_type', CommonOrder::getOrderType(true));
|
||||
$this->assign('pay_way', Pay::getPayWay(true));
|
||||
$this->assign('delivery_type', CommonOrder::getDeliveryType(true));
|
||||
$this->assign('order_source', Client_::getClient(true));
|
||||
$ceenl=Db::name('orderchannel')->select();
|
||||
$goods=Db::name('goods')->select();
|
||||
$this->assign('ceenl',$ceenl);
|
||||
$this->assign('goods',$goods);
|
||||
$admin=Db::name('admin')->select();
|
||||
$this->assign('admin',$admin);
|
||||
return $this->fetch();
|
||||
}
|
||||
/**
|
||||
* Notes: 宠物保洁
|
||||
* @param $get
|
||||
* @author 杨左(2021/2/1 10:12)
|
||||
* @return array
|
||||
*/
|
||||
public function pet(){
|
||||
if ($this->request->isAjax()) {
|
||||
$get = $this->request->get();
|
||||
$this->_success('获取成功', ClasorderLogic::pet($get));
|
||||
}
|
||||
$this->assign('order_status', CommonOrder::getOrderStatus(true));
|
||||
$this->assign('order_type', CommonOrder::getOrderType(true));
|
||||
$this->assign('pay_way', Pay::getPayWay(true));
|
||||
$this->assign('delivery_type', CommonOrder::getDeliveryType(true));
|
||||
$this->assign('order_source', Client_::getClient(true));
|
||||
$ceenl=Db::name('orderchannel')->select();
|
||||
$goods=Db::name('goods')->select();
|
||||
$this->assign('ceenl',$ceenl);
|
||||
$this->assign('goods',$goods);
|
||||
$admin=Db::name('admin')->select();
|
||||
$this->assign('admin',$admin);
|
||||
return $this->fetch();
|
||||
}
|
||||
/**
|
||||
* Notes: 做饭到家
|
||||
* @param $get
|
||||
* @author 杨左(2021/2/1 10:12)
|
||||
* @return array
|
||||
*/
|
||||
public function cooking(){
|
||||
if ($this->request->isAjax()) {
|
||||
$get = $this->request->get();
|
||||
$this->_success('获取成功', ClasorderLogic::cooking($get));
|
||||
}
|
||||
$this->assign('order_status', CommonOrder::getOrderStatus(true));
|
||||
$this->assign('order_type', CommonOrder::getOrderType(true));
|
||||
$this->assign('pay_way', Pay::getPayWay(true));
|
||||
$this->assign('delivery_type', CommonOrder::getDeliveryType(true));
|
||||
$this->assign('order_source', Client_::getClient(true));
|
||||
$ceenl=Db::name('orderchannel')->select();
|
||||
$goods=Db::name('goods')->select();
|
||||
$this->assign('ceenl',$ceenl);
|
||||
$this->assign('goods',$goods);
|
||||
$admin=Db::name('admin')->select();
|
||||
$this->assign('admin',$admin);
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* Notes: 粗开荒保洁
|
||||
* @param $get
|
||||
* @author 杨左(2021/2/1 10:12)
|
||||
* @return array
|
||||
*/
|
||||
public function thick(){
|
||||
if ($this->request->isAjax()) {
|
||||
$get = $this->request->get();
|
||||
$this->_success('获取成功', ClasorderLogic::thick($get));
|
||||
}
|
||||
$this->assign('order_status', CommonOrder::getOrderStatus(true));
|
||||
$this->assign('order_type', CommonOrder::getOrderType(true));
|
||||
$this->assign('pay_way', Pay::getPayWay(true));
|
||||
$this->assign('delivery_type', CommonOrder::getDeliveryType(true));
|
||||
$this->assign('order_source', Client_::getClient(true));
|
||||
$ceenl=Db::name('orderchannel')->select();
|
||||
$goods=Db::name('goods')->select();
|
||||
$this->assign('ceenl',$ceenl);
|
||||
$this->assign('goods',$goods);
|
||||
$admin=Db::name('admin')->select();
|
||||
$this->assign('admin',$admin);
|
||||
return $this->fetch();
|
||||
|
||||
}
|
||||
/**
|
||||
* Notes: 细开荒保洁
|
||||
* @param $get
|
||||
* @author 杨左(2021/2/1 10:12)
|
||||
* @return array
|
||||
*/
|
||||
public function fine(){
|
||||
if ($this->request->isAjax()) {
|
||||
$get = $this->request->get();
|
||||
$this->_success('获取成功', ClasorderLogic::fine($get));
|
||||
}
|
||||
$this->assign('order_status', CommonOrder::getOrderStatus(true));
|
||||
$this->assign('order_type', CommonOrder::getOrderType(true));
|
||||
$this->assign('pay_way', Pay::getPayWay(true));
|
||||
$this->assign('delivery_type', CommonOrder::getDeliveryType(true));
|
||||
$this->assign('order_source', Client_::getClient(true));
|
||||
$ceenl=Db::name('orderchannel')->select();
|
||||
$goods=Db::name('goods')->select();
|
||||
$this->assign('ceenl',$ceenl);
|
||||
$this->assign('goods',$goods);
|
||||
$admin=Db::name('admin')->select();
|
||||
$this->assign('admin',$admin);
|
||||
return $this->fetch();
|
||||
|
||||
}
|
||||
/**
|
||||
* Notes: 搬家货运
|
||||
* @param $get
|
||||
* @author 杨左(2021/2/1 10:12)
|
||||
* @return array
|
||||
*/
|
||||
public function move(){
|
||||
if ($this->request->isAjax()) {
|
||||
$get = $this->request->get();
|
||||
$this->_success('获取成功', ClasorderLogic::move($get));
|
||||
}
|
||||
$this->assign('order_status', CommonOrder::getOrderStatus(true));
|
||||
$this->assign('order_type', CommonOrder::getOrderType(true));
|
||||
$this->assign('pay_way', Pay::getPayWay(true));
|
||||
$this->assign('delivery_type', CommonOrder::getDeliveryType(true));
|
||||
$this->assign('order_source', Client_::getClient(true));
|
||||
$ceenl=Db::name('orderchannel')->select();
|
||||
$goods=Db::name('goods')->select();
|
||||
$this->assign('ceenl',$ceenl);
|
||||
$this->assign('goods',$goods);
|
||||
$admin=Db::name('admin')->select();
|
||||
$this->assign('admin',$admin);
|
||||
return $this->fetch();
|
||||
|
||||
}
|
||||
/**
|
||||
* Notes: 搬家货运
|
||||
* @param $get
|
||||
* @author 杨左(2021/2/1 10:12)
|
||||
* @return array
|
||||
*/
|
||||
public function detection(){
|
||||
if ($this->request->isAjax()) {
|
||||
$get = $this->request->get();
|
||||
$this->_success('获取成功', ClasorderLogic::detection($get));
|
||||
}
|
||||
$this->assign('order_status', CommonOrder::getOrderStatus(true));
|
||||
$this->assign('order_type', CommonOrder::getOrderType(true));
|
||||
$this->assign('pay_way', Pay::getPayWay(true));
|
||||
$this->assign('delivery_type', CommonOrder::getDeliveryType(true));
|
||||
$this->assign('order_source', Client_::getClient(true));
|
||||
$ceenl=Db::name('orderchannel')->select();
|
||||
$goods=Db::name('goods')->select();
|
||||
$this->assign('ceenl',$ceenl);
|
||||
$this->assign('goods',$goods);
|
||||
$admin=Db::name('admin')->select();
|
||||
$this->assign('admin',$admin);
|
||||
return $this->fetch();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Notes: 空气治理
|
||||
* @param $get
|
||||
* @author 杨左(2021/2/1 10:12)
|
||||
* @return array
|
||||
*/
|
||||
public function governance(){
|
||||
if ($this->request->isAjax()) {
|
||||
$get = $this->request->get();
|
||||
$this->_success('获取成功', ClasorderLogic::governance($get));
|
||||
}
|
||||
$this->assign('order_status', CommonOrder::getOrderStatus(true));
|
||||
$this->assign('order_type', CommonOrder::getOrderType(true));
|
||||
$this->assign('pay_way', Pay::getPayWay(true));
|
||||
$this->assign('delivery_type', CommonOrder::getDeliveryType(true));
|
||||
$this->assign('order_source', Client_::getClient(true));
|
||||
$ceenl=Db::name('orderchannel')->select();
|
||||
$goods=Db::name('goods')->select();
|
||||
$this->assign('ceenl',$ceenl);
|
||||
$this->assign('goods',$goods);
|
||||
$admin=Db::name('admin')->select();
|
||||
$this->assign('admin',$admin);
|
||||
return $this->fetch();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Notes: 家电清洗
|
||||
* @param $get
|
||||
* @author 杨左(2021/2/1 10:12)
|
||||
* @return array
|
||||
*/
|
||||
public function wash(){
|
||||
if ($this->request->isAjax()) {
|
||||
$get = $this->request->get();
|
||||
$this->_success('获取成功', ClasorderLogic::wash($get));
|
||||
}
|
||||
$this->assign('order_status', CommonOrder::getOrderStatus(true));
|
||||
$this->assign('order_type', CommonOrder::getOrderType(true));
|
||||
$this->assign('pay_way', Pay::getPayWay(true));
|
||||
$this->assign('delivery_type', CommonOrder::getDeliveryType(true));
|
||||
$this->assign('order_source', Client_::getClient(true));
|
||||
$ceenl=Db::name('orderchannel')->select();
|
||||
$goods=Db::name('goods')->select();
|
||||
$this->assign('ceenl',$ceenl);
|
||||
$this->assign('goods',$goods);
|
||||
$admin=Db::name('admin')->select();
|
||||
$this->assign('admin',$admin);
|
||||
return $this->fetch();
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Notes: 家电清洗
|
||||
* @param $get
|
||||
* @author 杨左(2021/2/1 10:12)
|
||||
* @return array
|
||||
*/
|
||||
public function linen(){
|
||||
if ($this->request->isAjax()) {
|
||||
$get = $this->request->get();
|
||||
$this->_success('获取成功', ClasorderLogic::linen($get));
|
||||
}
|
||||
$this->assign('order_status', CommonOrder::getOrderStatus(true));
|
||||
$this->assign('order_type', CommonOrder::getOrderType(true));
|
||||
$this->assign('pay_way', Pay::getPayWay(true));
|
||||
$this->assign('delivery_type', CommonOrder::getDeliveryType(true));
|
||||
$this->assign('order_source', Client_::getClient(true));
|
||||
$ceenl=Db::name('orderchannel')->select();
|
||||
$goods=Db::name('goods')->select();
|
||||
$this->assign('ceenl',$ceenl);
|
||||
$this->assign('goods',$goods);
|
||||
$admin=Db::name('admin')->select();
|
||||
$this->assign('admin',$admin);
|
||||
return $this->fetch();
|
||||
|
||||
}
|
||||
/**
|
||||
* Notes: 宠物保洁订单
|
||||
* @param $get
|
||||
* @author 杨左(2021/2/1 10:12)
|
||||
* @return array
|
||||
*/
|
||||
public function pets(){
|
||||
if ($this->request->isAjax()) {
|
||||
$get = $this->request->get();
|
||||
$this->_success('获取成功', ClasorderLogic::pets($get));
|
||||
}
|
||||
$this->assign('order_status', CommonOrder::getOrderStatus(true));
|
||||
$this->assign('order_type', CommonOrder::getOrderType(true));
|
||||
$this->assign('pay_way', Pay::getPayWay(true));
|
||||
$this->assign('delivery_type', CommonOrder::getDeliveryType(true));
|
||||
$this->assign('order_source', Client_::getClient(true));
|
||||
$ceenl=Db::name('orderchannel')->select();
|
||||
$goods=Db::name('goods')->select();
|
||||
$this->assign('ceenl',$ceenl);
|
||||
$this->assign('goods',$goods);
|
||||
$admin=Db::name('admin')->select();
|
||||
$this->assign('admin',$admin);
|
||||
return $this->fetch();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user