diff --git a/app/index/config/lang.php b/app/index/config/lang.php new file mode 100644 index 00000000..f5055ebb --- /dev/null +++ b/app/index/config/lang.php @@ -0,0 +1,30 @@ + env('DEFAULT_LANG', 'zh-cn'), + // 允许的语言列表 + 'allow_lang_list' => ['zh-cn', 'en-us'], + // 多语言自动侦测变量名 + 'detect_var' => 'lang', + // 是否使用Cookie记录 + 'use_cookie' => true, + // 多语言cookie变量 + 'cookie_var' => 'think_lang', + // 多语言header变量 + 'header_var' => 'think-lang', + // 扩展语言包 + 'extend_list' => [ + 'en-us' => app()->getAppPath() . '/lang/en-us/' . (request()->isMobile() ? 'mobile' : 'pc') . '.php', + 'zh-cn' => app()->getAppPath() . '/lang/zh-cn/' . (request()->isMobile() ? 'mobile' : 'pc') . '.php', + ], + // Accept-Language转义为对应语言包名称 + 'accept_language' => [ + 'zh-hans-cn' => 'zh-cn', + ], + // 是否支持语言分组 + 'allow_group' => true, +]; diff --git a/app/index/lang/en-us/mobile.php b/app/index/lang/en-us/mobile.php new file mode 100644 index 00000000..a32f9981 --- /dev/null +++ b/app/index/lang/en-us/mobile.php @@ -0,0 +1,19 @@ + 'Search', + '搜索历史' => 'Search History', + '请择地区' => 'SELECT A REGION', + '首页' => 'Home', + '产品列表' => 'Products', + '产品' => 'Product', + '联系方式' => 'Contact', + '查看所有' => 'View All', + '明星产品/热点产品' => 'Featured Products', + '了解更多' => 'Learn More', + 'Orico 技术' => 'ORICO Technology', + '强大功能、简单使用' => 'designed to be just as easy to learn as iPhone. chatting with friends.', + '常见问题' => 'FAQ', + '回答您最关心的问题' => 'What are you most concerned about', + '客服团队的工作时间:周一到周五,早9点到晚6点 平均应答时间:24小时内' => 'Our customer support is available Monday to Friday: 9am-6:00pm. Average answer time: 24h', +]; \ No newline at end of file diff --git a/app/index/lang/en-us.php b/app/index/lang/en-us/pc.php similarity index 100% rename from app/index/lang/en-us.php rename to app/index/lang/en-us/pc.php diff --git a/app/index/lang/zh-cn.php b/app/index/lang/zh-cn/pc.php similarity index 100% rename from app/index/lang/zh-cn.php rename to app/index/lang/zh-cn/pc.php diff --git a/app/index/middleware.php b/app/index/middleware.php index fb3c3fa6..90a6ad68 100644 --- a/app/index/middleware.php +++ b/app/index/middleware.php @@ -2,5 +2,5 @@ // 这是系统自动生成的middleware定义文件 return [ // 启用多语言支持 - 'think\middleware\LoadLangPack', + think\middleware\LoadLangPack::class, ]; diff --git a/app/index/view/mobile/index/index.html b/app/index/view/mobile/index/index.html index fdc90b0f..e02d1297 100644 --- a/app/index/view/mobile/index/index.html +++ b/app/index/view/mobile/index/index.html @@ -1,200 +1,128 @@ {extend name="public/base"/} +{block name="style"} + +{/block} {block name="main"}
+ {notempty name="focus_images"}
+ {volist name="focus_images" id="fi"}
- 图片1 -
-
- 图片1 -
-
- 图片1 + {$fi.title}
+ {/volist}
+ {/notempty}
- + + {notempty name="product_categorys"}
+ {volist name="product_categorys" id="pct"}
- - 数据存储 -
-
- - 智慧存储 -
-
- - 智能家具 -
- + {/volist}
- + {/notempty} + + {notempty name="featured_topics"}
+ {volist name="featured_topics" id="ft"}
- +
-

