From ffd407012d000d1a1b9d36c01646d2cdb22675b4 Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期五, 11 十月 2024 15:12:21 +0800 Subject: [PATCH] 1.优惠券规则修改 2.已使用的优惠券样式修改 --- pages/home/components/home-category.vue | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/pages/home/components/home-category.vue b/pages/home/components/home-category.vue index 8ddb38c..68d2934 100644 --- a/pages/home/components/home-category.vue +++ b/pages/home/components/home-category.vue @@ -37,6 +37,25 @@ }, methods: { + init(){ + this.today = this.$util.toDate(new Date()) + this.$http.request('get', '/api/customer/flower/category/tree', {}).then(res => { + var data = res.data + this.list = [] + var arr = data || [] + for (let i = 0; i < arr.length && i < 10; i++) { + this.list.push({ + id: arr[i].id, + name: arr[i].name, + url: arr[i].imageUrl + }) + } + }) + this.$http.request('get', '/api/customer/flower/up/stock', {}).then(res => { + var data = res.data + this.tj = data || 0 + }) + }, toList(item) { // uni.navigateTo({ // url:'/sub_pages/customer/trade/list?categoryId='+item.id -- Gitblit v1.9.3