From c665f6421311c23bf9a8cfca37b91d498d879523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=8E=E7=84=9C?= Date: Fri, 30 Oct 2020 21:40:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 21 +- package.json | 7 +- src/App.vue | 1 + src/assets/img/cart/tick.svg | 2 +- src/common/const.js | 5 + src/common/jetbrains-agent.jar | Bin 0 -> 2410208 bytes src/common/mixin.js | 28 +- src/components/common/Scroll/Scroll.vue | 11 +- src/components/common/gridView/GridView.vue | 71 ++++ src/components/common/navbar/NavBar.vue | 2 + src/components/common/swiper/Swiper.vue | 4 +- src/components/common/toast/Toast.vue | 40 +++ src/components/common/toast/index.js | 16 + .../content/CheckButton/CheckButton.vue | 28 ++ .../content/goods/GoodsListItem.vue | 4 +- .../content/tabControl/TabControl.vue | 2 +- src/main.js | 13 + src/network/category.js | 27 ++ src/network/request.js | 2 + src/router/index.js | 3 +- src/store/actions.js | 29 ++ src/store/getters.js | 8 + src/store/index.js | 21 ++ src/store/mutation-type.js | 2 + src/store/mutations.js | 15 + src/views/cart/Cart.vue | 42 ++- src/views/cart/childComps/CartBottomBar.vue | 101 ++++++ src/views/cart/childComps/CartList.vue | 43 +++ src/views/cart/childComps/CartListItem.vue | 103 ++++++ src/views/cart/childComps/CheckButton.vue | 51 +++ src/views/category/Category.vue | 304 ++++++++++-------- .../childComps/TabContentCategory.vue | 60 ++++ .../category/childComps/TabContentDetail.vue | 30 ++ src/views/category/childComps/TabMenu.vue | 62 ++++ src/views/detail/Detail.vue | 32 +- src/views/detail/childComps/DetailSwiper.vue | 2 +- src/views/home/Home.vue | 6 +- src/views/profile/Profile.vue | 104 +++++- src/views/profile/childComps/ListView.vue | 60 ++++ src/views/profile/childComps/UserInfo.vue | 76 +++++ 40 files changed, 1268 insertions(+), 170 deletions(-) create mode 100644 src/common/jetbrains-agent.jar create mode 100644 src/components/common/gridView/GridView.vue create mode 100644 src/components/common/toast/Toast.vue create mode 100644 src/components/common/toast/index.js create mode 100644 src/components/content/CheckButton/CheckButton.vue create mode 100644 src/network/category.js create mode 100644 src/store/actions.js create mode 100644 src/store/getters.js create mode 100644 src/store/index.js create mode 100644 src/store/mutation-type.js create mode 100644 src/store/mutations.js create mode 100644 src/views/cart/childComps/CartBottomBar.vue create mode 100644 src/views/cart/childComps/CartList.vue create mode 100644 src/views/cart/childComps/CartListItem.vue create mode 100644 src/views/cart/childComps/CheckButton.vue create mode 100644 src/views/category/childComps/TabContentCategory.vue create mode 100644 src/views/category/childComps/TabContentDetail.vue create mode 100644 src/views/category/childComps/TabMenu.vue create mode 100644 src/views/profile/childComps/ListView.vue create mode 100644 src/views/profile/childComps/UserInfo.vue diff --git a/package-lock.json b/package-lock.json index eaa5d09b..ef8a0ea7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2612,9 +2612,9 @@ } }, "better-scroll": { - "version": "1.13.2", - "resolved": "https://registry.npm.taobao.org/better-scroll/download/better-scroll-1.13.2.tgz", - "integrity": "sha1-MebgiM8tI85I5S+tbMWRNP/rL1Y=", + "version": "1.15.2", + "resolved": "https://registry.npm.taobao.org/better-scroll/download/better-scroll-1.15.2.tgz?cache=0&sync_timestamp=1603173316390&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbetter-scroll%2Fdownload%2Fbetter-scroll-1.15.2.tgz", + "integrity": "sha1-Zf/GBYuLT/M3uN+tS8szTXaZzrY=", "requires": { "babel-runtime": "^6.0.0" } @@ -5093,6 +5093,11 @@ "integrity": "sha1-h0v2nG9ATCtdmcSBNBOZ/VWJJjM=", "dev": true }, + "fastclick": { + "version": "1.0.6", + "resolved": "https://registry.npm.taobao.org/fastclick/download/fastclick-1.0.6.tgz", + "integrity": "sha1-FhYlsnsaWAZAWTa9qaLBkm0Gvmo=" + }, "faye-websocket": { "version": "0.10.0", "resolved": "https://registry.npm.taobao.org/faye-websocket/download/faye-websocket-0.10.0.tgz", @@ -10380,6 +10385,11 @@ "integrity": "sha1-UylVzB6yCKPZkLOp+acFdGV+CPI=", "dev": true }, + "vue-lazyload": { + "version": "1.3.3", + "resolved": "https://registry.npm.taobao.org/vue-lazyload/download/vue-lazyload-1.3.3.tgz", + "integrity": "sha1-TfUKJxvem3TDyveiKNbgr1DVaC8=" + }, "vue-loader": { "version": "15.9.3", "resolved": "https://registry.npm.taobao.org/vue-loader/download/vue-loader-15.9.3.tgz?cache=0&sync_timestamp=1600850425972&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue-loader%2Fdownload%2Fvue-loader-15.9.3.tgz", @@ -10440,6 +10450,11 @@ "integrity": "sha1-HuO8mhbsv1EYvjNLsV+cRvgvWCU=", "dev": true }, + "vuex": { + "version": "3.1.0", + "resolved": "https://registry.npm.taobao.org/vuex/download/vuex-3.1.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvuex%2Fdownload%2Fvuex-3.1.0.tgz", + "integrity": "sha1-Y0uBUVzwz+l2vR/+lgF1XlH4Q7k=" + }, "watchpack": { "version": "1.7.4", "resolved": "https://registry.npm.taobao.org/watchpack/download/watchpack-1.7.4.tgz?cache=0&sync_timestamp=1600385622765&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fwatchpack%2Fdownload%2Fwatchpack-1.7.4.tgz", diff --git a/package.json b/package.json index 4a20d469..dbe468a3 100644 --- a/package.json +++ b/package.json @@ -8,10 +8,13 @@ }, "dependencies": { "axios": "^0.18.0", - "better-scroll": "^1.13.2", + "better-scroll": "^1.15.2", "core-js": "^3.6.5", + "fastclick": "^1.0.6", "vue": "^2.6.11", - "vue-router": "^3.0.2" + "vue-lazyload": "^1.3.3", + "vue-router": "^3.0.2", + "vuex": "^3.1.0" }, "devDependencies": { "@vue/cli-plugin-babel": "^4.5.0", diff --git a/src/App.vue b/src/App.vue index 71e08a64..6bbf026c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,6 @@