From e9a3cf9d60b30df4227bcd1e530168dc4d14579f Mon Sep 17 00:00:00 2001 From: xiaoguang Date: Tue, 10 May 2022 15:06:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20static=E7=9B=AE=E5=BD=95=E4=B8=8B?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=96=87=E4=BB=B6=E7=A7=BB=E5=8A=A8=E5=88=B0?= =?UTF-8?q?assets=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- {static/images => assets/img}/goods/left.png | Bin {static/images => assets/img}/goods/more.png | Bin {static/images => assets/img}/goods/right.png | Bin .../images => assets/img}/goods/sort-b1.png | Bin .../images => assets/img}/goods/sort-b2.png | Bin .../images => assets/img}/goods/sort-t1.png | Bin .../images => assets/img}/goods/sort-t2.png | Bin .../images => assets/img}/layout/footer-1.png | Bin .../images => assets/img}/layout/footer-2.png | Bin .../images => assets/img}/layout/footer-3.png | Bin .../images => assets/img}/layout/footer-4.png | Bin .../img}/layout/icon-arrow.png | Bin .../img}/layout/icon-category.png | Bin .../img}/layout/icon-login-sticky.png | Bin .../img}/layout/icon-message.png | Bin .../img}/layout/icon-order.png | Bin .../img}/layout/icon-phone.png | Bin .../img}/layout/icon-search-sticky.png | Bin .../img}/layout/icon-search.png | Bin .../img}/layout/icon-shop-sticky.png | Bin .../img}/layout/icon-shop.png | Bin .../img}/layout/icon-up-light.png | Bin .../images => assets/img}/layout/icon-up.png | Bin .../img}/layout/logo-sticky.png | Bin {static/images => assets/img}/layout/logo.png | Bin .../img}/login/icon-accept.png | Bin .../img}/login/icon-close.png | Bin .../images => assets/img}/login/icon-logo.png | Bin components/BsLogin.vue | 6 +- layouts/module/footer/index.vue | 8 +- layouts/module/header/HeaderInfoBar.vue | 12 +-- layouts/module/header/index.vue | 14 +-- pages/account/index.vue | 81 ++++++++++++++---- pages/account/index/home/index.vue | 17 ++-- pages/goods/detail/_id.vue | 6 +- pages/goods/list/module/SortItem.vue | 8 +- plugins/vue-inject.js | 2 +- 38 files changed, 100 insertions(+), 56 deletions(-) rename {static/images => assets/img}/goods/left.png (100%) rename {static/images => assets/img}/goods/more.png (100%) rename {static/images => assets/img}/goods/right.png (100%) rename {static/images => assets/img}/goods/sort-b1.png (100%) rename {static/images => assets/img}/goods/sort-b2.png (100%) rename {static/images => assets/img}/goods/sort-t1.png (100%) rename {static/images => assets/img}/goods/sort-t2.png (100%) rename {static/images => assets/img}/layout/footer-1.png (100%) rename {static/images => assets/img}/layout/footer-2.png (100%) rename {static/images => assets/img}/layout/footer-3.png (100%) rename {static/images => assets/img}/layout/footer-4.png (100%) rename {static/images => assets/img}/layout/icon-arrow.png (100%) rename {static/images => assets/img}/layout/icon-category.png (100%) rename {static/images => assets/img}/layout/icon-login-sticky.png (100%) rename {static/images => assets/img}/layout/icon-message.png (100%) rename {static/images => assets/img}/layout/icon-order.png (100%) rename {static/images => assets/img}/layout/icon-phone.png (100%) rename {static/images => assets/img}/layout/icon-search-sticky.png (100%) rename {static/images => assets/img}/layout/icon-search.png (100%) rename {static/images => assets/img}/layout/icon-shop-sticky.png (100%) rename {static/images => assets/img}/layout/icon-shop.png (100%) rename {static/images => assets/img}/layout/icon-up-light.png (100%) rename {static/images => assets/img}/layout/icon-up.png (100%) rename {static/images => assets/img}/layout/logo-sticky.png (100%) rename {static/images => assets/img}/layout/logo.png (100%) rename {static/images => assets/img}/login/icon-accept.png (100%) rename {static/images => assets/img}/login/icon-close.png (100%) rename {static/images => assets/img}/login/icon-logo.png (100%) diff --git a/README.md b/README.md index a55ca49..3ddfead 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ this.$store.commit('setLoginOut') this.$store.state.userInfo // 登录拦截 -// 示例:点击购买课程前需要判断当前用户是否登录 +// 示例:点击购买课程前需要判断当前用户是否登录,未登录则弹出登录弹窗 function onPurchaseCourse() { if (!this.$isLoginValidate()) { return; diff --git a/static/images/goods/left.png b/assets/img/goods/left.png similarity index 100% rename from static/images/goods/left.png rename to assets/img/goods/left.png diff --git a/static/images/goods/more.png b/assets/img/goods/more.png similarity index 100% rename from static/images/goods/more.png rename to assets/img/goods/more.png diff --git a/static/images/goods/right.png b/assets/img/goods/right.png similarity index 100% rename from static/images/goods/right.png rename to assets/img/goods/right.png diff --git a/static/images/goods/sort-b1.png b/assets/img/goods/sort-b1.png similarity index 100% rename from static/images/goods/sort-b1.png rename to assets/img/goods/sort-b1.png diff --git a/static/images/goods/sort-b2.png b/assets/img/goods/sort-b2.png similarity index 100% rename from static/images/goods/sort-b2.png rename to assets/img/goods/sort-b2.png diff --git a/static/images/goods/sort-t1.png b/assets/img/goods/sort-t1.png similarity index 100% rename from static/images/goods/sort-t1.png rename to assets/img/goods/sort-t1.png diff --git a/static/images/goods/sort-t2.png b/assets/img/goods/sort-t2.png similarity index 100% rename from static/images/goods/sort-t2.png rename to assets/img/goods/sort-t2.png diff --git a/static/images/layout/footer-1.png b/assets/img/layout/footer-1.png similarity index 100% rename from static/images/layout/footer-1.png rename to assets/img/layout/footer-1.png diff --git a/static/images/layout/footer-2.png b/assets/img/layout/footer-2.png similarity index 100% rename from static/images/layout/footer-2.png rename to assets/img/layout/footer-2.png diff --git a/static/images/layout/footer-3.png b/assets/img/layout/footer-3.png similarity index 100% rename from static/images/layout/footer-3.png rename to assets/img/layout/footer-3.png diff --git a/static/images/layout/footer-4.png b/assets/img/layout/footer-4.png similarity index 100% rename from static/images/layout/footer-4.png rename to assets/img/layout/footer-4.png diff --git a/static/images/layout/icon-arrow.png b/assets/img/layout/icon-arrow.png similarity index 100% rename from static/images/layout/icon-arrow.png rename to assets/img/layout/icon-arrow.png diff --git a/static/images/layout/icon-category.png b/assets/img/layout/icon-category.png similarity index 100% rename from static/images/layout/icon-category.png rename to assets/img/layout/icon-category.png diff --git a/static/images/layout/icon-login-sticky.png b/assets/img/layout/icon-login-sticky.png similarity index 100% rename from static/images/layout/icon-login-sticky.png rename to assets/img/layout/icon-login-sticky.png diff --git a/static/images/layout/icon-message.png b/assets/img/layout/icon-message.png similarity index 100% rename from static/images/layout/icon-message.png rename to assets/img/layout/icon-message.png diff --git a/static/images/layout/icon-order.png b/assets/img/layout/icon-order.png similarity index 100% rename from static/images/layout/icon-order.png rename to assets/img/layout/icon-order.png diff --git a/static/images/layout/icon-phone.png b/assets/img/layout/icon-phone.png similarity index 100% rename from static/images/layout/icon-phone.png rename to assets/img/layout/icon-phone.png diff --git a/static/images/layout/icon-search-sticky.png b/assets/img/layout/icon-search-sticky.png similarity index 100% rename from static/images/layout/icon-search-sticky.png rename to assets/img/layout/icon-search-sticky.png diff --git a/static/images/layout/icon-search.png b/assets/img/layout/icon-search.png similarity index 100% rename from static/images/layout/icon-search.png rename to assets/img/layout/icon-search.png diff --git a/static/images/layout/icon-shop-sticky.png b/assets/img/layout/icon-shop-sticky.png similarity index 100% rename from static/images/layout/icon-shop-sticky.png rename to assets/img/layout/icon-shop-sticky.png diff --git a/static/images/layout/icon-shop.png b/assets/img/layout/icon-shop.png similarity index 100% rename from static/images/layout/icon-shop.png rename to assets/img/layout/icon-shop.png diff --git a/static/images/layout/icon-up-light.png b/assets/img/layout/icon-up-light.png similarity index 100% rename from static/images/layout/icon-up-light.png rename to assets/img/layout/icon-up-light.png diff --git a/static/images/layout/icon-up.png b/assets/img/layout/icon-up.png similarity index 100% rename from static/images/layout/icon-up.png rename to assets/img/layout/icon-up.png diff --git a/static/images/layout/logo-sticky.png b/assets/img/layout/logo-sticky.png similarity index 100% rename from static/images/layout/logo-sticky.png rename to assets/img/layout/logo-sticky.png diff --git a/static/images/layout/logo.png b/assets/img/layout/logo.png similarity index 100% rename from static/images/layout/logo.png rename to assets/img/layout/logo.png diff --git a/static/images/login/icon-accept.png b/assets/img/login/icon-accept.png similarity index 100% rename from static/images/login/icon-accept.png rename to assets/img/login/icon-accept.png diff --git a/static/images/login/icon-close.png b/assets/img/login/icon-close.png similarity index 100% rename from static/images/login/icon-close.png rename to assets/img/login/icon-close.png diff --git a/static/images/login/icon-logo.png b/assets/img/login/icon-logo.png similarity index 100% rename from static/images/login/icon-logo.png rename to assets/img/login/icon-logo.png diff --git a/components/BsLogin.vue b/components/BsLogin.vue index 8a76a80..17e4000 100644 --- a/components/BsLogin.vue +++ b/components/BsLogin.vue @@ -10,7 +10,7 @@
@@ -53,7 +53,7 @@
- +
diff --git a/layouts/module/footer/index.vue b/layouts/module/footer/index.vue index c7d4263..37ed298 100644 --- a/layouts/module/footer/index.vue +++ b/layouts/module/footer/index.vue @@ -27,19 +27,19 @@ export default { promiseList: [ { label: "马士兵严选", - icon: require("@/static/images/layout/footer-1.png"), + icon: require("~/assets/img/layout/footer-1.png"), }, { label: "马士兵严选", - icon: require("@/static/images/layout/footer-2.png"), + icon: require("~/assets/img/layout/footer-2.png"), }, { label: "马士兵严选", - icon: require("@/static/images/layout/footer-3.png"), + icon: require("~/assets/img/layout/footer-3.png"), }, { label: "马士兵严选", - icon: require("@/static/images/layout/footer-4.png"), + icon: require("~/assets/img/layout/footer-4.png"), }, ], }; diff --git a/layouts/module/header/HeaderInfoBar.vue b/layouts/module/header/HeaderInfoBar.vue index 84af96f..a97ff74 100644 --- a/layouts/module/header/HeaderInfoBar.vue +++ b/layouts/module/header/HeaderInfoBar.vue @@ -32,7 +32,7 @@ :command="item.value" > {{ item.label }} - + @@ -50,7 +50,7 @@ class="header-wrap-content__common flex flex-middle" @click="onJumpPersonalPage('message')" > - + 消息
33
@@ -60,12 +60,12 @@ class="header-wrap-content__common flex flex-middle" @click="onJumpPersonalPage('order/list')" > - + 我的订单
- + 下载app
@@ -105,8 +105,8 @@ export default { ...mapState(["userInfo", "token"]), menuIcon() { return this.menuVisible - ? require("@/static/images/layout/icon-up-light.png") - : require("@/static/images/layout/icon-up.png"); + ? require("~/assets/img/layout/icon-up-light.png") + : require("~/assets/img/layout/icon-up.png"); }, }, methods: { diff --git a/layouts/module/header/index.vue b/layouts/module/header/index.vue index 4f4ff3a..2d1ec76 100644 --- a/layouts/module/header/index.vue +++ b/layouts/module/header/index.vue @@ -6,7 +6,7 @@
- +
- + 3