Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cdsf-wx-app
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
cdsf-wx-app
Commits
44f23e7f
Commit
44f23e7f
authored
Oct 11, 2018
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 'test'
Develop See merge request
!1
parents
01d35f28
77a591b2
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
8 deletions
+14
-8
ImagePicker.js
src/components/Input/ImagePicker/ImagePicker.js
+1
-0
App.js
src/containers/App.js
+4
-4
Index.js
src/containers/Home/Index.js
+4
-4
Login.js
src/containers/Login/Login.js
+1
-0
style.css
src/containers/Repair/components/style.css
+4
-0
No files found.
src/components/Input/ImagePicker/ImagePicker.js
View file @
44f23e7f
...
...
@@ -96,6 +96,7 @@ class ImagePicker extends Component {
const
{
aspectRatio
}
=
this
.
state
;
const
ctx
=
this
.
canvas
.
getContext
(
'2d'
);
const
fileUrl
=
this
.
createObjectURL
(
file
);
ctx
.
clearRect
(
0
,
0
,
590
,
334
);
const
img
=
new
Image
();
img
.
onload
=
()
=>
{
console
.
log
(
img
.
width
,
img
.
height
);
...
...
src/containers/App.js
View file @
44f23e7f
...
...
@@ -132,23 +132,23 @@ class App extends Component {
<
Route
path
=
"/publicCar"
render
=
{
props
=>
this
.
validateUserinfo
(
props
,
'CS
XY
0003'
,
PublicCar
)
this
.
validateUserinfo
(
props
,
'CS
HQ
0003'
,
PublicCar
)
}
/
>
<
Route
path
=
"/publicCarDeal"
render
=
{
props
=>
this
.
validateUserinfo
(
props
,
'CS
XY
0004'
,
PublicCarDeal
)
this
.
validateUserinfo
(
props
,
'CS
HQ
0004'
,
PublicCarDeal
)
}
/
>
<
Route
path
=
"/Repair"
render
=
{
props
=>
this
.
validateUserinfo
(
props
,
'CS
XY
0001'
,
Repair
)}
render
=
{
props
=>
this
.
validateUserinfo
(
props
,
'CS
HQ
0001'
,
Repair
)}
/
>
<
Route
path
=
"/RepairDeal"
render
=
{
props
=>
this
.
validateUserinfo
(
props
,
'CS
XY
0002'
,
RepairDeal
)
this
.
validateUserinfo
(
props
,
'CS
HQ
0002'
,
RepairDeal
)
}
/
>
<
Route
component
=
{
NoMatch
}
/
>
...
...
src/containers/Home/Index.js
View file @
44f23e7f
...
...
@@ -36,25 +36,25 @@ export class Index extends React.Component {
<
div
className
=
{
styles
.
iconBox
}
>
<
div
className
=
{
styles
.
iconItem
}
onClick
=
{()
=>
this
.
validate
(
'CS
XY
0001'
,
'/Repair'
)}
onClick
=
{()
=>
this
.
validate
(
'CS
HQ
0001'
,
'/Repair'
)}
>
<
img
src
=
{
repairIcon
}
alt
=
""
/>
<
/div
>
<
div
className
=
{
styles
.
iconItem
}
onClick
=
{()
=>
this
.
validate
(
'CS
XY
0003'
,
'/publicCar'
)}
onClick
=
{()
=>
this
.
validate
(
'CS
HQ
0003'
,
'/publicCar'
)}
>
<
img
src
=
{
publicCarIcon
}
alt
=
""
/>
<
/div
>
<
div
className
=
{
styles
.
iconItem
}
onClick
=
{()
=>
this
.
validate
(
'CS
XY
0002'
,
'/RepairDeal'
)}
onClick
=
{()
=>
this
.
validate
(
'CS
HQ
0002'
,
'/RepairDeal'
)}
>
<
img
src
=
{
repairDealIcon
}
alt
=
""
/>
<
/div
>
<
div
className
=
{
styles
.
iconItem
}
onClick
=
{()
=>
this
.
validate
(
'CS
XY
0004'
,
'/publicCarDeal'
)}
onClick
=
{()
=>
this
.
validate
(
'CS
HQ
0004'
,
'/publicCarDeal'
)}
>
<
img
src
=
{
publicCarDealIcon
}
alt
=
""
/>
<
/div
>
...
...
src/containers/Login/Login.js
View file @
44f23e7f
...
...
@@ -130,6 +130,7 @@ class Login extends Component {
})
.
catch
(
err
=>
{
console
.
log
(
err
);
Toast
.
fail
(
err
.
msg
||
'登陆失败!'
);
});
};
...
...
src/containers/Repair/components/style.css
View file @
44f23e7f
...
...
@@ -70,6 +70,10 @@
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
}
.listValueMutLine
{
white-space
:
pre-wrap
;
word-break
:
break-all
;
}
.listLabel
{
white-space
:
nowrap
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment