调整订单详情页
parent
bc7989f9ef
commit
0903b091a2
|
|
@ -18,7 +18,7 @@ class OrderConsigneeInfo extends AbstractTool
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $style = 'btn-success';
|
protected $style = 'btn-warning';
|
||||||
|
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class OrderReduce extends AbstractTool
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $style = 'btn-success';
|
protected $style = 'btn-warning';
|
||||||
|
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -158,17 +158,20 @@ class OrderController extends AdminController
|
||||||
})->prepend('¥');
|
})->prepend('¥');
|
||||||
$show->field('vip_discount_amount')->as(function ($v) {
|
$show->field('vip_discount_amount')->as(function ($v) {
|
||||||
return bcdiv($v, 100, 2);
|
return bcdiv($v, 100, 2);
|
||||||
})->prepend('¥');
|
})->prepend('- ¥');
|
||||||
$show->field('userCoupon.coupon_name')->label();
|
if ($show->model()->user_coupon_id) {
|
||||||
$show->field('coupon_discount_amount')->as(function ($v) {
|
$show->field('userCoupon.coupon_name')->label();
|
||||||
return bcdiv($v, 100, 2);
|
$show->field('coupon_discount_amount')->as(function ($v) {
|
||||||
})->prepend('¥');
|
return bcdiv($v, 100, 2);
|
||||||
|
})->prepend('- ¥');
|
||||||
|
}
|
||||||
|
|
||||||
$show->field('reduced_amount')->as(function ($v) {
|
$show->field('reduced_amount')->as(function ($v) {
|
||||||
return bcdiv($v, 100, 2);
|
return bcdiv($v, 100, 2);
|
||||||
})->prepend('¥');
|
})->prepend('- ¥');
|
||||||
$show->field('shipping_fee')->as(function ($v) {
|
$show->field('shipping_fee')->as(function ($v) {
|
||||||
return bcdiv($v, 100, 2);
|
return bcdiv($v, 100, 2);
|
||||||
})->prepend('¥');
|
})->prepend('+ ¥');
|
||||||
$show->divider();
|
$show->divider();
|
||||||
$show->field('note');
|
$show->field('note');
|
||||||
$show->field('remark');
|
$show->field('remark');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue