From 1e2cca44dd7b4cc30f60435d22bc58574f2fd4f0 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期四, 12 九月 2024 10:38:04 +0800
Subject: [PATCH] update 样式等、积分信息、合伙人注册
---
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