Преглед на файлове

修改绑定设备传参错误的问题

tremble преди 4 години
родител
ревизия
0c9bbae2a2
променени са 3 файла, в които са добавени 11 реда и са изтрити 9 реда
  1. 2 1
      mobile/src/pages/account/manage/index.vue
  2. 4 2
      pc/src/components/toast/cooperation.vue
  3. 5 6
      pc/src/page/home2/index.vue

+ 2 - 1
mobile/src/pages/account/manage/index.vue

@@ -203,7 +203,8 @@ export default {
   },
   methods: {
     addDevice () {
-      let val = this.selected.id === 4 ? 1 : 0
+      let val = Number(this.selected.id) === 4 ? 1 : 0
+
       this.$toast.showBinding(val, () => {
       })
     },

+ 4 - 2
pc/src/components/toast/cooperation.vue

@@ -83,7 +83,7 @@ export default {
     }
   },
   mounted () {
-    
+
   },
   methods: {
     async unbind () {
@@ -119,7 +119,9 @@ export default {
       // }
       this.lock = false
       let isSelected = !this.selectAll
-      this.auth.forEach(item => item.hasAuth = isSelected)
+      this.auth.forEach(item => {
+        item.hasAuth = isSelected
+      })
     },
     selectItem (item, i) {
       // if (this.cooName) {

+ 5 - 6
pc/src/page/home2/index.vue

@@ -92,7 +92,6 @@
       <div class="cooperation-img"></div>
     </div>
 
-    
   </div>
 </template>
 
@@ -125,7 +124,7 @@ export default {
         img: require('@/assets/images/home/solutions-zhan.png'),
         list: [this.$t('home.plate1Item2Desc1'), this.$t('home.plate1Item2Desc2'), this.$t('home.plate1Item2Desc3'), this.$t('home.plate1Item2Desc4')],
         link: '/conductExhibition'
-      }, 
+      },
       {
         title: this.$t('home.plate1Item3'),
         title_sub: this.$t('home.plate1Item3'),
@@ -215,8 +214,8 @@ export default {
     toMore (item) {
       this.$router.push(item.link)
     },
-    detailVideo() {
-      const videoUrl = this.language === 'zh' ?`https://4d-tjw.oss-cn-shenzhen.aliyuncs.com/4dHouse/%E5%9B%9B%E7%BB%B4%E7%9C%8B%E7%9C%8BPro-%202020-7-22%E7%89%88%E6%9C%AC%288K%29.mp4` : `${this.$cdn}v2/video/4DKanKanPro-en.mp4`
+    detailVideo () {
+      const videoUrl = this.language === 'zh' ? `https://4d-tjw.oss-cn-shenzhen.aliyuncs.com/4dHouse/%E5%9B%9B%E7%BB%B4%E7%9C%8B%E7%9C%8BPro-%202020-7-22%E7%89%88%E6%9C%AC%288K%29.mp4` : `${this.$cdn}v2/video/4DKanKanPro-en.mp4`
       this.$bus.$emit('toggleVideo', { url: videoUrl })
     },
     toNewsLink (link) {
@@ -242,7 +241,7 @@ export default {
     }
   },
   mounted () {
-    this.plate05List = this.language === 'zh' ? News.slice(0,4) : EnNews.slice(0,4)
+    this.plate05List = this.language === 'zh' ? News.slice(0, 4) : EnNews.slice(0, 4)
     let open = this.$route.query.open
     setTimeout(() => {
       if (open && !this.token) {
@@ -255,7 +254,7 @@ export default {
   components: {vcenter,
     slide,
     number,
-    sequence,
+    sequence
   }
 }
 </script>