diff --git a/beike/Admin/Http/Controllers/CategoryController.php b/beike/Admin/Http/Controllers/CategoryController.php
index 4fa69fcc..7fdcbcf8 100644
--- a/beike/Admin/Http/Controllers/CategoryController.php
+++ b/beike/Admin/Http/Controllers/CategoryController.php
@@ -4,6 +4,7 @@ namespace Beike\Admin\Http\Controllers;
use Beike\Models\Category;
use Illuminate\Http\Request;
+use Beike\Repositories\LanguageRepo;
use Beike\Repositories\CategoryRepo;
use Beike\Admin\Services\CategoryService;
use Beike\Admin\Http\Requests\CategoryRequest;
@@ -73,6 +74,7 @@ class CategoryController extends Controller
$data = [
'category' => $category ?? new Category(),
+ 'languages' => LanguageRepo::all(),
'descriptions' => $descriptions ?? null,
'categories' => CategoryRepo::flatten(locale()),
'_redirect' => $this->getRedirect(),
diff --git a/beike/Shop/Http/Controllers/ProductController.php b/beike/Shop/Http/Controllers/ProductController.php
index 00fa0061..1b255303 100644
--- a/beike/Shop/Http/Controllers/ProductController.php
+++ b/beike/Shop/Http/Controllers/ProductController.php
@@ -22,7 +22,7 @@ class ProductController extends Controller
$product = ProductRepo::getProductDetail($product);
$data = [
'product' => (new ProductDetail($product))->jsonSerialize(),
- 'relations' => ProductRepo::getProductsByIds($relationIds),
+ 'relations' => ProductRepo::getProductsByIds($relationIds)->jsonSerialize(),
];
$data = hook_filter('product.show', $data);
return view('product', $data);
diff --git a/public/fonts/poppins/Poppins-SemiBold.ttf b/public/fonts/poppins/Poppins-SemiBold.ttf
new file mode 100644
index 00000000..8987d800
Binary files /dev/null and b/public/fonts/poppins/Poppins-SemiBold.ttf differ
diff --git a/resources/beike/admin/views/pages/categories/form.blade.php b/resources/beike/admin/views/pages/categories/form.blade.php
index e8eb1703..4d751cc6 100644
--- a/resources/beike/admin/views/pages/categories/form.blade.php
+++ b/resources/beike/admin/views/pages/categories/form.blade.php
@@ -35,6 +35,31 @@
+
+ @foreach ($languages as $language)
+
+ {{ $language['name'] }}
+
+
+ @endforeach
+
+
+ @foreach ($languages as $language)
+
+ {{ $language['name'] }}
+
+
+ @endforeach
+
+
+ @foreach ($languages as $language)
+
+ {{ $language['name'] }}
+
+
+ @endforeach
+
+
diff --git a/resources/beike/admin/views/pages/products/form/form.blade.php b/resources/beike/admin/views/pages/products/form/form.blade.php
index 3e41bb83..c825e70e 100644
--- a/resources/beike/admin/views/pages/products/form/form.blade.php
+++ b/resources/beike/admin/views/pages/products/form/form.blade.php
@@ -330,11 +330,11 @@
@endforeach
-
+
@foreach ($languages as $language)
{{ $language['name'] }}
-
+
@endforeach
@@ -342,7 +342,7 @@
@foreach ($languages as $language)
{{ $language['name'] }}
-
+
@endforeach
diff --git a/resources/beike/shop/default/css/bootstrap/bootstrap.scss b/resources/beike/shop/default/css/bootstrap/bootstrap.scss
index 049972c3..2a53eeac 100644
--- a/resources/beike/shop/default/css/bootstrap/bootstrap.scss
+++ b/resources/beike/shop/default/css/bootstrap/bootstrap.scss
@@ -12,7 +12,7 @@ $primary: #fd560f;
$success: #71c20b;
$font-size-base: 0.8rem;
-$font-family-base: 'Poppins', sans-serif;
+$font-family-base: "Poppins","Helvetica","Arial","sans-serif";
$border-radius: 0;
$form-check-input-width: 1.2em;
$form-check-input-border-radius: 0;
diff --git a/resources/beike/shop/default/css/global.scss b/resources/beike/shop/default/css/global.scss
index 70926b4b..5562bacc 100644
--- a/resources/beike/shop/default/css/global.scss
+++ b/resources/beike/shop/default/css/global.scss
@@ -24,27 +24,23 @@ body[class^="page-account-"] {
font-display: swap;
}
+// @font-face {font-family: 'Poppins';
+// src: url('/fonts/poppins/Poppins-Medium.ttf') format("truetype");
+// font-style: normal;
+// font-display: swap;
+// font-weight: 700;
+// }
@font-face {font-family: 'Poppins';
- src: url('/fonts/poppins/Poppins-Medium.ttf') format("truetype");
+ src: url('/fonts/poppins/Poppins-SemiBold.ttf') format("truetype");
font-style: normal;
font-display: swap;
font-weight: 700;
}
-@font-face {font-family: 'Poppins';
- src: url('/fonts/poppins/Poppins-Bold.ttf') format("truetype");
- font-style: normal;
- font-display: swap;
- font-weight: 800;
-}
-
-.fw-800 {
- font-weight: 800 !important;
-}
-
h1,h2,h3, h4, h5, h6, b, strong {
- font-weight: 800 !important;
+ font-weight: 700;
+ color: #282828;
}
@for $i from 1 through 6 {
@@ -127,6 +123,7 @@ h1,h2,h3, h4, h5, h6, b, strong {
font-weight: bold;
position: relative;
padding-bottom: 10px;
+ color: #333;
margin-bottom: 2rem;
@media (max-width: 992px) {
diff --git a/resources/beike/shop/default/css/page-product.scss b/resources/beike/shop/default/css/page-product.scss
index 52219b0a..630013cb 100644
--- a/resources/beike/shop/default/css/page-product.scss
+++ b/resources/beike/shop/default/css/page-product.scss
@@ -167,13 +167,14 @@ body.page-product {
.peoduct-info {
.product-name {
- font-size: 1.5rem;
- line-height: 1.4;
+ font-size: 1.7rem;
+ line-height: 1.3;
@media (max-width: 768px) {
font-size: 1.2rem;
}
}
+
.rating-wrap {
margin-bottom: 2rem;
diff --git a/themes/default/cart/cart.blade.php b/themes/default/cart/cart.blade.php
index 24fd7b7e..c4d3cf6f 100644
--- a/themes/default/cart/cart.blade.php
+++ b/themes/default/cart/cart.blade.php
@@ -25,7 +25,7 @@
-
{{ __('shop/carts.commodity') }}
+
{{ __('shop/carts.commodity') }}
@@ -81,14 +81,14 @@
-
{{ __('shop/carts.product_total') }}
+
{{ __('shop/carts.product_total') }}
- {{ __('shop/carts.all') }}@{{ allProduct }}
- {{ __('shop/carts.selected') }}@{{ total_quantity }}
- {{ __('shop/carts.product_total') }}@{{ amount_format }}
-
-
+
diff --git a/themes/default/category.blade.php b/themes/default/category.blade.php
index ff3edbdd..fba5d7b2 100644
--- a/themes/default/category.blade.php
+++ b/themes/default/category.blade.php
@@ -1,6 +1,8 @@
@extends('layout.master')
@section('body-class', 'page-categories')
-@section('title', system_setting('base.meta_title', 'BeikeShop开源好用的跨境电商系统 - BeikeShop官网') .' - '. $category->description->name)
+@section('title', $category->description->meta_title ?: system_setting('base.meta_title', 'BeikeShop开源好用的跨境电商系统 - BeikeShop官网') .' - '. $category->description->name)
+@section('keywords', $category->description->meta_keywords ?: system_setting('base.meta_keyword'))
+@section('description', $category->description->meta_description ?: system_setting('base.meta_description'))
@section('content')
diff --git a/themes/default/checkout.blade.php b/themes/default/checkout.blade.php
index d245bb1c..7e4ecb85 100644
--- a/themes/default/checkout.blade.php
+++ b/themes/default/checkout.blade.php
@@ -109,7 +109,7 @@
@endforeach
-
+
diff --git a/themes/default/product.blade.php b/themes/default/product.blade.php
index cbac9f0e..9e85722c 100644
--- a/themes/default/product.blade.php
+++ b/themes/default/product.blade.php
@@ -1,6 +1,8 @@
@extends('layout.master')
@section('body-class', 'page-product')
-@section('title', $product['name'])
+@section('title', $product['meta_title'] ?: $product['name'])
+@section('keywords', $product['meta_keywords'] ?: system_setting('base.meta_keyword'))
+@section('description', $product['meta_description'] ?: system_setting('base.meta_description'))
@push('header')