From 08897690839edae6546d56661c95d78629f70ecb Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期五, 21 五月 2021 14:04:59 +0800
Subject: [PATCH] 修复全景跟踪bug

---
 src/pages/panoramicView/components/SlideCanvas.vue |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/pages/panoramicView/components/SlideCanvas.vue b/src/pages/panoramicView/components/SlideCanvas.vue
index f8367e9..02bfbcb 100644
--- a/src/pages/panoramicView/components/SlideCanvas.vue
+++ b/src/pages/panoramicView/components/SlideCanvas.vue
@@ -59,39 +59,39 @@
   ],
   watch: {
     cameras: {
-      handler (n, o) {
+      handler(n, o) {
         console.log('slidecanvas cameras', n)
       },
       deep: true
     }
   },
   components: { PolygonCanvas },
-  data () {
+  data() {
     return {
       swiperOption: this.newOption(),
       //mySwiper: {}
     }
   },
   computed: {
-    swiper () {
+    swiper() {
       return this.$refs['cameraSwiper'].swiper
     }
   },
-  mounted () {
+  mounted() {
     //this.mySwiper = this.$refs.sceneSwiper.swiper;
-    console.log(this.swiper)
+    // console.log(this.swiper)
   },
   methods: {
-    refresh (url, cameraId) {
+    refresh(url, cameraId) {
       this.$emit('polygonDataUpdate')
     },
-    getCanvasData (data) {
+    getCanvasData(data) {
       let _this = this;
       savePolygon(data).then(rsp => {
         _this.$emit('polygonDataUpdate')
       });
     },
-    newOption () {
+    newOption() {
       return {
         slidesPerView: 1,
         spaceBetween: 0,
@@ -104,21 +104,21 @@
       }
     },
 
-    pre () {
+    pre() {
       this.swiper.activeIndex--;
       if (this.swiper.activeIndex == -1) {
         this.swiper.activeIndex = this.cameras.length - 1;
       }
       this.swiper.slideTo(this.swiper.activeIndex);
     },
-    next () {
+    next() {
       this.swiper.activeIndex++;
       if (this.swiper.activeIndex == this.cameras.length) {
         this.swiper.activeIndex = 0;
       }
       this.swiper.slideTo(this.swiper.activeIndex);
     },
-    drawBaseImg (id) {
+    drawBaseImg(id) {
       this.$refs[`polygonCanvas_${id}`][0].showModal();
     }
   }
@@ -181,7 +181,7 @@
   b {
     font-size: 14px;
   }
-  .left-fixed{
+  .left-fixed {
     position: absolute;
     left: 0;
     top: -6px;

--
Gitblit v1.8.0