This commit is contained in:
parent
d0338419b0
commit
4e40f9297a
|
|
@ -143,9 +143,8 @@ class CartController extends Controller
|
|||
}
|
||||
$carts =$cmodel
|
||||
->alias('c')
|
||||
->field("mi.thumb_image as img,g.name,g.price,g.id as goods_id,gb.name as brand_name,c.goods_num,c.selected,c.id as cart_id,item_value")
|
||||
->field("mi.thumb_image as img,g.name,g.price,g.id as goods_id,c.goods_num,c.selected,c.id as cart_id,item_value")
|
||||
->join('goods g', 'g.id = c.goods_id')
|
||||
->join('goods_brand gb', 'gb.id= g.brand_id')
|
||||
->join('mall_image mi', 'mi.union_id= c.goods_id and is_cover=1 and mi.type=1', 'LEFT')
|
||||
->where('c.user_id', $user_id)
|
||||
->order('c.create_time desc')
|
||||
|
|
|
|||
|
|
@ -5,14 +5,11 @@
|
|||
*/
|
||||
|
||||
namespace app\api\controller;
|
||||
use app\common\model\Goodsindex;
|
||||
use app\common\model\Goods;
|
||||
use app\common\model\GoodsBrand;
|
||||
use app\common\model\GoodsItem;
|
||||
use app\common\model\GoodsCategory;
|
||||
use app\common\model\MallImage;
|
||||
use app\common\model\ShopConfig;
|
||||
use app\common\model\PhaseConfig;
|
||||
use app\common\model\GoodsCollect;
|
||||
use tools\Crypt;
|
||||
use think\Request;
|
||||
|
|
@ -24,50 +21,40 @@ class GoodsController extends Controller
|
|||
];
|
||||
|
||||
//商品列表
|
||||
public function goods_list(Request $request,Goods $model)
|
||||
public function goods_list(Request $request,Goods $model,GoodsCategory $gcmodel)
|
||||
{
|
||||
$param = $request->param();
|
||||
$size=$param['size']>0?$param['size']:12;
|
||||
$page_l=$param['page']>1?$param['page']:1;
|
||||
$page=$size * ($page_l - 1);
|
||||
$where[]=array('status','=',1);
|
||||
$where[]=array('gi.stock','>',0);
|
||||
$keyword = $param['keyword']??'';
|
||||
$where1='';
|
||||
$keyword = $param['kw']??'';
|
||||
if($keyword){
|
||||
foreach ($keyword as $v1) {
|
||||
$where1.="( `spec_value` LIKE '%".$v1."%' OR `gb`.`name` LIKE '%".$v1."%' OR `gc`.`name` LIKE '%".$v1."%') or";
|
||||
}
|
||||
$where1=rtrim($where1,'or');
|
||||
$where[]=array('g.name','LIKE',$keyword);
|
||||
}
|
||||
$sort=$param['sort']??'asc';
|
||||
$order=$param['order']??'g.sort_number';
|
||||
$cid = $param['cid'];
|
||||
$category_list=$gcmodel->field('name,id')->where(array('parent_id'=>0))->select();
|
||||
foreach ($category_list as $k1 => $v1){
|
||||
$category_list[$k1]=$v1['id'];
|
||||
}
|
||||
$where[]=array('goods_category_id','=',$category_list[$cid]);
|
||||
$goods_count = $model
|
||||
->alias('g')
|
||||
->where($where)
|
||||
->where($where1)
|
||||
->join('mall_image mi', 'mi.union_id= g.id and is_cover=1 and mi.type=1', 'LEFT')
|
||||
->join('goods_brand gb', 'gb.id = g.brand_id')
|
||||
->join('goods_item gi', 'gi.goods_id = g.id')
|
||||
->join('goods_category gc', 'gc.id = g.goods_category_id')
|
||||
->group('g.id')
|
||||
->count();
|
||||
$totalPages = ceil($goods_count / $size);
|
||||
$goods_list = $model
|
||||
->alias('g')
|
||||
->field("mi.thumb_image as img, g.name,g.price,g.id as goods_id,gb.name as brand_name")
|
||||
->field("mi.thumb_image as img, g.name,g.price,g.id as goods_id")
|
||||
->join('mall_image mi', 'mi.union_id= g.id and is_cover=1 and mi.type=1', 'LEFT')
|
||||
->join('goods_brand gb', 'gb.id = g.brand_id')
|
||||
->join('goods_item gi', 'gi.goods_id = g.id')
|
||||
->join('goods_category gc', 'gc.id = g.goods_category_id')
|
||||
->where($where)
|
||||
->where($where1)
|
||||
->limit($page, $size)
|
||||
->group('g.id')
|
||||
->order($order.' '.$sort)
|
||||
->order('g.sort_number asc')
|
||||
->select();
|
||||
if (!$goods_list) {
|
||||
return success(array('list'=>[]));
|
||||
return client_error('暂无数据');
|
||||
}
|
||||
foreach ($goods_list as $k1 => $v1) {
|
||||
$goods_list[$k1]['img'] =$this->img_url.$v1['img'];
|
||||
|
|
@ -83,7 +70,7 @@ class GoodsController extends Controller
|
|||
}
|
||||
|
||||
//商品详情
|
||||
public function goods_info(Request $request,Goods $model,MallImage $mimodel,GoodsItem $gimodel,PhaseConfig $pcmodel)
|
||||
public function goods_info(Request $request,Goods $model,MallImage $mimodel,GoodsItem $gimodel)
|
||||
{
|
||||
$param = $request->param();
|
||||
$gid = $param['gid']?Crypt::decrypt($param['gid']):'';
|
||||
|
|
@ -92,158 +79,31 @@ class GoodsController extends Controller
|
|||
}
|
||||
//商品信息
|
||||
$goods_info=$model
|
||||
->alias('g')
|
||||
->field('g.name as goods_name,price,g.id as goods_id,detail,gb.name as brand_name,model,collocation_goods,original_price,goods_size,pc.name as phase_name,goods_category_id')
|
||||
->join('goods_brand gb', 'gb.id = g.brand_id')
|
||||
->join('phase_config pc', 'pc.id= g.phase_id', 'LEFT')
|
||||
->where(array('g.id'=>$gid,'status'=>1))->find();
|
||||
|
||||
//精选配置
|
||||
$collocation_goods=json_decode($goods_info['collocation_goods']);
|
||||
$where[]=array('g.id','in',$collocation_goods);
|
||||
$where[]=array('g.status','=',1);
|
||||
$goods_info['collocation_goods'] =$model
|
||||
->alias('g')
|
||||
->field("mi.thumb_image as img, g.name,g.price,g.id as goods_id,gb.name as brand_name")
|
||||
->join('goods_brand gb', 'gb.id= g.brand_id')
|
||||
->join('mall_image mi', 'mi.union_id= g.id and is_cover=1 and mi.type=1', 'LEFT')
|
||||
->where($where)
|
||||
->select();
|
||||
foreach ($goods_info['collocation_goods'] as $k1 => $v1) {
|
||||
$goods_info['collocation_goods'][$k1]['img'] =$this->img_url.$v1['img'];
|
||||
$goods_info['collocation_goods'][$k1]['goods_id'] = Crypt::encrypt($v1['goods_id']);
|
||||
}
|
||||
$goods_info['goods_size']=explode("\r\n",$goods_info['goods_size']);
|
||||
|
||||
->alias('g')
|
||||
->field('g.name as goods_name,price,g.id as goods_id,detail')
|
||||
->where(array('g.id'=>$gid,'status'=>1))->find();
|
||||
$img_list=$mimodel->field('thumb_image,ori_image')->where(array('union_id'=>$gid,'type'=>1))->select();
|
||||
foreach ($img_list as $key => $value) {
|
||||
$img_list[$key]['thumb_image'] =$this->img_url.$value['thumb_image'];
|
||||
$img_list[$key]['ori_image'] =$this->img_url.$value['ori_image'];
|
||||
}
|
||||
//尺寸图片
|
||||
$size_img=$this->img_url.ShopConfig::get('website', 'size_img');
|
||||
|
||||
//商品尺码
|
||||
//商品规格
|
||||
$goodsitem_list=$gimodel->field("id,spec_value,stock")->where(array('goods_id'=>$goods_info['goods_id']))->select();
|
||||
foreach ($goodsitem_list as $key => $value) {
|
||||
$goodsitem_list[$key]['id']=Crypt::encrypt($value['id']);
|
||||
}
|
||||
|
||||
//品相列表
|
||||
$phaseconfig_list=$pcmodel->field("name,describe")->all();
|
||||
$goods_info['goods_id'] = Crypt::encrypt($goods_info['goods_id']);
|
||||
|
||||
$category_goods =$model
|
||||
->alias('g')
|
||||
->field("mi.thumb_image as img, g.name,g.price,g.id as goods_id,gb.name as brand_name")
|
||||
->join('goods_brand gb', 'gb.id= g.brand_id')
|
||||
->join('mall_image mi', 'mi.union_id= g.id and is_cover=1 and mi.type=1', 'LEFT')
|
||||
->where(array('g.goods_category_id'=>$goods_info['goods_category_id'],'g.status'=>1))
|
||||
->select();
|
||||
foreach ($category_goods as $k1 => $v1) {
|
||||
$category_goods[$k1]['img'] =$this->img_url.$v1['img'];
|
||||
$category_goods[$k1]['goods_id'] = Crypt::encrypt($v1['goods_id']);
|
||||
}
|
||||
return success(array('info'=>$goods_info,'img_list'=>$img_list,'size_img'=>$size_img,'goodsitem_list'=>$goodsitem_list,'phaseconfig_list'=>$phaseconfig_list,'category_goods'=>$category_goods));
|
||||
return success(array('info'=>$goods_info,'img_list'=>$img_list,'goodsitem_list'=>$goodsitem_list));
|
||||
}
|
||||
|
||||
//商品筛选
|
||||
public function category_list(Request $request,GoodsCategory $gcmodel,GoodsBrand $gbmodel)
|
||||
//商品分类
|
||||
public function category_list(Request $request,GoodsCategory $gcmodel)
|
||||
{
|
||||
$brand_list=$gbmodel->field('name,initial,img')->where(array('is_show'=>1))->select();
|
||||
foreach ($brand_list as $k1 => $v1) {
|
||||
$brand_list[$k1]['img'] =$this->img_url.$v1['img'];
|
||||
}
|
||||
$category_list=$gcmodel->field('name,id as cid,parent_id')->select();
|
||||
$category=getSubs($category_list,0);
|
||||
$size_list=ShopConfig::get('website', 'size');
|
||||
$size_list=explode(',',$size_list);
|
||||
$category_list=$gcmodel->field('name')->where(array('parent_id'=>0))->select();
|
||||
$data=array(
|
||||
'brand_list'=>$brand_list,
|
||||
'category_list'=>$category,
|
||||
'size_list'=>$size_list,
|
||||
'category_list'=>$category_list
|
||||
);
|
||||
return success($data);
|
||||
}
|
||||
|
||||
|
||||
//愿望清单列表
|
||||
public function collectgoods_list(Request $request,GoodsCollect $gcmodel)
|
||||
{
|
||||
$param = $request->param();
|
||||
$user_id = $param['uid']?Crypt::decrypt($param['uid']):'';
|
||||
if(!$user_id){
|
||||
return unauthorized('请先授权');
|
||||
}
|
||||
$size=$param['size']>0?$param['size']:12;
|
||||
$page_l=$param['page']>1?$param['page']:1;
|
||||
$page=$size * ($page_l - 1);
|
||||
$where[]=array('g.status','=',1);
|
||||
$where[]=array('user_id','=',$user_id);
|
||||
|
||||
$goods_count = $gcmodel
|
||||
->alias('gc')
|
||||
->where($where)
|
||||
->join('goods g', 'g.id = gc.goods_id')
|
||||
->join('mall_image mi', 'mi.union_id= gc.goods_id and is_cover=1 and mi.type=1', 'LEFT')
|
||||
->join('goods_brand gb', 'gb.id = g.brand_id')
|
||||
->count();
|
||||
$totalPages = ceil($goods_count / $size);
|
||||
$goods_list = $gcmodel
|
||||
->alias('gc')
|
||||
->field("mi.thumb_image as img, g.name,g.price,g.id as goods_id,gb.name as brand_name")
|
||||
->join('goods g', 'g.id = gc.goods_id')
|
||||
->join('mall_image mi', 'mi.union_id= gc.goods_id and is_cover=1 and mi.type=1', 'LEFT')
|
||||
->join('goods_brand gb', 'gb.id = g.brand_id')
|
||||
->where($where)
|
||||
->limit($page, $size)
|
||||
->order('g.sort_number asc')
|
||||
->select();
|
||||
if (!$goods_list) {
|
||||
return success(array('list'=>[]));
|
||||
}
|
||||
foreach ($goods_list as $k1 => $v1) {
|
||||
$goods_list[$k1]['img'] =$this->img_url.$v1['img'];
|
||||
$goods_list[$k1]['goods_id'] = Crypt::encrypt($v1['goods_id']);
|
||||
}
|
||||
$page=array(
|
||||
'count'=>$goods_count,
|
||||
'num'=>$page_l,
|
||||
'size'=>$size,
|
||||
'page'=>$totalPages
|
||||
);
|
||||
return success(array('list'=>$goods_list,'page'=>$page));
|
||||
}
|
||||
|
||||
public function handlecollectgoods(Request $request,GoodsCollect $gcmodel){
|
||||
$param = $request->param();
|
||||
$user_id = $param['uid']?Crypt::decrypt($param['uid']):'';
|
||||
if(!$user_id){
|
||||
return unauthorized('请先授权');
|
||||
}
|
||||
$goods_id = $param['goods_id']?Crypt::decrypt($param['goods_id']):'';
|
||||
if(!$goods_id){
|
||||
return client_error('该商品不存在');
|
||||
}
|
||||
if($param['is_collect']==1){
|
||||
$where = [
|
||||
'user_id' => $user_id,
|
||||
'goods_id' => $goods_id
|
||||
];
|
||||
$info = GoodsCollect::where($where)->find();
|
||||
if(!$info){
|
||||
$data =[
|
||||
'user_id'=>$user_id,
|
||||
'goods_id'=>$goods_id,
|
||||
'create_time'=>time(),
|
||||
];
|
||||
$res =$gcmodel->insert($data);
|
||||
}else{
|
||||
return success('','操作成功');
|
||||
}
|
||||
}else{
|
||||
$res =$gcmodel->where(['goods_id'=>$goods_id,'user_id'=>$user_id])->delete();
|
||||
}
|
||||
return $res ? success('','操作成功') : client_error('操作失败');
|
||||
}
|
||||
}
|
||||
|
|
@ -22,93 +22,26 @@ class IndexController extends Controller
|
|||
'home','pattern_goods'
|
||||
];
|
||||
|
||||
public function home(Request $request,Goods $gmodel,GoodsIndex $gimodel)
|
||||
public function home(Request $request,Goods $gmodel)
|
||||
{
|
||||
// echo Crypt::encrypt(1).'|';
|
||||
// echo $this->getToken(1);
|
||||
$param = $request->param();
|
||||
//首页轮播
|
||||
$carousel = get_ad('carousel',6);
|
||||
$goodsindex_list=$gimodel->where(array('status'=>1))->order('sort_number ASC')->select();
|
||||
$goodsindex=array();
|
||||
foreach ($goodsindex_list as $key => $value) {
|
||||
$goodsindex[$key]['id'] = Crypt::encrypt($value['id']);
|
||||
$goodsindex[$key]['name']=$value['name'];
|
||||
$goodsindex[$key]['type']=$value['type'];
|
||||
$goods_ids=json_decode($value['goods_ids']);
|
||||
$where[]=array('g.id','in',$goods_ids);
|
||||
$goods_list=$gmodel
|
||||
->alias('g')
|
||||
->field("mi.thumb_image as img, g.name,g.price,g.id as goods_id,gb.name as brand_name")
|
||||
->join('goods_brand gb', 'gb.id= g.brand_id')
|
||||
->join('mall_image mi', 'mi.union_id= g.id and is_cover=1 and mi.type=1', 'LEFT')
|
||||
->where($where)->select();
|
||||
foreach ($goods_list as $k1 => $v1) {
|
||||
$goods_list[$k1]['img'] =$this->img_url.$v1['img'];
|
||||
$goods_list[$k1]['goods_id'] = Crypt::encrypt($v1['goods_id']);
|
||||
}
|
||||
$goodsindex[$key]['goods_list']=$goods_list;
|
||||
}
|
||||
$data = [
|
||||
'carousel' =>$carousel,//首页轮播
|
||||
'goodsindex' => $goodsindex,//模式板块
|
||||
];
|
||||
return success($data);
|
||||
}
|
||||
|
||||
//模式商品
|
||||
public function pattern_goods(Request $request,Goods $model,GoodsIndex $gimodel)
|
||||
{
|
||||
$param = $request->param();
|
||||
$id = $param['id']?Crypt::decrypt($param['id']):'';
|
||||
if(!$id){
|
||||
return success(array('list'=>[]));
|
||||
}
|
||||
$goodsindex_info=$gimodel->where(array('status'=>1,'id'=>$id))->find();
|
||||
if(!$goodsindex_info){
|
||||
return success(array('list'=>[]));
|
||||
}
|
||||
|
||||
$id = $param['id']?Crypt::decrypt($param['id']):'';
|
||||
|
||||
$goods_ids=json_decode($goodsindex_info['goods_ids']);
|
||||
$where[]=array('g.id','in',$goods_ids);
|
||||
|
||||
$sort=$param['sort']??'asc';
|
||||
$order=$param['order']??'g.sort_number';
|
||||
|
||||
$size=$param['size']>0?$param['size']:12;
|
||||
$page_l=$param['page']>1?$param['page']:1;
|
||||
$page=$size * ($page_l - 1);
|
||||
$goods_count = $model
|
||||
->alias('g')
|
||||
->where($where)
|
||||
->join('goods_brand gb', 'gb.id= g.brand_id')
|
||||
->join('mall_image mi', 'mi.union_id= g.id and is_cover=1 and mi.type=1', 'LEFT')
|
||||
->count();
|
||||
$totalPages = ceil($goods_count / $size);
|
||||
$goods_list = $model
|
||||
->alias('g')
|
||||
->field("mi.thumb_image as img, g.name,g.price,g.id as goods_id,gb.name as brand_name")
|
||||
->join('goods_brand gb', 'gb.id= g.brand_id')
|
||||
->join('mall_image mi', 'mi.union_id= g.id and is_cover=1 and mi.type=1', 'LEFT')
|
||||
->where($where)
|
||||
->limit($page, $size)
|
||||
->order($order.' '.$sort)
|
||||
->select();
|
||||
if (!$goods_list) {
|
||||
return success(array('list'=>[]));
|
||||
}
|
||||
$goods_list=$gmodel
|
||||
->alias('g')
|
||||
->field("mi.thumb_image as img,g.name,g.price,g.id as goods_id")
|
||||
->join('mall_image mi', 'mi.union_id= g.id and is_cover=1 and mi.type=1', 'LEFT')
|
||||
->where(array('is_hot'=>1,'status'=>1))->select();
|
||||
foreach ($goods_list as $k1 => $v1) {
|
||||
$goods_list[$k1]['img'] =$this->img_url.$v1['img'];
|
||||
$goods_list[$k1]['goods_id'] = Crypt::encrypt($v1['goods_id']);
|
||||
}
|
||||
$page=array(
|
||||
'count'=>$goods_count,
|
||||
'num'=>$page_l,
|
||||
'size'=>$size,
|
||||
'page'=>$totalPages
|
||||
);
|
||||
return success(array('list'=>$goods_list,'page'=>$page));
|
||||
}
|
||||
$data = [
|
||||
'carousel' =>$carousel,//首页轮播
|
||||
'goods_list' => $goods_list,//模式板块
|
||||
];
|
||||
return success($data);
|
||||
}
|
||||
}
|
||||
|
|
@ -47,376 +47,4 @@ class OrderController extends Controller
|
|||
}
|
||||
return success($order['data']['order_sn'],'下单成功,正在调取支付');
|
||||
}
|
||||
|
||||
|
||||
//下单接口
|
||||
public function consignment_buy(Request $request)
|
||||
{
|
||||
$param = $request->param();
|
||||
$user_id = $param['uid']?Crypt::decrypt($param['uid']):'';
|
||||
if(!$user_id){
|
||||
return unauthorized('请先授权');
|
||||
}
|
||||
$json_value = $param['json_value'];
|
||||
if (!$json_value) {
|
||||
return client_error('商品信息不存在');
|
||||
}
|
||||
$json_value=json_decode($json_value,true);
|
||||
$info = ConsignmentOrder::info($json_value, $user_id);
|
||||
if (!$info) {
|
||||
return client_error('商品信息不存在');
|
||||
}
|
||||
if($info['code'] == 0) {
|
||||
return client_error($info['msg']);
|
||||
}
|
||||
$order = ConsignmentOrder::add($user_id, $info['data']);
|
||||
if($order['code']==0){
|
||||
return client_error($order['msg']);
|
||||
}
|
||||
$order_id=Crypt::encrypt($order['data']['order_id']);
|
||||
return success($order_id,'寄卖订单已提交');
|
||||
}
|
||||
|
||||
//寄卖参数
|
||||
public function consignment_config(Request $request)
|
||||
{
|
||||
//寄卖流程
|
||||
$procedure =ShopConfig::get('policy', 'procedure');
|
||||
//寄卖规则
|
||||
$rule =ShopConfig::get('policy', 'rule');
|
||||
//寄卖成功提醒
|
||||
$consignment =ShopConfig::get('policy', 'consignment');
|
||||
//品相
|
||||
$phaseconfig =PhaseConfig::field('name')->select();
|
||||
//购买渠道
|
||||
$channel =ShopConfig::get('website', 'channel');
|
||||
$channel=explode(',',$channel);
|
||||
//寄卖数量限制
|
||||
$jmnum =ShopConfig::get('website', 'jmnum');
|
||||
$data=array(
|
||||
'procedure'=>$procedure,
|
||||
'rule'=>$rule,
|
||||
'consignment'=>$consignment,
|
||||
'phaseconfig'=>$phaseconfig,
|
||||
'channel'=>$channel,
|
||||
'jmnum'=>$jmnum,
|
||||
);
|
||||
return success($data);
|
||||
}
|
||||
|
||||
//上传图片
|
||||
public function icon(Request $request)
|
||||
{
|
||||
$param = $request->param();
|
||||
$file = request()->file('image');
|
||||
if($file){
|
||||
$info = $file->validate(['size'=>10*1024*1024,'ext'=>'jpg,png,gif'])->move(Env::get('root_path').'public/uploads/attachment');
|
||||
if($info){
|
||||
$data['avatar_logo']='/uploads/attachment/'.$info->getSaveName();
|
||||
$data['avatar']=$this->img_url.$data['avatar_logo'];
|
||||
return success($data);
|
||||
}else{
|
||||
// 上传失败获取错误信息
|
||||
return client_error($file->getError());
|
||||
}
|
||||
}else{
|
||||
return client_error('请上传图片');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//寄卖订单列表(审核中,待上架,已上架,取消/退回)
|
||||
public function consignment_list(Request $request,ConsignmentOrder $model)
|
||||
{
|
||||
$param = $request->param();
|
||||
$user_id = $param['uid']?Crypt::decrypt($param['uid']):'';
|
||||
if(!$user_id){
|
||||
return unauthorized('请先授权');
|
||||
}
|
||||
$where[] = ['o.user_id', '=', $user_id];
|
||||
//订单类型
|
||||
if ($param['status'] == '1') {
|
||||
$where[] = ['o.order_status', 'in','0'];
|
||||
}
|
||||
if ($param['status'] == '2') {
|
||||
$where[] = ['o.order_status', 'in',"1,3,4,5,6"];
|
||||
}
|
||||
if ($param['status'] == '3') {
|
||||
$where[] = ['o.order_status', 'in','2'];
|
||||
}
|
||||
if ($param['status'] == '4') {
|
||||
$where[] = ['o.order_status', 'in','7,8'];
|
||||
}
|
||||
$size=$param['size']>0?$param['size']:12;
|
||||
$page_l=$param['page']>1?$param['page']:1;
|
||||
$page=$size * ($page_l - 1);
|
||||
$order_count = $model
|
||||
->alias('o')
|
||||
->join('consignment_order_goods g', 'g.order_id = o.id')
|
||||
->with(['consignment_order_goods'])
|
||||
->where($where)
|
||||
->order('o.id desc')
|
||||
->group('o.id')
|
||||
->count();
|
||||
$totalPages = ceil($order_count / $size);
|
||||
$order_list = $model
|
||||
->alias('o')
|
||||
->field('o.order_sn,o.order_status,o.id')
|
||||
->join('consignment_order_goods g', 'g.order_id = o.id')
|
||||
->with(['consignment_order_goods'])
|
||||
->where($where)
|
||||
->order('o.id desc')
|
||||
->group('o.id')
|
||||
->limit($page, $size)
|
||||
->select();
|
||||
if (!$order_list) {
|
||||
return success(array('list'=>[]));
|
||||
}
|
||||
foreach ($order_list as $k1 => $v1) {
|
||||
$order_list[$k1]['order_id'] = Crypt::encrypt($v1['id']);
|
||||
$order_list[$k1]['order_status_text'] = $v1['order_status_text'];
|
||||
unset($v1['id']);
|
||||
foreach ($v1['consignment_order_goods'] as &$order_goods){
|
||||
$order_goods['goods_img']=$this->img_url.$order_goods['goods_img'];
|
||||
$order_goods['refund_status_text'] = $order_goods['refund_status_text'];
|
||||
unset($order_goods['id'],$order_goods['goods_id'],$order_goods['order_id']);
|
||||
}
|
||||
}
|
||||
$page=array(
|
||||
'count'=>$order_count,
|
||||
'num'=>$page_l,
|
||||
'size'=>$size,
|
||||
'page'=>$totalPages
|
||||
);
|
||||
return success(array('list'=>$order_list,'page'=>$page));
|
||||
}
|
||||
|
||||
//寄卖订单列表(已售出)
|
||||
public function consignment_sold(Request $request,ConsignmentOrderGoods $cogmodel)
|
||||
{
|
||||
$param = $request->param();
|
||||
$user_id = $param['uid']?Crypt::decrypt($param['uid']):'';
|
||||
if(!$user_id){
|
||||
return unauthorized('请先授权');
|
||||
}
|
||||
$where[] = ['o.user_id', '=', $user_id];
|
||||
$size=$param['size']>0?$param['size']:12;
|
||||
$page_l=$param['page']>1?$param['page']:1;
|
||||
$page=$size * ($page_l - 1);
|
||||
$order_count = $cogmodel
|
||||
->alias('cog')
|
||||
->join('consignment_order co', 'cog.order_id = co.id and co.order_status=2')
|
||||
->join('order_goods og', 'og.goods_id = cog.goods_id')
|
||||
->join('order o', 'og.order_id = o.id and o.order_status in (1,2,3)')
|
||||
->where($where)
|
||||
->order('o.id desc')
|
||||
->group('o.id')
|
||||
->count();
|
||||
$totalPages = ceil($order_count / $size);
|
||||
$order_list = $cogmodel
|
||||
->alias('cog')
|
||||
->field('cog.item_value,cog.goods_name,cog.goods_img,cog.goods_price,cog.brand_name,cog.phase_name,cog.class_name,cog.channel_name')
|
||||
->join('consignment_order co', 'cog.order_id = co.id and co.order_status=2')
|
||||
->join('order_goods og', 'og.goods_id = cog.goods_id')
|
||||
->join('order o', 'og.order_id = o.id and o.order_status in (1,2,3)')
|
||||
->where($where)
|
||||
->order('cog.id desc')
|
||||
->limit($page, $size)
|
||||
->select();
|
||||
if (!$order_list) {
|
||||
return success(array('list'=>[]));
|
||||
}
|
||||
foreach ($order_list as $k1 => $v1) {
|
||||
$order_list[$k1]['goods_img'] = $this->img_url.$v1['goods_img'];
|
||||
}
|
||||
$page=array(
|
||||
'count'=>$order_count,
|
||||
'num'=>$page_l,
|
||||
'size'=>$size,
|
||||
'page'=>$totalPages
|
||||
);
|
||||
return success(array('list'=>$order_list,'page'=>$page));
|
||||
}
|
||||
|
||||
|
||||
//寄卖订单详情
|
||||
public function consignment_detail(Request $request,ConsignmentOrder $model)
|
||||
{
|
||||
$param = $request->param();
|
||||
$user_id = $param['uid']?Crypt::decrypt($param['uid']):'';
|
||||
if(!$user_id){
|
||||
return unauthorized('请先授权');
|
||||
}
|
||||
$order_id = $param['order_id']?Crypt::decrypt($param['order_id']):'';
|
||||
if(!$order_id){
|
||||
return client_error('该订单不存在');
|
||||
}
|
||||
$where[] = ['o.user_id', '=', $user_id];
|
||||
$where[] = ['o.id', '=', $order_id];
|
||||
$order_info = $model
|
||||
->alias('o')
|
||||
// ->field('o.order_sn,o.order_status,o.id,o.pay_time,total_amount,shipping_time,invoice_name,invoice_no,transaction_id,user_remark,confirm_take_time,cancel_time,o.create_time,province,city,district,address,mobile,consignee')
|
||||
->with(['consignment_order_goods','logs'])
|
||||
->where($where)
|
||||
->find();
|
||||
if (!$order_info) {
|
||||
return client_error('该订单不存在');
|
||||
}
|
||||
$order_info['order_id'] = Crypt::encrypt($order_info['id']);
|
||||
$order_info['order_status_text'] = $order_info['order_status_text'];
|
||||
foreach ($order_info['consignment_order_goods'] as &$order_goods){
|
||||
$order_goods['goods_img']=$this->img_url.$order_goods['goods_img'];
|
||||
$order_goods['id'] = Crypt::encrypt($order_goods['id']);
|
||||
$order_goods['refund_status_text'] = $order_goods['refund_status_text'];
|
||||
unset($order_goods['goods_id'],$order_goods['order_id']);
|
||||
}
|
||||
foreach ($order_info['logs'] as &$logs){
|
||||
unset($logs['id'],$logs['order_id']);
|
||||
}
|
||||
unset($order_info['id'],$order_info['user_id'],$order_info['update_time'],$order_info['delete_time']);
|
||||
return success($order_info);
|
||||
}
|
||||
|
||||
/**
|
||||
* Notes: 取消寄卖订单
|
||||
* @param $order_id
|
||||
* @param $user_id
|
||||
*/
|
||||
public static function consignment_cancel(Request $request,ConsignmentOrder $model)
|
||||
{
|
||||
$param = $request->param();
|
||||
$user_id = $param['uid']?Crypt::decrypt($param['uid']):'';
|
||||
if(!$user_id){
|
||||
return unauthorized('请先授权');
|
||||
}
|
||||
$order_id = $param['order_id']?Crypt::decrypt($param['order_id']):'';
|
||||
if(!$order_id){
|
||||
return client_error('该订单不存在');
|
||||
}
|
||||
$order = ConsignmentOrder::get([
|
||||
'user_id' => $user_id,
|
||||
'id' => $order_id
|
||||
]);
|
||||
if (!$order || ($order['order_status']!='0' && $order['order_status']!='3')) {
|
||||
return client_error('很抱歉!订单无法取消');
|
||||
}
|
||||
$model->startTrans();
|
||||
try {
|
||||
//取消订单
|
||||
$update = [
|
||||
'cancel_time' => time(),
|
||||
'order_status' => 8,
|
||||
];
|
||||
$model->where(['id' => $order_id])->update($update);
|
||||
//记录日志
|
||||
ConsignmentOrderLog::record(
|
||||
$order_id,
|
||||
'寄卖订单已取消'
|
||||
);
|
||||
$model->commit();
|
||||
} catch (Exception $e) {
|
||||
$model->rollback();
|
||||
return client_error($e->getMessage());
|
||||
}
|
||||
return success('','取消成功');
|
||||
}
|
||||
|
||||
/**
|
||||
* Notes: 确认估价
|
||||
* @param $order_id
|
||||
* @param $user_id
|
||||
*/
|
||||
public static function consignment_confirm(Request $request,ConsignmentOrder $model,ConsignmentOrderGoods $cogmodel)
|
||||
{
|
||||
$param = $request->param();
|
||||
$user_id = $param['uid']?Crypt::decrypt($param['uid']):'';
|
||||
if(!$user_id){
|
||||
return unauthorized('请先授权');
|
||||
}
|
||||
$order_id = $param['order_id']?Crypt::decrypt($param['order_id']):'';
|
||||
if(!$order_id){
|
||||
return client_error('该订单不存在');
|
||||
}
|
||||
$goods_id = $param['goods_id']?$param['goods_id']:'';
|
||||
if(!$goods_id){
|
||||
return client_error('请选择确认估价商品');
|
||||
}
|
||||
$is_return = $param['is_return'];
|
||||
$consignee = $param['consignee']?$param['consignee']:'';
|
||||
$address = $param['address']?$param['address']:'';
|
||||
$mobile = $param['mobile']?$param['mobile']:'';
|
||||
if(!$consignee || !$address || !$mobile){
|
||||
return client_error('请选择取货地址');
|
||||
}
|
||||
$th_consignee = $param['th_consignee']?$param['th_consignee']:'';
|
||||
$th_address = $param['th_address']?$param['th_address']:'';
|
||||
$th_mobile = $param['th_mobile']?$param['th_mobile']:'';
|
||||
if($is_return==1 && (!$th_consignee || !$th_address || !$th_mobile)){
|
||||
return client_error('请选择退回地址');
|
||||
}
|
||||
$takeparts_time = $param['takeparts_time']?$param['takeparts_time']:'';
|
||||
if(!$takeparts_time){
|
||||
return client_error('请选择取件时间');
|
||||
}
|
||||
$goods_id=json_decode($goods_id,true);
|
||||
//寄卖数量限制
|
||||
$jmnum =ShopConfig::get('website', 'jmnum');
|
||||
if($jmnum>count($goods_id)){
|
||||
return client_error('寄卖满'.$jmnum.'件才可下单');
|
||||
}
|
||||
$goods_ids=array();
|
||||
foreach ($goods_id as $key => $value) {
|
||||
$goods_id=Crypt::decrypt($value);
|
||||
if($goods_id>0){
|
||||
$goods_ids[]=$goods_id;
|
||||
}
|
||||
}
|
||||
//寄卖数量限制
|
||||
$jmnum =ShopConfig::get('website', 'jmnum');
|
||||
if($jmnum>count($goods_ids)){
|
||||
return client_error('寄卖满'.$jmnum.'件才可下单');
|
||||
}
|
||||
$order = ConsignmentOrder::get([
|
||||
'user_id' => $user_id,
|
||||
'id' => $order_id
|
||||
]);
|
||||
if (!$order || $order['order_status']!='3') {
|
||||
return client_error('很抱歉!订单无法进行确认估价');
|
||||
}
|
||||
|
||||
$model->startTrans();
|
||||
try {
|
||||
//确认订单
|
||||
$update = [
|
||||
'update_time' => time(),
|
||||
'order_status' => 4,
|
||||
'is_return' => $is_return,
|
||||
'consignee' => $consignee,
|
||||
'address' => $address,
|
||||
'mobile' => $mobile,
|
||||
'th_consignee' => $th_consignee,
|
||||
'th_address' => $th_address,
|
||||
'th_mobile' => $th_mobile,
|
||||
'takeparts_time'=>$takeparts_time
|
||||
];
|
||||
$model->where(['id' => $order_id])->update($update);
|
||||
|
||||
$update_goods = [
|
||||
'is_confirm' => 1,
|
||||
];
|
||||
$where_goods[]=array('id','in',$goods_ids);
|
||||
$cogmodel->where($where_goods)->update($update_goods);
|
||||
|
||||
//记录日志
|
||||
ConsignmentOrderLog::record(
|
||||
$order_id,
|
||||
'您确认评估价格进行寄卖'
|
||||
);
|
||||
$model->commit();
|
||||
} catch (Exception $e) {
|
||||
$model->rollback();
|
||||
return client_error($e->getMessage());
|
||||
}
|
||||
return success('','确认成功');
|
||||
}
|
||||
}
|
||||
|
|
@ -28,31 +28,8 @@ class UserController extends Controller
|
|||
return unauthorized('请先授权');
|
||||
}
|
||||
$user = User::where('id',$user_id)->field('avatar,nickname,user_money')->find();
|
||||
//消息数量
|
||||
$user->notice_num = Notice::unRead($user_id) ? 1 : 0;
|
||||
$goods_list=$gcmodel
|
||||
->alias('gc')
|
||||
->field("mi.thumb_image as img, g.name,g.price,g.id as goods_id,gb.name as brand_name")
|
||||
->join('goods g', 'g.id = gc.goods_id')
|
||||
->join('mall_image mi', 'mi.union_id= gc.goods_id and is_cover=1 and mi.type=1', 'LEFT')
|
||||
->join('goods_brand gb', 'gb.id = g.brand_id')
|
||||
->where(array('user_id'=>$user_id))
|
||||
->limit(3)
|
||||
->order('g.sort_number asc')
|
||||
->select();
|
||||
foreach ($goods_list as $k1 => $v1) {
|
||||
$goods_list[$k1]['img'] =$this->img_url.$v1['img'];
|
||||
$goods_list[$k1]['goods_id'] = Crypt::encrypt($v1['goods_id']);
|
||||
}
|
||||
$user->collect =$goods_list;
|
||||
//联系我们
|
||||
$user->contactus =ShopConfig::get('policy', 'contactus');
|
||||
//社群与交流
|
||||
$user->community =ShopConfig::get('policy', 'community');
|
||||
//隐私政策
|
||||
$user->privacy =ShopConfig::get('policy', 'privacy');
|
||||
//条款与条件
|
||||
$user->clause =ShopConfig::get('policy', 'clause');
|
||||
return success($user);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,10 +16,6 @@ class Model extends \think\Model
|
|||
const LEVL_TEXT = [1 => '普通会员'];
|
||||
//订单状态
|
||||
const ORDER_TEXT = [0 => '待付款', 1=> '待发货',2=> '待收货',3=> '已完成',4=> '已取消'];
|
||||
//寄卖状态
|
||||
const JMORDER_TEXT = [0 => '审核中', 1=> '待上架',2=> '已上架',3=> '待客户确认',4=> '客户已确认',5=> '已取货',6=> '部分退回','7'=>'全部退回','8'=>'已取消'];
|
||||
//寄卖商品信息
|
||||
const JMORDER_GOODS_TEXT = [0 => '审核中', 1=> '同意',2=> '驳回',3=> '退还','4'=>'上架'];
|
||||
|
||||
//是否为软删除
|
||||
public $softDelete = true;
|
||||
|
|
@ -35,7 +31,7 @@ class Model extends \think\Model
|
|||
|
||||
//禁止删除的数据id
|
||||
public $noDeletionId = [
|
||||
1,2,3,4,5,6,7,8
|
||||
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -114,9 +114,8 @@ class Order extends Model
|
|||
try{
|
||||
$goods =Db::name('cart')
|
||||
->alias('c')
|
||||
->field("mi.thumb_image as goods_img,g.name as goods_name,g.price as goods_price,g.id as goods_id,gb.name as brand_name,c.goods_num,item_value,g.status,g.stock,g.original_price")
|
||||
->field("mi.thumb_image as goods_img,g.name as goods_name,g.price as goods_price,g.id as goods_id,c.goods_num,item_value,g.status,g.stock,g.original_price")
|
||||
->join('goods g', 'g.id = c.goods_id')
|
||||
->join('goods_brand gb', 'gb.id= g.brand_id')
|
||||
->join('mall_image mi', 'mi.union_id= c.goods_id and is_cover=1 and mi.type=1', 'LEFT')
|
||||
->where(array('c.user_id'=>$user_id,'selected'=>1))
|
||||
->select();
|
||||
|
|
@ -296,7 +295,6 @@ class Order extends Model
|
|||
'goods_id' => $good['goods_id'],
|
||||
'goods_img' => $good['goods_img'],
|
||||
'item_value' => $good['item_value'],
|
||||
'brand_name' => $good['brand_name'],
|
||||
'goods_name' => $good['goods_name'],
|
||||
'goods_num' => $good['goods_num'],
|
||||
'goods_price' => $good['goods_price'],//商品价格单价(未扣减优惠和积分价格)
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 143 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 590 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 124 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 590 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 124 KiB |
|
|
@ -13,7 +13,7 @@
|
|||
use think\facade\Route;
|
||||
|
||||
//api模块路由
|
||||
Route::domain('dgg-jimai-api', function () {
|
||||
Route::domain('dgg-yanguang-api', function () {
|
||||
|
||||
//首页
|
||||
Route::rule('home','api/index/home');
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,210 @@
|
|||
---------------------------------------------------------------
|
||||
|
||||
[2022-01-02T18:50:33+08:00] 127.0.0.1 POST dgg-yanguang-api.dggyanguang.com/category_list
|
||||
[运行时间:2.481304s] [吞吐率:0.40req/s] [内存消耗:3,969.27kb] [文件加载:167]
|
||||
[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggyanguang/thinkphp/lang/zh-cn.php
|
||||
[ info ] [ ROUTE ] array (
|
||||
'rule' => 'category_list',
|
||||
'route' => 'api/goods/category_list',
|
||||
'option' =>
|
||||
array (
|
||||
'merge_rule_regex' => false,
|
||||
),
|
||||
'var' =>
|
||||
array (
|
||||
),
|
||||
)
|
||||
[ info ] [ HEADER ] array (
|
||||
'host' => 'dgg-yanguang-api.dggyanguang.com',
|
||||
'connection' => 'keep-alive',
|
||||
'content-length' => '2',
|
||||
'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1 wechatdevtools/1.05.2111300 MicroMessenger/8.0.5 webview/',
|
||||
'x-requested-with' => 'XMLHttpRequest',
|
||||
'content-type' => 'application/json; charset=UTF-8',
|
||||
'accept' => '*/*',
|
||||
'referer' => 'https://servicewechat.com/wx07ae00c90b1d70b8/devtools/page-frame.html',
|
||||
'accept-encoding' => 'gzip, deflate',
|
||||
)
|
||||
[ info ] [ PARAM ] array (
|
||||
)
|
||||
[ info ] [ DB ] INIT mysql
|
||||
[ sql ] [ DB ] CONNECT:[ UseTime:0.206111s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_yanguang;charset=utf8mb4
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.101913s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.091267s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `goods_category` [ RunTime:0.136722s ]
|
||||
[ sql ] [ SQL ] SELECT `name` FROM `goods_category` WHERE ( `parent_id` = 0 ) AND `goods_category`.`delete_time` = 0 [ RunTime:0.155641s ]
|
||||
---------------------------------------------------------------
|
||||
|
||||
[2022-01-02T18:50:34+08:00] 127.0.0.1 POST dgg-yanguang-api.dggyanguang.com/goods_list
|
||||
[运行时间:1.334607s] [吞吐率:0.75req/s] [内存消耗:4,016.00kb] [文件加载:170]
|
||||
[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggyanguang/thinkphp/lang/zh-cn.php
|
||||
[ info ] [ ROUTE ] array (
|
||||
'rule' => 'goods_list',
|
||||
'route' => 'api/goods/goods_list',
|
||||
'option' =>
|
||||
array (
|
||||
'merge_rule_regex' => false,
|
||||
),
|
||||
'var' =>
|
||||
array (
|
||||
),
|
||||
)
|
||||
[ info ] [ HEADER ] array (
|
||||
'host' => 'dgg-yanguang-api.dggyanguang.com',
|
||||
'connection' => 'keep-alive',
|
||||
'content-length' => '39',
|
||||
'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1 wechatdevtools/1.05.2111300 MicroMessenger/8.0.5 webview/',
|
||||
'x-requested-with' => 'XMLHttpRequest',
|
||||
'content-type' => 'application/json; charset=UTF-8',
|
||||
'accept' => '*/*',
|
||||
'referer' => 'https://servicewechat.com/wx07ae00c90b1d70b8/devtools/page-frame.html',
|
||||
'accept-encoding' => 'gzip, deflate',
|
||||
)
|
||||
[ info ] [ PARAM ] array (
|
||||
'kw' => '',
|
||||
'size' => '8',
|
||||
'page' => '1',
|
||||
'cid' => 0,
|
||||
)
|
||||
[ info ] [ DB ] INIT mysql
|
||||
[ sql ] [ DB ] CONNECT:[ UseTime:0.145700s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_yanguang;charset=utf8mb4
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.112503s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.090864s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `goods_category` [ RunTime:0.100771s ]
|
||||
[ sql ] [ SQL ] SELECT `name`,`id` FROM `goods_category` WHERE ( `parent_id` = 0 ) AND `goods_category`.`delete_time` = 0 [ RunTime:0.102003s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `goods` [ RunTime:0.120027s ]
|
||||
[ sql ] [ SQL ] SELECT COUNT(*) AS tp_count FROM ( SELECT count(*) AS think_count FROM `goods` `g` LEFT JOIN `mall_image` `mi` ON `mi`.`union_id`=g.id and is_cover=1 and mi.type=1 WHERE ( `status` = 1 AND `goods_category_id` = 1 ) AND `g`.`delete_time` = 0 GROUP BY `g`.`id` ) `_group_count_` [ RunTime:0.097084s ]
|
||||
[ sql ] [ SQL ] SELECT mi.thumb_image as img,`g`.`name`,`g`.`price`,g.id as goods_id FROM `goods` `g` LEFT JOIN `mall_image` `mi` ON `mi`.`union_id`=g.id and is_cover=1 and mi.type=1 WHERE ( `status` = 1 AND `goods_category_id` = 1 ) AND `g`.`delete_time` = 0 ORDER BY `g`.`sort_number` ASC LIMIT 0,8 [ RunTime:0.110637s ]
|
||||
---------------------------------------------------------------
|
||||
|
||||
[2022-01-02T19:38:19+08:00] 127.0.0.1 POST dgg-yanguang-api.dggyanguang.com/category_list
|
||||
[运行时间:0.886107s] [吞吐率:1.13req/s] [内存消耗:3,969.25kb] [文件加载:167]
|
||||
[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggyanguang/thinkphp/lang/zh-cn.php
|
||||
[ info ] [ ROUTE ] array (
|
||||
'rule' => 'category_list',
|
||||
'route' => 'api/goods/category_list',
|
||||
'option' =>
|
||||
array (
|
||||
'merge_rule_regex' => false,
|
||||
),
|
||||
'var' =>
|
||||
array (
|
||||
),
|
||||
)
|
||||
[ info ] [ HEADER ] array (
|
||||
'host' => 'dgg-yanguang-api.dggyanguang.com',
|
||||
'connection' => 'keep-alive',
|
||||
'content-length' => '2',
|
||||
'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1 wechatdevtools/1.05.2111300 MicroMessenger/8.0.5 webview/',
|
||||
'x-requested-with' => 'XMLHttpRequest',
|
||||
'content-type' => 'application/json; charset=UTF-8',
|
||||
'accept' => '*/*',
|
||||
'referer' => 'https://servicewechat.com/wx07ae00c90b1d70b8/devtools/page-frame.html',
|
||||
'accept-encoding' => 'gzip, deflate',
|
||||
)
|
||||
[ info ] [ PARAM ] array (
|
||||
)
|
||||
[ info ] [ DB ] INIT mysql
|
||||
[ sql ] [ DB ] CONNECT:[ UseTime:0.156087s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_yanguang;charset=utf8mb4
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.095605s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.104151s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `goods_category` [ RunTime:0.097798s ]
|
||||
[ sql ] [ SQL ] SELECT `name` FROM `goods_category` WHERE ( `parent_id` = 0 ) AND `goods_category`.`delete_time` = 0 [ RunTime:0.114271s ]
|
||||
---------------------------------------------------------------
|
||||
|
||||
[2022-01-02T19:38:20+08:00] 127.0.0.1 POST dgg-yanguang-api.dggyanguang.com/goods_list
|
||||
[运行时间:1.121777s] [吞吐率:0.89req/s] [内存消耗:4,016.00kb] [文件加载:170]
|
||||
[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggyanguang/thinkphp/lang/zh-cn.php
|
||||
[ info ] [ ROUTE ] array (
|
||||
'rule' => 'goods_list',
|
||||
'route' => 'api/goods/goods_list',
|
||||
'option' =>
|
||||
array (
|
||||
'merge_rule_regex' => false,
|
||||
),
|
||||
'var' =>
|
||||
array (
|
||||
),
|
||||
)
|
||||
[ info ] [ HEADER ] array (
|
||||
'host' => 'dgg-yanguang-api.dggyanguang.com',
|
||||
'connection' => 'keep-alive',
|
||||
'content-length' => '39',
|
||||
'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1 wechatdevtools/1.05.2111300 MicroMessenger/8.0.5 webview/',
|
||||
'x-requested-with' => 'XMLHttpRequest',
|
||||
'content-type' => 'application/json; charset=UTF-8',
|
||||
'accept' => '*/*',
|
||||
'referer' => 'https://servicewechat.com/wx07ae00c90b1d70b8/devtools/page-frame.html',
|
||||
'accept-encoding' => 'gzip, deflate',
|
||||
)
|
||||
[ info ] [ PARAM ] array (
|
||||
'kw' => '',
|
||||
'size' => '8',
|
||||
'page' => '1',
|
||||
'cid' => 0,
|
||||
)
|
||||
[ info ] [ DB ] INIT mysql
|
||||
[ sql ] [ DB ] CONNECT:[ UseTime:0.145992s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_yanguang;charset=utf8mb4
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.116736s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.095619s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `goods_category` [ RunTime:0.136097s ]
|
||||
[ sql ] [ SQL ] SELECT `name`,`id` FROM `goods_category` WHERE ( `parent_id` = 0 ) AND `goods_category`.`delete_time` = 0 [ RunTime:0.090878s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `goods` [ RunTime:0.100000s ]
|
||||
[ sql ] [ SQL ] SELECT COUNT(*) AS tp_count FROM ( SELECT count(*) AS think_count FROM `goods` `g` LEFT JOIN `mall_image` `mi` ON `mi`.`union_id`=g.id and is_cover=1 and mi.type=1 WHERE ( `status` = 1 AND `goods_category_id` = 1 ) AND `g`.`delete_time` = 0 GROUP BY `g`.`id` ) `_group_count_` [ RunTime:0.099534s ]
|
||||
[ sql ] [ SQL ] SELECT mi.thumb_image as img,`g`.`name`,`g`.`price`,g.id as goods_id FROM `goods` `g` LEFT JOIN `mall_image` `mi` ON `mi`.`union_id`=g.id and is_cover=1 and mi.type=1 WHERE ( `status` = 1 AND `goods_category_id` = 1 ) AND `g`.`delete_time` = 0 ORDER BY `g`.`sort_number` ASC LIMIT 0,8 [ RunTime:0.100946s ]
|
||||
---------------------------------------------------------------
|
||||
|
||||
[2022-01-02T20:09:12+08:00] 127.0.0.1 GET dgg-yanguang-api.dggyanguang.com/img/sh_icon_fx.png
|
||||
[运行时间:0.284611s] [吞吐率:3.51req/s] [内存消耗:2,167.98kb] [文件加载:135]
|
||||
[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggyanguang/thinkphp/lang/zh-cn.php
|
||||
[ info ] [ ROUTE ] array (
|
||||
'rule' => '',
|
||||
'route' =>
|
||||
Closure::__set_state(array(
|
||||
)),
|
||||
'option' =>
|
||||
array (
|
||||
'merge_rule_regex' => false,
|
||||
),
|
||||
'var' =>
|
||||
array (
|
||||
),
|
||||
)
|
||||
[ info ] [ HEADER ] array (
|
||||
'host' => 'dgg-yanguang-api.dggyanguang.com',
|
||||
'connection' => 'keep-alive',
|
||||
'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1 wechatdevtools/1.05.2111300 MicroMessenger/8.0.5 webview/12 desktopapp miniprogram port/55903 token/d5a4dbd0211dd07034080e3eafbfe650 runtime/2',
|
||||
'accept' => 'image/avif,image/webp,image/apng,image/*,*/*;q=0.8',
|
||||
'referer' => 'https://servicewechat.com/wx07ae00c90b1d70b8/devtools/page-frame.html',
|
||||
'accept-encoding' => 'gzip, deflate',
|
||||
)
|
||||
[ info ] [ PARAM ] array (
|
||||
)
|
||||
---------------------------------------------------------------
|
||||
|
||||
[2022-01-02T20:09:56+08:00] 127.0.0.1 GET dgg-yanguang-api.dggyanguang.com/img/sh_icon_fx.png
|
||||
[运行时间:0.527423s] [吞吐率:1.90req/s] [内存消耗:2,167.98kb] [文件加载:135]
|
||||
[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggyanguang/thinkphp/lang/zh-cn.php
|
||||
[ info ] [ ROUTE ] array (
|
||||
'rule' => '',
|
||||
'route' =>
|
||||
Closure::__set_state(array(
|
||||
)),
|
||||
'option' =>
|
||||
array (
|
||||
'merge_rule_regex' => false,
|
||||
),
|
||||
'var' =>
|
||||
array (
|
||||
),
|
||||
)
|
||||
[ info ] [ HEADER ] array (
|
||||
'host' => 'dgg-yanguang-api.dggyanguang.com',
|
||||
'connection' => 'keep-alive',
|
||||
'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1 wechatdevtools/1.05.2111300 MicroMessenger/8.0.5 webview/13 desktopapp miniprogram port/55903 token/d5a4dbd0211dd07034080e3eafbfe650 runtime/2',
|
||||
'accept' => 'image/avif,image/webp,image/apng,image/*,*/*;q=0.8',
|
||||
'referer' => 'https://servicewechat.com/wx07ae00c90b1d70b8/devtools/page-frame.html',
|
||||
'accept-encoding' => 'gzip, deflate',
|
||||
)
|
||||
[ info ] [ PARAM ] array (
|
||||
)
|
||||
|
|
@ -0,0 +1,342 @@
|
|||
---------------------------------------------------------------
|
||||
|
||||
[2022-01-03T12:19:07+08:00] 127.0.0.1 POST dgg-yanguang-api.dggyanguang.com/home
|
||||
[运行时间:1.360949s] [吞吐率:0.73req/s] [内存消耗:4,002.48kb] [文件加载:170]
|
||||
[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggyanguang/thinkphp/lang/zh-cn.php
|
||||
[ info ] [ ROUTE ] array (
|
||||
'rule' => 'home',
|
||||
'route' => 'api/index/home',
|
||||
'option' =>
|
||||
array (
|
||||
'merge_rule_regex' => false,
|
||||
),
|
||||
'var' =>
|
||||
array (
|
||||
),
|
||||
)
|
||||
[ info ] [ HEADER ] array (
|
||||
'host' => 'dgg-yanguang-api.dggyanguang.com',
|
||||
'connection' => 'keep-alive',
|
||||
'content-length' => '2',
|
||||
'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1 wechatdevtools/1.05.2111300 MicroMessenger/8.0.5 webview/',
|
||||
'x-requested-with' => 'XMLHttpRequest',
|
||||
'content-type' => 'application/json; charset=UTF-8',
|
||||
'accept' => '*/*',
|
||||
'referer' => 'https://servicewechat.com/wx07ae00c90b1d70b8/devtools/page-frame.html',
|
||||
'accept-encoding' => 'gzip, deflate',
|
||||
)
|
||||
[ info ] [ PARAM ] array (
|
||||
)
|
||||
[ info ] [ DB ] INIT mysql
|
||||
[ sql ] [ DB ] CONNECT:[ UseTime:0.147174s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_yanguang;charset=utf8mb4
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.112732s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.091651s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `slide` [ RunTime:0.109082s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `slide` WHERE ( ( alias="carousel" ) ) AND `slide`.`delete_time` = 0 ORDER BY `sort_number` DESC LIMIT 6 [ RunTime:0.099720s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.095661s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `goods` [ RunTime:0.315224s ]
|
||||
[ sql ] [ SQL ] SELECT mi.thumb_image as img,`g`.`name`,`g`.`price`,g.id as goods_id FROM `goods` `g` LEFT JOIN `mall_image` `mi` ON `mi`.`union_id`=g.id and is_cover=1 and mi.type=1 WHERE ( `is_hot` = 1 AND `status` = 1 ) AND `g`.`delete_time` = 0 [ RunTime:0.093513s ]
|
||||
---------------------------------------------------------------
|
||||
|
||||
[2022-01-03T12:19:27+08:00] 127.0.0.1 POST dgg-yanguang-api.dggyanguang.com/home
|
||||
[运行时间:1.332824s] [吞吐率:0.75req/s] [内存消耗:4,002.48kb] [文件加载:170]
|
||||
[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggyanguang/thinkphp/lang/zh-cn.php
|
||||
[ info ] [ ROUTE ] array (
|
||||
'rule' => 'home',
|
||||
'route' => 'api/index/home',
|
||||
'option' =>
|
||||
array (
|
||||
'merge_rule_regex' => false,
|
||||
),
|
||||
'var' =>
|
||||
array (
|
||||
),
|
||||
)
|
||||
[ info ] [ HEADER ] array (
|
||||
'host' => 'dgg-yanguang-api.dggyanguang.com',
|
||||
'connection' => 'keep-alive',
|
||||
'content-length' => '2',
|
||||
'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1 wechatdevtools/1.05.2111300 MicroMessenger/8.0.5 webview/',
|
||||
'x-requested-with' => 'XMLHttpRequest',
|
||||
'content-type' => 'application/json; charset=UTF-8',
|
||||
'accept' => '*/*',
|
||||
'referer' => 'https://servicewechat.com/wx07ae00c90b1d70b8/devtools/page-frame.html',
|
||||
'accept-encoding' => 'gzip, deflate',
|
||||
)
|
||||
[ info ] [ PARAM ] array (
|
||||
)
|
||||
[ info ] [ DB ] INIT mysql
|
||||
[ sql ] [ DB ] CONNECT:[ UseTime:0.154724s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_yanguang;charset=utf8mb4
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.106679s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.095821s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `slide` [ RunTime:0.113991s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `slide` WHERE ( ( alias="carousel" ) ) AND `slide`.`delete_time` = 0 ORDER BY `sort_number` DESC LIMIT 6 [ RunTime:0.096809s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.105302s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `goods` [ RunTime:0.108349s ]
|
||||
[ sql ] [ SQL ] SELECT mi.thumb_image as img,`g`.`name`,`g`.`price`,g.id as goods_id FROM `goods` `g` LEFT JOIN `mall_image` `mi` ON `mi`.`union_id`=g.id and is_cover=1 and mi.type=1 WHERE ( `is_hot` = 1 AND `status` = 1 ) AND `g`.`delete_time` = 0 [ RunTime:0.095942s ]
|
||||
---------------------------------------------------------------
|
||||
|
||||
[2022-01-03T12:20:42+08:00] 127.0.0.1 POST dgg-yanguang-api.dggyanguang.com/home
|
||||
[运行时间:1.221432s] [吞吐率:0.82req/s] [内存消耗:4,002.48kb] [文件加载:170]
|
||||
[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggyanguang/thinkphp/lang/zh-cn.php
|
||||
[ info ] [ ROUTE ] array (
|
||||
'rule' => 'home',
|
||||
'route' => 'api/index/home',
|
||||
'option' =>
|
||||
array (
|
||||
'merge_rule_regex' => false,
|
||||
),
|
||||
'var' =>
|
||||
array (
|
||||
),
|
||||
)
|
||||
[ info ] [ HEADER ] array (
|
||||
'host' => 'dgg-yanguang-api.dggyanguang.com',
|
||||
'connection' => 'keep-alive',
|
||||
'content-length' => '2',
|
||||
'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1 wechatdevtools/1.05.2111300 MicroMessenger/8.0.5 webview/',
|
||||
'x-requested-with' => 'XMLHttpRequest',
|
||||
'content-type' => 'application/json; charset=UTF-8',
|
||||
'accept' => '*/*',
|
||||
'referer' => 'https://servicewechat.com/wx07ae00c90b1d70b8/devtools/page-frame.html',
|
||||
'accept-encoding' => 'gzip, deflate',
|
||||
)
|
||||
[ info ] [ PARAM ] array (
|
||||
)
|
||||
[ info ] [ DB ] INIT mysql
|
||||
[ sql ] [ DB ] CONNECT:[ UseTime:0.155450s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_yanguang;charset=utf8mb4
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.097243s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.089146s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `slide` [ RunTime:0.091856s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `slide` WHERE ( ( alias="carousel" ) ) AND `slide`.`delete_time` = 0 ORDER BY `sort_number` DESC LIMIT 6 [ RunTime:0.090548s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.090047s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `goods` [ RunTime:0.110624s ]
|
||||
[ sql ] [ SQL ] SELECT mi.thumb_image as img,`g`.`name`,`g`.`price`,g.id as goods_id FROM `goods` `g` LEFT JOIN `mall_image` `mi` ON `mi`.`union_id`=g.id and is_cover=1 and mi.type=1 WHERE ( `is_hot` = 1 AND `status` = 1 ) AND `g`.`delete_time` = 0 [ RunTime:0.100840s ]
|
||||
---------------------------------------------------------------
|
||||
|
||||
[2022-01-03T12:21:23+08:00] 127.0.0.1 POST dgg-yanguang-api.dggyanguang.com/home
|
||||
[运行时间:1.597162s] [吞吐率:0.63req/s] [内存消耗:4,002.48kb] [文件加载:170]
|
||||
[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggyanguang/thinkphp/lang/zh-cn.php
|
||||
[ info ] [ ROUTE ] array (
|
||||
'rule' => 'home',
|
||||
'route' => 'api/index/home',
|
||||
'option' =>
|
||||
array (
|
||||
'merge_rule_regex' => false,
|
||||
),
|
||||
'var' =>
|
||||
array (
|
||||
),
|
||||
)
|
||||
[ info ] [ HEADER ] array (
|
||||
'host' => 'dgg-yanguang-api.dggyanguang.com',
|
||||
'connection' => 'keep-alive',
|
||||
'content-length' => '2',
|
||||
'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1 wechatdevtools/1.05.2111300 MicroMessenger/8.0.5 webview/',
|
||||
'x-requested-with' => 'XMLHttpRequest',
|
||||
'content-type' => 'application/json; charset=UTF-8',
|
||||
'accept' => '*/*',
|
||||
'referer' => 'https://servicewechat.com/wx07ae00c90b1d70b8/devtools/page-frame.html',
|
||||
'accept-encoding' => 'gzip, deflate',
|
||||
)
|
||||
[ info ] [ PARAM ] array (
|
||||
)
|
||||
[ info ] [ DB ] INIT mysql
|
||||
[ sql ] [ DB ] CONNECT:[ UseTime:0.151931s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_yanguang;charset=utf8mb4
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.094909s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.101076s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `slide` [ RunTime:0.101759s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `slide` WHERE ( ( alias="carousel" ) ) AND `slide`.`delete_time` = 0 ORDER BY `sort_number` DESC LIMIT 6 [ RunTime:0.097505s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.090116s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `goods` [ RunTime:0.115100s ]
|
||||
[ sql ] [ SQL ] SELECT mi.thumb_image as img,`g`.`name`,`g`.`price`,g.id as goods_id FROM `goods` `g` LEFT JOIN `mall_image` `mi` ON `mi`.`union_id`=g.id and is_cover=1 and mi.type=1 WHERE ( `is_hot` = 1 AND `status` = 1 ) AND `g`.`delete_time` = 0 [ RunTime:0.085855s ]
|
||||
---------------------------------------------------------------
|
||||
|
||||
[2022-01-03T12:24:55+08:00] 127.0.0.1 POST dgg-yanguang-api.dggyanguang.com/home
|
||||
[运行时间:1.139963s] [吞吐率:0.88req/s] [内存消耗:4,002.48kb] [文件加载:170]
|
||||
[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggyanguang/thinkphp/lang/zh-cn.php
|
||||
[ info ] [ ROUTE ] array (
|
||||
'rule' => 'home',
|
||||
'route' => 'api/index/home',
|
||||
'option' =>
|
||||
array (
|
||||
'merge_rule_regex' => false,
|
||||
),
|
||||
'var' =>
|
||||
array (
|
||||
),
|
||||
)
|
||||
[ info ] [ HEADER ] array (
|
||||
'host' => 'dgg-yanguang-api.dggyanguang.com',
|
||||
'connection' => 'keep-alive',
|
||||
'content-length' => '2',
|
||||
'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1 wechatdevtools/1.05.2111300 MicroMessenger/8.0.5 webview/',
|
||||
'x-requested-with' => 'XMLHttpRequest',
|
||||
'content-type' => 'application/json; charset=UTF-8',
|
||||
'accept' => '*/*',
|
||||
'referer' => 'https://servicewechat.com/wx07ae00c90b1d70b8/devtools/page-frame.html',
|
||||
'accept-encoding' => 'gzip, deflate',
|
||||
)
|
||||
[ info ] [ PARAM ] array (
|
||||
)
|
||||
[ info ] [ DB ] INIT mysql
|
||||
[ sql ] [ DB ] CONNECT:[ UseTime:0.140918s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_yanguang;charset=utf8mb4
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.099264s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.103585s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `slide` [ RunTime:0.107480s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `slide` WHERE ( ( alias="carousel" ) ) AND `slide`.`delete_time` = 0 ORDER BY `sort_number` DESC LIMIT 6 [ RunTime:0.095774s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.097453s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `goods` [ RunTime:0.108314s ]
|
||||
[ sql ] [ SQL ] SELECT mi.thumb_image as img,`g`.`name`,`g`.`price`,g.id as goods_id FROM `goods` `g` LEFT JOIN `mall_image` `mi` ON `mi`.`union_id`=g.id and is_cover=1 and mi.type=1 WHERE ( `is_hot` = 1 AND `status` = 1 ) AND `g`.`delete_time` = 0 [ RunTime:0.096435s ]
|
||||
---------------------------------------------------------------
|
||||
|
||||
[2022-01-03T12:35:20+08:00] 127.0.0.1 POST dgg-yanguang-api.dggyanguang.com/home
|
||||
[运行时间:1.026300s] [吞吐率:0.97req/s] [内存消耗:4,002.48kb] [文件加载:170]
|
||||
[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggyanguang/thinkphp/lang/zh-cn.php
|
||||
[ info ] [ ROUTE ] array (
|
||||
'rule' => 'home',
|
||||
'route' => 'api/index/home',
|
||||
'option' =>
|
||||
array (
|
||||
'merge_rule_regex' => false,
|
||||
),
|
||||
'var' =>
|
||||
array (
|
||||
),
|
||||
)
|
||||
[ info ] [ HEADER ] array (
|
||||
'host' => 'dgg-yanguang-api.dggyanguang.com',
|
||||
'connection' => 'keep-alive',
|
||||
'content-length' => '2',
|
||||
'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1 wechatdevtools/1.05.2111300 MicroMessenger/8.0.5 webview/',
|
||||
'x-requested-with' => 'XMLHttpRequest',
|
||||
'content-type' => 'application/json; charset=UTF-8',
|
||||
'accept' => '*/*',
|
||||
'referer' => 'https://servicewechat.com/wx07ae00c90b1d70b8/devtools/page-frame.html',
|
||||
'accept-encoding' => 'gzip, deflate',
|
||||
)
|
||||
[ info ] [ PARAM ] array (
|
||||
)
|
||||
[ info ] [ DB ] INIT mysql
|
||||
[ sql ] [ DB ] CONNECT:[ UseTime:0.144598s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_yanguang;charset=utf8mb4
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.104768s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.091514s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `slide` [ RunTime:0.095269s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `slide` WHERE ( ( alias="carousel" ) ) AND `slide`.`delete_time` = 0 ORDER BY `sort_number` DESC LIMIT 6 [ RunTime:0.092342s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.090326s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `goods` [ RunTime:0.095682s ]
|
||||
[ sql ] [ SQL ] SELECT mi.thumb_image as img,`g`.`name`,`g`.`price`,g.id as goods_id FROM `goods` `g` LEFT JOIN `mall_image` `mi` ON `mi`.`union_id`=g.id and is_cover=1 and mi.type=1 WHERE ( `is_hot` = 1 AND `status` = 1 ) AND `g`.`delete_time` = 0 [ RunTime:0.092592s ]
|
||||
---------------------------------------------------------------
|
||||
|
||||
[2022-01-03T12:35:36+08:00] 127.0.0.1 POST dgg-yanguang-api.dggyanguang.com/home
|
||||
[运行时间:0.985167s] [吞吐率:1.02req/s] [内存消耗:4,002.48kb] [文件加载:170]
|
||||
[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggyanguang/thinkphp/lang/zh-cn.php
|
||||
[ info ] [ ROUTE ] array (
|
||||
'rule' => 'home',
|
||||
'route' => 'api/index/home',
|
||||
'option' =>
|
||||
array (
|
||||
'merge_rule_regex' => false,
|
||||
),
|
||||
'var' =>
|
||||
array (
|
||||
),
|
||||
)
|
||||
[ info ] [ HEADER ] array (
|
||||
'host' => 'dgg-yanguang-api.dggyanguang.com',
|
||||
'connection' => 'keep-alive',
|
||||
'content-length' => '2',
|
||||
'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1 wechatdevtools/1.05.2111300 MicroMessenger/8.0.5 webview/',
|
||||
'x-requested-with' => 'XMLHttpRequest',
|
||||
'content-type' => 'application/json; charset=UTF-8',
|
||||
'accept' => '*/*',
|
||||
'referer' => 'https://servicewechat.com/wx07ae00c90b1d70b8/devtools/page-frame.html',
|
||||
'accept-encoding' => 'gzip, deflate',
|
||||
)
|
||||
[ info ] [ PARAM ] array (
|
||||
)
|
||||
[ info ] [ DB ] INIT mysql
|
||||
[ sql ] [ DB ] CONNECT:[ UseTime:0.141803s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_yanguang;charset=utf8mb4
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.093357s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.091619s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `slide` [ RunTime:0.095524s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `slide` WHERE ( ( alias="carousel" ) ) AND `slide`.`delete_time` = 0 ORDER BY `sort_number` DESC LIMIT 6 [ RunTime:0.097700s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.102536s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `goods` [ RunTime:0.097853s ]
|
||||
[ sql ] [ SQL ] SELECT mi.thumb_image as img,`g`.`name`,`g`.`price`,g.id as goods_id FROM `goods` `g` LEFT JOIN `mall_image` `mi` ON `mi`.`union_id`=g.id and is_cover=1 and mi.type=1 WHERE ( `is_hot` = 1 AND `status` = 1 ) AND `g`.`delete_time` = 0 [ RunTime:0.094477s ]
|
||||
---------------------------------------------------------------
|
||||
|
||||
[2022-01-03T12:37:34+08:00] 127.0.0.1 POST dgg-yanguang-api.dggyanguang.com/home
|
||||
[运行时间:1.187034s] [吞吐率:0.84req/s] [内存消耗:4,002.48kb] [文件加载:170]
|
||||
[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggyanguang/thinkphp/lang/zh-cn.php
|
||||
[ info ] [ ROUTE ] array (
|
||||
'rule' => 'home',
|
||||
'route' => 'api/index/home',
|
||||
'option' =>
|
||||
array (
|
||||
'merge_rule_regex' => false,
|
||||
),
|
||||
'var' =>
|
||||
array (
|
||||
),
|
||||
)
|
||||
[ info ] [ HEADER ] array (
|
||||
'host' => 'dgg-yanguang-api.dggyanguang.com',
|
||||
'connection' => 'keep-alive',
|
||||
'content-length' => '2',
|
||||
'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1 wechatdevtools/1.05.2111300 MicroMessenger/8.0.5 webview/',
|
||||
'x-requested-with' => 'XMLHttpRequest',
|
||||
'content-type' => 'application/json; charset=UTF-8',
|
||||
'accept' => '*/*',
|
||||
'referer' => 'https://servicewechat.com/wx07ae00c90b1d70b8/devtools/page-frame.html',
|
||||
'accept-encoding' => 'gzip, deflate',
|
||||
)
|
||||
[ info ] [ PARAM ] array (
|
||||
)
|
||||
[ info ] [ DB ] INIT mysql
|
||||
[ sql ] [ DB ] CONNECT:[ UseTime:0.144166s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_yanguang;charset=utf8mb4
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.109916s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.099041s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `slide` [ RunTime:0.132206s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `slide` WHERE ( ( alias="carousel" ) ) AND `slide`.`delete_time` = 0 ORDER BY `sort_number` DESC LIMIT 6 [ RunTime:0.104664s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.101671s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `goods` [ RunTime:0.101616s ]
|
||||
[ sql ] [ SQL ] SELECT mi.thumb_image as img,`g`.`name`,`g`.`price`,g.id as goods_id FROM `goods` `g` LEFT JOIN `mall_image` `mi` ON `mi`.`union_id`=g.id and is_cover=1 and mi.type=1 WHERE ( `is_hot` = 1 AND `status` = 1 ) AND `g`.`delete_time` = 0 [ RunTime:0.101470s ]
|
||||
---------------------------------------------------------------
|
||||
|
||||
[2022-01-03T12:38:25+08:00] 127.0.0.1 POST dgg-yanguang-api.dggyanguang.com/home
|
||||
[运行时间:1.196554s] [吞吐率:0.84req/s] [内存消耗:4,002.48kb] [文件加载:170]
|
||||
[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggyanguang/thinkphp/lang/zh-cn.php
|
||||
[ info ] [ ROUTE ] array (
|
||||
'rule' => 'home',
|
||||
'route' => 'api/index/home',
|
||||
'option' =>
|
||||
array (
|
||||
'merge_rule_regex' => false,
|
||||
),
|
||||
'var' =>
|
||||
array (
|
||||
),
|
||||
)
|
||||
[ info ] [ HEADER ] array (
|
||||
'host' => 'dgg-yanguang-api.dggyanguang.com',
|
||||
'connection' => 'keep-alive',
|
||||
'content-length' => '2',
|
||||
'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1 wechatdevtools/1.05.2111300 MicroMessenger/8.0.5 webview/',
|
||||
'x-requested-with' => 'XMLHttpRequest',
|
||||
'content-type' => 'application/json; charset=UTF-8',
|
||||
'accept' => '*/*',
|
||||
'referer' => 'https://servicewechat.com/wx07ae00c90b1d70b8/devtools/page-frame.html',
|
||||
'accept-encoding' => 'gzip, deflate',
|
||||
)
|
||||
[ info ] [ PARAM ] array (
|
||||
)
|
||||
[ info ] [ DB ] INIT mysql
|
||||
[ sql ] [ DB ] CONNECT:[ UseTime:0.147629s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_yanguang;charset=utf8mb4
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.113627s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.151722s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `slide` [ RunTime:0.120391s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `slide` WHERE ( ( alias="carousel" ) ) AND `slide`.`delete_time` = 0 ORDER BY `sort_number` DESC LIMIT 6 [ RunTime:0.097581s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.094765s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `goods` [ RunTime:0.107198s ]
|
||||
[ sql ] [ SQL ] SELECT mi.thumb_image as img,`g`.`name`,`g`.`price`,g.id as goods_id FROM `goods` `g` LEFT JOIN `mall_image` `mi` ON `mi`.`union_id`=g.id and is_cover=1 and mi.type=1 WHERE ( `is_hot` = 1 AND `status` = 1 ) AND `g`.`delete_time` = 0 [ RunTime:0.099157s ]
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
---------------------------------------------------------------
|
||||
|
||||
[2022-01-05T20:18:32+08:00] 127.0.0.1 GET dgg-yanguang-api.dggyanguang.com/img/sh_icon_fx.png
|
||||
[运行时间:0.176159s] [吞吐率:5.68req/s] [内存消耗:2,168.10kb] [文件加载:135]
|
||||
[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggyanguang/thinkphp/lang/zh-cn.php
|
||||
[ info ] [ ROUTE ] array (
|
||||
'rule' => '',
|
||||
'route' =>
|
||||
Closure::__set_state(array(
|
||||
)),
|
||||
'option' =>
|
||||
array (
|
||||
'merge_rule_regex' => false,
|
||||
),
|
||||
'var' =>
|
||||
array (
|
||||
),
|
||||
)
|
||||
[ info ] [ HEADER ] array (
|
||||
'host' => 'dgg-yanguang-api.dggyanguang.com',
|
||||
'connection' => 'keep-alive',
|
||||
'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1 wechatdevtools/1.05.2111300 MicroMessenger/8.0.5 Language/zh_CN webview/4 desktopapp miniprogram port/50337 token/da4deac811447f24481cf865b72fc467 runtime/2',
|
||||
'accept' => 'image/avif,image/webp,image/apng,image/*,*/*;q=0.8',
|
||||
'referer' => 'https://servicewechat.com/wx07ae00c90b1d70b8/devtools/page-frame.html',
|
||||
'accept-encoding' => 'gzip, deflate',
|
||||
)
|
||||
[ info ] [ PARAM ] array (
|
||||
)
|
||||
|
|
@ -0,0 +1,542 @@
|
|||
<?php /*a:9:{s:91:"/Library/WebServer/Documents/dggxiangmu/dggyanguang/application/admin/view/order/index.html";i:1640153289;s:91:"/Library/WebServer/Documents/dggxiangmu/dggyanguang/application/admin/view/public/base.html";i:1640153289;s:95:"/Library/WebServer/Documents/dggxiangmu/dggyanguang/application/admin/view/public/head_css.html";i:1640153289;s:94:"/Library/WebServer/Documents/dggxiangmu/dggyanguang/application/admin/view/public/head_js.html";i:1640153289;s:93:"/Library/WebServer/Documents/dggxiangmu/dggyanguang/application/admin/view/public/header.html";i:1640153289;s:94:"/Library/WebServer/Documents/dggxiangmu/dggyanguang/application/admin/view/public/sidebar.html";i:1640153289;s:101:"/Library/WebServer/Documents/dggxiangmu/dggyanguang/application/admin/view/public/content_header.html";i:1640153289;s:93:"/Library/WebServer/Documents/dggxiangmu/dggyanguang/application/admin/view/public/footer.html";i:1640153289;s:102:"/Library/WebServer/Documents/dggxiangmu/dggyanguang/application/admin/view/public/control_sidebar.html";i:1640153289;}*/ ?>
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="renderer" content="webkit">
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<title><?php echo htmlentities((isset($admin['title']) && ($admin['title'] !== '')?$admin['title']:'Admin')); ?> | <?php echo htmlentities((isset($admin['name']) && ($admin['name'] !== '')?$admin['name']:'Admin')); ?></title>
|
||||
|
||||
|
||||
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<!--头部css-->
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/bootstrap/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/bootstrap-switch/css/bootstrap-switch.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/font-awesome/css/font-awesome.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/iconpicker/css/iconpicker.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/select2/css/select2.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/fileinput/css/fileinput.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/css/AdminLTE.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/css/admin.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/css/_all-skins.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/css/skins.css" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/nprogress/nprogress.css" />
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!--头部js-->
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<script type="text/javascript" src="/static/admin/plugins/js-cookie/js.cookie-2.2.0.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/jquery/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/jquery-ui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/layer/layer.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/laydate/laydate.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/jquery-slimscroll/jquery.slimscroll.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/jquery-validation/jquery.validate.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/jquery-validation/localization/messages_zh.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/bootstrap-number/bootstrap-number.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/fastclick/fastclick.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/select2/js/select2.full.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/nprogress/nprogress.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/iconpicker/js/iconpicker.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/ueditor/ueditor.config.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/ueditor/ueditor.all.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/ueditor/lang/zh-cn/zh-cn.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/clipboard/clipboard.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/viewer/viewer.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/viewer/jquery-viewer.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/js/tag/jquery.tag-editor.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/js/tag/jquery.tag-editor.css" />
|
||||
<script src="https://www.layuicdn.com/layui/layui.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css">
|
||||
<!--勿必把地图api key更换成自己的-->
|
||||
<script type="text/javascript" src='//webapi.amap.com/maps?v=1.4.15&key=cccf8ea926e153be0a013d55edd47c11&plugin=AMap.ToolBar'></script>
|
||||
<!-- UI组件库 1.0 -->
|
||||
<script src="//webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script>
|
||||
<script>
|
||||
//是否为debug模式
|
||||
var adminDebug = <?php echo htmlentities($debug); ?>;
|
||||
//cookie前缀
|
||||
var cookiePrefix = '<?php echo htmlentities($cookie_prefix); ?>';
|
||||
//UEditor server地址
|
||||
var UEServer = "<?php echo url('editor/server'); ?>";
|
||||
//列表页当前选择的ID
|
||||
var dataSelectIds = [];
|
||||
</script>
|
||||
<script type="text/javascript" src="/static/admin/js/adminlte.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/js/jquery.pjax.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/js/admin.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/js/demo.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/js/app.js"></script>
|
||||
|
||||
<?php endif; ?>
|
||||
</head>
|
||||
<body class="hold-transition skin-blue sidebar-mini">
|
||||
<div class="wrapper">
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- 顶部 -->
|
||||
|
||||
<!--网页头部-->
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<header class="main-header">
|
||||
<a class="logo">
|
||||
<span class="logo-mini"><?php echo htmlentities((isset($admin['short_name']) && ($admin['short_name'] !== '')?$admin['short_name']:'Backend')); ?></span>
|
||||
<span class="logo-lg"><?php echo htmlentities((isset($admin['name']) && ($admin['name'] !== '')?$admin['name']:'Backend')); ?></span>
|
||||
</a>
|
||||
<nav class="navbar navbar-static-top">
|
||||
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</a>
|
||||
<div class="navbar-custom-menu">
|
||||
<ul class="nav navbar-nav">
|
||||
|
||||
<li class="dropdown messages-menu">
|
||||
<a href="#" class="dropdown-toggle ReloadButton" title="刷新页面" data-toggle="dropdown">
|
||||
<i class="fa fa-refresh"></i>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="dropdown user user-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<img src="<?php echo htmlentities((isset($admin['user']['avatar']) && ($admin['user']['avatar'] !== '')?$admin['user']['avatar']:'/static/admin/images/avatar.png')); ?>" class="user-image" alt="用户头像">
|
||||
<span class="hidden-xs"><?php echo htmlentities((isset($admin['user']['nickname']) && ($admin['user']['nickname'] !== '')?$admin['user']['nickname']:'')); ?></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="user-header">
|
||||
<img src="<?php echo htmlentities((isset($admin['user']['avatar']) && ($admin['user']['avatar'] !== '')?$admin['user']['avatar']:'/static/admin/images/avatar.png')); ?>" class="img-circle" alt="用户头像">
|
||||
<p>
|
||||
<?php echo htmlentities((isset($admin['user']['nickname']) && ($admin['user']['nickname'] !== '')?$admin['user']['nickname']:'')); ?>
|
||||
<small><?php echo htmlentities((isset($admin['user']['username']) && ($admin['user']['username'] !== '')?$admin['user']['username']:'')); ?></small>
|
||||
</p>
|
||||
</li>
|
||||
<li class="user-footer">
|
||||
<div class="pull-left">
|
||||
<a href="<?php echo url('admin_user/profile'); ?>" class="btn btn-default btn-flat">个人资料</a>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<a href="<?php echo url('auth/logout'); ?>" class="btn btn-default btn-flat">退出</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<!-- 左侧 -->
|
||||
|
||||
<!--左侧菜单-->
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<aside class="main-sidebar">
|
||||
<section class="sidebar">
|
||||
<div class="user-panel">
|
||||
<div class="pull-left image">
|
||||
<img src="<?php echo htmlentities((isset($admin['user']['avatar']) && ($admin['user']['avatar'] !== '')?$admin['user']['avatar']:'__BACKEND_IMAGES__/avatar.png')); ?>" class="img-circle" alt="用户头像">
|
||||
</div>
|
||||
<div class="pull-left info">
|
||||
<p><?php echo htmlentities((isset($admin['user']['nickname']) && ($admin['user']['nickname'] !== '')?$admin['user']['nickname']:'')); ?></p>
|
||||
<a><i class="fa fa-circle text-success"></i> 在线</a>
|
||||
</div>
|
||||
</div>
|
||||
<form method="get" class="sidebar-form" id="sidebar-form">
|
||||
<div class="input-group">
|
||||
<input type="text" name="q" class="form-control" placeholder="搜索菜单" id="search-input">
|
||||
<span class="input-group-btn">
|
||||
<button type="submit" name="search" id="search-btn" class="btn btn-flat">
|
||||
<i class="fa fa-search"></i>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
<ul class="sidebar-menu" data-widget="tree">
|
||||
<li class="header">导航菜单</li>
|
||||
<?php echo (isset($admin['menu']) && ($admin['menu'] !== '')?$admin['menu']:''); ?>
|
||||
</ul>
|
||||
</section>
|
||||
</aside>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- 内容 -->
|
||||
<div class="content-wrapper" id="pjax-container">
|
||||
|
||||
<!--内容头部-->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<?php echo (isset($admin['title']) && ($admin['title'] !== '')?$admin['title']:'admin'); ?>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="<?php echo url('index/index'); ?>"><i class="fa fa-dashboard"></i> 主页</a></li>
|
||||
<li class="active"><?php echo (isset($admin['title']) && ($admin['title'] !== '')?$admin['title']:'Admin'); ?></li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<?php if(app('session')->get('error_message')): ?>
|
||||
<!--如果有错误或者成功的消息-->
|
||||
<script>
|
||||
layer.msg('<?php echo htmlentities(app('session')->get('error_message')); ?>',{icon:2});
|
||||
$.pjax({
|
||||
url: "<?php echo htmlentities(app('session')->get('url')); ?>",
|
||||
container: '#pjax-container'
|
||||
});
|
||||
</script>
|
||||
<?php endif; if(app('session')->get('success_message')): ?>
|
||||
<script>
|
||||
layer.msg('<?php echo htmlentities(app('session')->get('success_message')); ?>',{icon:1});
|
||||
$.pjax({
|
||||
url: '<?php echo htmlentities(app('session')->get('url')); ?>',
|
||||
container: '#pjax-container'
|
||||
});
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
<style type="text/css">
|
||||
.layui-table-cell {
|
||||
height: auto;
|
||||
white-space: normal;
|
||||
}
|
||||
.layui-card-header.layuiadmin-card-header-auto {
|
||||
padding-top: 15px;
|
||||
padding-bottom: 15px;
|
||||
height: auto;
|
||||
}
|
||||
.layui-form-label{ width:100px; }
|
||||
</style>
|
||||
<!--数据列表页面-->
|
||||
<section class="content">
|
||||
|
||||
<!--顶部搜索筛选-->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box">
|
||||
<div class="box-body">
|
||||
<form class="form-inline searchForm" id="searchForm" action="<?php echo url('index'); ?>" method="GET">
|
||||
<div class="layui-form layui-card-header layuiadmin-card-header-auto">
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-row">
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">订单搜索:</label>
|
||||
<div class="layui-input-block">
|
||||
<select name="search_key">
|
||||
<option value="order_sn" <?php if(isset($search_key) && $search_key=='order_sn'): ?>selected<?php endif; ?>>订单编号</option>
|
||||
<option value="nickname" <?php if(isset($search_key) && $search_key=='nickname'): ?>selected<?php endif; ?>>会员昵称</option>
|
||||
<option value="user_mobile" <?php if(isset($search_key) && $search_key=='user_mobile'): ?>selected<?php endif; ?>>会员手机号码</option>
|
||||
<option value="user_sn" <?php if(isset($search_key) && $search_key=='user_sn'): ?>selected<?php endif; ?>>会员编号</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<input type="text" name="keyword" id="keyword" value="<?php echo !empty($keyword) ? htmlentities($keyword) : '';; ?>" placeholder="请输入搜索内容"
|
||||
autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">商品名称:</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="goods_name" id="goods_name" value="<?php echo !empty($goods_name) ? htmlentities($goods_name) : '';; ?>" placeholder="请输入商品名称"
|
||||
autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-row">
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">订单类型:</label>
|
||||
<div class="layui-input-block">
|
||||
<select name="order_type" id="order_type">
|
||||
<option value="">全部</option>
|
||||
<option value="0" <?php if(isset($order_type) && $order_type=='0'): ?>selected<?php endif; ?>>待付款</option>
|
||||
<option value="1" <?php if(isset($order_type) && $order_type=='1'): ?>selected<?php endif; ?>>待发货</option>
|
||||
<option value="2" <?php if(isset($order_type) && $order_type=='2'): ?>selected<?php endif; ?>>待收货</option>
|
||||
<option value="3" <?php if(isset($order_type) && $order_type=='3'): ?>selected<?php endif; ?>>已完成</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">下单时间:</label>
|
||||
<div class="layui-input-inline">
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="start_time" class="layui-input" id="start_time"
|
||||
placeholder="" autocomplete="off" value="<?php echo !empty($start_time) ? htmlentities($start_time) : '';; ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-input-inline" style="margin-right: 5px;width: 20px;">
|
||||
<label class="layui-form-mid">至</label>
|
||||
</div>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="end_time" class="layui-input" id="end_time"
|
||||
placeholder="" autocomplete="off" value="<?php echo !empty($end_time) ? htmlentities($end_time) : '';; ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-inline">
|
||||
<button class="btn btn-success btn-sm" type="submit" >查询</button>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<button onclick="clearSearchForm()" class="btn btn-sm btn-default" type="button"><i
|
||||
class="fa fa-eraser"></i> 清空查询
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box">
|
||||
<div class="box-body table-responsive">
|
||||
<table class="table table-hover table-bordered datatable" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<div class="layui-table-cell" style="width:240px;text-align:center;">订单信息</div>
|
||||
</th>
|
||||
<th>
|
||||
<div style="width:400px;text-align:center;">用户信息</div>
|
||||
</th>
|
||||
<th>
|
||||
<div style="width:380px;text-align:center;">商品信息</div>
|
||||
</th>
|
||||
<th>
|
||||
<div style="width:200px;text-align:center;">收货信息</div>
|
||||
</th>
|
||||
<th><div class="layui-table-cell" style="width:200px;text-align:center;">操作</div></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(is_array($data) || $data instanceof \think\Collection || $data instanceof \think\Paginator): if( count($data)==0 ) : echo "" ;else: foreach($data as $key=>$item): ?>
|
||||
<tr>
|
||||
<td class="layui-table-col-special">
|
||||
<div class="layui-table-cell laytable-cell-1-0-2">
|
||||
<div class="layui-input-inline" style="text-align:left;width: 240px;">
|
||||
<p>订单编号:<?php echo htmlentities($item['order_sn']); ?></p>
|
||||
<p>订单状态:<?php echo htmlentities($item['order_status_text']); ?></p>
|
||||
<p>订单金额:<?php echo htmlentities($item['total_amount']); ?></p>
|
||||
<p>下单时间:<?php echo htmlentities($item['create_time']); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="layui-table-col-special">
|
||||
<div class="layui-table-cell laytable-cell-1-0-2">
|
||||
<img src="<?php echo htmlentities($item['avatar']); ?>" style="height:80px;width: 80px;margin-right: 10px;" class="image-show">
|
||||
<div class="layui-input-inline" style="text-align:left;width: 240px;">
|
||||
<p>用户编号:<?php echo htmlentities($item['sn']); ?></p>
|
||||
<p>用户昵称:<?php echo htmlentities($item['nickname']); ?></p>
|
||||
<p>用户手机:<?php echo htmlentities($item['mobile']); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="layui-table-col-special">
|
||||
<?php if(is_array($item['order_goods']) || $item['order_goods'] instanceof \think\Collection || $item['order_goods'] instanceof \think\Paginator): if( count($item['order_goods'])==0 ) : echo "" ;else: foreach($item['order_goods'] as $key=>$item1): ?>
|
||||
<div style="text-align: left; width:380px; overflow: hidden;" class="goods-data">
|
||||
<img src="<?php echo htmlentities($item1['img']); ?>" style="height:80px;width: 80px" class="image-show layui-col-md4">
|
||||
<div class="layui-input-inline layui-col-md8">
|
||||
<span class="layui-col-md7 goods_name_hide"><?php echo htmlentities($item1['goods_name']); ?></span>
|
||||
<span class="layui-col-md5">¥<?php echo htmlentities($item1['goods_price']); ?></span>
|
||||
<br>
|
||||
<span class="layui-col-md7 goods_name_hide"><?php echo htmlentities($item1['item_value']); ?></span>
|
||||
<span class="layui-col-md5"><?php echo htmlentities($item1['goods_num']); ?>件</span>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; endif; else: echo "" ;endif; ?>
|
||||
</td>
|
||||
<td class="layui-table-col-special">
|
||||
<div class="layui-table-cell laytable-cell-1-0-2">
|
||||
<div class="layui-input-inline" style="text-align:left;width: 200px;">
|
||||
<p>收货人:<?php echo htmlentities($item['consignee']); ?></p>
|
||||
<p>手机号码:<?php echo htmlentities($item['mobile']); ?></p>
|
||||
<p>收货地址:<?php echo htmlentities($item['delivery_address']); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="layui-table-cell" style="width: 200px;">
|
||||
<button type="submit" class="layui-btn layui-btn-sm layui-btn-primary width_160 detail" order_id="<?php echo htmlentities($item['id']); ?>">查看详情</button>
|
||||
<?php if($item['order_status'] == '1'): ?>
|
||||
<button type="submit" class="layui-btn layui-btn-sm layui-btn-normal width_160 delivery" order_id="<?php echo htmlentities($item['id']); ?>">发货</button>
|
||||
<?php endif; if($item['order_status'] == '2'): ?>
|
||||
<button type="submit" class="layui-btn layui-btn-sm layui-btn-normal width_160 confirm" order_id="<?php echo htmlentities($item['id']); ?>">确认收货</button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; else: echo "" ;endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- 数据列表底部 -->
|
||||
<div class="box-footer">
|
||||
<?php echo $page; ?>
|
||||
<label class="control-label pull-right" style="margin-right: 10px; font-weight: 100;">
|
||||
<small>共<?php echo htmlentities($total); ?>条记录</small>
|
||||
<small>每页显示</small>
|
||||
|
||||
<select class="input-sm" onchange="changePerPage(this)">
|
||||
<option value="10" <?php if($admin['per_page']==10): ?>selected<?php endif; ?>>10</option>
|
||||
<option value="20" <?php if($admin['per_page']==20): ?>selected<?php endif; ?>>20</option>
|
||||
<option value="30" <?php if($admin['per_page']==30): ?>selected<?php endif; ?>>30</option>
|
||||
<option value="50" <?php if($admin['per_page']==50): ?>selected<?php endif; ?>>50</option>
|
||||
<option value="100" <?php if($admin['per_page']==100): ?>selected<?php endif; ?>>100</option>
|
||||
</select>
|
||||
|
||||
<small>条记录</small>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<script>
|
||||
layui.use('form', function(){
|
||||
var form = layui.form;
|
||||
form.render('select');
|
||||
});
|
||||
//日期时间范围
|
||||
laydate.render({
|
||||
elem: '#start_time'
|
||||
,type: 'datetime'
|
||||
,trigger: 'click'
|
||||
});
|
||||
|
||||
//日期时间范围
|
||||
laydate.render({
|
||||
elem: '#end_time'
|
||||
,type: 'datetime'
|
||||
,trigger: 'click'
|
||||
});
|
||||
|
||||
//注意:选项卡 依赖 element 模块,否则无法进行功能性操作
|
||||
layui.config({
|
||||
version:"2.6.6.20211117",
|
||||
base: '/static/layui-admin/dist/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'element', 'jquery', 'like'], function () {
|
||||
var $ = layui.$;
|
||||
var like = layui.like;
|
||||
|
||||
//主图放大
|
||||
$(document).on('click', '.image-show', function () {
|
||||
var src = $(this).attr('src');
|
||||
like.showImg(src,600);
|
||||
});
|
||||
|
||||
//查看详情
|
||||
$('.detail').click(function () {
|
||||
var id = $(this).attr('order_id');
|
||||
layer.open({
|
||||
type: 2
|
||||
,title: '订单详情'
|
||||
,content: '<?php echo url("order/detail"); ?>?id='+id
|
||||
,area: ['90%', '90%']
|
||||
,yes: function(index, layero){
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
//发货
|
||||
$('.delivery').click(function () {
|
||||
var id = $(this).attr('order_id');
|
||||
layer.open({
|
||||
type: 2
|
||||
,title: '订单发货'
|
||||
,content: '<?php echo url("order/delivery"); ?>?id='+id
|
||||
,area: ['90%', '90%']
|
||||
,yes: function(index, layero){
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
//确认收货
|
||||
$('.confirm').click(function () {
|
||||
var id = $(this).attr('order_id');
|
||||
layer.confirm('确认订单商品已收货吗??', {
|
||||
btn: ['确认','取消'] //按钮
|
||||
}, function(){
|
||||
like.ajax({
|
||||
url: '<?php echo url("order/confirm"); ?>'
|
||||
, data: {'order_id': id}
|
||||
, type: 'post'
|
||||
, success: function (res) {
|
||||
if (res.code == 1) {
|
||||
layui.layer.msg(res.msg, {
|
||||
offset: '15px'
|
||||
, icon: 1
|
||||
, time: 1000
|
||||
},function () {
|
||||
location.reload();
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
</div>
|
||||
|
||||
<!--页面底部-->
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<footer class="main-footer">
|
||||
<div class="pull-right hidden-xs">
|
||||
<b>Version</b> <?php echo htmlentities((isset($admin['version']) && ($admin['version'] !== '')?$admin['version']:'1.0')); ?>
|
||||
</div>
|
||||
<strong>Copyright © 2020 <a href="<?php echo htmlentities((isset($admin['link']) && ($admin['link'] !== '')?$admin['link']:'#')); ?>"><?php echo htmlentities((isset($admin['author']) && ($admin['author'] !== '')?$admin['author']:'admin')); ?></a>.</strong> All rights
|
||||
reserved.
|
||||
</footer>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
<!--侧边栏-->
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<aside class="control-sidebar control-sidebar-dark">
|
||||
<ul class="nav nav-tabs nav-justified control-sidebar-tabs">
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane" id="control-sidebar-home-tab">
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
<div class="control-sidebar-bg"></div>
|
||||
<?php endif; if(!$admin['pjax']): ?>
|
||||
</div>
|
||||
<?php endif; if(!$admin['pjax']): ?>
|
||||
</body>
|
||||
</html>
|
||||
<?php endif; ?>
|
||||
|
|
@ -0,0 +1,343 @@
|
|||
<?php /*a:9:{s:98:"/Library/WebServer/Documents/dggxiangmu/dggyanguang/application/admin/view/goods_category/add.html";i:1640153289;s:91:"/Library/WebServer/Documents/dggxiangmu/dggyanguang/application/admin/view/public/base.html";i:1640153289;s:95:"/Library/WebServer/Documents/dggxiangmu/dggyanguang/application/admin/view/public/head_css.html";i:1640153289;s:94:"/Library/WebServer/Documents/dggxiangmu/dggyanguang/application/admin/view/public/head_js.html";i:1640153289;s:93:"/Library/WebServer/Documents/dggxiangmu/dggyanguang/application/admin/view/public/header.html";i:1640153289;s:94:"/Library/WebServer/Documents/dggxiangmu/dggyanguang/application/admin/view/public/sidebar.html";i:1640153289;s:101:"/Library/WebServer/Documents/dggxiangmu/dggyanguang/application/admin/view/public/content_header.html";i:1640153289;s:93:"/Library/WebServer/Documents/dggxiangmu/dggyanguang/application/admin/view/public/footer.html";i:1640153289;s:102:"/Library/WebServer/Documents/dggxiangmu/dggyanguang/application/admin/view/public/control_sidebar.html";i:1640153289;}*/ ?>
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="renderer" content="webkit">
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<title><?php echo htmlentities((isset($admin['title']) && ($admin['title'] !== '')?$admin['title']:'Admin')); ?> | <?php echo htmlentities((isset($admin['name']) && ($admin['name'] !== '')?$admin['name']:'Admin')); ?></title>
|
||||
|
||||
|
||||
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<!--头部css-->
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/bootstrap/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/bootstrap-switch/css/bootstrap-switch.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/font-awesome/css/font-awesome.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/iconpicker/css/iconpicker.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/select2/css/select2.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/fileinput/css/fileinput.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/css/AdminLTE.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/css/admin.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/css/_all-skins.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/css/skins.css" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/nprogress/nprogress.css" />
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!--头部js-->
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<script type="text/javascript" src="/static/admin/plugins/js-cookie/js.cookie-2.2.0.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/jquery/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/jquery-ui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/layer/layer.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/laydate/laydate.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/jquery-slimscroll/jquery.slimscroll.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/jquery-validation/jquery.validate.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/jquery-validation/localization/messages_zh.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/bootstrap-number/bootstrap-number.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/fastclick/fastclick.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/select2/js/select2.full.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/nprogress/nprogress.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/iconpicker/js/iconpicker.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/ueditor/ueditor.config.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/ueditor/ueditor.all.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/ueditor/lang/zh-cn/zh-cn.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/clipboard/clipboard.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/viewer/viewer.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/viewer/jquery-viewer.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/js/tag/jquery.tag-editor.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/js/tag/jquery.tag-editor.css" />
|
||||
<script src="https://www.layuicdn.com/layui/layui.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css">
|
||||
<!--勿必把地图api key更换成自己的-->
|
||||
<script type="text/javascript" src='//webapi.amap.com/maps?v=1.4.15&key=cccf8ea926e153be0a013d55edd47c11&plugin=AMap.ToolBar'></script>
|
||||
<!-- UI组件库 1.0 -->
|
||||
<script src="//webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script>
|
||||
<script>
|
||||
//是否为debug模式
|
||||
var adminDebug = <?php echo htmlentities($debug); ?>;
|
||||
//cookie前缀
|
||||
var cookiePrefix = '<?php echo htmlentities($cookie_prefix); ?>';
|
||||
//UEditor server地址
|
||||
var UEServer = "<?php echo url('editor/server'); ?>";
|
||||
//列表页当前选择的ID
|
||||
var dataSelectIds = [];
|
||||
</script>
|
||||
<script type="text/javascript" src="/static/admin/js/adminlte.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/js/jquery.pjax.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/js/admin.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/js/demo.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/js/app.js"></script>
|
||||
|
||||
<?php endif; ?>
|
||||
</head>
|
||||
<body class="hold-transition skin-blue sidebar-mini">
|
||||
<div class="wrapper">
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- 顶部 -->
|
||||
|
||||
<!--网页头部-->
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<header class="main-header">
|
||||
<a class="logo">
|
||||
<span class="logo-mini"><?php echo htmlentities((isset($admin['short_name']) && ($admin['short_name'] !== '')?$admin['short_name']:'Backend')); ?></span>
|
||||
<span class="logo-lg"><?php echo htmlentities((isset($admin['name']) && ($admin['name'] !== '')?$admin['name']:'Backend')); ?></span>
|
||||
</a>
|
||||
<nav class="navbar navbar-static-top">
|
||||
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</a>
|
||||
<div class="navbar-custom-menu">
|
||||
<ul class="nav navbar-nav">
|
||||
|
||||
<li class="dropdown messages-menu">
|
||||
<a href="#" class="dropdown-toggle ReloadButton" title="刷新页面" data-toggle="dropdown">
|
||||
<i class="fa fa-refresh"></i>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="dropdown user user-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<img src="<?php echo htmlentities((isset($admin['user']['avatar']) && ($admin['user']['avatar'] !== '')?$admin['user']['avatar']:'/static/admin/images/avatar.png')); ?>" class="user-image" alt="用户头像">
|
||||
<span class="hidden-xs"><?php echo htmlentities((isset($admin['user']['nickname']) && ($admin['user']['nickname'] !== '')?$admin['user']['nickname']:'')); ?></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="user-header">
|
||||
<img src="<?php echo htmlentities((isset($admin['user']['avatar']) && ($admin['user']['avatar'] !== '')?$admin['user']['avatar']:'/static/admin/images/avatar.png')); ?>" class="img-circle" alt="用户头像">
|
||||
<p>
|
||||
<?php echo htmlentities((isset($admin['user']['nickname']) && ($admin['user']['nickname'] !== '')?$admin['user']['nickname']:'')); ?>
|
||||
<small><?php echo htmlentities((isset($admin['user']['username']) && ($admin['user']['username'] !== '')?$admin['user']['username']:'')); ?></small>
|
||||
</p>
|
||||
</li>
|
||||
<li class="user-footer">
|
||||
<div class="pull-left">
|
||||
<a href="<?php echo url('admin_user/profile'); ?>" class="btn btn-default btn-flat">个人资料</a>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<a href="<?php echo url('auth/logout'); ?>" class="btn btn-default btn-flat">退出</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<!-- 左侧 -->
|
||||
|
||||
<!--左侧菜单-->
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<aside class="main-sidebar">
|
||||
<section class="sidebar">
|
||||
<div class="user-panel">
|
||||
<div class="pull-left image">
|
||||
<img src="<?php echo htmlentities((isset($admin['user']['avatar']) && ($admin['user']['avatar'] !== '')?$admin['user']['avatar']:'__BACKEND_IMAGES__/avatar.png')); ?>" class="img-circle" alt="用户头像">
|
||||
</div>
|
||||
<div class="pull-left info">
|
||||
<p><?php echo htmlentities((isset($admin['user']['nickname']) && ($admin['user']['nickname'] !== '')?$admin['user']['nickname']:'')); ?></p>
|
||||
<a><i class="fa fa-circle text-success"></i> 在线</a>
|
||||
</div>
|
||||
</div>
|
||||
<form method="get" class="sidebar-form" id="sidebar-form">
|
||||
<div class="input-group">
|
||||
<input type="text" name="q" class="form-control" placeholder="搜索菜单" id="search-input">
|
||||
<span class="input-group-btn">
|
||||
<button type="submit" name="search" id="search-btn" class="btn btn-flat">
|
||||
<i class="fa fa-search"></i>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
<ul class="sidebar-menu" data-widget="tree">
|
||||
<li class="header">导航菜单</li>
|
||||
<?php echo (isset($admin['menu']) && ($admin['menu'] !== '')?$admin['menu']:''); ?>
|
||||
</ul>
|
||||
</section>
|
||||
</aside>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- 内容 -->
|
||||
<div class="content-wrapper" id="pjax-container">
|
||||
|
||||
<!--内容头部-->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<?php echo (isset($admin['title']) && ($admin['title'] !== '')?$admin['title']:'admin'); ?>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="<?php echo url('index/index'); ?>"><i class="fa fa-dashboard"></i> 主页</a></li>
|
||||
<li class="active"><?php echo (isset($admin['title']) && ($admin['title'] !== '')?$admin['title']:'Admin'); ?></li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<?php if(app('session')->get('error_message')): ?>
|
||||
<!--如果有错误或者成功的消息-->
|
||||
<script>
|
||||
layer.msg('<?php echo htmlentities(app('session')->get('error_message')); ?>',{icon:2});
|
||||
$.pjax({
|
||||
url: "<?php echo htmlentities(app('session')->get('url')); ?>",
|
||||
container: '#pjax-container'
|
||||
});
|
||||
</script>
|
||||
<?php endif; if(app('session')->get('success_message')): ?>
|
||||
<script>
|
||||
layer.msg('<?php echo htmlentities(app('session')->get('success_message')); ?>',{icon:1});
|
||||
$.pjax({
|
||||
url: '<?php echo htmlentities(app('session')->get('url')); ?>',
|
||||
container: '#pjax-container'
|
||||
});
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<!-- 表单头部 -->
|
||||
<div class="box-header with-border">
|
||||
<div class="btn-group">
|
||||
<a class="btn flat btn-sm btn-default BackButton">
|
||||
<i class="fa fa-arrow-left"></i>
|
||||
返回
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 表单 -->
|
||||
<form id="dataForm" class="form-horizontal dataForm" action="" method="post"
|
||||
enctype="multipart/form-data">
|
||||
<!-- 表单字段区域 -->
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="parent_id" class="col-sm-2 control-label">上级分类</label>
|
||||
<div class="col-sm-10 col-md-4">
|
||||
<select name="parent_id" id="parent_id" class="form-control field-select"
|
||||
data-placeholder="请选择上级分类">
|
||||
<option value="0">顶级分类</option>
|
||||
<?php echo $cat_list; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$('#parent_id').select2();
|
||||
</script>
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-sm-2 control-label">名称</label>
|
||||
<div class="col-sm-10 col-md-4">
|
||||
<input id="name" name="name" value="<?php echo htmlentities((isset($data['name']) && ($data['name'] !== '')?$data['name']:'')); ?>" placeholder="请输入名称"
|
||||
type="text" class="form-control field-text">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- 表单底部 -->
|
||||
<div class="box-footer">
|
||||
<?php echo token(); ?>
|
||||
<div class="col-sm-2">
|
||||
</div>
|
||||
<div class="col-sm-10 col-md-4">
|
||||
<?php if(!isset($data)): ?>
|
||||
<div class="btn-group pull-right">
|
||||
<label class="createContinue">
|
||||
<input type="checkbox" value="1" id="_create" name="_create"
|
||||
title="继续添加数据">继续添加</label>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="btn-group">
|
||||
<button type="submit" class="btn flat btn-info dataFormSubmit">
|
||||
保存
|
||||
</button>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<button type="reset" class="btn flat btn-default dataFormReset">
|
||||
重置
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<script>
|
||||
/** 表单验证 **/
|
||||
$('#dataForm').validate({
|
||||
rules: {
|
||||
'parent_id': {
|
||||
required: true,
|
||||
},
|
||||
'name': {
|
||||
required: true,
|
||||
},
|
||||
|
||||
},
|
||||
messages: {
|
||||
'parent_id': {
|
||||
required: "上级分类不能为空",
|
||||
},
|
||||
'name': {
|
||||
required: "名称不能为空",
|
||||
},
|
||||
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</div>
|
||||
|
||||
<!--页面底部-->
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<footer class="main-footer">
|
||||
<div class="pull-right hidden-xs">
|
||||
<b>Version</b> <?php echo htmlentities((isset($admin['version']) && ($admin['version'] !== '')?$admin['version']:'1.0')); ?>
|
||||
</div>
|
||||
<strong>Copyright © 2020 <a href="<?php echo htmlentities((isset($admin['link']) && ($admin['link'] !== '')?$admin['link']:'#')); ?>"><?php echo htmlentities((isset($admin['author']) && ($admin['author'] !== '')?$admin['author']:'admin')); ?></a>.</strong> All rights
|
||||
reserved.
|
||||
</footer>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
<!--侧边栏-->
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<aside class="control-sidebar control-sidebar-dark">
|
||||
<ul class="nav nav-tabs nav-justified control-sidebar-tabs">
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane" id="control-sidebar-home-tab">
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
<div class="control-sidebar-bg"></div>
|
||||
<?php endif; if(!$admin['pjax']): ?>
|
||||
</div>
|
||||
<?php endif; if(!$admin['pjax']): ?>
|
||||
</body>
|
||||
</html>
|
||||
<?php endif; ?>
|
||||
Loading…
Reference in New Issue