Commit f89e3d1a by 胡悦

提交

1 parent c684bdb2
<template>
<uni-popup
ref="partsRef"
type="center"
:mask-click="false"
border-radius="16px 16px 0 0"
>
<view class="pop-wrapper">
<view class="screen-container">
<image
class="screen-image"
src="https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/screen-1.webp"
/>
<view class="feature-container">
<view class="feature-title">{{screenInfo.title}}</view>
<view class="feature-description">{{screenInfo.detail}}</view>
</view>
</view>
<view class="notice-container">
<view class="notice-title">注意事项:</view>{{screenInfo.tips}}
</view>
</view>
<image
@click="close"
class="icon-close"
src="https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/icon-close.webp"
/>
</uni-popup>
</template>
<script>
const SCREEN_INFO = [
{
name: 'control',
title: '中控大屏',
detail: '导航、控制、娱乐、通信、智能助手',
tips: '避免长时间暴晒、液体泼溅、硬物撞击。'
},
{
name: 'compressor',
title: '空调压缩机',
detail: '车内空气制冷、除湿,保持车内外空气循环',
tips: '正确启动和关闭,周期性清理灰尘及更换滤芯。'
},
{
name: 'airSuspension',
title: '空气悬挂',
detail: '提升通过性、驾驶舒适性及操控感',
tips: '避免异物卡阻或频繁调整悬挂高度,及时处理故障报警。'
}
]
export default {
name: 'PartsPop',
data() {
return {
screenInfo: {}
// screenInfo: SCREEN_INFO
}
},
methods: {
show(name) {
console.log(name,'====')
this.screenInfo = SCREEN_INFO.find(item => item.name === name)
console.log(this.screenInfo)
this.$refs.partsRef.open("center");
},
close() {
this.$refs.partsRef.close();
}
}
}
</script>
<style scoped lang="scss">
.pop-wrapper {
position: relative;
background-color: #FFF;
border-radius: 40rpx;
width: 1400rpx;
height: 928rpx;
.screen-container {
width: 100%;
height: 784rpx;
position: relative;
.feature-container {
position: absolute;
bottom: 48rpx;
left: 64rpx;
color: #fff;
.feature-title {
font-weight: 500;
font-size: 40rpx;
}
.feature-description {
font-size: 28rpx;
margin-top: 8rpx;
color: rgba(255, 255, 255, 0.7);
}
}
}
.screen-image {
width: 100%;
height: 100%;
}
.notice-container {
display: flex;
background-color: #fff;
padding: 48rpx 68rpx 56rpx;
font-size: 26rpx;
color: #141414;
border-radius: 0 0 40rpx 40rpx;
.notice-title {
color: #666666;
}
}
}
.icon-close {
position: absolute;
bottom: -140rpx;
left: 50%;
transform: translateX(-50%);
width: 72rpx;
height: 72rpx;
}
</style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!