6
0
Fork 0

调整订单详情页

release
vine_liutk 2021-12-18 13:50:59 +08:00
parent bc7989f9ef
commit 0903b091a2
3 changed files with 12 additions and 9 deletions

View File

@ -18,7 +18,7 @@ class OrderConsigneeInfo extends AbstractTool
*
* @var string
*/
protected $style = 'btn-success';
protected $style = 'btn-warning';
public function render()
{

View File

@ -18,7 +18,7 @@ class OrderReduce extends AbstractTool
*
* @var string
*/
protected $style = 'btn-success';
protected $style = 'btn-warning';
public function render()
{

View File

@ -158,17 +158,20 @@ class OrderController extends AdminController
})->prepend('¥');
$show->field('vip_discount_amount')->as(function ($v) {
return bcdiv($v, 100, 2);
})->prepend('¥');
$show->field('userCoupon.coupon_name')->label();
$show->field('coupon_discount_amount')->as(function ($v) {
return bcdiv($v, 100, 2);
})->prepend('¥');
})->prepend('- ¥');
if ($show->model()->user_coupon_id) {
$show->field('userCoupon.coupon_name')->label();
$show->field('coupon_discount_amount')->as(function ($v) {
return bcdiv($v, 100, 2);
})->prepend('- ¥');
}
$show->field('reduced_amount')->as(function ($v) {
return bcdiv($v, 100, 2);
})->prepend('¥');
})->prepend('- ¥');
$show->field('shipping_fee')->as(function ($v) {
return bcdiv($v, 100, 2);
})->prepend('¥');
})->prepend('+ ¥');
$show->divider();
$show->field('note');
$show->field('remark');