Commit 98ac4745 by 李伟康

修复BUG

1 parent b49988fb
<!--
* @Description: 首页
* @Author: huyue
* @Date: 2024-04-07 14:39:40
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-18 17:08:12
-->
<template> <template>
<view <view
class="container" class="container"
...@@ -97,6 +90,9 @@ ...@@ -97,6 +90,9 @@
src="../../assets/images/home/start.webp" src="../../assets/images/home/start.webp"
@click="$emit('start')" @click="$emit('start')"
/> />
<!-- <view class="start">
<view class="start-btn"></view>
</view> -->
<!-- <button <!-- <button
class="start" class="start"
@click="start" @click="start"
...@@ -180,7 +176,7 @@ import myClick from "@/mixin/click"; ...@@ -180,7 +176,7 @@ import myClick from "@/mixin/click";
export default { export default {
mixins: [myClick], mixins: [myClick],
components: { KfBox, SettingBox }, components: { KfBox, SettingBox },
props:{ props: {
id: [String, Number], id: [String, Number],
}, },
data () { data () {
...@@ -221,7 +217,7 @@ export default { ...@@ -221,7 +217,7 @@ export default {
previewRef () { previewRef () {
return this.$refs.previewRef return this.$refs.previewRef
}, },
finishRef(){ finishRef () {
return this.$refs.finish return this.$refs.finish
} }
}, },
...@@ -521,10 +517,71 @@ export default { ...@@ -521,10 +517,71 @@ export default {
height: 100vh; height: 100vh;
box-sizing: border-box; box-sizing: border-box;
} }
@keyframes moveAround {
0%,
100% {
top: 0;
left: 0;
transform: translateX(0);
}
10%,
90% {
/* 调整这些百分比以适应长边移动 */
top: 0;
left: calc(100% - 20px);
transform: translateX(calc(100% - 20px));
}
50% {
top: calc(100% - 20px);
left: calc(100% - 20px);
transform: translateY(calc(100% - 20px)) translateX(calc(100% - 20px));
}
40%,
60% {
/* 调整这些百分比以适应短边移动 */
top: calc(100% - 20px);
left: 0;
transform: translateY(calc(100% - 20px)) translateX(0);
}
}
/* 动态计算动画时长以匹配长宽比 */
.start[data-long="true"] {
--duration: calc(12s * (var(--width) / var(--height)));
}
.start[data-long="false"] {
--duration: 6s; /* 或者任何适合短边动画时长 */
}
.start { .start {
// border-radius: 48rpx;
// border: 4rpx solid #fff;
// box-sizing: border-box;
// position: relative;
// overflow: hidden;
&::after {
content: "";
position: absolute;
width: 20rpx;
height: 20rpx;
background-color: white; /* 光环内部的颜色,可以根据需要调整 */
border-radius: 50%; /* 如果希望是圆形光环,则设置为50%以形成圆形 */
box-shadow: 0 0 40rpx 40rpx rgba(255, 255, 255, 0.5),
/* 外发光,白色半透明 */ 0 0 30px 30px rgba(255, 255, 255, 0.3); /* 可以叠加多层以增强效果 */
animation: moveAround var(--duration) ease-in-out infinite;
}
&-btn {
position: absolute;
width: calc(100% - 24rpx);
height: calc(100% - 24rpx);
background-image: linear-gradient(to bottom, #48a6ff 0%, #2c66f7 100%);
border-radius: 48rpx;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
width: calc(100% - 64rpx); width: calc(100% - 64rpx);
height: 336rpx; height: 336rpx;
vertical-align: top; vertical-align: top;
// display: flex; // display: flex;
// justify-content: center; // justify-content: center;
// align-items: center; // align-items: center;
......
...@@ -64,10 +64,9 @@ export default { ...@@ -64,10 +64,9 @@ export default {
}, },
data () { data () {
return { return {
show: true, show: true
} }
}, },
methods: { methods: {
hide () { hide () {
this.show = true this.show = true
......
const target = ["ip", "dev", "uat", "prod", "beta"]; const target = ["ip", "dev", "uat", "prod", "beta"];
const index = 2; const index = 1;
/** /**
* *
0本地 0本地
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<template v-if="type != 'preview'"> <template v-if="type != 'preview'">
<tool-box <tool-box
ref="toolRef" ref="toolRef"
:data="media" :data="toolList"
:type="type" :type="type"
@choose="choose" @choose="choose"
@finish="open" @finish="open"
...@@ -66,6 +66,7 @@ import { mapMutations } from "vuex"; ...@@ -66,6 +66,7 @@ import { mapMutations } from "vuex";
import invitation from "./invitation.vue"; import invitation from "./invitation.vue";
import Case from "./case.vue"; import Case from "./case.vue";
import history from "./history.vue"; import history from "./history.vue";
import utils from "@/utils/utils";
export default { export default {
components: { components: {
ToolBox, ToolBox,
...@@ -100,6 +101,11 @@ export default { ...@@ -100,6 +101,11 @@ export default {
watchStatus () { watchStatus () {
return this.$store.state.user.historyStatus; return this.$store.state.user.historyStatus;
}, },
toolList(){
return JSON.parse(JSON.stringify(this.media)).sort(function (a, b) {
return a.shortSort - b.shortSort
})
}
}, },
mounted () { }, mounted () { },
methods: { methods: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!