Browse Source

feat: 添加页面跳转

wll8 5 months ago
parent
commit
41c521af1d
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/views/page2/item.vue

+ 6 - 0
src/views/page2/item.vue

@@ -4,6 +4,7 @@
       class="containerBox animated fadeInDown"
       v-for="(item, index) in list"
       :key="index"
+      @click="itemClick(item)"
     >
       <div class="left">
         <p class="title">{{ item.名称 }}</p>
@@ -31,6 +32,11 @@ export default {
     },
   },
   async created() {},
+  methods: {
+    itemClick(item) {
+      window.open(`https://www.gzzzyd.com/tobacco/business/locus?id=${item.id}`)
+    },
+  },
 }
 </script>