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 @@