Commit 28a772b8 by 岑成威

fix: 长图比例修改

1 parent ec8c74ec
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
<image <image
:key="viewKey" :key="viewKey"
class="content" class="content"
:mode="isLongImage ? 'widthFix' : undefined"
:src="views[customerInfo.carModelId] || require('@/assets/images/media/nothing.webp')" :src="views[customerInfo.carModelId] || require('@/assets/images/media/nothing.webp')"
/> />
</template> </template>
...@@ -34,6 +35,7 @@ ...@@ -34,6 +35,7 @@
<image <image
v-if="views.detailUrl" v-if="views.detailUrl"
class="content" class="content"
:mode="isLongImage ? 'widthFix' : undefined"
:src="views.detailUrl" :src="views.detailUrl"
/> />
<!-- <image <!-- <image
...@@ -59,7 +61,8 @@ export default { ...@@ -59,7 +61,8 @@ export default {
madiaId: Number, madiaId: Number,
isByd: Boolean, isByd: Boolean,
show: Boolean, show: Boolean,
hasCarBrand: Boolean hasCarBrand: Boolean,
isLongImage: Boolean
}, },
components: { components: {
PageTitle PageTitle
...@@ -90,6 +93,7 @@ export default { ...@@ -90,6 +93,7 @@ export default {
.layout { .layout {
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow: hidden;
&-content { &-content {
height: 100%; height: 100%;
position: relative; position: relative;
......
<template> <template>
<view :class="['layout', { 'byd-layout': isByd }]"> <view :class="['layout', { 'byd-layout': isByd }]">
<wnCanvas <wnCanvas
saveImageType="3" saveImageType="3"
canvasId="c-1" canvasId="c-1"
:drawStatus="penSwitch" :drawStatus="penSwitch"
custom custom
@scale="$emit('scale',$event)" @scale="$emit('scale',$event)"
ref="canvasRef" ref="canvasRef"
> >
<template slot="customContent"> <template slot="customContent">
<view class="layout-content"> <view class="layout-content">
<view class="title flex"> <view class="title flex">
{{title}} {{title}}
</view> </view>
<view class="content"> <view class="content">
<view <view
class="form-box" class="form-box"
:key="watchStatus" :key="watchStatus"
> >
<view class="form"> <view class="form">
<template v-for="(i, index) in formObject"> <template v-for="(i, index) in formObject">
<view <view
:class="['form-item' ,{active:focusIndex == index}]" :class="['form-item' ,{active:focusIndex == index}]"
:key="index" :key="index"
> >
<view class="form-item-box"> <view class="form-item-box">
<template v-if="i.type == 'input'"> <template v-if="i.type == 'input'">
<input <input
:type="i.inputType" :type="i.inputType"
:maxlength="i.maxlength" :maxlength="i.maxlength"
v-model="customerInfo[i.key]" v-model="customerInfo[i.key]"
class="input" class="input"
@input="inputCustomer" @input="inputCustomer"
:placeholder="i.placeholder" :placeholder="i.placeholder"
@focus="focusIndex = index" @focus="focusIndex = index"
@blur="resetFocusIndex" @blur="resetFocusIndex"
/> />
<customer-autocomplete <customer-autocomplete
:showType="i.inputType" :showType="i.inputType"
:searchValue="customerInfo[i.key]" :searchValue="customerInfo[i.key]"
:show="focusIndex == index" :show="focusIndex == index"
@choose="chooseCustomer" @choose="chooseCustomer"
/> />
</template> </template>
<template v-else> <template v-else>
<view <view
:class="['select flex',{placeholderStyle:!customerInfo[i.key]}]" :class="['select flex',{placeholderStyle:!customerInfo[i.key]}]"
@click="showPopup(i.popKey,index)" @click="showPopup(i.popKey,index)"
> >
<view class="value text-hide">{{customerInfo[i.key] ||i.placeholder}}</view> <view class="value text-hide">{{customerInfo[i.key] ||i.placeholder}}</view>
<uni-icons <uni-icons
class="arrow" class="arrow"
type="right" type="right"
:size="16" :size="16"
></uni-icons> ></uni-icons>
</view> </view>
</template> </template>
</view> </view>
</view> </view>
</template> </template>
</view> </view>
</view> </view>
<image <image
class="content-image" class="content-image"
:src="contentUrl()" :mode="isLongImage ? 'widthFix' : undefined"
/> :src="contentUrl()"
</view> />
</view> </view>
</template> </view>
</wnCanvas> </template>
<car-brands </wnCanvas>
ref="carBrandListVisible" <car-brands
@select="handleSelect($event,'carBrandListVisible')" ref="carBrandListVisible"
@close="onBrandClose" @select="handleSelect($event,'carBrandListVisible')"
/> @close="onBrandClose"
</view> />
</template> </view>
</template>
<script type="text/ecmascript-6">
import CarBrands from '@/components/CarBrands.vue' <script type="text/ecmascript-6">
import CustomerAutocomplete from '@/components/CustomerAutocomplete.vue' import CarBrands from '@/components/CarBrands.vue'
export default { import CustomerAutocomplete from '@/components/CustomerAutocomplete.vue'
components: { CarBrands, CustomerAutocomplete }, export default {
props: { components: { CarBrands, CustomerAutocomplete },
penSwitch: Boolean, props: {
show: Boolean, penSwitch: Boolean,
title: String, show: Boolean,
views: [Array, Object], title: String,
aitoCarModelIds: Array, views: [Array, Object],
isByd: Boolean aitoCarModelIds: Array,
}, isByd: Boolean,
name: 'Reception', isLongImage: Boolean
data () { },
return { name: 'Reception',
formObject: [ data () {
{ return {
placeholder: '车主姓名', formObject: [
key: 'customerName', {
type: 'input', placeholder: '车主姓名',
inputType: 'text', key: 'customerName',
maxlength: 50 type: 'input',
}, inputType: 'text',
{ maxlength: 50
placeholder: '车主电话', },
key: 'phoneNumber', {
type: 'input', placeholder: '车主电话',
inputType: 'tel', key: 'phoneNumber',
maxlength: 11 type: 'input',
}, inputType: 'tel',
{ maxlength: 11
placeholder: '品牌车型', },
key: 'carModel', {
type: 'select', placeholder: '品牌车型',
popKey: 'carBrandListVisible' key: 'carModel',
}, type: 'select',
], popKey: 'carBrandListVisible'
customerInfo: {}, },
focusIndex: -1, ],
} customerInfo: {},
}, focusIndex: -1,
watch: { }
watchCustomerInfo: { },
immediate: true, watch: {
handler (newval) { watchCustomerInfo: {
if (newval) this.customerInfo = newval immediate: true,
} handler (newval) {
}, if (newval) this.customerInfo = newval
show: { }
immediate: true, },
handler (n) { show: {
setTimeout(() => { immediate: true,
if (n && !this.customerInfo.carModel && this.isAito) this.$refs.carBrandListVisible.autoSelect() handler (n) {
}, 1e3) setTimeout(() => {
} if (n && !this.customerInfo.carModel && this.isAito) this.$refs.carBrandListVisible.autoSelect()
}, }, 1e3)
}, }
computed: { },
watchCustomerInfo () { },
return this.$store.state.user.customerInfo computed: {
}, watchCustomerInfo () {
watchStatus () { return this.$store.state.user.customerInfo
return this.$store.state.user.historyStatus },
}, watchStatus () {
isAito () { return this.$store.state.user.historyStatus
// 1问界 },
return uni.$storage.get('userInfo').channelType == 1 isAito () {
} // 1问界
}, return uni.$storage.get('userInfo').channelType == 1
methods: { }
inputCustomer () { },
this.$store.dispatch('setCustomerInfo', this.customerInfo) methods: {
}, inputCustomer () {
showPopup (e, index) { this.$store.dispatch('setCustomerInfo', this.customerInfo)
this.focusIndex = index },
if (e === 'carBrandListVisible') this.$emit('brandPopupChange', true) showPopup (e, index) {
this.$refs[e].open() this.focusIndex = index
}, if (e === 'carBrandListVisible') this.$emit('brandPopupChange', true)
closeAllPopup () { this.$refs[e].open()
this.$refs.carBrandListVisible.close() },
this.resetFocusIndex() closeAllPopup () {
this.$emit('brandPopupChange', false) this.$refs.carBrandListVisible.close()
}, this.resetFocusIndex()
onBrandClose () { this.$emit('brandPopupChange', false)
this.resetFocusIndex() },
this.$emit('brandPopupChange', false) onBrandClose () {
}, this.resetFocusIndex()
resetFocusIndex () { this.$emit('brandPopupChange', false)
this.focusIndex = -1 },
}, resetFocusIndex () {
handleSelect (item, popkey) { this.focusIndex = -1
this.$refs[popkey].close() },
if (popkey == 'employeeBoxVisible') { handleSelect (item, popkey) {
this.customerInfo.salesUuid = item.uuid this.$refs[popkey].close()
this.customerInfo.staffName = item.staffName if (popkey == 'employeeBoxVisible') {
} else { this.customerInfo.salesUuid = item.uuid
this.$refs.carBrandListVisible.close() this.customerInfo.staffName = item.staffName
this.customerInfo.carModel = item.name } else {
this.customerInfo.carModelId = item.id this.$refs.carBrandListVisible.close()
} this.customerInfo.carModel = item.name
this.resetFocusIndex() this.customerInfo.carModelId = item.id
this.$emit('brandPopupChange', false) }
this.$store.dispatch('setCustomerInfo', this.customerInfo) this.resetFocusIndex()
}, this.$emit('brandPopupChange', false)
chooseCustomer (e) { this.$store.dispatch('setCustomerInfo', this.customerInfo)
this.customerInfo = { },
...this.customerInfo, chooseCustomer (e) {
phoneNumber: e.ownerPhone, this.customerInfo = {
customerName: e.ownerName, ...this.customerInfo,
} phoneNumber: e.ownerPhone,
uni.$logger.local.info(`从客户档案选择:${JSON.stringify(e)}`) customerName: e.ownerName,
if (e.carModelId) { }
this.customerInfo.carModelId = e.carModelId uni.$logger.local.info(`从客户档案选择:${JSON.stringify(e)}`)
this.customerInfo.carModel = e.brandModel if (e.carModelId) {
this.customerInfo.carBrand = e.carBrand this.customerInfo.carModelId = e.carModelId
this.customerInfo.carBrandId = e.carBrandId this.customerInfo.carModel = e.brandModel
this.customerInfo.oneCarBrand = e.oneCarBrand this.customerInfo.carBrand = e.carBrand
this.customerInfo.oneCarBrandId = e.oneCarBrandId this.customerInfo.carBrandId = e.carBrandId
} this.customerInfo.oneCarBrand = e.oneCarBrand
this.inputCustomer() this.customerInfo.oneCarBrandId = e.oneCarBrandId
}, }
receptionBg () { this.inputCustomer()
let bgUrl = require('@/assets/images/common/home-bg.webp') },
return bgUrl receptionBg () {
}, let bgUrl = require('@/assets/images/common/home-bg.webp')
contentUrl () { return bgUrl
let { views, customerInfo } = this },
return (views.detailUrl ? views.detailUrl : views[customerInfo.carModelId]) || require('@/assets/images/media/nothing.webp') contentUrl () {
} let { views, customerInfo } = this
} return (views.detailUrl ? views.detailUrl : views[customerInfo.carModelId]) || require('@/assets/images/media/nothing.webp')
} }
</script> }
}
<style scoped lang="scss"> </script>
.layout {
width: 100%; <style scoped lang="scss">
height: 100%; .layout {
width: 100%;
background-size: 100%; height: 100%;
&-content { overflow: hidden;
position: relative; background-size: 100%;
height: 100%; &-content {
margin: $margin; position: relative;
} height: 100%;
.title { margin: $margin;
position: fixed; }
left: 0; .title {
top: toRpx(48); position: fixed;
width: 100%; left: 0;
justify-content: center; top: toRpx(48);
z-index: 2; width: 100%;
height: toRpx(96); justify-content: center;
align-items: center; z-index: 2;
font-weight: 500; height: toRpx(96);
font-size: toRpx(36); align-items: center;
color: #1a1a1a; font-weight: 500;
} font-size: toRpx(36);
.content { color: #1a1a1a;
position: relative; }
width: 100%; .content {
height: 100%; position: relative;
.form-box { width: 100%;
height: toRpx(80); height: 100%;
padding: 0 toRpx(110); .form-box {
z-index: 3; height: toRpx(80);
position: absolute; padding: 0 toRpx(110);
left: toRpx(64); z-index: 3;
top: toRpx(168); position: absolute;
padding: 0; left: toRpx(64);
.form { top: toRpx(168);
display: flex; padding: 0;
gap: 0 toRpx(28); .form {
height: 100%; display: flex;
&-item { gap: 0 toRpx(28);
width: toRpx(524); height: 100%;
height: 100%; &-item {
position: relative; width: toRpx(524);
height: 100%;
&-box { position: relative;
position: relative;
width: 100%; &-box {
height: 100%; position: relative;
background: #ffffff; width: 100%;
border: toRpx(3) solid #a8c1ff; height: 100%;
border-radius: toRpx(16); background: #ffffff;
box-sizing: border-box; border: toRpx(3) solid #a8c1ff;
padding: 0 toRpx(24); border-radius: toRpx(16);
z-index: 2; box-sizing: border-box;
} padding: 0 toRpx(24);
.input, z-index: 2;
.select { }
width: 100%; .input,
height: 100%; .select {
border: none !important; width: 100%;
outline: none; height: 100%;
font-size: toRpx(28); border: none !important;
color: #333333; outline: none;
border-radius: toRpx(16); font-size: toRpx(28);
box-sizing: border-box; color: #333333;
line-height: toRpx(80); border-radius: toRpx(16);
padding: 0 !important; box-sizing: border-box;
&::placeholder { line-height: toRpx(80);
color: #999999; padding: 0 !important;
} &::placeholder {
} color: #999999;
.placeholderStyle { }
color: #999999; }
} .placeholderStyle {
.arrow { color: #999999;
color: #999 !important; }
margin-left: auto; .arrow {
flex-shrink: 0; color: #999 !important;
} margin-left: auto;
} flex-shrink: 0;
.active { }
&::after { }
position: absolute; .active {
left: toMinusRpx(2); &::after {
top: toMinusRpx(2); position: absolute;
width: calc(100% + #{toRpx(4)}); left: toMinusRpx(2);
height: calc(100% + #{toRpx(4)}); top: toMinusRpx(2);
content: ''; width: calc(100% + #{toRpx(4)});
background-image: linear-gradient(#2f6af7, #75bcff); height: calc(100% + #{toRpx(4)});
box-shadow: 0 0 0 toRpx(8) #2c66f71a; content: '';
border-radius: toRpx(16); background-image: linear-gradient(#2f6af7, #75bcff);
} box-shadow: 0 0 0 toRpx(8) #2c66f71a;
} border-radius: toRpx(16);
} }
} }
&-image { }
position: absolute; }
width: 100%; &-image {
height: 100%; position: absolute;
z-index: 1; width: 100%;
} height: 100%;
&-bg { z-index: 1;
width: 100vw; }
height: 100vh; &-bg {
position: fixed; width: 100vw;
left: 0; height: 100vh;
top: 0; position: fixed;
} left: 0;
} top: 0;
} }
</style> }
}
</style>
<!-- <!--
* @Description: * @Description:
* @Author: huyue * @Author: huyue
* @Date: 2024-06-24 16:35:00 * @Date: 2024-06-24 16:35:00
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-07-04 16:02:54 * @LastEditTime: 2024-07-04 16:02:54
--> -->
<template> <template>
<view <view
class="layout" class="layout"
:style="detail.pageStyle" :style="detail.pageStyle"
> >
<image <image
class="icon-car" class="icon-car"
:src="detail.carIcon" :src="detail.carIcon"
/> />
<wnCanvas <wnCanvas
:drawStatus="penSwitch" :drawStatus="penSwitch"
:canvasId="`c-${madiaId}`" :canvasId="`c-${madiaId}`"
custom custom
@scale="$emit('scale',$event)" @scale="$emit('scale',$event)"
ref="threeGuarantees" ref="threeGuarantees"
> >
<template slot="customContent"> <template slot="customContent">
<view class="layout-content"> <view class="layout-content">
<view class="title flex">{{title}}</view> <view class="title flex">{{title}}</view>
<view class="container"> <view class="container">
<view class="left-tab"> <view class="left-tab">
<view <view
class="tab-item" class="tab-item"
v-for="item in detail.tabList" v-for="item in detail.tabList"
:key="item.id" :key="item.id"
@click="tabChange(item)" @click="tabChange(item)"
:class="[item.id == activeIndex ? 'active' : '']" :class="[item.id == activeIndex ? 'active' : '']"
>{{item.name}}</view> >{{item.name}}</view>
</view> </view>
<div class="content-bg"></div> <div class="content-bg"></div>
<view class="content"> <view class="content">
<template v-if="detail.viewActiveIndex.includes(activeIndex)"> <template v-if="detail.viewActiveIndex.includes(activeIndex)">
<image <image
:key="imgKey" :key="imgKey"
:class="direction" :class="[direction, { 'content-image-long': isLongImage }]"
class="content-image" class="content-image"
:src="viewsImg()" :mode="isLongImage ? 'widthFix' : undefined"
/> :src="viewsImg()"
/>
<view class="content-tab">
<template v-for="(item,index) in imgIdList"> <view class="content-tab">
<view <template v-for="(item,index) in imgIdList">
:key="index" <view
class="tab-item" :key="index"
@click="tabSwitch(item)" class="tab-item"
></view> @click="tabSwitch(item)"
</template> ></view>
</view> </template>
</template> </view>
<template v-else> </template>
<image <template v-else>
:key="imgKey" <image
:class="direction" :key="imgKey"
class="content-image" :class="[direction, { 'content-image-long': isLongImage }]"
:src="viewsImg()" class="content-image"
/> :mode="isLongImage ? 'widthFix' : undefined"
</template> :src="viewsImg()"
</view> />
</view> </template>
</view> </view>
</template> </view>
</wnCanvas> </view>
</view> </template>
</template> </wnCanvas>
</view>
<script type='text/ecmascript-6'> </template>
export default {
props: { <script type='text/ecmascript-6'>
views: Object, export default {
penSwitch: Boolean, props: {
title: String, views: Object,
madiaId: Number, penSwitch: Boolean,
detail: Object, title: String,
}, madiaId: Number,
name: 'MediaComponent', detail: Object,
data () { isLongImage: Boolean,
return { },
activeIndex: 1, name: 'MediaComponent',
direction: 'bottom', data () {
imgKey: Date.now(), return {
tabIndex: 2 activeIndex: 1,
} direction: 'bottom',
}, imgKey: Date.now(),
computed: { tabIndex: 2
watchStatus () { }
return this.$store.state.user.historyStatus },
}, computed: {
imgIdList () { watchStatus () {
return this.detail.tabList.find(item => item.id == this.activeIndex).imgIdList return this.$store.state.user.historyStatus
} },
}, imgIdList () {
watch: { return this.detail.tabList.find(item => item.id == this.activeIndex).imgIdList
watchStatus () { }
this.activeIndex = this.detail.defultActiveId || 0 },
this.tabIndex = this.detail.defultTabId watch: {
} watchStatus () {
}, this.activeIndex = this.detail.defultActiveId || 0
mounted () { this.tabIndex = this.detail.defultTabId
}, }
methods: { },
tabChange (item) { mounted () {
const { id } = item },
if (this.activeIndex === id) return methods: {
this.direction = '' tabChange (item) {
this.direction = id > this.activeIndex ? 'bottom' : 'top' const { id } = item
this.activeIndex = id if (this.activeIndex === id) return
this.imgKey = Date.now() this.direction = ''
this.$refs.threeGuarantees.clearBoard() this.direction = id > this.activeIndex ? 'bottom' : 'top'
}, this.activeIndex = id
tabSwitch (val) { this.imgKey = Date.now()
if (val == this.tabIndex) return this.$refs.threeGuarantees.clearBoard()
this.tabIndex = val },
this.$refs.threeGuarantees.clearBoard() tabSwitch (val) {
}, if (val == this.tabIndex) return
viewsImg () { this.tabIndex = val
let { activeIndex, tabIndex, detail, views } = this this.$refs.threeGuarantees.clearBoard()
if (detail.viewActiveIndex.includes(activeIndex)) return views[tabIndex] },
return views[activeIndex] viewsImg () {
} let { activeIndex, tabIndex, detail, views } = this
} if (detail.viewActiveIndex.includes(activeIndex)) return views[tabIndex]
} return views[activeIndex]
</script> }
}
<style scoped lang='scss'> }
.layout { </script>
width: 100%;
height: 100%; <style scoped lang='scss'>
position: relative; .layout {
// background-image: url('@/assets/images/media/media-bg.webp'); width: 100%;
background-size: 100%; height: 100%;
&-content { overflow: hidden;
margin: $margin; position: relative;
height: 100%; // background-image: url('@/assets/images/media/media-bg.webp');
position: relative; background-size: 100%;
} &-content {
.title { margin: $margin;
justify-content: center; height: 100%;
position: absolute; position: relative;
height: toRpx(96); }
left: 0; .title {
top: toRpx(48); justify-content: center;
font-weight: 500; position: absolute;
font-size: toRpx(36); height: toRpx(96);
color: #333; left: 0;
text-align: center; top: toRpx(48);
width: 100%; font-weight: 500;
z-index: 2; font-size: toRpx(36);
} color: #333;
.container { text-align: center;
display: flex; width: 100%;
align-items: center; z-index: 2;
padding-top: toRpx(248); }
padding-bottom: toRpx(96); .container {
height: 100%; display: flex;
margin: 0 toRpx(80); align-items: center;
position: relative; padding-top: toRpx(248);
.left-tab { padding-bottom: toRpx(96);
width: toRpx(360); height: 100%;
margin-right: toRpx(48); margin: 0 toRpx(80);
.tab-item { position: relative;
display: flex; .left-tab {
padding: 0 toRpx(76); width: toRpx(360);
box-sizing: border-box; margin-right: toRpx(48);
align-items: center; .tab-item {
// justify-content: center; display: flex;
width: 100%; padding: 0 toRpx(76);
height: toRpx(312); box-sizing: border-box;
background: #f2f5ff; align-items: center;
border: toRpx(4) solid hsl(0, 80%, 100%); // justify-content: center;
box-shadow: inset 0 0 toRpx(16) 0 #ffffff; width: 100%;
border-radius: toRpx(32); height: toRpx(312);
margin-bottom: toRpx(48); background: #f2f5ff;
font-weight: 500; border: toRpx(4) solid hsl(0, 80%, 100%);
font-size: toRpx(40); box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
color: #1a1a1a; border-radius: toRpx(32);
&:last-child { margin-bottom: toRpx(48);
margin-bottom: 0; font-weight: 500;
} font-size: toRpx(40);
&.active { color: #1a1a1a;
color: #fff; &:last-child {
background-image: linear-gradient(180deg, #6795ff 0%, #4a84f9 100%); margin-bottom: 0;
box-shadow: toRpx(32) toRpx(32) toRpx(48) 0 #849dc240, inset 0 0 toRpx(32) 0 #ffffff; }
} &.active {
} color: #fff;
} background-image: linear-gradient(180deg, #6795ff 0%, #4a84f9 100%);
.content-bg { box-shadow: toRpx(32) toRpx(32) toRpx(48) 0 #849dc240, inset 0 0 toRpx(32) 0 #ffffff;
position: absolute; }
right: 0; }
z-index: -1; }
width: toRpx(1778); .content-bg {
height: toRpx(1192); position: absolute;
background-color: rgba(255, 255, 255, 0.4); right: 0;
backdrop-filter: blur(toRpx(8)); z-index: -1;
z-index: 0; width: toRpx(1778);
border-radius: toRpx(64); height: toRpx(1192);
} background-color: rgba(255, 255, 255, 0.4);
.content { backdrop-filter: blur(toRpx(8));
position: relative; z-index: 0;
&-tab { border-radius: toRpx(64);
display: flex; }
position: absolute; .content {
width: 100%; position: relative;
top: 0; &-tab {
height: toRpx(112); display: flex;
z-index: 1; position: absolute;
.tab-item { width: 100%;
width: 50%; top: 0;
height: 100%; height: toRpx(112);
} z-index: 1;
} .tab-item {
} width: 50%;
.content-image { height: 100%;
width: toRpx(1778); }
height: toRpx(1192); }
} }
} .content-image {
.icon-car { width: toRpx(1778);
position: absolute; height: toRpx(1192);
bottom: 0; }
right: 0; .content-image-long {
width: toRpx(952); height: auto;
height: toRpx(248); }
z-index: 2; }
} .icon-car {
} position: absolute;
.top { bottom: 0;
animation: show-view-top 0.5s; right: 0;
} width: toRpx(952);
.bottom { height: toRpx(248);
animation: show-view-bottom 0.3s; z-index: 2;
} }
@keyframes show-view-top { }
0% { .top {
opacity: 0; animation: show-view-top 0.5s;
transform: translateY(toMinusRpx(224)); }
} .bottom {
animation: show-view-bottom 0.3s;
100% { }
opacity: 1; @keyframes show-view-top {
transform: translateY(0); 0% {
} opacity: 0;
} transform: translateY(toMinusRpx(224));
}
@keyframes show-view-bottom {
0% { 100% {
opacity: 0; opacity: 1;
transform: translateY(100%); transform: translateY(0);
} }
}
100% {
opacity: 1; @keyframes show-view-bottom {
transform: translateY(0); 0% {
} opacity: 0;
} transform: translateY(100%);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
:isPreview="isPreview" :isPreview="isPreview"
:isByd="isByd" :isByd="isByd"
:hasCarBrand="item.hasCarBrand" :hasCarBrand="item.hasCarBrand"
:isLongImage="isLongImageItem(item)"
:aitoCarModelIds="aitoCarModelIds" :aitoCarModelIds="aitoCarModelIds"
@brandPopupChange="brandPopupVisible = $event" @brandPopupChange="brandPopupVisible = $event"
/> />
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!