This commit is contained in:
scout 2024-06-04 16:07:01 +08:00
parent d540794f8c
commit 86ecc40eb3
51 changed files with 107 additions and 29 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

BIN
src/assets/image/bg/1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

BIN
src/assets/image/bg/10.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 KiB

BIN
src/assets/image/bg/11.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

BIN
src/assets/image/bg/12.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 KiB

BIN
src/assets/image/bg/13.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

BIN
src/assets/image/bg/14.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

BIN
src/assets/image/bg/15.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

BIN
src/assets/image/bg/16.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

BIN
src/assets/image/bg/17.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

BIN
src/assets/image/bg/18.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

BIN
src/assets/image/bg/19.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

BIN
src/assets/image/bg/2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

BIN
src/assets/image/bg/20.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

BIN
src/assets/image/bg/21.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

BIN
src/assets/image/bg/22.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

BIN
src/assets/image/bg/23.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

BIN
src/assets/image/bg/24.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 KiB

BIN
src/assets/image/bg/25.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

BIN
src/assets/image/bg/26.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

BIN
src/assets/image/bg/27.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

BIN
src/assets/image/bg/28.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

BIN
src/assets/image/bg/29.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

BIN
src/assets/image/bg/3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 KiB

BIN
src/assets/image/bg/30.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB

BIN
src/assets/image/bg/31.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

BIN
src/assets/image/bg/32.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

BIN
src/assets/image/bg/33.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

BIN
src/assets/image/bg/34.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

BIN
src/assets/image/bg/35.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

BIN
src/assets/image/bg/36.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

BIN
src/assets/image/bg/37.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

BIN
src/assets/image/bg/38.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB

BIN
src/assets/image/bg/39.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB

BIN
src/assets/image/bg/4.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB

BIN
src/assets/image/bg/40.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 KiB

BIN
src/assets/image/bg/41.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

BIN
src/assets/image/bg/42.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

BIN
src/assets/image/bg/5.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

BIN
src/assets/image/bg/6.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

BIN
src/assets/image/bg/7.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

BIN
src/assets/image/bg/8.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

BIN
src/assets/image/bg/9.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 782 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 179 KiB

View File

@ -12,6 +12,7 @@ import {
NFlex, NFlex,
NGrid, NGrid,
NGridItem, NGridItem,
NImage,
NInput, NInput,
NInputNumber, NInputNumber,
NMenu, NMenu,
@ -20,6 +21,7 @@ import {
NPagination, NPagination,
NPopover, NPopover,
NSelect, NSelect,
NSkeleton,
NSpin, NSpin,
NUpload, NUpload,
NUploadDragger, NUploadDragger,
@ -46,7 +48,9 @@ export default boot(({ app }) => {
NMenu, NMenu,
NAvatar, NAvatar,
NDataTable, NDataTable,
NPagination NPagination,
NImage,
NSkeleton
], ],
}); });
app.use(naive); app.use(naive);

View File

