新增文娱旅游、教育培训、民生公益、房屋装修后台功能与api文件
This commit is contained in:
parent
0f6bc586d2
commit
6d3daa13eb
@ -1,62 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\controller\nk;
|
||||
|
||||
use app\admin\BaseController;
|
||||
use think\facade\Db;
|
||||
use think\facade\View;
|
||||
|
||||
/**
|
||||
* 区域订单手续费(佣金)管理
|
||||
*
|
||||
* @icon fa fa-circle-o
|
||||
*/
|
||||
class Regioncommission extends BaseController
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->adminInfo = get_login_admin();
|
||||
$this->url=[
|
||||
'/admin/nk.regioncommission/index',
|
||||
];
|
||||
}
|
||||
/**
|
||||
* 查看
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$total=0;
|
||||
$list=[];
|
||||
$brokerage_price=0;
|
||||
$find=Db::table('fa_szxc_information_useraddress')->where('user_id',$this->adminInfo['id'])->value('street_id');
|
||||
if ($find!=0) {
|
||||
$brokerage_price=Db::connect('shop')->name('store_order_region_commission')->where('street_id',$find)->sum('commission_rate');
|
||||
}
|
||||
if (request()->isAjax()) {
|
||||
$params= get_params();
|
||||
if ($find!=0){
|
||||
$list=Db::connect('shop')->name('store_order_region_commission')->where('street_id',$find)
|
||||
->page($params['page'])
|
||||
->limit($params['limit'])
|
||||
->select();
|
||||
}
|
||||
$result = ['total' => $total, 'data' => $list];
|
||||
return table_assign(0, '', $result);
|
||||
}
|
||||
View::assign('brokerage_price', $brokerage_price);
|
||||
|
||||
return view('',['url'=>$this->url]);
|
||||
}
|
||||
/**
|
||||
* 查看信息
|
||||
*/
|
||||
public function read()
|
||||
{
|
||||
$params = get_params();
|
||||
|
||||
return view('',['url'=>$this->url]);
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user