WIN-2308041133\Administrator vor 1 Woche
Ursprung
Commit
c0317594ac

+ 1 - 0
app/admin/controller/setting/ShippingTemplates.php

@@ -54,6 +54,7 @@ class ShippingTemplates extends AuthController
             'type' => $templates->getData('type'),
             'appoint_check' => $templates->getData('appoint'),
             'sort' => $templates->getData('sort'),
+            'collect_on_delivery' => $templates->getData('collect_on_delivery') ?: 0,
         ];
         return JsonService::successful($data);
     }

+ 2 - 1
app/admin/view/setting/shipping_templates/index.php

@@ -59,6 +59,7 @@
             {field: 'name', title: '模板名称'},
             {field: 'type', title: '计费方式'},
             {field: 'appoint', title: '指定包邮'},
+            {field: 'collect_on_delivery', title: '是否到付'},
             {field: 'sort', title: '排序'},
             {field: 'add_time', title: '添加时间'},
             {field: 'operate', title: '操作', toolbar: '#act', align: 'center'}
@@ -95,4 +96,4 @@
         layList.reload(where);
     });
 </script>
-{/block}
+{/block}