diff --git a/components/diy/article-list.vue b/components/diy/article-list.vue index 25a113cf..75dc0b96 100644 --- a/components/diy/article-list.vue +++ b/components/diy/article-list.vue @@ -18,7 +18,7 @@ {{ field_show.includes('0') ? item.data.add_time : '' }} - + {{ item.data.access_count ? item.data.access_count : '' }} @@ -42,7 +42,7 @@ {{ field_show.includes('0') ? item.data.add_time : '' }} - + {{ item.data.access_count ? item.data.access_count : '' }} diff --git a/components/diy/carousel.vue b/components/diy/carousel.vue index 38736fb6..972f2687 100644 --- a/components/diy/carousel.vue +++ b/components/diy/carousel.vue @@ -14,7 +14,7 @@ - + {{ item.video_title }} @@ -32,7 +32,7 @@ - + {{ item.video_title }} diff --git a/components/diy/coupon.vue b/components/diy/coupon.vue index fc5dccdd..6bf8e03e 100644 --- a/components/diy/coupon.vue +++ b/components/diy/coupon.vue @@ -55,7 +55,7 @@
{{ item.status_operable_name }} - + diff --git a/components/diy/custom.vue b/components/diy/custom.vue index 1f4d1242..4eb83b51 100644 --- a/components/diy/custom.vue +++ b/components/diy/custom.vue @@ -2,8 +2,7 @@ - + @@ -63,6 +62,7 @@ export default { style_img_container: '', div_width: 0, div_height: 0, + custom_list_length: 0, }; }, computed: { @@ -84,10 +84,8 @@ export default { methods: { percentage_count, init() { - this.setData({ - form: this.propValue.content, - new_style: this.propValue.style, - }); + const new_form = this.propValue.content; + const new_style = this.propValue.style; this.$nextTick(() => { const query = uni.createSelectorQuery().in(this); query @@ -103,9 +101,12 @@ export default { .exec(); }); this.setData({ - style_container: common_styles_computer(this.new_style.common_style) + 'box-sizing: border-box;', // 用于样式显示 - style_img_container: common_img_computer(this.new_style.common_style), - div_height: this.form.height, + form: new_form, + new_style: new_style, + custom_list_length: new_form.custom_list.length - 1, + style_container: common_styles_computer(new_style.common_style) + 'box-sizing: border-box;', // 用于样式显示 + style_img_container: common_img_computer(new_style.common_style), + div_height: new_form.height, }); }, url_event(e) { diff --git a/components/diy/diy.vue b/components/diy/diy.vue index 04a36b89..0a781544 100644 --- a/components/diy/diy.vue +++ b/components/diy/diy.vue @@ -69,7 +69,7 @@ - + @@ -85,7 +85,7 @@ - + diff --git a/components/diy/goods-list.vue b/components/diy/goods-list.vue index 1a5b595c..6887f433 100644 --- a/components/diy/goods-list.vue +++ b/components/diy/goods-list.vue @@ -60,7 +60,7 @@ {{ form.shop_button_text }} - + @@ -90,7 +90,7 @@ {{ form.shop_button_text }} - + @@ -142,7 +142,7 @@ {{ form.shop_button_text }} - + diff --git a/components/diy/header.vue b/components/diy/header.vue index dffdb601..7b67744e 100644 --- a/components/diy/header.vue +++ b/components/diy/header.vue @@ -12,7 +12,7 @@ - + @@ -42,7 +42,7 @@ - + diff --git a/components/diy/modules/custom/model-icon.vue b/components/diy/modules/custom/model-icon.vue index 34b36dcf..15c2932d 100644 --- a/components/diy/modules/custom/model-icon.vue +++ b/components/diy/modules/custom/model-icon.vue @@ -1,6 +1,6 @@