This commit is contained in:
huangjinming 2023-03-03 13:21:40 +08:00
parent 2c6c61db98
commit 03b2e4eeae
6 changed files with 16 additions and 18 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 306 KiB

After

Width:  |  Height:  |  Size: 690 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 690 KiB

After

Width:  |  Height:  |  Size: 1006 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1006 KiB

View File

@ -17,7 +17,7 @@
v-for="(slideContent, index) in weaponListBig" v-for="(slideContent, index) in weaponListBig"
:key="index" :key="index"
> >
<img :src="weapoName[index].name" alt="" /> <div class="weapon-name" ><img :src="weapoName[index].name" alt="" /></div>
<Weapon3dLoader :filePath="slideContent.url"></Weapon3dLoader> <Weapon3dLoader :filePath="slideContent.url"></Weapon3dLoader>
</SwiperSlide> </SwiperSlide>
</swiper> </swiper>
@ -75,7 +75,7 @@
import { ref, reactive, computed } from "vue"; import { ref, reactive, computed } from "vue";
import { Thumbs, FreeMode, Navigation } from "swiper"; import { Thumbs, FreeMode, Navigation } from "swiper";
import { Swiper, SwiperSlide } from "swiper/vue"; import { Swiper, SwiperSlide } from "swiper/vue";
import Weapon3dLoader from "./Weapon3DLoader.vue"; import Weapon3dLoader from "./WeaponModelLoader.vue";
import "swiper/css"; import "swiper/css";
import "swiper/css/navigation"; import "swiper/css/navigation";
import "swiper/css/thumbs"; import "swiper/css/thumbs";
@ -105,23 +105,17 @@ const weaponListBig = reactive([
const weapoName = reactive([ const weapoName = reactive([
{ {
name: require("@/assets/img/home/weapon/name-7001.png"), name: require("@/assets/img/home/weapon/name-7001.png"),
}, },{
{
name: require("@/assets/img/home/weapon/name-7002.png"), name: require("@/assets/img/home/weapon/name-7002.png"),
}, },{
{
name: require("@/assets/img/home/weapon/name-7003.png"), name: require("@/assets/img/home/weapon/name-7003.png"),
}, }, {
{
name: require("@/assets/img/home/weapon/name-7004.png"), name: require("@/assets/img/home/weapon/name-7004.png"),
}, }, {
{
name: require("@/assets/img/home/weapon/name-7005.png"), name: require("@/assets/img/home/weapon/name-7005.png"),
}, },{
{
name: require("@/assets/img/home/weapon/name-7006.png"), name: require("@/assets/img/home/weapon/name-7006.png"),
}, },{
{
name: require("@/assets/img/home/weapon/name-7007.png"), name: require("@/assets/img/home/weapon/name-7007.png"),
}, },
]); ]);
@ -161,13 +155,16 @@ function test(index, sc) {
.big_weapon { .big_weapon {
width: 1440px; width: 1440px;
// margin-left: 156px; // margin-left: 156px;
height: 500px; height: 600px;
margin: 0 auto; margin: 0 auto;
display: flex; display: flex;
position: relative;
justify-content: center; justify-content: center;
// position: absolute; .weapon-name{
// left: 156px; position: absolute;
// bottom: -460px; left: 100px;
top: 40px;
}
} }
// .weapon_big_image { // .weapon_big_image {
// width:400px; // width:400px;
@ -243,6 +240,7 @@ function test(index, sc) {
} }
.weapon-bg { .weapon-bg {
position: relative; position: relative;
} }
.weapon-bg::before { .weapon-bg::before {
position: absolute; position: absolute;