From 480a7eb5fa89aa602167a7b5f42df5c6d79053b2 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期五, 26 七月 2024 16:20:55 +0800 Subject: [PATCH] fix bug 接口对接和样式调整 --- sub_pages/customer/trade/list.vue | 14 +++++--------- 1 files changed, 5 insertions(+), 9 deletions(-) diff --git a/sub_pages/customer/trade/list.vue b/sub_pages/customer/trade/list.vue index 1af11b2..230c533 100644 --- a/sub_pages/customer/trade/list.vue +++ b/sub_pages/customer/trade/list.vue @@ -30,7 +30,7 @@ </view> </view> <view class="" style="min-height: calc(100vh - 260rpx);"> - <no-data v-if="!list||list.length==0" style="width: 100%;"></no-data> + <no-data v-if="!list||list.length===0" style="width: 100%;"></no-data> <view v-else> <!-- 查询条件 --> <view class="component-filter-container"> @@ -157,6 +157,7 @@ data() { return { query: { + name:'', category: '', zoneId: '', levelStr: '', @@ -181,6 +182,7 @@ console.log('options', options) this.query.category = options.categoryId || '' this.query.zoneId = options.zoneId || '' + this.query.name = options.name || '' this.listApi = '/api/customer/flower/list' this.getList('post') this.$http.request('get', '/api/code/value', { @@ -290,7 +292,7 @@ if (!this.currentInfo.id) { await this.$message.confirm('请前往登录') uni.navigateTo({ - url: '//pages/user/supplier-user' + url: '/pages/user/supplier-user' }) return } @@ -303,7 +305,7 @@ return } this.$message.showLoading() - const {code} = await http.request('post', '/api/api/customer/flower/cart/change-num', { + const {code} = await http.request('post', '/api/customer/flower/cart/change-num', { data: { id: item.id, num: addnum @@ -314,12 +316,6 @@ if (code === 0) { item.shopnum += addnum } - // if (item.shopnum) { - // item.shopnum += 1 - // } else { - // item.shopnum = 1 - // } - // this.shoptotal += 1 this.$forceUpdate() }, } -- Gitblit v1.9.3