From 00cf10f69e5850d8ee75e5ccccd4bc51ce80ef00 Mon Sep 17 00:00:00 2001 From: ronger Date: Tue, 21 Jun 2022 08:33:33 +0800 Subject: [PATCH] =?UTF-8?q?:poop:=20=E4=BA=A7=E5=93=81=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/layouts/pc/header.vue | 16 ++- pages/admin.vue | 17 +++- pages/admin/currency-rules.vue | 162 +++++++++++++++++++++++++++++++ pages/admin/dashboard.vue | 10 +- pages/nebula-pi.vue | 37 +++++++ pages/products.vue | 78 +++++++++++++++ pages/user/_account.vue | 4 +- pages/user/settings/security.vue | 37 ++++++- store/admin.js | 12 +++ store/bank-account.js | 3 + store/bank.js | 3 + store/currency-rule.js | 48 +++++++++ store/dashboard.js | 18 ++++ store/product.js | 0 store/topic.js | 3 + yarn.lock | 38 ++++---- 16 files changed, 446 insertions(+), 40 deletions(-) create mode 100644 pages/admin/currency-rules.vue create mode 100644 pages/nebula-pi.vue create mode 100644 pages/products.vue create mode 100644 store/currency-rule.js create mode 100644 store/product.js diff --git a/components/layouts/pc/header.vue b/components/layouts/pc/header.vue index e7fdd9f..b260c7a 100644 --- a/components/layouts/pc/header.vue +++ b/components/layouts/pc/header.vue @@ -14,16 +14,7 @@ 首页 专题 作品集 - - - 淘宝店铺 - - - - - - - + 产品 开放数据 @@ -245,6 +236,11 @@ export default { path: '/portfolios?page=1' }) break; + case 'products': + _ts.$router.push({ + path: '/products?page=1' + }) + break; case 'github': window.open("https://github.com/rymcu"); break; diff --git a/pages/admin.vue b/pages/admin.vue index a44d23b..290c076 100644 --- a/pages/admin.vue +++ b/pages/admin.vue @@ -159,7 +159,10 @@ export default { this.$store.commit('admin/updateTags', tabs.filter(tab => tab.name !== targetName)) this.$router.push({ - name: activeName + name: activeName, + params: { + reset: '0' + } }) }, handleClick(item) { @@ -175,12 +178,16 @@ export default { _ts.$store.commit('admin/pushTags', _ts.menus[index]) } _ts.$router.push({ - name: item.name + name: item.name, + params: { + reset: '0' + } }) }, handleSelectTab(item) { let _ts = this this.$store.commit('admin/updateActiveTab', item); + let reset = '0' let result = _.findIndex(_ts.editableTabs, function (tab) { return tab.name === item; }) @@ -189,9 +196,13 @@ export default { return menu.name === item; }) _ts.$store.commit('admin/pushTags', _ts.menus[index]) + reset = '1' } _ts.$router.push({ - name: item + name: item, + params: { + reset: reset + } }) }, handleSelectMenu(item) { diff --git a/pages/admin/currency-rules.vue b/pages/admin/currency-rules.vue new file mode 100644 index 0000000..ace4ad8 --- /dev/null +++ b/pages/admin/currency-rules.vue @@ -0,0 +1,162 @@ + + + + + diff --git a/pages/admin/dashboard.vue b/pages/admin/dashboard.vue index 833139c..ff9b9ef 100644 --- a/pages/admin/dashboard.vue +++ b/pages/admin/dashboard.vue @@ -256,11 +256,11 @@ export default { store .dispatch('dashboard/fetchDashboard', params) .catch(err => error({statusCode: 404})), - store.dispatch("dashboard/fetchLastThirtyDays"), - store.dispatch("dashboard/fetchHistory"), - store.dispatch("dashboard/fetchNewUsers"), - store.dispatch("dashboard/fetchNewBankAccounts"), - store.dispatch("dashboard/fetchNewArticles") + store.dispatch("dashboard/fetchLastThirtyDays", params), + store.dispatch("dashboard/fetchHistory", params), + store.dispatch("dashboard/fetchNewUsers", params), + store.dispatch("dashboard/fetchNewBankAccounts", params), + store.dispatch("dashboard/fetchNewArticles", params) ]) }, computed: { diff --git a/pages/nebula-pi.vue b/pages/nebula-pi.vue new file mode 100644 index 0000000..acebae0 --- /dev/null +++ b/pages/nebula-pi.vue @@ -0,0 +1,37 @@ + + + + + diff --git a/pages/products.vue b/pages/products.vue new file mode 100644 index 0000000..3402a76 --- /dev/null +++ b/pages/products.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/pages/user/_account.vue b/pages/user/_account.vue index 92c4b67..470745d 100644 --- a/pages/user/_account.vue +++ b/pages/user/_account.vue @@ -2,8 +2,8 @@
-
+
diff --git a/pages/user/settings/security.vue b/pages/user/settings/security.vue index 0c86894..14bc1f0 100644 --- a/pages/user/settings/security.vue +++ b/pages/user/settings/security.vue @@ -21,6 +21,12 @@ + +

双重验证

+
+ + 开启 + + + + + + + +