king
2020-07-01 9a16cb432ed0a597caf9ba78c9dda63ad2134207
src/mob/login/index.jsx
@@ -19,6 +19,7 @@
    card: PropTypes.object,
    editId: PropTypes.any,
    triggerEdit: PropTypes.func,
    updateConfig: PropTypes.func,
    onDoubleClick: PropTypes.func
  }
@@ -98,8 +99,8 @@
    this.props.triggerEdit(element)
  }
  updateContent = () => {
  updateContent = (card) => {
    this.props.updateConfig(card)
  }
  render () {
@@ -110,10 +111,11 @@
    return (
      <div className="mob-login" onClick={this.editBox} style={{paddingTop: `calc(17vh - 10px)`}}>
        <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>
        <div className={'plat-name ' + (editId === card.title.uuid ? 'editing' : '')} onClick={this.editTitle}>
          {editId === card.title.uuid ? <ContentUpdate element={card.title} updateContent={this.updateContent}/> : null}
          <ContentUpdate element={card.title} updateContent={(ele) => this.updateContent({...card, title: ele})}/>
          {card.title.content}
        </div>
        <InputItem
@@ -149,6 +151,7 @@
        </div>
        <Button type="primary" onDoubleClick={() => this.props.doubleClickCard(card.login)}>登录</Button>
        <div className={'company-msg ' + (editId === card.copyright.uuid ? 'editing' : '')} onClick={this.editMsg}>
          <ContentUpdate element={card.copyright} updateContent={(ele) => this.updateContent({...card, copyright: ele})}/>
          <p>{card.copyright.content}</p>
        </div>
      </div>