zs 2 năm trước cách đây
mục cha
commit
a9728c429c
1 tập tin đã thay đổi với 39 bổ sung35 xóa
  1. 39 35
      components/discount/index.vue

+ 39 - 35
components/discount/index.vue

@@ -6,12 +6,14 @@
 				<view class="money">¥{{item.money||'0'}}</view>
 				<view class="man">满{{item.discount_money||'0'}}可以</view>
 			</view>
-			<view class="center">
-				<view class="type"><text>{{item.type||'暂无'}}</text> {{item.name||'暂无'}}</view>
-				<view class="date">有效期{{item.start_time||'暂无'}}-{{item.end_time||'暂无'}}</view>
-			</view>
 			<view class="right">
-				<button type="default" size="mini" @click="toDiscount(item)">确认</button>
+				<view class="other">
+					<view class="type"><text>{{item.type||'暂无'}}</text> {{item.name||'暂无'}}</view>
+					<view class="date">有效期{{item.start_time||'暂无'}}-{{item.end_time||'暂无'}}</view>
+				</view>
+				<view class="btn">
+					<button type="default" size="mini" @click="toDiscount(item)">确认</button>
+				</view>
 			</view>
 		</view>
 	</view>
@@ -62,7 +64,6 @@
 				padding: 5vw 3vw;
 				background-color: #FFFACD;
 				color: #8B4513;
-
 				.money {
 					font-size: var(--font18Szie);
 					font-weight: bold;
@@ -73,45 +74,48 @@
 				}
 			}
 
-			.center {
+			.right {
+				display: flex;
+				justify-content: space-between;
+				align-items: center;
 				flex-grow: 1;
 				border-radius: 3vw;
-				border-top-right-radius: 0;
-				border-bottom-right-radius: 0;
-				padding: 5vw 2vw;
+				padding: 8vw 2vw;
 				background-color: var(--mainColor);
 
-				.type {
-					margin: 0 0 1vw 0;
+				.other {
+					display: flex;
+					flex-direction: column;
+					width: 50vw;
 
-					text {
-						border: 0.5vw solid red;
-						color: red;
-						padding: 0 1vw;
-						border-radius: 1vw;
-						font-size: var(--font12Size);
-						margin: 0 1vw 0 0;
-					}
+					.type {
+						margin: 0 0 1vw 0;
 
-					font-size: var(--font16Size);
-				}
+						text {
+							border: 0.5vw solid red;
+							color: red;
+							padding: 0 1vw;
+							border-radius: 1vw;
+							font-size: var(--font12Size);
+							margin: 0 1vw 0 0;
+						}
+
+						font-size: var(--font16Size);
+					}
 
-				.date {
-					font-size: var(--font12Size);
-					color: var(--f99Color);
+					.date {
+						font-size: var(--font12Size);
+						color: var(--f99Color);
+					}
 				}
-			}
 
-			.right {
-				padding: 7vw 3vw;
-				border-radius: 3vw;
-				border-top-left-radius: 0;
-				border-bottom-left-radius: 0;
-				background-color: var(--mainColor);
+				.btn {
+					width: 20vw;
 
-				button {
-					background-color: #FFD700;
-					font-weight: bold;
+					button {
+						background-color: #FFD700;
+						font-weight: bold;
+					}
 				}
 			}
 		}