瀏覽代碼

fix(价格弹窗): 修复分享按钮样式并传递conditionType参数

修复价格弹窗中分享按钮的样式问题,将图片类名从hand-icon改为invite-icon,并移除按钮的默认样式。同时在打开弹窗时传递conditionType参数,确保功能完整性。
ylong 17 小時之前
父節點
當前提交
87f584e95e
共有 2 個文件被更改,包括 13 次插入1 次删除
  1. 12 1
      pages-car/components/price-reduction-popup.vue
  2. 1 0
      pages-car/pages/index.vue

+ 12 - 1
pages-car/components/price-reduction-popup.vue

@@ -40,7 +40,7 @@
 						</view>
 
 						<button v-else open-type="share" class="hand-btn">
-							<image open-type="share" class="hand-icon" src="/static/img/activity/invite.png"
+							<image open-type="share" class="invite-icon" src="/static/img/activity/invite.png"
 								mode="widthFix"></image>
 						</button>
 					</block>
@@ -242,6 +242,12 @@
 				height: 100rpx;
 				border-radius: 50%;
 			}
+			
+			.invite-icon {
+				width: 100rpx;
+				height: auto;
+				border-radius: 0;
+			}
 		}
 
 		.hand-btn {
@@ -251,6 +257,11 @@
 			background: transparent;
 			flex: none;
 			padding: 0;
+			overflow: visible;
+			
+			&::after {
+				display: none;
+			}
 		}
 
 		.add-item {

+ 1 - 0
pages-car/pages/index.vue

@@ -242,6 +242,7 @@
                     if (this.$refs.reducePopup) {
                         this.$refs.reducePopup.open({
                             isbn: item.isbn,
+                            conditionType: item.conditionType,
                             orderId: item.id
                         });
                     } else {