From 2d59d2839d1b4777d3f42b71c382ea451afb5ac1 Mon Sep 17 00:00:00 2001 From: luchenqun Date: Mon, 13 May 2019 17:24:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=B7=B1=E4=B8=8D=E6=83=B3=E7=9C=8B?= =?UTF-8?q?=E7=83=AD=E9=97=A8=E4=BA=86......?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/scripts/controllers/menus-controller.js | 12 ++++++++++++ public/views/menus.html | 6 +++--- public/views/settings.html | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/public/scripts/controllers/menus-controller.js b/public/scripts/controllers/menus-controller.js index b6f28b6..e74e078 100644 --- a/public/scripts/controllers/menus-controller.js +++ b/public/scripts/controllers/menus-controller.js @@ -9,6 +9,7 @@ app.controller('menuCtr', ['$scope', '$stateParams', '$state', '$window', '$time $scope.historyTypes = dataService.historyTypes; $scope.quickUrl = {}; $scope.longPress = false; + $scope.user = {}; // 防止在登陆的情况下,在浏览器里面直接输入url,这时候要更新菜单选项 pubSubService.subscribe('Common.menuActive', $scope, function (event, params) { @@ -25,6 +26,17 @@ app.controller('menuCtr', ['$scope', '$stateParams', '$state', '$window', '$time $scope.loginMenus = dataService.loginMenus; // 登陆之后显示的菜单数据。uiSerf:内部跳转链接。 $scope.notLoginMenus = dataService.notLoginMenus; // 未登陆显示的菜单数据 + bookmarkService.userInfo({}) + .then((data) => { + $scope.user = data; + if(data.username === 'lcq') { + $scope.loginMenus = $scope.loginMenus.filter(item => item.uiSref !== 'hot'); + } + }) + .catch((err) => { + + }); + /** * @func * @desc 点击搜索按钮搜索书签 diff --git a/public/views/menus.html b/public/views/menus.html index e541825..ea184b0 100644 --- a/public/views/menus.html +++ b/public/views/menus.html @@ -62,17 +62,17 @@ -
+
-
+
-
+
diff --git a/public/views/settings.html b/public/views/settings.html index 83d9061..6e5e943 100644 --- a/public/views/settings.html +++ b/public/views/settings.html @@ -220,7 +220,7 @@

赞赏说明

赞赏金额主要用于服务器的租用与域名的费用,对于赞赏有以下几点说明:

-

1、目前租用的服务器Vultr,每月5$,折合人名币大概35元/月。如果有新用户想购买Vultr服务器的,可以点击链接进行购买,这样你我将都能得到10$。域名mybookmark.cn我花151元买了五年,2021年11月份到期。

+

1、目前租用的服务器每年大概六七百。域名mybookmark.cn我花151元买了五年,2021年11月份到期。域名mybookmark.cn我花151元买了五年,2021年11月份到期。

2、赞赏转账的时候,请留言添加“账号 + 书签赞赏”这四个汉字。供我区分。

赞赏二维码