| | |
| | | const { card } = this.props |
| | | e.stopPropagation() |
| | | let element = { |
| | | ...fromJS(card.logo.style).toJS(), |
| | | componentId: card.uuid, |
| | | uuid: card.logo.uuid, |
| | | items: ['picture'], |
| | | item: fromJS(card.logo).toJS() |
| | | items: [] |
| | | } |
| | | this.props.triggerEdit(element) |
| | | } |
| | |
| | | const { card } = this.props |
| | | e.stopPropagation() |
| | | let element = { |
| | | ...fromJS(card.title.style).toJS(), |
| | | componentId: card.uuid, |
| | | uuid: card.title.uuid, |
| | | items: ['font'], |
| | | item: fromJS(card.title).toJS() |
| | | } |
| | | this.props.triggerEdit(element) |
| | | } |
| | |
| | | const { card } = this.props |
| | | e.stopPropagation() |
| | | let element = { |
| | | ...fromJS(card.copyright.style).toJS(), |
| | | componentId: card.uuid, |
| | | uuid: card.copyright.uuid, |
| | | items: ['font'], |
| | | item: fromJS(card.copyright).toJS() |
| | | } |
| | | this.props.triggerEdit(element) |
| | | } |
| | | |
| | | editLogin = (e) => { |
| | | const { card } = this.props |
| | | e.stopPropagation() |
| | | let element = { |
| | | ...fromJS(card.login.style).toJS(), |
| | | componentId: card.uuid, |
| | | uuid: card.login.uuid, |
| | | items: ['font', 'background'] |
| | | } |
| | | this.props.triggerEdit(element) |
| | | } |
| | |
| | | const { card } = this.props |
| | | e.stopPropagation() |
| | | let element = { |
| | | ...fromJS(card.box.style).toJS(), |
| | | componentId: card.uuid, |
| | | uuid: card.box.uuid, |
| | | items: ['font', 'padding', 'background'], |
| | | item: fromJS(card.box).toJS() |
| | | } |
| | | this.props.triggerEdit(element) |
| | | } |
| | |
| | | const { rember } = this.state |
| | | |
| | | return ( |
| | | <div className="mob-login" onClick={this.editBox} style={{paddingTop: `calc(17vh - 10px)`}}> |
| | | <div className="mob-login" onClick={this.editBox} style={card.box.style}> |
| | | {card.logo ? <div className={'logo ' + (editId === card.logo.uuid ? 'editing' : '')} onClick={this.editLogo}> |
| | | <ContentUpdate element={card.logo} updateContent={(ele) => this.updateContent({...card, logo: ele})}/> |
| | | <img src={card.logo.content} alt=""/> |
| | | </div> : null} |
| | | {card.title ? <div className={'plat-name ' + (editId === card.title.uuid ? 'editing' : '')} onClick={this.editTitle}> |
| | | {card.title ? <div className={'plat-name ' + (editId === card.title.uuid ? 'editing' : '')} style={card.title.style} onClick={this.editTitle}> |
| | | <ContentUpdate element={card.title} updateContent={(ele) => this.updateContent({...card, title: ele})}/> |
| | | {card.title.content} |
| | | </div> : null} |
| | |
| | | <List.Item className="lang">中文简体</List.Item> |
| | | <div className="clear-both"></div> |
| | | </div> |
| | | <Button type="primary" onDoubleClick={() => this.props.doubleClickCard(card.login)}>登录</Button> |
| | | {card.copyright ? <div className={'company-msg ' + (editId === card.copyright.uuid ? 'editing' : '')} onClick={this.editMsg}> |
| | | <Button |
| | | type="primary" |
| | | className={'login ' + (editId === card.login.uuid ? 'editing' : '')} |
| | | onDoubleClick={() => this.props.doubleClickCard(card.login)} |
| | | style={card.login.style} |
| | | onClick={this.editLogin} |
| | | > |
| | | <ContentUpdate element={card.login} deletable={false} updateContent={(ele) => this.updateContent({...card, login: ele})}/> |
| | | {card.login.content} |
| | | </Button> |
| | | {card.copyright ? <div className={'company-msg ' + (editId === card.copyright.uuid ? 'editing' : '')} style={card.copyright.style} onClick={this.editMsg}> |
| | | <ContentUpdate element={card.copyright} updateContent={(ele) => this.updateContent({...card, copyright: ele})}/> |
| | | <p>{card.copyright.content}</p> |
| | | {card.copyright.content} |
| | | </div> : null} |
| | | </div> |
| | | ) |