diff --git a/resources/beike/admin/js/app.js b/resources/beike/admin/js/app.js index 0a063a67..eed417d1 100644 --- a/resources/beike/admin/js/app.js +++ b/resources/beike/admin/js/app.js @@ -3,7 +3,7 @@ * @link https://beikeshop.com * @Author pu shuo * @Date 2022-08-26 18:18:22 - * @LastEditTime 2023-06-08 19:18:24 + * @LastEditTime 2023-06-14 14:30:05 */ import http from "../../../js/http"; @@ -52,7 +52,6 @@ if (typeof Vue != 'undefined') { $(document).ready(function ($) { bk.versionUpdateTips(); - bk.vipUpdateTips(); $.ajaxSetup({ headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')}, diff --git a/resources/beike/admin/js/common.js b/resources/beike/admin/js/common.js index 6342eb81..cbd61d6a 100644 --- a/resources/beike/admin/js/common.js +++ b/resources/beike/admin/js/common.js @@ -131,34 +131,6 @@ export default { } }, - // 设置vip更新提示 - vipUpdateTips() { - let data = JSON.parse(Cookies.get('beike_vip') || null); - const isHome = document.body.classList.contains('admin-home'); - - if (!data || isHome) { - $http.get(`${config.api_url}/api/vip?domain=${config.app_url}`, null, {hload: true}).then((res) => { - setVipUi(res) - Cookies.set('beike_vip', res, { expires: 1 }); - }) - } - - setVipUi(data) - - function setVipUi(data) { - if (data && data.vip) { - $('.vip-serve').addClass('active'); - - if (data.expiring) { - $('.vip-serve .expired-text').show().find('span').text(data.expired_at); - } - } else { - $('.vip-serve').removeClass('active'); - $('.vip-serve .expired-text').hide(); - } - } - }, - // 列表页使用 vue ajax 分页,点击浏览起前进后退按钮时,重新加载数据 ajaxPageReloadData(app) { window.addEventListener('popstate', () => { diff --git a/resources/beike/admin/views/components/header.blade.php b/resources/beike/admin/views/components/header.blade.php index b76030a0..fe5db960 100644 --- a/resources/beike/admin/views/components/header.blade.php +++ b/resources/beike/admin/views/components/header.blade.php @@ -51,20 +51,10 @@ @endhookwrapper - @hookwrapper('admin.header.vip') - - @endhookwrapper - @hookwrapper('admin.header.license') @endhookwrapper diff --git a/resources/lang/en/admin/common.php b/resources/lang/en/admin/common.php index 308c4997..44455dd1 100644 --- a/resources/lang/en/admin/common.php +++ b/resources/lang/en/admin/common.php @@ -56,6 +56,7 @@ return [ 'common_link' => 'Common Links', 'header_search_input' => 'Search Features', 'header_search_title' => 'Search Results', + 'license_services' => 'License & Services', // sidebar 'account_index' => 'Personal Center', diff --git a/resources/lang/zh_cn/admin/common.php b/resources/lang/zh_cn/admin/common.php index 56adf729..03dbb32e 100644 --- a/resources/lang/zh_cn/admin/common.php +++ b/resources/lang/zh_cn/admin/common.php @@ -56,6 +56,7 @@ return [ 'common_link' => '常用链接', 'header_search_input' => '搜索后台功能', 'header_search_title' => '搜索结果', + 'license_services' => '版权与服务', // sidebar 'account_index' => '个人中心',