From 31aac1de4ad4f65768b5c2bfb32105f0674ce2ad Mon Sep 17 00:00:00 2001 From: ewall <1054064180@qq.com> Date: Mon, 13 Aug 2018 12:00:17 +0800 Subject: [PATCH] 'add' --- README.md | 2 +- package.json | 1 + src/view/classify.vue | 39 +++++++++++++++++++++++++-------------- static/mock/classify.json | 12 ++++++++++++ 4 files changed, 39 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index e65c0ab..d49711c 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -分类详情页数据渲染 \ No newline at end of file +分类详情页之better-scroll实现滚动 \ No newline at end of file diff --git a/package.json b/package.json index 72ba104..b851844 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ }, "dependencies": { "axios": "^0.18.0", + "better-scroll": "^1.12.6", "less": "^3.0.4", "less-loader": "^4.1.0", "lib-flexible": "^0.3.2", diff --git a/src/view/classify.vue b/src/view/classify.vue index c43d3ef..7019457 100644 --- a/src/view/classify.vue +++ b/src/view/classify.vue @@ -9,22 +9,26 @@