Commit 44f23e7f by 姜雷

Merge branch 'develop' into 'test'

Develop See merge request !1
parents 01d35f28 77a591b2
...@@ -96,6 +96,7 @@ class ImagePicker extends Component { ...@@ -96,6 +96,7 @@ class ImagePicker extends Component {
const { aspectRatio } = this.state; const { aspectRatio } = this.state;
const ctx = this.canvas.getContext('2d'); const ctx = this.canvas.getContext('2d');
const fileUrl = this.createObjectURL(file); const fileUrl = this.createObjectURL(file);
ctx.clearRect(0, 0, 590, 334);
const img = new Image(); const img = new Image();
img.onload = () => { img.onload = () => {
console.log(img.width, img.height); console.log(img.width, img.height);
......
...@@ -132,23 +132,23 @@ class App extends Component { ...@@ -132,23 +132,23 @@ class App extends Component {
<Route <Route
path="/publicCar" path="/publicCar"
render={props => render={props =>
this.validateUserinfo(props, 'CSXY0003', PublicCar) this.validateUserinfo(props, 'CSHQ0003', PublicCar)
} }
/> />
<Route <Route
path="/publicCarDeal" path="/publicCarDeal"
render={props => render={props =>
this.validateUserinfo(props, 'CSXY0004', PublicCarDeal) this.validateUserinfo(props, 'CSHQ0004', PublicCarDeal)
} }
/> />
<Route <Route
path="/Repair" path="/Repair"
render={props => this.validateUserinfo(props, 'CSXY0001', Repair)} render={props => this.validateUserinfo(props, 'CSHQ0001', Repair)}
/> />
<Route <Route
path="/RepairDeal" path="/RepairDeal"
render={props => render={props =>
this.validateUserinfo(props, 'CSXY0002', RepairDeal) this.validateUserinfo(props, 'CSHQ0002', RepairDeal)
} }
/> />
<Route component={NoMatch} /> <Route component={NoMatch} />
......
...@@ -36,25 +36,25 @@ export class Index extends React.Component { ...@@ -36,25 +36,25 @@ export class Index extends React.Component {
<div className={styles.iconBox}> <div className={styles.iconBox}>
<div <div
className={styles.iconItem} className={styles.iconItem}
onClick={() => this.validate('CSXY0001', '/Repair')} onClick={() => this.validate('CSHQ0001', '/Repair')}
> >
<img src={repairIcon} alt="" /> <img src={repairIcon} alt="" />
</div> </div>
<div <div
className={styles.iconItem} className={styles.iconItem}
onClick={() => this.validate('CSXY0003', '/publicCar')} onClick={() => this.validate('CSHQ0003', '/publicCar')}
> >
<img src={publicCarIcon} alt="" /> <img src={publicCarIcon} alt="" />
</div> </div>
<div <div
className={styles.iconItem} className={styles.iconItem}
onClick={() => this.validate('CSXY0002', '/RepairDeal')} onClick={() => this.validate('CSHQ0002', '/RepairDeal')}
> >
<img src={repairDealIcon} alt="" /> <img src={repairDealIcon} alt="" />
</div> </div>
<div <div
className={styles.iconItem} className={styles.iconItem}
onClick={() => this.validate('CSXY0004', '/publicCarDeal')} onClick={() => this.validate('CSHQ0004', '/publicCarDeal')}
> >
<img src={publicCarDealIcon} alt="" /> <img src={publicCarDealIcon} alt="" />
</div> </div>
......
...@@ -130,6 +130,7 @@ class Login extends Component { ...@@ -130,6 +130,7 @@ class Login extends Component {
}) })
.catch(err => { .catch(err => {
console.log(err); console.log(err);
Toast.fail(err.msg || '登陆失败!');
}); });
}; };
......
...@@ -70,6 +70,10 @@ ...@@ -70,6 +70,10 @@
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.listValueMutLine {
white-space: pre-wrap;
word-break: break-all;
}
.listLabel { .listLabel {
white-space: nowrap; white-space: nowrap;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment