Commit 5b044d83 by 胡悦

告知书添加动画

1 parent 34405dea
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
<view class="carType"> <view class="carType">
<image <image
:src="carImg" :src="carImg"
class="img" class="img slide-bl"
:key="imgKey"
/> />
</view> </view>
<view class="title"> <view class="title">
...@@ -123,7 +124,8 @@ export default { ...@@ -123,7 +124,8 @@ export default {
}, },
], ],
customerInfo: {}, customerInfo: {},
focusIndex: -1 focusIndex: -1,
imgKey: Date.now(),
} }
}, },
watch: { watch: {
...@@ -157,7 +159,7 @@ export default { ...@@ -157,7 +159,7 @@ export default {
inputCustomer () { inputCustomer () {
this.$store.dispatch('setCustomerInfo', this.customerInfo) this.$store.dispatch('setCustomerInfo', this.customerInfo)
}, },
handleSelect (item, popkey) { handleSelect(item, popkey) {
this.$refs[popkey].close() this.$refs[popkey].close()
if (popkey == 'employeeBoxVisible') { if (popkey == 'employeeBoxVisible') {
this.customerInfo.salesUuid = item.uuid this.customerInfo.salesUuid = item.uuid
...@@ -166,6 +168,7 @@ export default { ...@@ -166,6 +168,7 @@ export default {
this.$refs.carBrandListVisible.close() this.$refs.carBrandListVisible.close()
this.customerInfo.carModel = item.name this.customerInfo.carModel = item.name
} }
this.imgKey = Date.now()
this.resetFocusIndex() this.resetFocusIndex()
this.$store.dispatch('setCustomerInfo', this.customerInfo) this.$store.dispatch('setCustomerInfo', this.customerInfo)
}, },
...@@ -301,4 +304,50 @@ export default { ...@@ -301,4 +304,50 @@ export default {
} }
} }
} }
// 车动画
/* ----------------------------------------------
* Generated by Animista on 2024-6-26 14:45:52
* Licensed under FreeBSD License.
* See http://animista.net/license for more info.
* w: http://animista.net, t: @cssanimista
* ---------------------------------------------- */
/**
* ----------------------------------------
* animation slide-bl
* ----------------------------------------
*/
@-webkit-keyframes slide-bl {
0% {
-webkit-transform: translateY(-100%) translateX(-100%);
transform: translateY(-100%) translateX(-100%);
opacity: 0.2;
filter: blur(0.5px);
}
100% {
-webkit-transform: translateY(0) translateX(0);
transform: translateY(0) translateX(0);
opacity: 1;
filter: blur(0);
}
}
@keyframes slide-bl {
0% {
-webkit-transform: translateY(-100%) translateX(100%) scale(0.5);
transform: translateY(-100%) translateX(100%) scale(0.5);
opacity: 0.2;
filter: blur(0.5px);
}
100% {
-webkit-transform: translateY(0) translateX(0);
transform: translateY(0) translateX(0);
opacity: 1;
filter: blur(0);
}
}
.slide-bl {
-webkit-animation: slide-bl 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
animation: slide-bl 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!