From 677c12fd6fa6d5acd69bfbda193857a48c66093d Mon Sep 17 00:00:00 2001
From: yangjie <812952667@qq.com>
Date: Wed, 9 Jun 2021 15:07:51 +0800
Subject: [PATCH] =?UTF-8?q?1.=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/zc-grid-item/zc-grid-item.vue | 145 ----------------
components/zc-grid-wrap/zc-grid-wrap.vue | 129 --------------
components/zc-grid/zc-grid.vue | 205 -----------------------
main.js | 2 -
pages/tabBar/home/home.vue | 183 ++++++++++++--------
5 files changed, 116 insertions(+), 548 deletions(-)
delete mode 100644 components/zc-grid-item/zc-grid-item.vue
delete mode 100644 components/zc-grid-wrap/zc-grid-wrap.vue
delete mode 100644 components/zc-grid/zc-grid.vue
diff --git a/components/zc-grid-item/zc-grid-item.vue b/components/zc-grid-item/zc-grid-item.vue
deleted file mode 100644
index 1180be7..0000000
--- a/components/zc-grid-item/zc-grid-item.vue
+++ /dev/null
@@ -1,145 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/components/zc-grid-wrap/zc-grid-wrap.vue b/components/zc-grid-wrap/zc-grid-wrap.vue
deleted file mode 100644
index 39dd864..0000000
--- a/components/zc-grid-wrap/zc-grid-wrap.vue
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/components/zc-grid/zc-grid.vue b/components/zc-grid/zc-grid.vue
deleted file mode 100644
index 74e6100..0000000
--- a/components/zc-grid/zc-grid.vue
+++ /dev/null
@@ -1,205 +0,0 @@
-
-
-
-
-
-
- {{item.text}}
-
-
-
-
-
-
-
-
-
diff --git a/main.js b/main.js
index 5266c88..77ee1e2 100644
--- a/main.js
+++ b/main.js
@@ -2,12 +2,10 @@ import Vue from 'vue'
import App from './App'
import {VueJsonp} from 'vue-jsonp'
import share from 'common/share.js'
-import imgGrid from './components/zc-grid/zc-grid.vue'
Vue.config.productionTip = false
Vue.use(VueJsonp)
App.mpType = 'app'
Vue.mixin(share)
- Vue.component('imgGrid',imgGrid)
const app = new Vue({
...App
})
diff --git a/pages/tabBar/home/home.vue b/pages/tabBar/home/home.vue
index e3d3322..31f19be 100644
--- a/pages/tabBar/home/home.vue
+++ b/pages/tabBar/home/home.vue
@@ -45,8 +45,14 @@
-
-
+
+
+
+
+
+ {{ row.name }}
+
+
@@ -98,10 +104,14 @@
-->
-
-
- 赠券专区
-
+
+ 猜你喜欢
+
+
+ 今日特价
+
+
+ 发现好店
-
+
@@ -198,23 +208,50 @@
loadingText: '正在加载...',
pageNum: 1,
pageSize: 6,
- imgList: [{
- url: '/static/img/wxpay.png',
- text: '美食'
+ // 分类菜单
+ categoryList: [{
+ id: 1,
+ name: '办公',
+ img: '/static/img/wxpay.png'
},
{
- url: '/static/img/wxpay.png',
- text: '加油'
+ id: 2,
+ name: '家电',
+ img: '/static/img/wxpay.png'
+ },
+ {
+ id: 3,
+ name: '服饰',
+ img: '/static/img/wxpay.png'
+ },
+ {
+ id: 4,
+ name: '日用',
+ img: '/static/img/wxpay.png'
+ },
+ {
+ id: 5,
+ name: '蔬果',
+ img: '/static/img/wxpay.png'
},
{
- url: '/static/img/wxpay.png',
- text: '美食'
+ id: 6,
+ name: '运动',
+ img: '/static/img/wxpay.png'
},
{
- url: '/static/img/wxpay.png',
- text: '美食'
+ id: 7,
+ name: '书籍',
+ img: '/static/img/wxpay.png'
+ },
+ {
+ id: 8,
+ name: '文具',
+ img: '/static/img/wxpay.png'
}
],
+ //切换状态
+ cpStuats: 1
};
},
@@ -467,6 +504,9 @@
//轮播图指示器
swiperChange(event) {
this.currentSwiper = event.detail.current;
+ },
+ eheckStu(item){
+ this.cpStuats = item;
}
}
};
@@ -474,7 +514,7 @@