Commit d1cfa3fd authored by 朱国瑞's avatar 朱国瑞

代码优化

parent 748b9b11
...@@ -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;
......
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