Commit 6675c89b by 胡悦

提交

1 parent 9e9c5ad0
<template>
<view class="layout">
<wnCanvas :drawStatus="penSwitch" :canvasId="`c-${madiaId}`" custom>
<template slot="customContent">
<view class="title">{{ title }}</view>
<view class="container">
<view class="container-left">
<view v-for="item in list" :key="item.name" class="item" :style="item.style">
<image :src="item.detailUrl" mode="widthFix" class="item-image" />
<view class="item-text">{{item.name}}</view>
</view>
<!-- <view style="width: 284rpx; height:498rpx;">
<image src="https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-1.webp" mode="widthFix" class="item-image" />
<view class="item-text">冷却系统</view>
</view>
<view style="width: 582rpx; height:330rpx;">
<image src="https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-2.webp" mode="widthFix" class="item-image" />
</view>
<view style="width: 288rpx; height:330rpx;">
<image src="https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-3.webp" mode="widthFix" class="item-image" />
</view>
<view style="width: 584rpx; height:330rpx;">
<image src="https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-4.webp" mode="widthFix" class="item-image" />
</view> -->
</view>
<view class="container-right">
<image src="https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-15.webp" mode="widthFix" class="serice-image" />
</view>
</view>
</template>
</wnCanvas>
</view>
</template>
<script>
const list = [
{
name: "冷却系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-1.webp",
style: 'width: 284rpx;height: 498rpx;'
},
{
name: "悬挂系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-2.webp",
style: 'width: 582rpx;height: 330rpx;'
},
{
name: "制动系统",
detailUrl: "https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-3.webp",
style: 'width: 288rpx;height: 330rpx;'
},
{
name: "灯光照明系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-4.webp",
style: 'width: 584rpx;height: 330rpx;'
},
{
name: "安全气囊系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-5.webp",
style: 'width: 284rpx;height: 330rpx;'
},
{
name: "空调系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-6.webp",
style: 'width: 286rpx;height: 498rpx;'
},
{
name: "电气系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-7.webp",
style: 'width: 584rpx;height: 498rpx;'
},
{
name: "传动系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-8.webp",
style: 'width: 284rpx;height: 242rpx;'
},
{
name: "转向系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-9.webp",
style: 'width: 284rpx;height: 242rpx;'
},
{
name: "智能辅助系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-10.webp",
style: 'width: 584rpx;height: 240rpx;'
},
{
name: "增程器",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-11.webp",
style: 'width: 586rpx;height: 332rpx;'
},
{
name: "舒适系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-12.webp",
style: 'width: 284rpx;height: 332rpx;'
},
{
name: "ABS防抱死制动系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-13.webp",
style: 'width: 582rpx;height: 332rpx;'
},
{
name: "娱乐系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-14.webp",
style: 'width: 286rpx;height: 332rpx;'
},
];
export default {
name: "Guarantee",
props: {
views: Array,
penSwitch: Boolean,
title: String,
madiaId: Number,
},
data() {
return {
viewIndex: 6,
list
};
},
mounted() {
console.log(this.views);
},
};
</script>
<style scoped lang="scss">
.layout {
width: 100vw;
height: 100vh;
position: relative;
background-image: url("@/assets/images/media/media-bg.webp");
background-size: 100%;
.title {
position: absolute;
left: 0;
top: 112rpx;
font-weight: 500;
font-size: 48rpx;
color: #1a1a1a;
letter-spacing: 4rpx;
line-height: 64rpx;
text-align: center;
width: 100%;
z-index: 2;
}
.container {
display: flex;
padding: 248rpx 80rpx 0;
column-gap: 64rpx;
&-left {
position: relative;
// display: flex;
// flex-direction: row;
// flex-wrap: wrap;
// column-count: 4;
// column-gap: 16rpx;
flex: 1;
.item {
float: left;
margin: 6rpx;
}
.item-image {
width: 100%;
}
.item-text {
position: absolute;
left: 24rpx;
bottom: 24rpx;
font-size: 30rpx;
color: #FFFFFF;
line-height: 44rpx;
}
}
&-right {
width: 336rpx;
.serice-image {
width: 336rpx;
height: 280rpx;
}
}
}
}
</style>
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: huyue
* @LastEditTime: 2024-04-10 18:23:43
* @LastEditTime: 2024-06-20 11:39:31
-->
<template>
<view
......@@ -71,6 +71,7 @@ import ToolBox from "@/components/ToolBox.vue";
import Reception from "./components/Reception.vue";
import MediaComponent from "./components/MediaComponent.vue";
import Media_6 from "./components/Media_6.vue";
import Guarantee from './components/Guarantee.vue';
import payPop from "./components/payPop.vue";
import FinishStep from '@/components/FinishStep.vue';
import { mapMutations } from "vuex";
......@@ -81,7 +82,8 @@ export default {
MediaComponent,
Media_6,
payPop,
FinishStep
FinishStep,
Guarantee
},
props: {
id: [String, Number],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!