From a2f2737741fcfa23150c4a15859e89d4bfba77d1 Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 27 Sep 2023 09:47:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/css/index.scss | 10 ++++++++++ src/assets/css/styles.scss | 6 ++++++ src/components/AiPayment.vue | 19 ++++++++++++------- 3 files changed, 28 insertions(+), 7 deletions(-) diff --git a/src/assets/css/index.scss b/src/assets/css/index.scss index ca0f944..f3ba131 100644 --- a/src/assets/css/index.scss +++ b/src/assets/css/index.scss @@ -1,4 +1,5 @@ @import "./styles.scss"; + @font-face { font-family: 'iconfont'; /* project id 1995974 */ src: url('https://at.alicdn.com/t/font_1995974_ihzpmuv4lpk.eot'); @@ -272,6 +273,15 @@ img { align-items: center; } +.flex-base { + display: flex; + align-items: baseline; + + &.center { + justify-content: center; + } +} + .flex-between { display: flex; align-items: center; diff --git a/src/assets/css/styles.scss b/src/assets/css/styles.scss index 401b334..278ae85 100644 --- a/src/assets/css/styles.scss +++ b/src/assets/css/styles.scss @@ -7,6 +7,9 @@ } @for $i from 1 through 30 { + .f-#{$i} { + font-size: #{$i}px; + } @each $p, $pv in (margin:m, padding:p) { .#{$pv}-#{$i} { #{$p}: #{$i}px; @@ -27,3 +30,6 @@ } } } +.through{ + text-decoration: line-through; +} diff --git a/src/components/AiPayment.vue b/src/components/AiPayment.vue index 58134a6..43f3db1 100644 --- a/src/components/AiPayment.vue +++ b/src/components/AiPayment.vue @@ -12,10 +12,13 @@
-
+
-
+
+
+
+
@@ -31,7 +34,8 @@
请选择
项目
- 应付金额:
¥{{ selected.price }}
+ 应付金额: +
¥{{ selected.price }}
微信扫码支付 @@ -40,8 +44,8 @@
- 取消支付 - 已扫码支付 + 取消支付 + 已扫码支付
@@ -66,7 +70,7 @@ export default { } }, computed: { - wechatLogo: v => require("../assets/wechat_logo.png") + wechatLogo: () => require("../assets/wechat_logo.png") }, methods: { getPayments() { @@ -121,6 +125,7 @@ export default { li { list-style-type: circle; + margin-left: 32px; } } @@ -133,7 +138,7 @@ export default { user-select: none; text-align: center; border: 1px solid #ddd; - padding: 32px 64px; + padding: 32px 16px; border-radius: 4px; &.active {