From c510be0ce19dcec9382f9ceb181951f8bf0a3e60 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Tue, 24 Dec 2019 15:18:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=B8=AD=E5=BF=83=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=B5=8F=E8=A7=88=E5=99=A8=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/controller/Answer.php | 4 ++++ application/index/controller/Cart.php | 4 ++++ application/index/controller/Message.php | 4 ++++ application/index/controller/Order.php | 4 ++++ .../index/controller/Orderaftersale.php | 4 ++++ application/index/controller/Personal.php | 9 +++++++ application/index/controller/Safety.php | 24 +++++++++++++++++++ application/index/controller/Useraddress.php | 6 +++++ application/index/controller/Userfavor.php | 4 ++++ .../index/controller/Usergoodsbrowse.php | 4 ++++ application/index/controller/Userintegral.php | 4 ++++ .../index/view/default/user/index.html | 3 +++ .../static/index/default/css/user.index.css | 1 + 13 files changed, 75 insertions(+) diff --git a/application/index/controller/Answer.php b/application/index/controller/Answer.php index 36df07de0..695ea839c 100755 --- a/application/index/controller/Answer.php +++ b/application/index/controller/Answer.php @@ -10,6 +10,7 @@ // +---------------------------------------------------------------------- namespace app\index\controller; +use app\service\SeoService; use app\service\AnswerService; /** @@ -84,6 +85,9 @@ class Answer extends Common $this->assign('common_is_show_list', lang('common_is_show_list')); $this->assign('common_is_text_list', lang('common_is_text_list')); + // 浏览器名称 + $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle('问答/留言', 1)); + // 参数 $this->assign('params', $params); return $this->fetch(); diff --git a/application/index/controller/Cart.php b/application/index/controller/Cart.php index e68ba9cef..d5ef81138 100755 --- a/application/index/controller/Cart.php +++ b/application/index/controller/Cart.php @@ -11,6 +11,7 @@ namespace app\index\controller; use app\service\BuyService; +use app\service\SeoService; /** * 购物车 @@ -55,6 +56,9 @@ class Cart extends Common 'ids' => empty($cart_list['data']) ? '' : implode(',', array_column($cart_list['data'], 'id')), ]; $this->assign('base', $base); + + // 浏览器名称 + $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle('购物车', 1)); return $this->fetch(); } diff --git a/application/index/controller/Message.php b/application/index/controller/Message.php index b7782332d..d9d018c71 100755 --- a/application/index/controller/Message.php +++ b/application/index/controller/Message.php @@ -10,6 +10,7 @@ // +---------------------------------------------------------------------- namespace app\index\controller; +use app\service\SeoService; use app\service\MessageService; /** @@ -92,6 +93,9 @@ class Message extends Common // 是否已读 $this->assign('common_is_read_list', lang('common_is_read_list')); + // 浏览器名称 + $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle('我的消息', 1)); + // 参数 $this->assign('params', $params); return $this->fetch(); diff --git a/application/index/controller/Order.php b/application/index/controller/Order.php index 270ef0fef..09cd9bbe8 100755 --- a/application/index/controller/Order.php +++ b/application/index/controller/Order.php @@ -14,6 +14,7 @@ use app\service\OrderService; use app\service\PaymentService; use app\service\GoodsCommentsService; use app\service\ConfigService; +use app\service\SeoService; /** * 订单管理 @@ -97,6 +98,9 @@ class Order extends Common // 评价状态 $this->assign('common_comments_status_list', lang('common_comments_status_list')); + // 浏览器名称 + $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle('我的订单', 1)); + // 参数 $this->assign('params', $params); return $this->fetch(); diff --git a/application/index/controller/Orderaftersale.php b/application/index/controller/Orderaftersale.php index f7ba3b294..88671a011 100644 --- a/application/index/controller/Orderaftersale.php +++ b/application/index/controller/Orderaftersale.php @@ -11,6 +11,7 @@ namespace app\index\controller; use app\service\OrderAftersaleService; +use app\service\SeoService; /** * 订单售后 @@ -86,6 +87,9 @@ class Orderaftersale extends Common $this->assign('common_order_aftersale_status_list', lang('common_order_aftersale_status_list')); $this->assign('common_order_aftersale_refundment_list', lang('common_order_aftersale_refundment_list')); + // 浏览器名称 + $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle('订单售后', 1)); + // 参数 $this->assign('params', $params); return $this->fetch(); diff --git a/application/index/controller/Personal.php b/application/index/controller/Personal.php index 05cd0d97f..735958e35 100755 --- a/application/index/controller/Personal.php +++ b/application/index/controller/Personal.php @@ -10,6 +10,7 @@ // +---------------------------------------------------------------------- namespace app\index\controller; +use app\service\SeoService; use app\service\UserService; use app\service\NavigationService; @@ -47,7 +48,12 @@ class Personal extends Common */ public function Index() { + // 用户展示数据 $this->assign('personal_show_list', NavigationService::UsersPersonalShowFieldList()); + + // 浏览器名称 + $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle('个人资料', 1)); + return $this->fetch(); } @@ -66,6 +72,9 @@ class Personal extends Common // 数据 $this->assign('data', $this->user); + // 浏览器名称 + $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle('个人资料编辑', 1)); + return $this->fetch(); } diff --git a/application/index/controller/Safety.php b/application/index/controller/Safety.php index c2dcf35f0..641cd9057 100755 --- a/application/index/controller/Safety.php +++ b/application/index/controller/Safety.php @@ -10,6 +10,7 @@ // +---------------------------------------------------------------------- namespace app\index\controller; +use app\service\SeoService; use app\service\SafetyService; use app\service\NavigationService; @@ -56,6 +57,10 @@ class Safety extends Common 'email' => $this->user['email_security'], ); $this->assign('data', $data); + + // 浏览器名称 + $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle('安全设置', 1)); + return $this->fetch(); } @@ -68,6 +73,9 @@ class Safety extends Common */ public function LoginPwdInfo() { + // 浏览器名称 + $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle('登录密码修改 - 安全设置', 1)); + return $this->fetch(); } @@ -84,6 +92,10 @@ class Safety extends Common { return redirect(MyUrl('index/safety/newmobileinfo')); } + + // 浏览器名称 + $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle('手机号码修改 - 安全设置', 1)); + return $this->fetch(); } @@ -100,6 +112,10 @@ class Safety extends Common { return $this->error('原帐号校验失败', MyUrl('index/safety/mobileinfo')); } + + // 浏览器名称 + $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle('手机号码修改 - 安全设置', 1)); + return $this->fetch(); } @@ -116,6 +132,10 @@ class Safety extends Common { return redirect(MyUrl('index/safety/newemailinfo')); } + + // 浏览器名称 + $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle('电子邮箱修改 - 安全设置', 1)); + return $this->fetch(); } @@ -132,6 +152,10 @@ class Safety extends Common { return $this->error('原帐号校验失败', MyUrl('index/safety/emailinfo')); } + + // 浏览器名称 + $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle('电子邮箱修改 - 安全设置', 1)); + return $this->fetch(); } diff --git a/application/index/controller/Useraddress.php b/application/index/controller/Useraddress.php index 94f36058d..2d86bf81d 100755 --- a/application/index/controller/Useraddress.php +++ b/application/index/controller/Useraddress.php @@ -10,6 +10,7 @@ // +---------------------------------------------------------------------- namespace app\index\controller; +use app\service\SeoService; use app\service\UserService; /** @@ -46,8 +47,13 @@ class UserAddress extends Common */ public function Index() { + // 用户地址列表 $data = UserService::UserAddressList(['user'=>$this->user]); $this->assign('user_address_list', $data['data']); + + // 浏览器名称 + $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle('我的地址', 1)); + return $this->fetch(); } diff --git a/application/index/controller/Userfavor.php b/application/index/controller/Userfavor.php index 6c5b33dc4..f3951e7c8 100755 --- a/application/index/controller/Userfavor.php +++ b/application/index/controller/Userfavor.php @@ -11,6 +11,7 @@ namespace app\index\controller; use app\service\GoodsService; +use app\service\SeoService; /** * 用户收藏 @@ -80,6 +81,9 @@ class UserFavor extends Common $data = GoodsService::GoodsFavorList($data_params); $this->assign('data_list', $data['data']); + // 浏览器名称 + $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle('我的收藏', 1)); + // 参数 $this->assign('params', $params); return $this->fetch(); diff --git a/application/index/controller/Usergoodsbrowse.php b/application/index/controller/Usergoodsbrowse.php index 87c0dcd70..ebfe3ed52 100755 --- a/application/index/controller/Usergoodsbrowse.php +++ b/application/index/controller/Usergoodsbrowse.php @@ -10,6 +10,7 @@ // +---------------------------------------------------------------------- namespace app\index\controller; +use app\service\SeoService; use app\service\GoodsService; /** @@ -81,6 +82,9 @@ class UserGoodsBrowse extends Common $this->assign('data_list', $data['data']); $this->assign('ids', empty($data['data']) ? '' : implode(',', array_column($data['data'], 'id'))); + // 浏览器名称 + $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle('我的足迹', 1)); + // 参数 $this->assign('params', $params); return $this->fetch(); diff --git a/application/index/controller/Userintegral.php b/application/index/controller/Userintegral.php index 4a846a058..458be975b 100755 --- a/application/index/controller/Userintegral.php +++ b/application/index/controller/Userintegral.php @@ -11,6 +11,7 @@ namespace app\index\controller; use app\service\IntegralService; +use app\service\SeoService; /** * 用户积分管理 @@ -83,6 +84,9 @@ class UserIntegral extends Common // 操作类型 $this->assign('common_integral_log_type_list', lang('common_integral_log_type_list')); + // 浏览器名称 + $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle('我的积分', 1)); + // 参数 $this->assign('params', $params); return $this->fetch(); diff --git a/application/index/view/default/user/index.html b/application/index/view/default/user/index.html index 0cca90b45..6a65f6dd2 100755 --- a/application/index/view/default/user/index.html +++ b/application/index/view/default/user/index.html @@ -10,6 +10,9 @@ {{include file="public/nav_search" /}} + +{{include file="public/header_nav" /}} + {{include file="public/goods_category" /}} diff --git a/public/static/index/default/css/user.index.css b/public/static/index/default/css/user.index.css index 250c130a6..5384807ff 100755 --- a/public/static/index/default/css/user.index.css +++ b/public/static/index/default/css/user.index.css @@ -44,6 +44,7 @@ ul.order-base li span.am-badge{position: absolute; top: -7px; left: 55%;} * 手机 */ @media only screen and (max-width:640px) { + header{display: none;} .am-footer{padding-bottom: 50px;} .nav-search{display: none;} .user-main{padding-top: 0;} .user-content-body{padding: 0;} -- GitLab