Commit d3e994b2 authored by 纪泽龙's avatar 纪泽龙

优化一下

parent 1fba2d10
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com * @Author: 纪泽龙 jizelong@qq.com
* @Date: 2025-12-16 11:10:26 * @Date: 2025-12-16 11:10:26
* @LastEditors: 纪泽龙 jizelong@qq.com * @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2026-04-07 09:38:56 * @LastEditTime: 2026-04-14 17:20:18
* @FilePath: /test-ranqi/src/views/Rotate.vue * @FilePath: /test-ranqi/src/views/Rotate.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
background: `url(${item.img}) no-repeat`, background: `url(${item.img}) no-repeat`,
backgroundSsize: '100% 100%;', backgroundSsize: '100% 100%;',
}" }"
@click="$emit('imgClick', item.src)" @click="imgClick(item.src)"
></div> ></div>
<!-- <div class="a"></div> --> <!-- <div class="a"></div> -->
<!-- 地图 --> <!-- 地图 -->
...@@ -83,7 +83,7 @@ export default { ...@@ -83,7 +83,7 @@ export default {
this.rotate(); this.rotate();
}, },
beforeDestroy() { beforeDestroy() {
console.log("离开") console.log("离开");
clearInterval(this.timer); clearInterval(this.timer);
}, },
methods: { methods: {
...@@ -116,6 +116,12 @@ export default { ...@@ -116,6 +116,12 @@ export default {
centerClick() { centerClick() {
this.$emit("centerClick"); this.$emit("centerClick");
this.mouseenter()
},
imgClick(src) {
this.$emit("imgClick", src);
this.mouseenter()
}, },
mouseenter() { mouseenter() {
clearInterval(this.timer); clearInterval(this.timer);
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com * @Author: 纪泽龙 jizelong@qq.com
* @Date: 2026-01-05 10:39:41 * @Date: 2026-01-05 10:39:41
* @LastEditors: 纪泽龙 jizelong@qq.com * @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2026-04-08 10:01:45 * @LastEditTime: 2026-04-14 17:11:45
* @FilePath: /huaxindd-web/src/views/Index/index.vue * @FilePath: /huaxindd-web/src/views/Index/index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -64,9 +64,13 @@ export default { ...@@ -64,9 +64,13 @@ export default {
this.scaleX = window.innerWidth / 1920; this.scaleX = window.innerWidth / 1920;
}, },
methods: { methods: {
imgClick() { imgClick(src) {
// this.$router.push(src); if(src=="index"){
this.currentTabComponent =Ind; this.currentTabComponent = Ind;
return;
}
this.$router.push(src);
// this.currentTabComponent =Ind;
}, },
centerClick() { centerClick() {
this.currentTabComponent = Ind3; this.currentTabComponent = Ind3;
......
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