Commit 19e91f69 by 李伟康

commit 提交

1 parent c0339ba0
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -8,7 +8,7 @@
<template>
<view
class="container"
@click="handleTouchStart()"
@click="$emit('handleTouchStart')"
>
<view :class="['home', { show: !id }]">
<view class="bg">
......
<template>
<home-frame>
<home-frame @handleTouchStart="handleTouchStart">
<view
class="module-box"
slot="module"
:key="moduleKey"
>
<template v-for="(i,index) in moduleList">
<view
......@@ -10,12 +11,36 @@
:class="['item',i.type]"
:style="i.style"
>
<template v-if="i.icon">
<image
:src="i.icon"
class="icon"
/>
</template>
<template v-if="i.title">
<view class="title">{{i.title}}</view>
</template>
<template v-if="i.description">
<template v-for="item in i.description">
<view
class="description"
:key="item"
>{{item}}</view>
</template>
</template>
<template v-if="i.bg">
<image
:src="i.bg"
class="bg"
/>
</template>
<template v-if="i.previewImg">
<img
class="preview-img"
:src="i.previewImg.url"
:style="i.previewImg.style"
>
</template>
</view>
</template>
</view>
......@@ -26,10 +51,12 @@
</template>
<script type='text/ecmascript-6'>
import myClick from "@/mixin/click";
import HomeFrame from '../../components/HomeFrame/index.vue'
import RecordList from '../home/components/RecordList.vue';
const caseImgUrl = require('@/assets/images/boutique/case.webp')
export default {
mixins: [myClick],
components: { HomeFrame, RecordList },
name: 'boutique',
data () {
......@@ -37,35 +64,79 @@ export default {
moduleList: [
{
type: 'landscape',
style: 'width:936rpx;background-image: linear-gradient(270deg, #E8F2FF 0%, #E3E9FF 100%);'
style: 'width:936rpx;background-image: linear-gradient(270deg, #E8F2FF 0%, #E3E9FF 100%);',
previewImg: {
url: require('@/assets/images/boutique/preview-1.webp'),
style: 'width: 516rpx;height: 312rpx;'
},
title: '问界·精品加装服务说明',
description: ['精品礼券|汽车贴膜|汽车精品']
},
{
type: 'landscape',
style: 'width:690rpx;'
style: 'width:690rpx;',
previewImg: {
url: require('@/assets/images/boutique/preview-2.webp'),
style: 'width: 400rpx;height: 312rpx;'
},
title: '问界·套餐专区',
description: ['车窗膜|改色膜', '车衣|天窗冰甲']
},
{
type: 'square',
bg: caseImgUrl,
style: 'background:transparent;'
style: 'background:transparent;',
title: '客户案例'
},
{
type: 'vertical',
previewImg: {
url: require('@/assets/images/boutique/preview-4.webp'),
style: 'width: 474rpx;height: 360rpx;'
},
title: '问界·膜类专区',
description: ['侧踏板|底盘护板|座椅腿托', '二排小桌板']
},
{
type: 'vertical'
type: 'vertical',
previewImg: {
url: require('@/assets/images/boutique/preview-5.webp'),
style: 'width: 474rpx;height: 396rpx;'
},
title: '问界·专属精品',
description: ['侧踏板|底盘护板|座椅腿托', '二排小桌板']
},
{
type: 'vertical',
style: 'background-image: linear-gradient(-37deg, #E8F2FF 0%, #E3E9FF 100%);'
previewImg: {
url: require('@/assets/images/boutique/preview-6.webp'),
style: 'width: 474rpx;height: 396rpx;'
},
style: 'background-image: linear-gradient(-37deg, #E8F2FF 0%, #E3E9FF 100%);',
title: '历史成交记录',
description: ['问界M5|问界M7|问界M9']
},
{
type: 'vertical',
style: 'background-image: linear-gradient(-37deg, #E8F2FF 0%, #E3E9FF 100%);'
style: 'background-image: linear-gradient(-37deg, #E8F2FF 0%, #E3E9FF 100%);',
title: '客户邀约记录',
description: ['问界M5|问界M7|问界M9']
}
]
],
moduleKey: Date.now()
}
},
mounted () {
this.moduleList.map((e, index) => {
e.icon = require(`@/assets/images/boutique/${index + 1}.png`)
e.id = index + 1
})
this.moduleKey = Date.now()
},
methods: {
}
......@@ -80,27 +151,61 @@ export default {
padding-top: 44rpx;
.item {
display: flex;
flex-direction: column;
border-radius: 48rpx;
position: relative;
background: #edf4ff;
box-sizing: border-box;
padding: 40rpx 64rpx;
border: 4rpx solid #fff;
.bg {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
vertical-align: top;
z-index: -1;
}
.icon {
width: 64rpx;
height: 64rpx;
}
.title {
font-weight: 500;
font-size: 36rpx;
color: #1a1a1a;
margin: 20rpx 0 8rpx;
}
.description {
font-size: 24rpx;
color: #808291;
line-height: 34rpx;
}
}
.landscape {
height: 312rpx;
.preview-img {
position: absolute;
right: 0;
top: 0;
}
}
.square {
width: 318rpx;
height: 312rpx;
.title {
color: #fff;
}
}
.vertical {
width: 474rpx;
height: 624rpx;
.preview-img {
position: absolute;
left: 0;
bottom: 0;
}
}
}
</style>
\ No newline at end of file
......@@ -16,6 +16,7 @@
:src="i.icon"
class="data-item-bg"
/>
<view class="title">{{dateList[index].text}}</view>
<view class="content">
<view class="total">
<view class="label">{{ i.label }}</view>
......@@ -116,19 +117,16 @@ export default {
dataList: [
{
label: '客户接待数',
title: '今日',
type: 'day',
icon: dayImgUrl
},
{
label: '客户接待数',
title: '本周',
type: 'week',
icon: weekImgUrl
},
{
label: '客户接待数',
title: '本月',
type: 'month',
icon: monthImgUrl
}
......@@ -231,7 +229,6 @@ export default {
let minutes = Math.floor(num / 60) || '0',
seconds = num % 60 || '0'
seconds = seconds < 10 ? `0${seconds}` : seconds
minutes = minutes < 10 ? `0${minutes}` : minutes
return {
minutes,
seconds
......@@ -367,21 +364,39 @@ export default {
display: flex;
gap: 0 60rpx;
// justify-content: space-between;
padding-left: 20rpx;
.data-item {
width: 640rpx;
height: 200rpx;
position: relative;
font-weight: 500;
font-size: 28rpx;
.title {
position: absolute;
left: 28rpx;
top: 8rpx;
z-index: 5;
font-weight: 500;
font-size: 24rpx;
color: #ffffff;
}
&::after {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 32rpx;
content: "";
z-index: -1;
}
.data-item-bg {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: -1;
width: 712rpx;
height: 284rpx;
width: 100%;
height: 100%;
vertical-align: top;
}
.content {
......@@ -391,6 +406,7 @@ export default {
align-items: center;
.total,
.duration {
padding-top: 10rpx;
flex: 1;
.label {
margin-bottom: 16rpx;
......@@ -408,7 +424,7 @@ export default {
}
}
.total {
padding-left: 80rpx;
padding-left: 96rpx;
}
.duration {
......@@ -420,13 +436,22 @@ export default {
}
}
.day {
color: #7C5AFD;
color: #3b73ff;
&::after {
box-shadow: 0 12rpx 24rpx 0 #3b73ff26;
}
}
.week {
color: #3B73FF;
color: #7c5afd;
&::after {
box-shadow: 0 12rpx 24rpx 0 #8258ff26;
}
}
.month {
color: #FF8E43;
color: #ff8e43;
&::after {
box-shadow: 0 12rpx 24rpx 0 #ff8e4326;
}
}
}
.data-tabs-box {
......
......@@ -57,7 +57,7 @@
</view>
</view>
</view>
<view class="right-side">
<view :class="['right-side',{'pl-20':tabIndex == 1}]">
<template v-if="tabIndex == 0">
<view class="right-content">
<!-- 右侧内容 -->
......@@ -768,6 +768,10 @@ export default {
}
}
}
.pl-20{
padding-left: 40rpx;
box-sizing: border-box;
}
.skeleton-box {
position: absolute;
left: 0;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!