- {
- goodsConfig.search && goodsConfig.search.iswitch==1 ?
-
-
this.customComponent(e, 'search', 'marketing-sousuolan-', '搜索栏')} className={this.state.selectDom == 'search' ? 'selectBorder' : ''} ref="search">
+ {
+ goodsConfig.search && goodsConfig.search.iswitch == 1 ?
+
this.customComponent(e, 'search', 'marketing-sousuolan-', '搜索栏')} className={this.state.selectDom == 'search' ? 'selectBorder' : ''} ref="search">
+
+
{
!goodsConfig.top_image ?
:
}
{
- goodsConfig.picture && goodsConfig.picture.iswitch==1 ?
this.customComponent(e, 'picture', 'marketing-tupian', '图片')} ref="picture" className={this.state.selectDom == 'picture' ? 'selectBorder' : ''}>
: null
+ goodsConfig.picture && goodsConfig.picture.iswitch == 1 ?
this.customComponent(e, 'picture', 'marketing-tupian', '图片')} ref="picture" className={this.state.selectDom == 'picture' ? 'selectBorder' : ''}>
: null
}
{
- goodsConfig.title && goodsConfig.title.iswitch==1 && goodsConfig.title.comstyle == 1 ?
this.customComponent(e, 'title', 'marketing-fuwenbenkuang', '标题')} ref="title" className={this.state.selectDom == 'title' ? 'selectBorder' : ''}>
{goodsConfig.title.text}
: null
+ goodsConfig.title && goodsConfig.title.iswitch == 1 && goodsConfig.title.comstyle == 1 ?
this.customComponent(e, 'title', 'marketing-fuwenbenkuang', '标题')} ref="title" className={this.state.selectDom == 'title' ? 'selectBorder' : ''}>
{goodsConfig.title.text}
: null
}
{
- goodsConfig.title && goodsConfig.title.iswitch==1 && goodsConfig.title.comstyle == 2 ?
this.customComponent(e, 'title', 'marketing-fuwenbenkuang', '标题')} ref="title" className={this.state.selectDom == 'title' ? 'selectBorder' : ''}>
+ goodsConfig.title && goodsConfig.title.iswitch == 1 && goodsConfig.title.comstyle == 2 ?
this.customComponent(e, 'title', 'marketing-fuwenbenkuang', '标题')} ref="title" className={this.state.selectDom == 'title' ? 'selectBorder' : ''}>
: null
}
{
- goodsConfig.title && goodsConfig.title.iswitch==1 && goodsConfig.title.text || goodsConfig.picture && goodsConfig.picture.iswitch==1 && goodsConfig.picture.img ?
: null
+ goodsConfig.title && goodsConfig.title.iswitch == 1 && goodsConfig.title.text || goodsConfig.picture && goodsConfig.picture.iswitch == 1 && goodsConfig.picture.img ?
: null
}
{
goodsConfig.list == 2 ?
: goodsConfig.list == 3 ?
:
}
+ {
+ goodsConfig.list == 2 ?
: null
+ }
{
goodsConfig.describe.type == 1 ?
: goodsConfig.describe.type == 3 ?
: null
}
{
goodsConfig.describe.type == 2 ?
: null
}
- {
- goodsConfig.list == 2 ?
: null
- }
- {
- goodsConfig.bottomBar && goodsConfig.bottomBar.iswitch==1 ?
this.customComponent(e, 'bottomBar', 'marketing-list', '底部栏')} className={this.state.selectDom == 'bottomBar' ? 'selectBottomBorder' : ''}>
: null
- }
+
+
+ {
+ goodsConfig.bottomBar && goodsConfig.bottomBar.iswitch == 1 ?
this.customComponent(e, 'bottomBar', 'marketing-list', '底部栏')} className={this.state.selectDom == 'bottomBar' ? 'selectBottomBorder' : ''}>
: null
+ }
{
this.state.selectDom ?
{this.state.comName}
diff --git a/src/pages/exchangepage/edittemplate/goodstemplate.less b/src/pages/exchangepage/edittemplate/goodstemplate.less
index 9fab1178..622dda14 100644
--- a/src/pages/exchangepage/edittemplate/goodstemplate.less
+++ b/src/pages/exchangepage/edittemplate/goodstemplate.less
@@ -163,17 +163,16 @@
}
}
- .searchBar {
- width: 80%;
- margin: 2% 15%;
- height: 40px;
- line-height: 40px;
- box-sizing: border-box;
- border: 0;
- border-radius: 20px;
- }
}
-
+.searchBar {
+ width: 80%;
+ margin: 2% 15%;
+ height: 40px;
+ line-height: 40px;
+ box-sizing: border-box;
+ border: 0;
+ border-radius: 20px;
+}
.detailstemplate {
position: relative;
background: #fff;
diff --git a/src/pages/exchangepage/edittemplate/main.less b/src/pages/exchangepage/edittemplate/main.less
index df678e69..3805293f 100644
--- a/src/pages/exchangepage/edittemplate/main.less
+++ b/src/pages/exchangepage/edittemplate/main.less
@@ -577,7 +577,9 @@
}
.goodsList-item {
- .goodstemplate {
+ pointer-events: none;
+ ::-webkit-scrollbar {display:none}
+ .goodstemplate_Xcenter {
transform: scale(0.387);
transform-origin: 0 0;
}
diff --git a/src/pages/exchangepage/template/preview.js b/src/pages/exchangepage/template/preview.js
index 96fd595e..33143f70 100644
--- a/src/pages/exchangepage/template/preview.js
+++ b/src/pages/exchangepage/template/preview.js
@@ -33,7 +33,22 @@ export default class preview extends React.Component {
this.setState({ detailactiveshow: true });
}
componentDidUpdate() {
- document.querySelector("#previewbg").scrollTop = 0;
+ if(this.props.step == 2){
+ document.querySelector(".preview-show .goodstemplate").scrollTop = 0;
+ }else{
+ document.querySelector("#previewbg").scrollTop = 0;
+ }
+
+ }
+ //动态设置容器高度
+ setHeight() {
+ let height = '100%';
+ let searchHeight = 0;
+ let bottomHeight = 0;
+ let goodsConfig = this.props.data.product_list;
+ if (goodsConfig.search && goodsConfig.search.iswitch == 1) searchHeight = '60px';
+ if (goodsConfig.bottomBar && goodsConfig.bottomBar.iswitch == 1) bottomHeight = '50px';
+ return `calc(${height} - ${searchHeight} - ${bottomHeight})`
}
render() {
let propsData = this.props.data;
@@ -120,16 +135,12 @@ export default class preview extends React.Component {
goodsdata={propsData.product_list}
/>
) : (
-
- {goodsConfig.search && goodsConfig.search.iswitch ? (
+
+ {goodsConfig.search && goodsConfig.search.iswitch ? (
) : null}
-
+
+
{!propsData.product_list.top_image ? (
)}
-
+ {propsData.product_list.list == 2 ? (
+
+ ) : null}
{propsData.product_list.describe.type == 1 ? (
) : null}
- {propsData.product_list.list == 2 ? (
-
- ) : null}
- {goodsConfig.bottomBar &&
+
+ {goodsConfig.bottomBar &&
goodsConfig.bottomBar.iswitch &&
naVisual.length > 1 ? (
diff --git a/src/pages/exchangepage/template/preview.less b/src/pages/exchangepage/template/preview.less
index b6591ec3..f7cc8bc1 100644
--- a/src/pages/exchangepage/template/preview.less
+++ b/src/pages/exchangepage/template/preview.less
@@ -173,7 +173,9 @@
width: 90%;
margin: 30px 5%;
}
-
+.previewComponent .preview-show{
+ height: 100%;
+}
.previewComponent .preview-show .bottomactiveTip {
width: 95%;
margin-left: 2.5%;
@@ -187,4 +189,7 @@
}
.previewComponent .preview-show .bottomBtn {
height: 40px;
+}
+.previewComponent .goodstemplate_view{
+ height: 100%;
}
\ No newline at end of file