- 商品:{{ item.subject }}
- 单号:{{ item.sn }}
+ 名称:{{ item.subject }}
+
+ 单号:{{ item.sn }}
+ {% if item.promotion_type > 0 %}
+ 促销:{{ promotion_type(item.promotion_type) }}
+ {% endif %}
+
|
昵称:{{ item.owner.name }}
diff --git a/app/Http/Admin/Views/order/macro.volt b/app/Http/Admin/Views/order/macro.volt
index 6b6a4847..433099c2 100644
--- a/app/Http/Admin/Views/order/macro.volt
+++ b/app/Http/Admin/Views/order/macro.volt
@@ -3,7 +3,7 @@
{% set course = order.item_info['course'] %}
课程名称:{{ course['title'] }}
- 优惠价格:{{ '¥%0.2f'|format(course['market_price']) }},会员价格:{{ '¥%0.2f'|format(course['vip_price']) }}
+ 市场价格:{{ '¥%0.2f'|format(course['market_price']) }},会员价格:{{ '¥%0.2f'|format(course['vip_price']) }}
学习期限:{{ date('Y-m-d H:i:s',course['study_expiry_time']) }},退款期限:{% if course['refund_expiry'] > 0 %}{{ date('Y-m-d H:i:s',course['refund_expiry_time']) }}{% else %}不支持{% endif %}
{% elseif order.item_type == 2 %}
@@ -11,7 +11,7 @@
{% for course in courses %}
课程名称:{{ course['title'] }}
- 优惠价格:{{ '¥%0.2f'|format(course['market_price']) }},会员价格:{{ '¥%0.2f'|format(course['vip_price']) }}
+ 市场价格:{{ '¥%0.2f'|format(course['market_price']) }},会员价格:{{ '¥%0.2f'|format(course['vip_price']) }}
学习期限:{{ date('Y-m-d H:i:s',course['study_expiry_time']) }},退款期限:{% if course['refund_expiry'] > 0 %}{{ date('Y-m-d H:i:s',course['refund_expiry_time']) }}{% else %}不支持{% endif %}
{% endfor %}
@@ -62,4 +62,14 @@
{% elseif value == 5 %}
已退款
{% endif %}
+{%- endmacro %}
+
+{%- macro promotion_type(value) %}
+ {% if value == 0 %}
+ N/A
+ {% elseif value == 1 %}
+ 限时秒杀
+ {% elseif value == 2 %}
+ 限时折扣
+ {% endif %}
{%- endmacro %}
\ No newline at end of file
diff --git a/app/Http/Admin/Views/order/order_info.volt b/app/Http/Admin/Views/order/order_info.volt
index 73b9dbca..4cc52a4d 100644
--- a/app/Http/Admin/Views/order/order_info.volt
+++ b/app/Http/Admin/Views/order/order_info.volt
@@ -6,7 +6,10 @@
|