fix:修复模板中心预览商品详情页,查看说明,富文本渲染异常
This commit is contained in:
parent
400a3aba6d
commit
ead575916c
|
@ -37,7 +37,7 @@ export default class preview extends React.Component {
|
|||
componentDidUpdate() {
|
||||
if(this.props.step == 2){
|
||||
document.querySelector(".preview-show .goodstemplate").scrollTop = 0;
|
||||
}else if(this.props.step == 3){
|
||||
}else if(this.props.step == 3&&!this.state.detailactiveshow){
|
||||
document.querySelector(".preview-show .detailstemplate").scrollTop = 0;
|
||||
}else{
|
||||
document.querySelector("#previewbg").scrollTop = 0;
|
||||
|
@ -275,7 +275,9 @@ export default class preview extends React.Component {
|
|||
backPrepage={(c) => this.showactivedetail(c)}
|
||||
goodsdata={propsData.product_detail}
|
||||
/>
|
||||
) : (<DetailView detaildata={propsData.product_detail} templateType={this.props.pageType} topImgshow={'https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/goodsbigPic.png'} iptImgshow={'https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/viewIpt.png'}/>)
|
||||
) : (<DetailView
|
||||
opendesc={c=>this.opendetaildescFn(c)}
|
||||
detaildata={propsData.product_detail} templateType={this.props.pageType} topImgshow={'https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/goodsbigPic.png'} iptImgshow={'https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/viewIpt.png'}/>)
|
||||
) : null}
|
||||
{this.props.step == 4 ? (
|
||||
<Couponreduce templateType={this.props.pageType} detaildata={propsData.product_detail}/>
|
||||
|
|
Loading…
Reference in New Issue