|
@@ -110,7 +110,7 @@ function LookLanding(props: Props) {
|
|
<div className={'componentContent'}>
|
|
<div className={'componentContent'}>
|
|
{
|
|
{
|
|
videoUrl && <div className="videoPlay">
|
|
videoUrl && <div className="videoPlay">
|
|
- <VideoNews src={videoUrl} style={{ display: 'block', width: '100%', margin: 0, height: '100%' }} maskImgStyle={{ position: 'absolute', top: '50%', left: '50%', width: 40, height: 40, transform: 'translate(-50%, -50%)', zIndex: 10 }}/>
|
|
|
|
|
|
+ <VideoNews src={videoUrl} style={{ display: 'block', width: '100%', margin: 0, height: '100%' }} maskImgStyle={{ position: 'absolute', top: '50%', left: '50%', width: 40, height: 40, transform: 'translate(-50%, -50%)', zIndex: 10 }} />
|
|
</div>
|
|
</div>
|
|
}
|
|
}
|
|
</div>
|
|
</div>
|
|
@@ -271,6 +271,92 @@ function LookLanding(props: Props) {
|
|
} else {
|
|
} else {
|
|
return null
|
|
return null
|
|
}
|
|
}
|
|
|
|
+ } else if (value?.elementType === 'IMAGE_TEXT') {
|
|
|
|
+ let { imageTextItem, alignMode } = value
|
|
|
|
+ let paddingTop = 28, paddingBottom = 28
|
|
|
|
+ if (imageTextItem.length === 2) {
|
|
|
|
+ return <div className={`compt componentType103}`} key={id}>
|
|
|
|
+ <div className={'componentWrap'}>
|
|
|
|
+ <div className={'componentContent'}>
|
|
|
|
+ <div className='shelf gridType' style={{ marginTop: paddingTop / 2 + 'px', marginBottom: paddingBottom / 2 + 'px', marginLeft: 20 }}>
|
|
|
|
+ {imageTextItem?.map((item: any, index1: number) => {
|
|
|
|
+ let { bgColor, borderColor, desc, descColor, imageUrl, title, titleColor, subElemType } = item
|
|
|
|
+ let key = 'ghSpec'
|
|
|
|
+ if (subElemType === 'GH') {
|
|
|
|
+ key = 'ghSpec'
|
|
|
|
+ } else {
|
|
|
|
+ key = 'enterpriseWxSpec'
|
|
|
|
+ }
|
|
|
|
+ let { btnTitle, btnBgColorTheme, btnBorderColorTheme, fontColor, btnFontType } = item[key]
|
|
|
|
+ return <div className='shelfItem-3q' key={index1} style={{ borderWidth: 1, borderStyle: 'solid', borderColor: borderColor, backgroundColor: bgColor || 'rgb(255,255,255)', marginLeft: index1 === 1 ? 11 : 0 }}>
|
|
|
|
+ <div className='shelfItemImg' style={{ marginLeft: 5.5, marginTop: 5.5 }}>
|
|
|
|
+ {imageUrl ? <img src={imageUrl} style={{ display: 'flex', width: '100%', height: '100%' }} /> : <div className="default" style={{ display: 'flex', justifyContent: 'center', alignItems: 'center' }}>
|
|
|
|
+ <div className={'defaultIcon'} style={{ width: 36, height: 36 }}>
|
|
|
|
+ <Img />
|
|
|
|
+ </div>
|
|
|
|
+ </div>}
|
|
|
|
+ </div>
|
|
|
|
+ <div className='shelfItemContent' style={{ padding: '0 12px', boxSizing: 'border-box', textAlign: alignMode === 0 ? 'left' : 'center' }}>
|
|
|
|
+ <p className='title' style={{ color: titleColor || 'rgb(53, 53, 53)', fontSize: 16, marginBottom: 4 }}>{title || '标题'}</p>
|
|
|
|
+ <p className='desc' style={{ color: descColor || 'rgb(178, 178, 178)', marginBottom: 14 }}>{desc || '描述'}</p>
|
|
|
|
+ <p className='btn' style={{
|
|
|
|
+ textDecoration: 'none',
|
|
|
|
+ fontWeight: btnFontType == '1' ? 'bold' : 400,
|
|
|
|
+ color: fontColor || 'rgb(255, 255, 255)',
|
|
|
|
+ backgroundColor: btnBgColorTheme || 'rgb(7,193,96)',
|
|
|
|
+ borderStyle: 'solid',
|
|
|
|
+ borderColor: '#FFFFFF', //btnBorderColorTheme,
|
|
|
|
+ borderRadius: 4
|
|
|
|
+ }}>{btnTitle}</p>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ })}
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ } else {
|
|
|
|
+ let { bgColor, borderColor, desc, descColor, imageUrl, title, titleColor, subElemType } = imageTextItem[0]
|
|
|
|
+ let key = 'ghSpec'
|
|
|
|
+ if (subElemType === 'GH') {
|
|
|
|
+ key = 'ghSpec'
|
|
|
|
+ } else {
|
|
|
|
+ key = 'enterpriseWxSpec'
|
|
|
|
+ }
|
|
|
|
+ let { btnTitle, btnBgColorTheme, btnBorderColorTheme, fontColor, btnFontType } = imageTextItem[0][key]
|
|
|
|
+ return <div className={`compt componentType104`} key={id}>
|
|
|
|
+ <div className={'componentWrap'}>
|
|
|
|
+ <div className={'componentContent'}>
|
|
|
|
+ <div className={'shelf listType'} style={{ marginTop: paddingTop / 2 + 'px', marginBottom: paddingBottom / 2 + 'px', marginLeft: 20, marginRight: 20 }}>
|
|
|
|
+ <div className={'shelfItem'} style={{ border: `1px solid ${borderColor || "#e5e5e5"}`, backgroundColor: bgColor || "#ffffff" }}>
|
|
|
|
+ <div className={'shelfItemImg'} style={{ marginLeft: 11.5, marginTop: 11.5 }}>
|
|
|
|
+ {imageUrl ? <img src={imageUrl} style={{ display: 'flex', width: '100%', height: '100%' }} /> : <div className={'default'} style={{ width: '100%', height: '100%' }}>
|
|
|
|
+ <div className={'defaultIcon'} style={{ marginTop: 27, width: 36, height: 36 }}>
|
|
|
|
+ <Img />
|
|
|
|
+ </div>
|
|
|
|
+ </div>}
|
|
|
|
+ </div>
|
|
|
|
+ <div className={'shelfItemContent'} style={{ margin: '12px 20px 0 12px' }}>
|
|
|
|
+ <p className={'title'} style={{ color: titleColor || "#353535", fontSize: 16 }}>{title || '标题'}</p>
|
|
|
|
+ <p className={'desc'} style={{ color: descColor || "#B2B2B2" }}>{desc || '描述'}</p>
|
|
|
|
+ <div
|
|
|
|
+ className={'btn'}
|
|
|
|
+ style={{
|
|
|
|
+ color: fontColor || 'rgb(255, 255, 255)',
|
|
|
|
+ textDecoration: 'none',
|
|
|
|
+ fontWeight: btnFontType == '1' ? 'bold' : 'normal',
|
|
|
|
+ backgroundColor: btnBgColorTheme || "#07C160",
|
|
|
|
+ border: ['#FFFFFF', '#ffffff', 'rgb(255, 255, 255)'].indexOf(btnBorderColorTheme) !== -1 ? '0px solid rgb(255, 255, 255)' : `2px solid ${btnBorderColorTheme}`,
|
|
|
|
+ borderRadius: 4
|
|
|
|
+ }}
|
|
|
|
+ >{btnTitle}</div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
return null
|
|
return null
|
|
}
|
|
}
|