king
2020-07-01 9a16cb432ed0a597caf9ba78c9dda63ad2134207
src/mob/login/index.jsx
@@ -6,16 +6,20 @@
import zhCN from '@/locales/zh-CN/mob.js'
import enUS from '@/locales/en-US/mob.js'
// import mklogo from '@/assets/mobimg/mklogo.png'
import ContentUpdate from '@/mob/contupdate'
import './index.scss'
const CheckboxItem = Checkbox.CheckboxItem
// const PlaceHolder = ({ active = false, children}) => (
//   <div>{active ? <div></div> : null}{children}</div>
// )
class MobLogin extends Component {
  static propTpyes = {
    card: PropTypes.object,
    editId: PropTypes.any,
    triggerEdit: PropTypes.func,
    updateConfig: PropTypes.func,
    onDoubleClick: PropTypes.func
  }
@@ -95,17 +99,25 @@
    this.props.triggerEdit(element)
  }
  updateContent = (card) => {
    this.props.updateConfig(card)
  }
  render () {
    const { card, editId } = this.props
    const { getFieldProps } = this.props.form
    const { rember } = this.state
    console.log(editId)
    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}>明科商业智能开放平台</div>
        <div className={'plat-name ' + (editId === card.title.uuid ? 'editing' : '')} onClick={this.editTitle}>
          <ContentUpdate element={card.title} updateContent={(ele) => this.updateContent({...card, title: ele})}/>
          {card.title.content}
        </div>
        <InputItem
          placeholder="UserName"
          prefixListCls="mk-login-item am-list"
@@ -139,7 +151,8 @@
        </div>
        <Button type="primary" onDoubleClick={() => this.props.doubleClickCard(card.login)}>登录</Button>
        <div className={'company-msg ' + (editId === card.copyright.uuid ? 'editing' : '')} onClick={this.editMsg}>
          <p>Copyright©2017  所有相关版权归  北京明科普华信息技术有限公司</p>
          <ContentUpdate element={card.copyright} updateContent={(ele) => this.updateContent({...card, copyright: ele})}/>
          <p>{card.copyright.content}</p>
        </div>
      </div>
    )