Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
breast-feeding-ai-demo-web
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
朱国瑞
breast-feeding-ai-demo-web
Commits
d1cfa3fd
Commit
d1cfa3fd
authored
May 21, 2022
by
朱国瑞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
748b9b11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
index.vue
src/views/index.vue
+9
-1
No files found.
src/views/index.vue
View file @
d1cfa3fd
...
@@ -655,6 +655,7 @@ export default {
...
@@ -655,6 +655,7 @@ export default {
"backUrl"
,
"backUrl"
,
"https://bfai-service-uat.d-lab-services.danone.com/demo/#/complete"
"https://bfai-service-uat.d-lab-services.danone.com/demo/#/complete"
);
);
localStorage
.
setItem
(
"enterUrl"
,
document
.
URL
);
let
url
=
let
url
=
"https://bfai-service-uat.d-lab-services.danone.com/sdk/#/?camera=1&lying=0"
;
"https://bfai-service-uat.d-lab-services.danone.com/sdk/#/?camera=1&lying=0"
;
if
(
openDev
)
{
if
(
openDev
)
{
...
@@ -667,6 +668,13 @@ export default {
...
@@ -667,6 +668,13 @@ export default {
}
}
},
},
created
()
{
created
()
{
document
.
body
.
addEventListener
(
"touchmove"
,
function
(
e
)
{
e
.
preventDefault
();
//阻止默认的处理方式(阻止下拉滑动的效果)
},
{
passive
:
false
}
);
//passive 参数不能省略,用来兼容ios和android
let
{
scale
}
=
getSystemInfo
();
let
{
scale
}
=
getSystemInfo
();
if
(
scale
>
1
&&
scale
<
2
)
{
if
(
scale
>
1
&&
scale
<
2
)
{
this
.
scale
=
1
-
(
scale
-
1
)
/
100
;
this
.
scale
=
1
-
(
scale
-
1
)
/
100
;
...
@@ -838,7 +846,7 @@ export default {
...
@@ -838,7 +846,7 @@ export default {
position
:
absolute
;
position
:
absolute
;
width
:
215px
;
width
:
215px
;
left
:
155px
;
left
:
155px
;
top
:
356px
;
top
:
356px
;
}
}
&
.page_tips_3
{
&
.page_tips_3
{
position
:
absolute
;
position
:
absolute
;
...
...
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