Commit e6840450 by 胡悦

提交

1 parent 9da12dda
......@@ -7,6 +7,7 @@
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -934rpx -480rpx;}
.icon-face-success { width: 96rpx; height: 96rpx; background-position: -1040rpx -480rpx;}
.icon-feedback { width: 32rpx; height: 32rpx; background-position: -556rpx -726rpx;}
.icon-first-nav { width: 464rpx; height: 176rpx; background-position: -722rpx -294rpx;}
.icon-home-active { width: 80rpx; height: 80rpx; background-position: 0rpx -848rpx;}
.icon-home { width: 80rpx; height: 80rpx; background-position: -90rpx -848rpx;}
.icon-icon-addr { width: 32rpx; height: 32rpx; background-position: -598rpx -726rpx;}
......@@ -41,10 +42,9 @@
.icon-scene-0 { width: 96rpx; height: 96rpx; background-position: -1252rpx -480rpx;}
.icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -122rpx -726rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -1376rpx -646rpx;}
.icon-second-nav { width: 480rpx; height: 128rpx; background-position: 0rpx -588rpx;}
.icon-setting { width: 32rpx; height: 32rpx; background-position: -1018rpx -726rpx;}
.icon-store { width: 96rpx; height: 96rpx; background-position: -228rpx -726rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -360rpx -848rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -430rpx -848rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -500rpx -848rpx;}
.icon-first-nav { width: 464rpx; height: 176rpx; background-position: -722rpx -294rpx;}
.icon-second-nav { width: 480rpx; height: 128rpx; background-position: 0rpx -588rpx;}
\ No newline at end of file
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -500rpx -848rpx;}
\ No newline at end of file
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: huyue
* @LastEditTime: 2024-04-10 18:23:43
* @LastEditTime: 2024-05-31 16:07:23
-->
<template>
<view
......@@ -25,7 +25,7 @@
:class="['view', { showView: id == item.id }]"
:key="index"
>
{{id}}
<membranes :id="id"></membranes>
</view>
</template>
<template v-if="type != 'preview'">
......@@ -48,11 +48,13 @@
import ToolBox from "@/components/ToolBox.vue";
import myClick from "@/mixin/click";
import FinishStep from '@/components/FinishStep.vue';
import Membranes from "./membranes.vue";
import { mapMutations } from "vuex";
export default {
components: {
ToolBox,
FinishStep
FinishStep,
Membranes
},
mixins: [myClick],
props: {
......
......@@ -3,17 +3,17 @@
* @Author: huyue
* @Date: 2024-05-30 14:40:39
* @LastEditors: huyue
* @LastEditTime: 2024-05-31 15:14:36
* @LastEditTime: 2024-05-31 16:14:07
-->
<template>
<view>
<view class="bg"></view>
<view class="nav-bar">
<!-- <view class="nav-bar">
<view class="back" @click="back">
<uni-icons type="left" :size="32"></uni-icons>
</view>
<view class="title">膜类专区</view>
</view>
</view> -->
<view class="wrapper">
<view class="wrapper-content">
<view class="first-tab">
......@@ -28,12 +28,18 @@
</view>
</view>
</view>
<image
:src="animationList[firstIndex]"
mode="scaleToFill"
class="img-animate"
:key="firstIndex"
/>
</view>
</template>
<script type="text/ecmascript-6">
export default {
name: '',
name: 'Membranes',
data () {
return {
firstIndex: 0,
......@@ -55,13 +61,13 @@ export default {
}
],
secondIndex: 0,
secondNav: ['车窗膜', '改色膜', '车衣', '天窗冰甲']
secondNav: ['车窗膜', '改色膜', '车衣', '天窗冰甲'],
// animationList: ['m5', 'm7', 'm9']
animationList: [require('@/assets/images/boutique/animation-m5.png'), require('@/assets/images/boutique/animation-m7.png'), require('@/assets/images/boutique/animation-m9.png')]
}
},
mounted() {
this.firstIndex = 0
this.secondIndex = 0
this.findSoureList()
},
methods: {
changeIndex(index, name) {
......@@ -71,6 +77,9 @@ export default {
console.log(1111)
const data = await uni.$api.boutiqueApi.findSoureList({})
console.log(data)
},
back() {
console.log('back')
}
}
}
......@@ -151,7 +160,7 @@ export default {
margin-top: -48rpx;
border-radius: 48rpx;
.second-tab {
display: flex;
display: inline-flex;
background: #F2F2F2;
border-radius: 16rpx;
height: 100%;
......@@ -161,11 +170,33 @@ export default {
padding: 0 48rpx;
&.active {
background-color: #fff;
margin: 4rpx;
margin: 4rpx 0;
border-radius: 16rpx;
height: calc(100% - 8rpx);
display: flex;
align-items: center;
}
}
}
}
}
@keyframes moveAndFade {
0% {
transform: translate(100%, -100%) scale(0.2); /* 移动到右上角并缩小 */
filter: blur(2px); /* 设置模糊 */
opacity: 0;
}
100% {
transform: translate(0, 0) scale(1); /* 移动到正常位置并恢复大小 */
filter: blur(0); /* 清晰 */
opacity: 1;
}
}
.img-animate {
animation: moveAndFade 2s ease-in-out forwards; /* 应用动画,持续时间2秒,缓动函数,停留在最后一帧 */
position: absolute; /* 确保图片可以移动 */
top: 0;
right: 0;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!