From 6c06dd50d014a512823225dfe01033aa0e805b71 Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Mon, 9 Sep 2024 17:29:06 +0800 Subject: [PATCH 1/4] =?UTF-8?q?1.diy----=20footer=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/diy/diy.vue | 14 ++++++-------- components/diy/footer.vue | 18 +++++++++++++----- 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/components/diy/diy.vue b/components/diy/diy.vue index 8cbb3854..1a67d5e8 100644 --- a/components/diy/diy.vue +++ b/components/diy/diy.vue @@ -37,16 +37,14 @@ }; }, - computed: { - diy_content_style(){ - return { - paddingBottom: this.padding_footer_computer - } - } - }, + computed: { + diy_content_style() { + return `padding-bottom:${this.padding_footer_computer}rpx`; + }, + }, methods: { footer_height_computer(number) { - this.padding_footer_computer = number * 2 + 'rpx'; + this.padding_footer_computer = number * 2; }, }, }; diff --git a/components/diy/footer.vue b/components/diy/footer.vue index 0d86ecaa..f7fae9ea 100644 --- a/components/diy/footer.vue +++ b/components/diy/footer.vue @@ -1,14 +1,14 @@