From a383c10305646617742c973096822108a3503d43 Mon Sep 17 00:00:00 2001 From: 刘朕 <liuzhen@bronet.cn> Date: Tue, 27 Aug 2019 16:59:28 +0800 Subject: [PATCH] 页面生成图片优化 --- app/portal/controller/OrderSalesmanController.php | 5 ++--- public/themes/simpleboot3/portal/order_salesman/get_all.html | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/portal/controller/OrderSalesmanController.php b/app/portal/controller/OrderSalesmanController.php index d444ade..a36cbbc 100644 --- a/app/portal/controller/OrderSalesmanController.php +++ b/app/portal/controller/OrderSalesmanController.php @@ -264,9 +264,8 @@ class OrderSalesmanController extends WeChatBaseController $new_img = Image::open('./upload/'.$img_url); $width = $new_img->width(); $height = $new_img->height(); -// $new_img->thumb($width,$height - intval($top) * 2,5); -// $new_img->thumb($width/2,($height - intval($top) * 2)/2); - $new_img->thumb($width/2,$height); + $new_img->thumb($width,$height - intval($top) * 2,5); + $new_img->thumb($width/2,($height - intval($top) * 2)/2); $new_img->save('./upload/'.$img_url,'jpg',100); $this->success('成功','',cmf_get_asset_url($img_url)); } diff --git a/public/themes/simpleboot3/portal/order_salesman/get_all.html b/public/themes/simpleboot3/portal/order_salesman/get_all.html index 90dd82d..0665758 100755 --- a/public/themes/simpleboot3/portal/order_salesman/get_all.html +++ b/public/themes/simpleboot3/portal/order_salesman/get_all.html @@ -197,7 +197,7 @@ </style> </head> -<body style="cursor:pointer;" id="orderlist"> +<body style="cursor:pointer;"> <!--学校弹窗--> @@ -427,7 +427,7 @@ <div class="log_three_select_one log_three_select_btn down" href="javascript:;" id="view_canvas">查看订单截图</div> </div> <!-- 列表内容 --> -<div id="" style="background: #fff;"> +<div id="orderlist" style="background: #fff;"> <!--未发货--> <div class="log_three_list_contant" style="display: block;"> <foreach name="$data" item="vo"> -- libgit2 0.24.0