From 2c8cde62746d09b3f17c7400d016adb466c5848e Mon Sep 17 00:00:00 2001
From: jsasg <735273025@qq.com>
Date: Sat, 24 May 2025 17:03:25 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20mobile=E4=BA=A7=E5=93=81=E5=88=86?=
=?UTF-8?q?=E7=B1=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/index/lang/en-us/mobile.php | 3 +-
app/index/view/mobile/product/category.html | 93 +++++++++++++++++++
.../view/mobile/product/subcategory.html | 74 +++++++++++++++
.../index/mobile/css/product_category.css | 25 +++++
.../index/mobile/css/product_subcategory.css | 9 ++
5 files changed, 203 insertions(+), 1 deletion(-)
create mode 100644 app/index/view/mobile/product/category.html
create mode 100644 app/index/view/mobile/product/subcategory.html
create mode 100755 public/static/index/mobile/css/product_category.css
create mode 100755 public/static/index/mobile/css/product_subcategory.css
diff --git a/app/index/lang/en-us/mobile.php b/app/index/lang/en-us/mobile.php
index a32f9981..06329045 100644
--- a/app/index/lang/en-us/mobile.php
+++ b/app/index/lang/en-us/mobile.php
@@ -6,9 +6,10 @@ return [
'请择地区' => 'SELECT A REGION',
'首页' => 'Home',
'产品列表' => 'Products',
- '产品' => 'Product',
+ '产品' => 'Product',
'联系方式' => 'Contact',
'查看所有' => 'View All',
+ '查看全部' => 'View All',
'明星产品/热点产品' => 'Featured Products',
'了解更多' => 'Learn More',
'Orico 技术' => 'ORICO Technology',
diff --git a/app/index/view/mobile/product/category.html b/app/index/view/mobile/product/category.html
new file mode 100644
index 00000000..04702b45
--- /dev/null
+++ b/app/index/view/mobile/product/category.html
@@ -0,0 +1,93 @@
+{extend name="public/base" /}
+{block name="style"}
+
+{/block}
+{block name="main"}
+
+
+ {notempty name="focus_image"}
+
+ {volist name="focus_image" id="fi"}
+
+
+
+ {/volist}
+
+ {/notempty}
+
+
+
+
+ {volist name="list" id="vo"}
+
+
+
+ {notempty name="vo.products"}
+
+ {/notempty}
+
+
+ {/volist}
+
+
+{/block}
+{block name="script"}
+
+{/block}
\ No newline at end of file
diff --git a/app/index/view/mobile/product/subcategory.html b/app/index/view/mobile/product/subcategory.html
new file mode 100644
index 00000000..2a520cf1
--- /dev/null
+++ b/app/index/view/mobile/product/subcategory.html
@@ -0,0 +1,74 @@
+{extend name="public/base" /}
+{block name="style"}
+
+{/block}
+{block name="main"}
+
+
+ {notempty name="focus_image"}
+
+ {volist name="focus_image" id="fi"}
+
+
+
+ {/volist}
+
+ {/notempty}
+
+
+
+ {notempty name="categorys_data"}
+
+
+ {assign name="products" value=":\think\helper\Arr::flatMap(fn($pro) => $pro['products'], $categorys_data)" /}
+ {volist name="products" id="pr"}
+ -
+ {notempty name="pr.sku"}
+
+ {volist name="pr.sku" id="ps" key="pk"}
+
+ {/volist}
+
+ {/notempty}
+
+ {$pr.name}
+ {$pr.spu}
+
+ {notempty name="pr.colors"}
+
+
+ {volist name="pr.colors" id="pc"}
+ -
+
+ {assign name="color_type" value=":rgb_or_image($pc.attr_value)" /}
+ {eq name="color_type" value="IMAGE"}
+

+ {elseif condition="$color_type == 'RGB'" /}
+
$pc.attr_value])}>
+ {/eq}
+
+
+ {/volist}
+
+
+ {/notempty}
+
+ {/volist}
+
+
+ {/notempty}
+
+
+
+{/block}
+{block name="script"}
+
+{/block}
\ No newline at end of file
diff --git a/public/static/index/mobile/css/product_category.css b/public/static/index/mobile/css/product_category.css
new file mode 100755
index 00000000..b48a4c07
--- /dev/null
+++ b/public/static/index/mobile/css/product_category.css
@@ -0,0 +1,25 @@
+.oricoEGapp-catelists {
+ display: flex;
+ flex-direction: column;
+}
+.oricoEGapp-catelists .first_list_category {
+ margin-top: 50px;
+ width: 100%;
+ overflow-x: auto;
+ height: 3.4rem;
+ background-color: transparent;
+}
+.oricoEGapp-catelists .scroller ul {
+ background-color: #fafafa;
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+ white-space: nowrap;
+}
+.oricoEGapp-catelists .scroller ul li {
+ display: inline-block;
+ margin-right: 10px;
+ padding: 10px;
+ cursor: pointer;
+ padding-bottom: 15px;
+}
diff --git a/public/static/index/mobile/css/product_subcategory.css b/public/static/index/mobile/css/product_subcategory.css
new file mode 100755
index 00000000..89f8a2f8
--- /dev/null
+++ b/public/static/index/mobile/css/product_subcategory.css
@@ -0,0 +1,9 @@
+.oricoEGapp-subcatelists {
+ position: relative;
+}
+.oricoEGapp-subcatelists .product_list {
+ margin-top: 4.5rem;
+}
+.oricoEGapp-subcatelists .product_list .img_p {
+ margin: 0 auto;
+}