diff --git a/App.vue b/App.vue index d25db4e2..c285e184 100644 --- a/App.vue +++ b/App.vue @@ -7,10 +7,10 @@ data: { // 基础配置 // 数据接口请求地址 - request_url:'https://new.shopxo.vip/', + request_url:'https://d2.shopxo.vip/', // 静态资源地址(如系统根目录不在public目录下面请在静态地址后面加public目录、如:https://d1.shopxo.vip/public/) - static_url:'https://new.shopxo.vip/', + static_url:'https://d2.shopxo.vip/', // 系统类型(默认default、如额外独立小程序、可与程序分身插件实现不同主体小程序及支付独立) system_type: 'default', diff --git a/components/diy/carousel.vue b/components/diy/carousel.vue index e316d6ce..95ba25c4 100644 --- a/components/diy/carousel.vue +++ b/components/diy/carousel.vue @@ -2,7 +2,7 @@ - + @@ -109,6 +109,7 @@ style_img_container: '', // 图片的设置 img_style: '', + outer_img_style: '', // 指示器的样式 indicator_style: '', seat_list: [], @@ -177,7 +178,8 @@ popup_height: block * 9 * 2 + 'rpx', // 视频的高度 style_container: this.propIsCommon ? common_styles_computer(common_style) : '', // 公共样式显示 style_img_container: this.propIsCommon ? common_img_computer(common_style, this.propIndex) : '', // 公共样式显示 - img_style: radius_computer(new_style), // 图片的设置 + img_style: new_form.carousel_type == 'inherit' ? '' : radius_computer(new_style), // 图片的设置 + outer_img_style: new_form.carousel_type == 'inherit' ? radius_computer(new_style) + 'overflow: hidden;' : '', indicator_style: get_indicator_style(new_style), // 指示器的样式 indicator_location_style: get_indicator_location_style(new_style), dot_style: `bottom: ${ new_style.indicator_bottom * scale }px;`, // 指示器位置 diff --git a/components/diy/tabs.vue b/components/diy/tabs.vue index 926299a0..6ad1b09b 100644 --- a/components/diy/tabs.vue +++ b/components/diy/tabs.vue @@ -185,10 +185,12 @@ new_tabs_background = 'background:#fff;'; } const newPropTop = this.propIsCommon ? (app.globalData.rpx_to_px(this.propTop) + this.propStickyTop) : (app.globalData.rpx_to_px(this.propTop + this.propStickyTop)); + // 设置margin之后的显示问题 + const max_width = this.propIsCommon ? (new_style.common_style?.margin_left || 0) + (new_style.common_style?.margin_right || 0) : (this.propSpacingCommonStyle?.margin_left || 0) + (this.propSpacingCommonStyle?.margin_right || 0); this.setData({ tabs_data: new_tabs_data, tabs_sliding_fixed_bg: this.propIsCommon ? gradient_computer(new_style.common_style) : this.propTabsSlidingFixedBg, - style_container: this.propIsCommon ? new_tabs_background + common_styles_computer(new_style.common_style) : new_content.tabs_top_up == '1' ? new_tabs_background + gradient_computer(new_style.common_style) + margin_computer(this.propSpacingCommonStyle) : '', // 如果是选项卡轮播,不需要走默认样式 + style_container: `max-width: calc(1600rpx - ${ max_width * 2 }rpx);` + (this.propIsCommon ? new_tabs_background + common_styles_computer(new_style.common_style) : new_content.tabs_top_up == '1' ? new_tabs_background + gradient_computer(new_style.common_style) + margin_computer(this.propSpacingCommonStyle) : ''), // 如果是选项卡轮播,不需要走默认样式 // 如果开了滑动置顶,并且开了沉浸式,不需要走传递过来的index,否则的话就用传递过来的index style_img_container: this.propIsCommon ? common_img_computer(new_style.common_style, this.propIndex) : new_content.tabs_top_up == '1' ? background_computer(new_style.common_style) + padding_computer(this.propSpacingCommonStyle, 1, false) + 'box-sizing: border-box;' : '', // 如果是选项卡轮播,不需要走默认样式 tabs_top_style: new_tabs_top_style, @@ -259,9 +261,9 @@ max-width: 100%; } } - .tabs-contents { - max-width: 1600rpx !important; - } + // .tabs-contents { + // max-width: 1600rpx !important; + // } @media only screen and (min-width: 1600rpx) { .tabs-container .tabs-top { left: calc(50% - 400px) !important;