diff --git a/common/css/lib.css b/common/css/lib.css index fa818898..a7855c97 100644 --- a/common/css/lib.css +++ b/common/css/lib.css @@ -948,7 +948,9 @@ .gap-2 { gap: 4rpx; } - +.gap-3 { + gap: 6rpx; +} .gap-4 { gap: 8rpx; } @@ -972,7 +974,35 @@ .gap-16 { gap: 32rpx; } +.gap-20 { + gap: 40rpx; +} +.pr-4 { + padding: 8rpx; +} +.pr-15 { + padding-right: 30rpx; +} +.plr-11 { + padding-left: 22rpx; + padding-right: 22rpx; +} + +.ptb-5 { + padding-top: 10rpx; + padding-bottom: 10rpx; +} + +.ptb-15 { + padding-top: 30rpx; + padding-bottom: 30rpx; +} + +.mlr-10 { + margin-left: 20rpx; + margin-right: 20rpx; +} /** * font-size 字体大小 */ \ No newline at end of file diff --git a/components/diy/article-list.vue b/components/diy/article-list.vue index 40a6859d..120d2775 100644 --- a/components/diy/article-list.vue +++ b/components/diy/article-list.vue @@ -61,7 +61,7 @@ import { common_styles_computer, padding_computer, radius_computer, get_math } from '@/common/js/common/common.js'; export default { props: { - value: { + propValue: { type: Object, default: () => {}, }, @@ -119,8 +119,8 @@ }, methods: { init() { - const new_content = this.value.content || {}; - const new_style = this.value.style || {}; + const new_content = this.propValue.content || {}; + const new_style = this.propValue.style || {}; this.setData({ // 判断是自动还是手动 data_list: diff --git a/components/diy/article-tabs.vue b/components/diy/article-tabs.vue index d04bd912..d28870e3 100644 --- a/components/diy/article-tabs.vue +++ b/components/diy/article-tabs.vue @@ -1,9 +1,9 @@ @@ -14,7 +14,7 @@ import componentDiyArticleList from '@/components/diy/article-list'; export default { props: { - value: { + proppropValue: { type: Object, default: () => {}, }, @@ -41,9 +41,9 @@ }, methods: { init() { - const new_content = this.value.content || {}; - const new_style = this.value.style || {}; - let new_data = JSON.parse(JSON.stringify(this.value)); + const new_content = this.propValue.content || {}; + const new_style = this.propValue.style || {}; + let new_data = JSON.parse(JSON.stringify(this.propValue)); this.top_up = new_content.tabs_top_up; new_data.content.theme = new_data.content.article_theme; new_data.content.data_type = new_data.content.tabs_list[0].data_type; @@ -63,7 +63,7 @@ }); }, tabs_click_event(index) { - let new_data = JSON.parse(JSON.stringify(this.value)); + let new_data = JSON.parse(JSON.stringify(this.propValue)); new_data.content.theme = new_data.content.article_theme; new_data.content.data_type = new_data.content.tabs_list[index].data_type; new_data.content.category = new_data.content.tabs_list[index].category; diff --git a/components/diy/auxiliary-blank.vue b/components/diy/auxiliary-blank.vue index 38c2e9b6..c4527c0b 100644 --- a/components/diy/auxiliary-blank.vue +++ b/components/diy/auxiliary-blank.vue @@ -11,7 +11,7 @@ } from '@/common/js/common/common.js'; export default { props: { - value: { + propValue: { type: Object, default: () => { return {}; @@ -27,20 +27,20 @@ created() { this.init(); }, - methods: { - init() { - const { - height - } = this.value.content; - const { - line_color, - common_style - } = this.value.style; - this.setData({ - style: `height: ${height * 2 }rpx;background: ${line_color || 'transparent'};`, - style_container: common_styles_computer(common_style) - }); - } + methods: { + init() { + const { + height + } = this.propValue.content; + const { + line_color, + common_style + } = this.propValue.style; + this.setData({ + style: `height: ${height * 2 }rpx;background: ${line_color || 'transparent'};`, + style_container: common_styles_computer(common_style) + }); + } }, }; diff --git a/components/diy/auxiliary-line.vue b/components/diy/auxiliary-line.vue index 0ddff889..6e18ff8d 100644 --- a/components/diy/auxiliary-line.vue +++ b/components/diy/auxiliary-line.vue @@ -9,7 +9,7 @@ import { common_styles_computer } from '@/common/js/common/common.js'; export default { props: { - value: { + propValue: { type: Object, default: () => ({}), }, @@ -25,8 +25,8 @@ }, methods: { init() { - const new_content = this.value.content || {}; - const new_style = this.value.style || {}; + const new_content = this.propValue.content || {}; + const new_style = this.propValue.style || {}; let border_content = `border-bottom-style: ${new_content?.styles || 'solid'};`; let border_style = `border-bottom-width: ${new_style.line_width * 2 || 2}rpx; border-bottom-color: ${new_style.line_color || 'rgba(204, 204, 204, 1)'};`; this.setData({ diff --git a/components/diy/carousel.vue b/components/diy/carousel.vue index d8b4f9b3..abec9511 100644 --- a/components/diy/carousel.vue +++ b/components/diy/carousel.vue @@ -63,7 +63,7 @@ imageEmpty, }, props: { - value: { + propValue: { type: Object, default: () => { return {}; @@ -105,8 +105,8 @@ }, created() { this.setData({ - form: this.value.content, - new_style: this.value.style, + form: this.propValue.content, + new_style: this.propValue.style, }); this.init(); }, diff --git a/components/diy/coupon.vue b/components/diy/coupon.vue index 646f8f9b..e6c4a0cd 100644 --- a/components/diy/coupon.vue +++ b/components/diy/coupon.vue @@ -158,12 +158,12 @@