Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
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
front-end-dev
techbook
Commits
b4466495
Commit
b4466495
authored
Jul 03, 2020
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
需求报错
parent
349c05bc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
6 deletions
+43
-6
exif.js
public/js/exif.js
+0
-0
exif.js
src/common/exif.js
+37
-0
faceCmpt2.vue
src/components/mobile/faceCmpt2.vue
+0
-0
logined.vue
src/views/mobile/logined.vue
+1
-2
reqDetail.vue
src/views/mobile/requirement/reqDetail.vue
+5
-4
No files found.
public/js/exif.js
deleted
100755 → 0
View file @
349c05bc
This diff is collapsed.
Click to expand it.
src/common/exif.js
0 → 100755
View file @
b4466495
import
EXIF
from
'exif-js'
export
default
{
getOrientation
:
(
file
)
=>
{
return
new
Promise
((
resolve
)
=>
{
EXIF
.
getData
(
file
,
function
()
{
const
orient
=
EXIF
.
getTag
(
this
,
'Orientation'
)
resolve
(
orient
)
})
})
},
dataURLtoFile
:
(
dataurl
,
filename
)
=>
{
const
arr
=
dataurl
.
split
(
','
)
const
mime
=
arr
[
0
].
match
(
/:
(
.*
?)
;/
)[
1
]
const
bstr
=
atob
(
arr
[
1
])
let
n
=
bstr
.
length
let
u8arr
=
new
Uint8Array
(
n
);
while
(
n
--
)
{
u8arr
[
n
]
=
bstr
.
charCodeAt
(
n
);
}
return
new
File
([
u8arr
],
filename
,
{
type
:
mime
});
},
rotateImage
:
(
image
,
width
,
height
)
=>
{
let
canvas
=
document
.
createElement
(
'canvas'
)
let
ctx
=
canvas
.
getContext
(
'2d'
)
ctx
.
save
()
canvas
.
width
=
height
canvas
.
height
=
width
ctx
.
rotate
(
90
*
Math
.
PI
/
180
)
ctx
.
drawImage
(
image
,
0
,
-
height
)
ctx
.
restore
()
return
canvas
.
toDataURL
(
"image/jpeg"
)
},
}
\ No newline at end of file
src/components/mobile/faceCmpt2.vue
0 → 100644
View file @
b4466495
This diff is collapsed.
Click to expand it.
src/views/mobile/logined.vue
View file @
b4466495
...
...
@@ -13,8 +13,7 @@
<page-left
v-show=
"isLeftShow"
:documentFront=
"documentFront"
:pathfrom=
"pathfrom"
></page-left>
</div>
<div
class=
"loginformWrap"
:style=
"
{height:visible?'calc(100vh - 2.2rem)':'calc(100vh - 1rem)'}"
v-if="isMobile==1">
<div
class=
"loginformWrap"
:style=
"
{height:visible?'calc(100vh - 2.2rem)':'calc(100vh - 1rem)'}" v-if="isMobile==1">
<router-view></router-view>
</div>
<div
class=
"page-content popper-boundaries"
v-if=
"isMobile==0&&!isLeftShow"
>
...
...
src/views/mobile/requirement/reqDetail.vue
View file @
b4466495
...
...
@@ -120,7 +120,8 @@
pathfrom
:
""
,
configVal
:{},
shareVisible
:
false
,
//分享弹框
dialogVisible
:
false
dialogVisible
:
false
,
lang
:
this
.
publicFun
.
getCookie
(
"language"
)
==
"zh-CN"
?
1
:
2
,
}
},
methods
:
{
...
...
@@ -129,7 +130,7 @@
api
.
getCompanyInfoById
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
0
)
{
this
.
companyInfo
=
res
.
result
;
if
(
this
.
$i18n
.
locale
&&
this
.
$i18n
.
locale
==
"en"
){
if
(
this
.
lang
==
2
){
this
.
handleTrans
(
true
);
}
}
else
{
...
...
@@ -247,8 +248,8 @@
};
let
params
=
{
cacheType
:
"demandDetails"
,
from
:
this
.
$i18n
.
locale
&&
this
.
$i18n
.
locale
==
"zh-CN"
?
'en'
:
'zh'
,
to
:
this
.
$i18n
.
locale
&&
this
.
$i18n
.
locale
==
"zh-CN"
?
'zh'
:
'en'
,
from
:
this
.
lang
==
1
?
'en'
:
'zh'
,
to
:
this
.
lang
==
1
?
'zh'
:
'en'
,
transType
:
"baidu"
,
detailId
:
this
.
$route
.
query
.
id
,
isHideInfo
:
this
.
companyInfo
.
isHideInfo
,
...
...
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