@ -5,27 +5,12 @@
<div <div
class="carousel" class="carousel"
:id="'silder' + (index + 1)" :id="'silder' + (index + 1)"
v-for="(item, index) in 7" v-for="(item, index) in images"
> >
<div class="carousel-track-container"> <div class="carousel-track-container">
<ul class="carousel-track" :id="'silder-track' + (index + 1)"> <ul class="carousel-track" :id="'silder-track' + (index + 1)">
<li class="carousel-slide"> <li class="carousel-slide" v-for="(v, i) in item.imgs">
<img src="../assets/image/train.png" /> <img :src="v" />
</li>
<li class="carousel-slide">
<img src="../assets/image/glass.png" />
</li>
<li class="carousel-slide">
<img src="../assets/image/ast.png" />
</li>
<li class="carousel-slide">
<img src="../assets/image/oldman.png" />
</li>
<li class="carousel-slide">
<img src="../assets/image/patato.png" />
</li>
<li class="carousel-slide">
<img src="../assets/image/henshin.png" />
</li> </li>
</ul> </ul>
</div> </div>
@ -494,6 +479,82 @@ const isPwd = ref(true);
const readed = ref(false); const readed = ref(false);
const registType = ref(1); const registType = ref(1);
const isFlipped = ref(false); const isFlipped = ref(false);
const requireImg = (imgPath) => {
return new URL(`../assets/image/bg/${imgPath}`, import.meta.url).href;
};
//
const images = [
{
imgs: [
requireImg("1.jpg"),
requireImg("2.jpg"),
requireImg("3.jpg"),
requireImg("4.jpg"),
requireImg("5.jpg"),
requireImg("6.jpg"),
],
},
{
imgs: [
requireImg("7.jpg"),
requireImg("8.jpg"),
requireImg("9.jpg"),
requireImg("10.jpg"),
requireImg("11.jpg"),
requireImg("12.jpg"),
],
},
{
imgs: [
requireImg("13.jpg"),
requireImg("14.jpg"),
requireImg("15.jpg"),
requireImg("16.jpg"),
requireImg("17.jpg"),
requireImg("18.jpg"),
],
},
{
imgs: [
requireImg("19.jpg"),
requireImg("20.jpg"),
requireImg("21.jpg"),
requireImg("22.jpg"),
requireImg("23.jpg"),
requireImg("24.jpg"),
],
},
{
imgs: [
requireImg("25.jpg"),
requireImg("26.jpg"),
requireImg("27.jpg"),
requireImg("28.jpg"),
requireImg("29.jpg"),
requireImg("30.jpg"),
],
},
{
imgs: [
requireImg("31.jpg"),
requireImg("32.jpg"),
requireImg("33.jpg"),
requireImg("34.jpg"),
requireImg("35.jpg"),
requireImg("36.jpg"),
],
},
{
imgs: [
requireImg("37.jpg"),
requireImg("38.jpg"),
requireImg("39.jpg"),
requireImg("40.jpg"),
requireImg("41.jpg"),
requireImg("42.jpg"),
],
},
];
// //
function startScrolling(carousel, track) { function startScrolling(carousel, track) {
const slides = Array.from(track.children); const slides = Array.from(track.children);

View File

@ -180,6 +180,16 @@
</div> </div>
<div class="model-box"> <div class="model-box">
<div class="row animate__animated animate__bounceIn"> <div class="row animate__animated animate__bounceIn">
<n-skeleton
v-for="(n, index) in 7"
v-if="loading"
:style="{
marginLeft: index === 0 || index === 4 ? '0' : '32px',
marginBottom: '25px',
}"
class="style-box cursor-pointer"
/>
<div <div
class="style-box card cursor-pointer" class="style-box card cursor-pointer"
v-for="(n, index) in modelArr" v-for="(n, index) in modelArr"
@ -191,7 +201,7 @@
marginBottom: '25px', marginBottom: '25px',
}" }"
> >
<img style="width: 100%; height: 100%" :src="n.replaceImg" /> <img style="width: 100%; height: 100%" :src="n.sqImage" />
</div> </div>
<div class="all-box cursor-pointer" @click="openAll"> <div class="all-box cursor-pointer" @click="openAll">
全部模型 全部模型
@ -433,7 +443,7 @@
<script setup> <script setup>
import "animate.css"; import "animate.css";
import { ref, onMounted, onBeforeMount, computed, reactive, watch } from "vue"; import { ref, onMounted, onBeforeMount, computed, reactive, watch } from "vue";
import { ModelApi,UserApi } from "src/api"; import { ModelApi, UserApi } from "src/api";
import { processError, processSuccess } from "../../utils/message"; import { processError, processSuccess } from "../../utils/message";
import moment from "moment"; import moment from "moment";
import { LocalStorage, SessionStorage } from "quasar"; import { LocalStorage, SessionStorage } from "quasar";
@ -443,6 +453,7 @@ import { useRoute, useRouter } from "vue-router";
import img34 from "../../assets/image/ai/34.png"; import img34 from "../../assets/image/ai/34.png";
import img43 from "../../assets/image/ai/43.png"; import img43 from "../../assets/image/ai/43.png";
import img916 from "../../assets/image/ai/169.png"; import img916 from "../../assets/image/ai/169.png";
const loading = ref(false);
const router = useRouter(); const router = useRouter();
const scrollAreaRef = ref(null); const scrollAreaRef = ref(null);
const plane = ref(null); const plane = ref(null);
@ -589,7 +600,7 @@ const closeListModal = () => {
showListModal.value = false; showListModal.value = false;
}; };
// //
const getUserInfo = async() => { const getUserInfo = async () => {
try { try {
await UserApi.getUserInfo().then((res) => { await UserApi.getUserInfo().then((res) => {
if (res.status === 0) { if (res.status === 0) {
@ -602,12 +613,10 @@ const getUserInfo = async() => {
} catch (error) { } catch (error) {
console.error(error); console.error(error);
} }
}; };
// //
const selectedModel = (model) => { const selectedModel = (model) => {
console.log(model,111); console.log(model, 111);
seletedModel.value = model; seletedModel.value = model;
// nowSelectfalse // nowSelectfalse
modelArr.value.forEach((item) => { modelArr.value.forEach((item) => {
@ -644,22 +653,26 @@ const handleChange = (file, List) => {
}; };
// //
const getModelList = async () => { const getModelList = async () => {
loading.value = true;
try { try {
await ModelApi.getModelList({ await ModelApi.getModelList({
page: 1, page: 1,
pageSize: 10, pageSize: 10,
}).then((res) => { }).then((res) => {
if (res.status === 0) { if (res.status === 0) {
loading.value = false;
modelArr.value = res.data.list.slice(0, 7).map((item, index) => ({ modelArr.value = res.data.list.slice(0, 7).map((item, index) => ({
...item, ...item,
nowSelect: index === 0, nowSelect: index === 0,
})); }));
seletedModel.value = modelArr.value[0]; seletedModel.value = modelArr.value[0];
} else { } else {
loading.value = false;
processError(res.msg); processError(res.msg);
} }
}); });
} catch (error) { } catch (error) {
loading.value = false;
console.error(error); console.error(error);
} }
}; };
@ -1037,14 +1050,14 @@ onBeforeMount(() => {
cursor: pointer; cursor: pointer;
:deep(.n-spin-content) { :deep(.n-spin-content) {
height: 100%; height: 100%;
&:hover { &:hover {
transform: scale(1.1); transform: scale(1.1);
transition: transform 0.5s ease-in-out; transition: transform 0.5s ease-in-out;
} }
&:not(:hover) { &:not(:hover) {
transform: scale(1); transform: scale(1);
transition: transform 0.5s ease-in-out; transition: transform 0.5s ease-in-out;
} }
} }
} }
} }