diff --git a/application/index/controller/Answer.php b/application/index/controller/Answer.php index 36df07de0f928b726eeca94d94563c31c67ab6c8..695ea839c51458965853cc4c7d2d66964e16ccaf 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 e68ba9cefce3365b8ee8d272b016c41f3e07e5b3..d5ef81138ef7c5cdf458d944a158e02f297f47a1 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 b7782332dc51bd3bfe599e11cfc2ad6d3325b5fb..d9d018c71a350f864ea36f79235ea577ed206550 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 270ef0fef76f6815260286452364444f33f8db64..09cd9bbe82eac4aa6a0437d2bff05b90b450df68 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 f7ba3b2945fd65fd94d36ab703f78882662161ad..88671a0113957c633d8cb852ca299220e1702e41 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 05cd0d97f65dfe3106a2900143bf946860c9abd4..735958e35ca2a40716a8fa348b686eecb9c6741b 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 c2dcf35f09ebe4b494d3856f9129f21535306bfa..641cd9057c634b4888f1a5bee2ab2a7aa4eed7d3 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 94f36058d87c2747c4ab5d7cb568e4fe4495f163..2d86bf81d563c78b434ce27471833e8a4d3d8088 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 6c5b33dc4eea19d2b25191162d2b798ea383892c..f3951e7c8dc160e5a6e21b8d2196c98fec08e871 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 87c0dcd7016129ff6617e89e7e2c9fcf324850cb..ebfe3ed523ff3a9c4bc5d0fa7721e577eef56d94 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 4a846a05878c9944e41c3531a80df18119c317b9..458be975bb70c047380f60a8ab8df0e724dbf97f 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 0cca90b45b8158450efeac32e25389ea8ce07430..6a65f6dd25f9c25484a602959166a5222a34a486 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 250c130a655f914c2bd5c5d097cfb370c9512d41..5384807ff0fb371ade64cb1ea8b59cfdaec7c195 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;}