From 6e12337e17704d873d8954d80e4567a94e23d92d Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期五, 09 八月 2024 19:02:14 +0800 Subject: [PATCH] 1 --- sub_pages/supplier/flower-manage/flower-manage.vue | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/sub_pages/supplier/flower-manage/flower-manage.vue b/sub_pages/supplier/flower-manage/flower-manage.vue index 41f5b6d..8eea3fe 100644 --- a/sub_pages/supplier/flower-manage/flower-manage.vue +++ b/sub_pages/supplier/flower-manage/flower-manage.vue @@ -9,8 +9,7 @@ </view> </view> - - <view class="p15" style="min-height: calc(100vh - 160rpx);"> + <view class="p15" style="min-height: calc(100vh - 500rpx);"> <no-data v-if="!list||list.length==0" style="width: 100%;"></no-data> <view v-for="(item,index) in list" :key="index" class="m-b-24 flow-manage-list"> <view class="flow-manage-list-item"> @@ -137,6 +136,7 @@ async onLoad(options) { this.type = options.type || 'all' var title = '' + this.page.size = 5 //todo 根据type切换查询条件 if (this.type === 'delete') { this.listApi = '/api/supplier/flower/list/rc' @@ -171,7 +171,7 @@ this.getList() }, onReachBottom() { - this.page.current += 1 + console.log('onReachBottom') this.getMore() }, async onPullDownRefresh() { @@ -241,21 +241,22 @@ }) }, async buttonStatus(item, status) { - await this.$message.confirm(`确定${status==='off'?'下降':'上架'}此商品吗`) + await this.$message.confirm(`确定${status==='off'?'下架':'上架'}此商品吗`) this.$message.showLoading() this.$http.request('get', '/api/supplier/flower/list/' + status, { params: { id: item.id } }).then(res => { + this.$message.hideLoading() if (res.code == 0) { this.$message.showToast('操作成功') - item.status = status + item.status = (status == 'off' ? 'OFF' : 'UP') item.statusStr = (status == 'off' ? '下架' : '上架') } - }).finally(() => { + }).catch(e => { this.$message.hideLoading() - }) + }).finally(() => {}) }, async buttonDelete(item) { await this.$message.confirm('确定删除此商品吗') @@ -301,6 +302,9 @@ <style lang="scss" scoped> .flow-manage { + overflow-y: scroll; + + // min-height: ; .flow-manage-list { // padding: 20rpx 30rpx; padding: 22rpx 22rpx 20rpx 22rpx; -- Gitblit v1.9.3