From 17bb1250f2120415e5fc9f47fe50b60f72b47a07 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期日, 04 八月 2024 12:50:01 +0800
Subject: [PATCH] update 优化搜索事件
---
sub_pages/customer/shopping/shopping.vue | 27 ++++++++++++++++-----------
1 files changed, 16 insertions(+), 11 deletions(-)
diff --git a/sub_pages/customer/shopping/shopping.vue b/sub_pages/customer/shopping/shopping.vue
index c4da252..825b175 100644
--- a/sub_pages/customer/shopping/shopping.vue
+++ b/sub_pages/customer/shopping/shopping.vue
@@ -28,7 +28,8 @@
<u-swipe-action-item :options="options1" @click="(e)=>{clickSwipeButton(dto,true)}">
<view class="item-each flex">
<radio :checked="ids.indexOf(dto.id)>=0" @click="changeItem(dto,'flower')"></radio>
- <image class="img img100 m-r-6 br-4" :class="[!dto.stock?'component-stock-zero-tmp':'']" :src="dto.url||dto.cover"></image>
+ <image class="img img100 m-r-6 br-4" :class="[!dto.stock?'component-stock-zero':'']"
+ :src="dto.url||dto.cover"></image>
<view class="flex1">
<view class="title" @click.stop="toDetail(dto)"><span class="m-r-5"
style="display: inline-block;">{{dto.categoryStr||''}}</span><span
@@ -99,7 +100,7 @@
},
onShow() {
// if (this.sign['shopping']) {
-
+
// }
this.init()
},
@@ -157,18 +158,21 @@
flowers: arr,
}
})
- this.$message.hideLoading()
- if (code === 0) {
- this.$storage.setItem('_cache_shopping_dto', JSON.stringify(data))
- uni.navigateTo({
- url: '/sub_pages/customer/shopping/confirm'
- })
- }
+ let that = this
+ setTimeout(() => {
+ that.$message.hideLoading()
+ if (code === 0) {
+ that.$storage.setItem('_cache_shopping_dto', JSON.stringify(data))
+ uni.navigateTo({
+ url: '/sub_pages/customer/shopping/confirm'
+ })
+ }
+ }, 300)
},
async clickSwipeButton(item, check) {
//删除商品,重新加载数据?
if (check) {
- await this.$message.confirm('是否删除商品')
+ await this.$message.confirm('是否删除商品')
}
@@ -402,7 +406,8 @@
left: 0rpx;
padding: 20rpx;
right: 0rpx;
- bottom: 160rpx;
+ // bottom: 160rpx;
+ bottom: 140rpx;
z-index: 11;
}
--
Gitblit v1.9.3