fix:修复模板中心预览商品详情页,查看说明,富文本渲染异常

This commit is contained in:
Apple 2022-10-18 14:16:38 +08:00
parent 400a3aba6d
commit ead575916c
1 changed files with 4 additions and 2 deletions

View File

@ -37,7 +37,7 @@ export default class preview extends React.Component {
componentDidUpdate() { componentDidUpdate() {
if(this.props.step == 2){ if(this.props.step == 2){
document.querySelector(".preview-show .goodstemplate").scrollTop = 0; 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; document.querySelector(".preview-show .detailstemplate").scrollTop = 0;
}else{ }else{
document.querySelector("#previewbg").scrollTop = 0; document.querySelector("#previewbg").scrollTop = 0;
@ -275,7 +275,9 @@ export default class preview extends React.Component {
backPrepage={(c) => this.showactivedetail(c)} backPrepage={(c) => this.showactivedetail(c)}
goodsdata={propsData.product_detail} 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} ) : null}
{this.props.step == 4 ? ( {this.props.step == 4 ? (
<Couponreduce templateType={this.props.pageType} detaildata={propsData.product_detail}/> <Couponreduce templateType={this.props.pageType} detaildata={propsData.product_detail}/>