From a9d507a13f5eff939b9dfb2242a204d445460d42 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期二, 06 八月 2024 18:26:25 +0800
Subject: [PATCH] update 跳转的逻辑栈
---
sub_pages/customer/shopping/shopping.vue | 30 +++++++++++++++++++-----------
1 files changed, 19 insertions(+), 11 deletions(-)
diff --git a/sub_pages/customer/shopping/shopping.vue b/sub_pages/customer/shopping/shopping.vue
index c4da252..2723829 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('是否删除商品')
}
@@ -182,6 +186,8 @@
})
this.$message.hideLoading()
if (code === 0) {
+ this.$store.dispatch('sign_add', 'shopnum');
+
if (this.ids.indexOf(item.id) >= 0) {
this.ids.splice(this.ids.indexOf(item.id), 1)
}
@@ -353,6 +359,7 @@
await this.clickSwipeButton(dto, false)
// await this.init()
}
+ this.$store.dispatch('sign_add', 'shopnum');
this.$forceUpdate()
}
},
@@ -402,7 +409,8 @@
left: 0rpx;
padding: 20rpx;
right: 0rpx;
- bottom: 160rpx;
+ // bottom: 160rpx;
+ bottom: 140rpx;
z-index: 11;
}
--
Gitblit v1.9.3