diff --git a/themes/default/account/account.blade.php b/themes/default/account/account.blade.php index a4d4bda0..ddcab493 100644 --- a/themes/default/account/account.blade.php +++ b/themes/default/account/account.blade.php @@ -54,7 +54,7 @@ class="text-muted">{{ __('shop/account.after_sales') }}
- @if (!$latest_orders) + @if (!count($latest_orders))
{{ __('shop/account.no_order') }}{{ __('shop/account.to_buy') }}
diff --git a/themes/default/checkout.blade.php b/themes/default/checkout.blade.php index 075cf798..f002c309 100644 --- a/themes/default/checkout.blade.php +++ b/themes/default/checkout.blade.php @@ -107,7 +107,7 @@ @endforeach
- +
@@ -168,6 +168,10 @@ // 计算属性 computed: { + isSubmit() { + // source.addresses.length > 0 && source.payment_methods.length > 0 && source.shipping_methods.length > 0 + return this.source.addresses.length > 0 && this.source.payment_methods.length > 0 && this.source.shipping_methods.length > 0; + }, // isAddress: { // this.form.shipping_address_id == // }