Commit 28a772b8 by 岑成威

fix: 长图比例修改

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