固态存储

+

{$ft.title}

-
-
- + {/volist}
- + {/notempty} + + {notempty name="featured_products"}
-

明星产品/热点产品

+

{:lang('明星产品/热点产品')}

+ {volist name="featured_products" id="fp"}
- +
-

M.2 2230 磁吸硬盘盒

+

{$fp.name}

- 了解更多 - -

-
-
-
- -
-

M.2 2230 磁吸硬盘盒

-

-

- 了解更多 - -

-
-
-
- -
-

M.2 2230 磁吸硬盘盒

-

-

- 了解更多 - -

-
-
-
- -
-

M.2 2230 磁吸硬盘盒

-

-

- 了解更多 - -

-
-
-
- -
-

M.2 2230 磁吸硬盘盒

-

-

- 了解更多 - -

-
-
-
- -
-

M.2 2230 磁吸硬盘盒

-

-

- 了解更多 + + {:lang('了解更多')}

+ {/volist}
- + {/notempty} +
- + + {notempty name="video"}
- +
+ {/notempty} + {notempty name="scenes"} + {volist name="scenes" id="sc"}
- +
-

5合1便携插座

-

小巧玲珑,匠心独蕴。

+

$sc['title_txt_color']])}>{$sc.title}

+

$sc['desc_txt_color']])}>{$sc.desc}

- 了解更多 -

-
-
-
- -
-

5合1便携插座

-

小巧玲珑,匠心独蕴。

-

- 了解更多 + {:lang('了解更多')}

+ {/volist} + {/notempty}
- +
-

Orico 技术

-

强大功能、简单使用

+

{:lang('Orico 技术')}

+

{:lang('强大功能、简单使用')}

- +
- +
@@ -202,72 +130,37 @@
- + + {notempty name="brand_story"}
    -
  • - + {volist name="brand_story" id="bs" key="k"} +
  • +
    -

    关于我们

    -

    - 深圳市奥睿科科技有限公司成立于2009年,是一家具有自主知识产权、自主品牌、自主柔性生产链的新型互联网制造企业。因其强大的专业能力,严谨的合作态度,高水准的产品而受到业内伙伴的一致认可。 -

    +

    $bs['title_txt_color']])}>{$bs.title}

    +

    $bs['desc_txt_color']])}>{$bs.desc}

    - 了解更多 - - -

    -
    -
  • -
  • - -
    -

    全新使命

    -

    - 未来,Orico将依托NAS,拓展坞,快闪U盘,数据线等系列产品线和全面的产品组合,满足全球市场的个性化的数据存储、传输、同步需求。我们也将承担社会责任,实现可持续发展和绿色创新。 -

    -

    - - 了解更多 - - -

    -
    -
  • -
  • - -
    -

    全新使命

    -

    - 未来,Orico将依托NAS,拓展坞,快闪U盘,数据线等系列产品线和全面的产品组合,满足全球市场的个性化的数据存储、传输、同步需求。我们也将承担社会责任,实现可持续发展和绿色创新。 -

    -

    - - 了解更多 - + {:lang('了解更多')}

  • + {/volist}
-
    + {volist name="brand_story" id="bs" key="k"}
  1. - 2021 -
  2. -
  3. - 2022 -
  4. -
  5. - 2023 + {$bs.year}
  6. + {/volist}
@@ -275,109 +168,61 @@
- + {/notempty} + + {notempty name="data_statistics"}
    + {volist name="data_statistics" id="ds"}
  • -

    200000000

    -

    三年内订单

    -
  • -
  • -

    20

    -

    国际荣誉

    -
  • -
  • -

    70

    -

    畅销国家

    +

    $ds['desc_txt_color']])}>{$ds.desc|raw}

    +

    $ds['title_txt_color']])}>{$ds.title}

  • + {/volist}
- + {/notempty} + + {notempty name="recommend_articles"} - + {/notempty} + + {notempty name="recommend_faq"}
-

