作者 刘朕
1 个管道 的构建 通过 耗费 0 秒

页面生成图片优化

... ... @@ -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));
}
... ...
... ... @@ -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">
... ...