编辑器融入优惠券白名单模板

This commit is contained in:
许红梅 2022-09-13 17:58:55 +08:00
parent ae7369180c
commit 1fa59939a8
3 changed files with 10 additions and 8 deletions

View File

@ -24,7 +24,7 @@ export default class edittemplate extends React.Component{
this.props.detaildata.describe.type==2?<img className="susactive_tip" onClick={this.opendescFn.bind(this)} src={'https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/acticeTextTip.png'}/>:null this.props.detaildata.describe.type==2?<img className="susactive_tip" onClick={this.opendescFn.bind(this)} src={'https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/acticeTextTip.png'}/>:null
} }
{ {
this.props.templateType!=2?<button className="exchangeBtn" style={{background:this.props.detaildata.button_color,color:this.props.detaildata.font_color}}>立即兑换</button>: [1,3].includes(this.props.templateType)?<button className="exchangeBtn" style={{background:this.props.detaildata.button_color,color:this.props.detaildata.font_color}}>立即兑换</button>:
<div className="dflexaj payBtn-view"> <div className="dflexaj payBtn-view">
<div className="coupon-price"> <div className="coupon-price">
<p>0.00</p> <p>0.00</p>

View File

@ -841,6 +841,9 @@ export default class edittemplate extends React.Component {
<RadioButton value={2} disabled={this.state.pagedisable}> <RadioButton value={2} disabled={this.state.pagedisable}>
优惠券 优惠券
</RadioButton> </RadioButton>
<RadioButton value={4} disabled={this.state.pagedisable}>
优惠券白名单
</RadioButton>
</RadioGroup> </RadioGroup>
</div> </div>
{/* 兑换码 */} {/* 兑换码 */}
@ -877,7 +880,7 @@ export default class edittemplate extends React.Component {
) : ( ) : (
<img src={this.state.model.middle_image} id='top' /> <img src={this.state.model.middle_image} id='top' />
)} )}
{this.state.showType == 1 ? ( {[1,4].includes(this.state.showType)? (
<img <img
src={ src={
'https://lsxd-yunshanfu.oss-cn-hangzhou.aliyuncs.com/common_image/20220127/22e5d4c1b1190a0a7bc8db43e1490d67.png' 'https://lsxd-yunshanfu.oss-cn-hangzhou.aliyuncs.com/common_image/20220127/22e5d4c1b1190a0a7bc8db43e1490d67.png'
@ -938,12 +941,12 @@ export default class edittemplate extends React.Component {
</div> </div>
{/* 组件库 */} {/* 组件库 */}
{ {
this.state.showType == 2 && this.state.activeNavStatus == 2 ? <CouponComLib componentName={(c) => this.componentName(c)} /> : null [2,4].includes(this.state.showType) && this.state.activeNavStatus == 2 ? <CouponComLib componentName={(c) => this.componentName(c)} /> : null
} }
</div> </div>
<div className='xj-wrapper' style={{ 'zIndex': '1' }}> <div className='xj-wrapper' style={{ 'zIndex': '1' }}>
<div className={this.state.showType == 2 && this.state.activeNavStatus == 2 ? 'xj-center-small' : 'xj-center'}> <div className={[2,4].includes(this.state.showType)&& this.state.activeNavStatus == 2 ? 'xj-center-small' : 'xj-center'}>
{this.state.activeNavStatus == 1 ? ( {this.state.activeNavStatus == 1 ? (
<div> <div>
<img <img
@ -1047,7 +1050,7 @@ export default class edittemplate extends React.Component {
src={this.state.model.middle_image} src={this.state.model.middle_image}
/> />
)} )}
{this.state.showType == 1 ? ( {[1,4].includes(this.state.showType) ? (
<img <img
src={ src={
'https://lsxd-yunshanfu.oss-cn-hangzhou.aliyuncs.com/common_image/20220127/22e5d4c1b1190a0a7bc8db43e1490d67.png' 'https://lsxd-yunshanfu.oss-cn-hangzhou.aliyuncs.com/common_image/20220127/22e5d4c1b1190a0a7bc8db43e1490d67.png'
@ -1155,8 +1158,7 @@ export default class edittemplate extends React.Component {
<div <div
className='schema-editor-container' className='schema-editor-container'
data-editor-role='XJWebsitePage'> data-editor-role='XJWebsitePage'>
{ {[1,3].includes(this.state.showType)? (
this.state.showType != 2 ? (
<div className='control page-title-control'> <div className='control page-title-control'>
{this.state.activeNavStatus == 1 ? ( {this.state.activeNavStatus == 1 ? (
<h1 style={{ fontSize: '16px' }}>落地页设置</h1> <h1 style={{ fontSize: '16px' }}>落地页设置</h1>

View File

@ -18,7 +18,7 @@ export default class edittemplate extends React.Component{
<img src={'https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png'} className="preBtn"/> <img src={'https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png'} className="preBtn"/>
<img src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/coupon/reduce_pic.png" alt="" className="reduce-pic"/> <img src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/coupon/reduce_pic.png" alt="" className="reduce-pic"/>
{ {
this.props.templateType==2? [2,4].includes(this.props.templateType)?
<div className="dflexaj payBtn-view"> <div className="dflexaj payBtn-view">
<div className="coupon-price"> <div className="coupon-price">
<p>0.00</p> <p>0.00</p>