常见问题

-
回答您最关心的问题
-

客服团队的工作时间:周一到周五,早9点到晚6点 平均应答时间:24小时内

+

{:lang('常见问题')}

+
{:lang('回答您最关心的问题')}
+

{:lang('客服团队的工作时间:周一到周五,早9点到晚6点 平均应答时间:24小时内')}

+ {volist name="recommend_faq" id="rq"}
-
同行产品品牌对比 +
+ {$rq.question}
-
您好:orico都是采用的进口控制芯片,IC,原器件,自己研发的PCBA电路板,以及所有模具外观均是ORICO研发,生产!这种便宜的产品不是使用控制芯片,而是使用一种叫邦定的技术一个PCBA,如果使用邦定,成本很低,但是用个十来天,就会出现问题!ORICO全部使用贴片元器件所以,从用料上,完全不一样! -
-
-
-
同行产品品牌对比 -
-
您好:orico都是采用的进口控制芯片,IC,原器件,自己研发的PCBA电路板,以及所有模具外观均是ORICO研发,生产!这种便宜的产品不是使用控制芯片,而是使用一种叫邦定的技术一个PCBA,如果使用邦定,成本很低,但是用个十来天,就会出现问题!ORICO全部使用贴片元器件所以,从用料上,完全不一样! -
-
-
-
同行产品品牌对比 -
-
您好:orico都是采用的进口控制芯片,IC,原器件,自己研发的PCBA电路板,以及所有模具外观均是ORICO研发,生产!这种便宜的产品不是使用控制芯片,而是使用一种叫邦定的技术一个PCBA,如果使用邦定,成本很低,但是用个十来天,就会出现问题!ORICO全部使用贴片元器件所以,从用料上,完全不一样! -
-
-
-
同行产品品牌对比 -
-
您好:orico都是采用的进口控制芯片,IC,原器件,自己研发的PCBA电路板,以及所有模具外观均是ORICO研发,生产!这种便宜的产品不是使用控制芯片,而是使用一种叫邦定的技术一个PCBA,如果使用邦定,成本很低,但是用个十来天,就会出现问题!ORICO全部使用贴片元器件所以,从用料上,完全不一样! -
-
-
-
同行产品品牌对比 -
-
您好:orico都是采用的进口控制芯片,IC,原器件,自己研发的PCBA电路板,以及所有模具外观均是ORICO研发,生产!这种便宜的产品不是使用控制芯片,而是使用一种叫邦定的技术一个PCBA,如果使用邦定,成本很低,但是用个十来天,就会出现问题!ORICO全部使用贴片元器件所以,从用料上,完全不一样! -
+
{$rq.answer|raw}
+ {/volist}
+ {/notempty}
{/block} diff --git a/app/index/view/mobile/public/footer.html b/app/index/view/mobile/public/footer.html index f43e0ee9..9c8d1a8b 100644 --- a/app/index/view/mobile/public/footer.html +++ b/app/index/view/mobile/public/footer.html @@ -1,62 +1,70 @@ \ No newline at end of file diff --git a/app/index/view/mobile/public/header.html b/app/index/view/mobile/public/header.html index 38d56d37..bd269576 100644 --- a/app/index/view/mobile/public/header.html +++ b/app/index/view/mobile/public/header.html @@ -12,72 +12,45 @@
-
产品列表
- - - - - +
{:lang('产品列表')}
+ {notempty name="header_categorys"} + {volist name="header_categorys" id="ca"} + + {/volist} + {/notempty}
- -
- -
-
- -
+ {notempty name="header_navigation"} + {volist name="header_navigation" id="nav"} -
- -
-
-
-
技术支持
- - - -
-
-
-
-
关于我们
- - - + {empty name="nav.children"} + {$nav.name} + {else/} +
{$nav.name}
+ {volist name="nav.children" id="ch"} + + {/volist} + {/empty}
+ {/volist} + {/notempty}