diff --git a/components/diy/coupon.vue b/components/diy/coupon.vue index d0a2c6d0..fc5dccdd 100644 --- a/components/diy/coupon.vue +++ b/components/diy/coupon.vue @@ -68,7 +68,7 @@ - 通用券 + {{ item.type_name }} @@ -232,8 +232,8 @@ false ); this.setData({ - content_title: new_content.content_title || '', - content_desc: new_content.content_desc || '', + content_title: new_content.title || '', + content_desc: new_content.desc || '', // 判断是自动还是手动 data_list: new_content.data_type == '1' ? new_content.data_list : new_content.data_auto_list, theme: temp_theme, diff --git a/components/diy/diy.vue b/components/diy/diy.vue index 29b45328..06c8b8d0 100644 --- a/components/diy/diy.vue +++ b/components/diy/diy.vue @@ -279,10 +279,15 @@ page_style: common_styles_computer(this.propValue.header.com_data.style.common_style), page_img_style: common_img_computer(this.propValue.header.com_data.style.common_style), // 判断顶部导航是否置顶 - is_header_top: this.propValue.header.com_data.style.up_slide_display == '1' ? true : false, + is_header_top: parseInt(this.propValue.header.com_data.style.up_slide_display) == 1 ? true : false, temp_sticky_top: this.sticky_top, temp_header_top: this.header_top, }); + // 设置顶部导航的默认颜色 + uni.setNavigationBarColor({ + frontColor: parseInt(this.propValue.header.com_data.style.function_buttons_type) == 0 ? '#000000' : '#ffffff', + backgroundColor: 'transparent', + }); uni.setStorageSync(this.cache_key + this.tabs_home_id, this.propValue.diy_data); }, // 顶部导航沉浸模式回调