Merge branch 'dev' of http://47.94.45.65:3000/angelo/web-zk-h5 into test
This commit is contained in:
		
						commit
						72712a2718
					
				|  | @ -196,13 +196,11 @@ | |||
| 
 | ||||
|     <!-- 购物车抽屉 --> | ||||
|     <u-popup | ||||
|       v-if="showCartDrawer" | ||||
|       :show="showCartDrawer" | ||||
|       mode="bottom" | ||||
|       border-radius="30" | ||||
|       :closeable="true" | ||||
|       :overlay="false" | ||||
|       :zIndex="200" | ||||
|       style="position: absolute; bottom: 0; left: 0; right: 0" | ||||
|       @close="showCartDrawer = false" | ||||
|     > | ||||
|       <view class="cart-drawer"> | ||||
|  | @ -443,24 +441,25 @@ export default { | |||
| 
 | ||||
|     // 从购物车删除商品 | ||||
|     removeFromCart(index) { | ||||
|       uni.showModal({ | ||||
|         title: '提示', | ||||
|         content: '确定要删除该商品吗?', | ||||
|         success: res => { | ||||
|           if (res.confirm) { | ||||
|             this.cartData[this.activeTab].splice(index, 1) | ||||
|             uni.showToast({ | ||||
|               title: '删除成功', | ||||
|               icon: 'success', | ||||
|               duration: 1500, | ||||
|             }) | ||||
|             if (this.cartTotalCount === 0) { | ||||
|               this.showCartDrawer = false | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         zIndex: 99999999, // 确保层级高于抽屉 | ||||
|       }) | ||||
|       this.cartData[this.activeTab].splice(index, 1) | ||||
|       if (this.cartTotalCount === 0) { | ||||
|         this.showCartDrawer = false | ||||
|       } | ||||
|       // uni.showModal({ | ||||
|       //   title: '提示', | ||||
|       //   content: '确定要删除该商品吗?', | ||||
|       //   success: res => { | ||||
|       //     if (res.confirm) { | ||||
|       //       this.cartData[this.activeTab].splice(index, 1) | ||||
|       //       uni.showToast({ | ||||
|       //         title: '删除成功', | ||||
|       //         icon: 'success', | ||||
|       //         duration: 1500, | ||||
|       //       }) | ||||
|       //     } | ||||
|       //   }, | ||||
|       //   zIndex: 99999999, // 确保层级高于抽屉 | ||||
|       // }) | ||||
|     }, | ||||
| 
 | ||||
|     // 切换购物车抽屉 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue