diff --git a/app/index/controller/AboutUs.php b/app/index/controller/AboutUs.php
index 751a1412..582ae3e4 100644
--- a/app/index/controller/AboutUs.php
+++ b/app/index/controller/AboutUs.php
@@ -68,4 +68,46 @@ class AboutUs extends Common
return View::fetch('mileage');
}
+
+ /**
+ * 售后政策
+ */
+ public function policy()
+ {
+ $policy = [];
+ // 获取售后政策banner
+ $banner = SysBannerModel::with(['items' => function($query) {
+ $query->withoutField(['status', 'created_at', 'updated_at', 'deleted_at'])
+ ->where('status', '=', 1)
+ ->order(['sort' => 'asc', 'id' => 'desc']);
+ }])
+ ->uniqueLabel([
+ "BANNER_6806f5f19c3d6",
+ "BANNER_6806f609b9fe9",
+ "BANNER_6806f6315a699",
+ "BANNER_6806f65c90eb6",
+ "BANNER_6806f6736bb71",
+ "BANNER_6806f684d4558",
+ "BANNER_6806f69d81bd0",
+ ])
+ ->language($this->lang_id)
+ ->enabled(true)
+ ->select();
+ if (!$banner->isEmpty()) {
+ $banner_map = [];
+ foreach ($banner as $v) {
+ $banner_map[$v->unique_label] = $v;
+ }
+ $policy['focus_image'] = data_get($banner_map, 'BANNER_6806f5f19c3d6')?->items->first()?->toArray();
+ $policy['banner_1'] = data_get($banner_map, 'BANNER_6806f609b9fe9')?->items->toArray();
+ $policy['banner_2'] = data_get($banner_map, 'BANNER_6806f6315a699')?->items->toArray();
+ $policy['banner_3'] = data_get($banner_map, 'BANNER_6806f65c90eb6')?->items->toArray();
+ $policy['banner_4'] = data_get($banner_map, 'BANNER_6806f6736bb71')?->items->toArray();
+ $policy['banner_5'] = data_get($banner_map, 'BANNER_6806f684d4558')?->items->toArray();
+ $policy['banner_6'] = data_get($banner_map, 'BANNER_6806f69d81bd0')?->items->toArray();
+ }
+ View::assign('policy', $policy);
+
+ return View::fetch('policy');
+ }
}
diff --git a/app/index/lang/en-us.php b/app/index/lang/en-us.php
index b1e2042a..ed7d75cb 100644
--- a/app/index/lang/en-us.php
+++ b/app/index/lang/en-us.php
@@ -41,11 +41,19 @@ return [
'no_data' => 'No Result!',
'no_video' => 'No Video!',
],
- 'mileage' => [
+ 'aboutus_mileage' => [
'achievement' => 'Our Achievement',
'events' => 'Brand Events',
'development' => 'Tech Development',
],
+ 'aboutus_policy' => [
+ 'title' => 'After-Sales Policy',
+ 'banner_1_title' => 'After-sale Policy',
+ 'banner_1_desc' => 'ORICO commits to provide 7-day Refund, 15-day Exchange, 1-year Quality Warranty. ',
+ 'banner_3_title' => 'For your own benefits, please mind the following information',
+ 'banner_3_desc' => 'For a smooth return and refund, quality warranty, please follow these steps:',
+ 'banner_5_title' => 'ORICO is not liable for:'
+ ],
'contact_index' => [
'title' => 'contact us',
],
diff --git a/app/index/lang/zh-cn.php b/app/index/lang/zh-cn.php
index 54d68a19..cede4917 100644
--- a/app/index/lang/zh-cn.php
+++ b/app/index/lang/zh-cn.php
@@ -41,11 +41,19 @@ return [
'no_data' => '查询无结果!',
'no_video' => '查询无此视频!',
],
- 'mileage' => [
+ 'aboutus_mileage' => [
'achievement' => 'ORICO荣耀',
'events' => '品牌里程',
'development' => '品牌活动',
],
+ 'aboutus_policy' => [
+ 'title' => '售后政策_注意事项',
+ 'banner_1_title' => '售后政策',
+ 'banner_1_desc' => 'ORICO/奥睿科商城为您提供七天包退、15天换新、1年保修、终身维护的服务承诺',
+ 'banner_3_title' => '为了保障您的合法权益,敬请关注以下信息',
+ 'banner_3_desc' => '为了得到深圳市元创时代科技有限公司给予您的“包修、包换、包退”的权益,请您:',
+ 'banner_5_title' => '特别说明'
+ ],
'contact_index' => [
'title' => '客户服务',
],
diff --git a/app/index/route/route.php b/app/index/route/route.php
index ce3ce0f9..84564f6f 100644
--- a/app/index/route/route.php
+++ b/app/index/route/route.php
@@ -54,6 +54,8 @@ Route::group('aboutus', function() {
Route::get('story', 'AboutUs/story');
// 品牌里程
Route::get('mileage', 'AboutUs/mileage');
+ // 售后政策
+ Route::get('policy', 'AboutUs/policy');
});
// 联系我们
diff --git a/app/index/view/about_us/mileage.html b/app/index/view/about_us/mileage.html
index e8ada267..1449ed21 100644
--- a/app/index/view/about_us/mileage.html
+++ b/app/index/view/about_us/mileage.html
@@ -7,7 +7,7 @@
-
{:lang('mileage.achievement')}
+
{:lang('aboutus_mileage.achievement')}
{notempty name="achievement"}
{volist name="achievement" id="ac"}
@@ -22,7 +22,7 @@
{notempty name="events"}
-
{:lang('mileage.events')}
+
{:lang('aboutus_mileage.events')}