瀏覽代碼

bug 修复

lilei 4 年之前
父節點
當前提交
4cf695fe9f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      components/uni-coods/uni-coods.vue

+ 2 - 2
components/uni-coods/uni-coods.vue

@@ -11,7 +11,7 @@
 					<text>{{item.price}}</text>
 					<u-image mode="scaleToFill" width="40rpx" height="40rpx" src="/static/ledou.png"></u-image>
 				</view>
-				<view @click.stop="addCart">
+				<view @click.stop="addCart" v-if="item.status == 0">
 					<u-image mode="scaleToFill" width="45rpx" height="45rpx" src="/static/addCart.png"></u-image>
 				</view>
 			</view>
@@ -76,7 +76,7 @@
 				width: 100%;
 				height: 100%;
 				position: absolute;
-				z-index: 10000;
+				z-index: 100;
 				border-radius: 15rpx 15rpx 0 0;
 				background: rgba($color: #000000, $alpha: 0.4);
 				text-align: center;