diff --git a/components/vc-category/vc-category.vue b/components/vc-category/vc-category.vue index d6a3b45..1988476 100644 --- a/components/vc-category/vc-category.vue +++ b/components/vc-category/vc-category.vue @@ -5,14 +5,14 @@ - + {{item.name}} - - + + {{item.name}} @@ -41,6 +41,12 @@ url:pageUrl }) }, + callUndefined:function(){ + uni.showToast({ + icon:'none', + title:'此功能暂不开放' + }) + }, getCategorys: function() { this.categoryList = { pageone: [{ @@ -54,11 +60,19 @@ }, { name: "限时秒杀", src: "/static/images/mall_secKill.png", - href: "/pages/complaint/complaint" + href: "undefined" }, { name: "家政服务", - src: "/static/images/mall_secKill.png", - href: "/pages/complaint/complaint" + src: "/static/images/mall_domestic.png", + href: "undefined" + }, { + name: "美食", + src: "/static/images/mall_delicious.png", + href: "undefined" + }, { + name: "超市", + src: "/static/images/mall_supermarket.png", + href: "undefined" }] }; diff --git a/components/vc-recommend/vc-recommend.vue b/components/vc-recommend/vc-recommend.vue new file mode 100644 index 0000000..9e60d7c --- /dev/null +++ b/components/vc-recommend/vc-recommend.vue @@ -0,0 +1,56 @@ + + + + + diff --git a/pages/mall/mall.vue b/pages/mall/mall.vue index a5a61c2..80d16b6 100644 --- a/pages/mall/mall.vue +++ b/pages/mall/mall.vue @@ -7,6 +7,7 @@ + @@ -15,6 +16,8 @@ import vcCategory from '@/components/vc-category/vc-category.vue' + import vcRecommend from '@/components/vc-recommend/vc-recommend.vue' + export default { data() { return { @@ -22,7 +25,8 @@ } }, components:{ - vcCategory + vcCategory, + vcRecommend }, methods: { diff --git a/static/images/mall_delicious.png b/static/images/mall_delicious.png new file mode 100644 index 0000000..a023580 Binary files /dev/null and b/static/images/mall_delicious.png differ diff --git a/static/images/mall_domestic.png b/static/images/mall_domestic.png new file mode 100644 index 0000000..0b59670 Binary files /dev/null and b/static/images/mall_domestic.png differ diff --git a/static/images/mall_supermarket.png b/static/images/mall_supermarket.png new file mode 100644 index 0000000..4a37eca Binary files /dev/null and b/static/images/mall_supermarket.png differ