Commit c0339ba0 by 李伟康

commit 提交

1 parent c77bfec5
......@@ -22,6 +22,14 @@
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -1302rpx -588rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -1344rpx -588rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: -722rpx -294rpx;}
.icon-new-addr { width: 32rpx; height: 32rpx; background-position: -1386rpx -588rpx;}
.icon-new-avatar { width: 96rpx; height: 96rpx; background-position: -212rpx -588rpx;}
.icon-new-feedback { width: 64rpx; height: 64rpx; background-position: -442rpx -694rpx;}
.icon-new-home-active { width: 112rpx; height: 112rpx; background-position: -722rpx -464rpx;}
.icon-new-home { width: 112rpx; height: 112rpx; background-position: -844rpx -464rpx;}
.icon-new-record-active { width: 112rpx; height: 112rpx; background-position: -966rpx -464rpx;}
.icon-new-record { width: 112rpx; height: 112rpx; background-position: -1088rpx -464rpx;}
.icon-new-setting { width: 64rpx; height: 64rpx; background-position: -516rpx -694rpx;}
.icon-pen-active { width: 120rpx; height: 120rpx; background-position: -1030rpx -294rpx;}
.icon-pen { width: 120rpx; height: 120rpx; background-position: -1160rpx -294rpx;}
.icon-qw { width: 48rpx; height: 48rpx; background-position: -774rpx -588rpx;}
......@@ -30,19 +38,11 @@
.icon-record-month { width: 712rpx; height: 284rpx; background-position: 0rpx -294rpx;}
.icon-record-week { width: 712rpx; height: 284rpx; background-position: -722rpx 0rpx;}
.icon-record { width: 80rpx; height: 80rpx; background-position: -270rpx -694rpx;}
.icon-setting { width: 32rpx; height: 32rpx; background-position: -1386rpx -588rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -590rpx -694rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -660rpx -694rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -730rpx -694rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -832rpx -588rpx;}
.icon-store { width: 96rpx; height: 96rpx; background-position: -212rpx -588rpx;}
.icon-scene-0 { width: 96rpx; height: 96rpx; background-position: -318rpx -588rpx;}
.icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -424rpx -588rpx;}
.icon-new-home-active { width: 112rpx; height: 112rpx; background-position: -722rpx -464rpx;}
.icon-new-home { width: 112rpx; height: 112rpx; background-position: -844rpx -464rpx;}
.icon-new-record-active { width: 112rpx; height: 112rpx; background-position: -966rpx -464rpx;}
.icon-new-record { width: 112rpx; height: 112rpx; background-position: -1088rpx -464rpx;}
.icon-new-avatar { width: 96rpx; height: 96rpx; background-position: -530rpx -588rpx;}
.icon-new-addr { width: 32rpx; height: 32rpx; background-position: -636rpx -648rpx;}
.icon-new-feedback { width: 64rpx; height: 64rpx; background-position: -442rpx -694rpx;}
.icon-new-setting { width: 64rpx; height: 64rpx; background-position: -516rpx -694rpx;}
\ No newline at end of file
.icon-search { width: 40rpx; height: 40rpx; background-position: -832rpx -588rpx;}
.icon-setting { width: 32rpx; height: 32rpx; background-position: -636rpx -648rpx;}
.icon-store { width: 96rpx; height: 96rpx; background-position: -530rpx -588rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -590rpx -694rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -660rpx -694rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -730rpx -694rpx;}
\ No newline at end of file
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type

1.26 MB | W: | H:

1.26 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -94,7 +94,8 @@
</template>
<image
class="start"
src="@/assets/images/home/start.webp"
src="../../assets/images/home/start.webp"
@click="$emit('start')"
/>
<!-- <button
class="start"
......@@ -109,24 +110,13 @@
<view class="module-list">
<slot name="module" />
</view>
<!-- 未点击开始接待,弹窗 -->
<MessageBox
ref="previewRef"
@cancel="cancel"
@confirm="preview"
:popupW="704"
content="直接点击素材可进行预览,若面向车主展示,请点击「开始接待」"
confirmBtnText="预览素材"
></MessageBox>
</view>
</template>
<template v-else>
<record-list ref="recordRef" />
<slot name="record" />
</template>
<view class="store-addr">
<view class="icon-addr sprite-icon icon-new-addr"></view>
<view class="addr-text">{{ userInfo.shopMerchantName }}</view>
</view>
</view>
......@@ -134,14 +124,25 @@
</view>
<view :class="['detail', { show: id }]">
</view>
<!-- 未点击开始接待,弹窗 -->
<MessageBox
ref="previewRef"
@cancel="$emit('cancel')"
@confirm="$emit('preview')"
:popupW="704"
content="直接点击素材可进行预览,若面向车主展示,请点击「开始接待」"
confirmBtnText="预览素材"
></MessageBox>
<!-- 停留弹框 -->
<MessageBox
ref="tipBox"
@cancel="tipCancel"
@confirm="tipConfirm"
@cancel="$emit('tipCancel')"
@confirm="$emit('tipConfirm')"
content="系统检测到您在当前页面停留较久,是否仍在客户接待中?"
cancelBtnText="否"
confirmBtnText="是"
></MessageBox>
<!-- 退出弹框 -->
<MessageBox
:popupW="704"
ref="finish"
......@@ -151,34 +152,31 @@
<view class="footer">
<view
class="footer-btn confirm flex"
@click="openStep"
@click="$emit('openStep')"
>
完成接待<text>(推荐)</text>
</view>
<view
class="footer-btn cancel flex"
@click="backHome"
@click="$emit('backHome')"
>
仍要退出<text>(不推荐)</text>
</view>
</view>
</MessageBox>
<!-- 升级弹框 -->
<update-box />
<!-- 客服弹框 -->
<kf-box ref="kfRef" />
<novice-guide
@nextStep="nextStep"
@back="back"
/>
<!-- 设置弹框 -->
<setting-box ref="settingRef" />
</view>
</template>
<script>
import KfBox from "./components/KfBox";
import NoviceGuide from "@/components/NoviceGuide.vue";
import RecordList from "./components/RecordList.vue";
import SettingBox from "./components/SettingBox";
export default {
components: { KfBox, NoviceGuide, RecordList, SettingBox },
components: { KfBox, SettingBox },
data () {
return {
userInfo: {},
......@@ -223,10 +221,6 @@ export default {
// 其他情况允许正常返回
return false;
},
onShow () {
},
async onReachBottom () {
},
methods: {
changeIndex (index) {
this.tabIndex = index;
......
<template>
<home-frame>
<template slot="module">
<view
class="module-box"
slot="module"
>
<template v-for="(i,index) in moduleList">
<view
:key="index"
:class="['item',i.type]"
:style="i.style"
>
<template v-if="i.bg">
<image
:src="i.bg"
class="bg"
/>
</template>
</view>
</template>
</view>
<template slot="record">
<record-list ref="recordRef" />
</template>
</home-frame>
</template>
<script type='text/ecmascript-6'>
import HomeFrame from '../../components/HomeFrame/index.vue'
import RecordList from '../home/components/RecordList.vue';
const caseImgUrl = require('@/assets/images/boutique/case.webp')
export default {
components: { HomeFrame },
components: { HomeFrame, RecordList },
name: 'boutique',
data () {
return {
moduleList: [
{
type: 'landscape',
style: 'width:936rpx;background-image: linear-gradient(270deg, #E8F2FF 0%, #E3E9FF 100%);'
},
{
type: 'landscape',
style: 'width:690rpx;'
},
{
type: 'square',
bg: caseImgUrl,
style: 'background:transparent;'
},
{
type: 'vertical',
},
{
type: 'vertical'
},
{
type: 'vertical',
style: 'background-image: linear-gradient(-37deg, #E8F2FF 0%, #E3E9FF 100%);'
},
{
type: 'vertical',
style: 'background-image: linear-gradient(-37deg, #E8F2FF 0%, #E3E9FF 100%);'
}
]
}
},
mounted () {
......@@ -24,4 +73,34 @@ export default {
</script>
<style scoped lang='scss'>
.module-box {
display: flex;
flex-wrap: wrap;
gap: 48rpx;
padding-top: 44rpx;
.item {
display: flex;
border-radius: 48rpx;
position: relative;
background: #edf4ff;
.bg {
position: absolute;
width: 100%;
height: 100%;
vertical-align: top;
z-index: -1;
}
}
.landscape {
height: 312rpx;
}
.square {
width: 318rpx;
height: 312rpx;
}
.vertical {
width: 474rpx;
height: 624rpx;
}
}
</style>
\ No newline at end of file
......@@ -9,10 +9,13 @@
<view class="data-box">
<template v-for="(i, index) in dataList">
<view
:class="['data-item', i.icon]"
:class="['data-item', i.type]"
:key="index"
>
<view :class="['sprite-icon', `icon-record-${i.icon}`]"></view>
<image
:src="i.icon"
class="data-item-bg"
/>
<view class="content">
<view class="total">
<view class="label">{{ i.label }}</view>
......@@ -89,7 +92,7 @@
</template>
</view>
<template v-if="nothing">
<view class="end-text">我是一个有底线的人</view>
<view class="end-text">到底了!</view>
</template>
</view>
<view class="bottom-mask"></view>
......@@ -98,6 +101,10 @@
<script type="text/ecmascript-6">
import dayjs from 'dayjs'
const dayImgUrl = require('@/assets/images/common/day.webp')
const weekImgUrl = require('@/assets/images/common/week.webp')
const monthImgUrl = require('@/assets/images/common/month.webp')
export default {
name: '',
data () {
......@@ -108,16 +115,22 @@ export default {
},
dataList: [
{
label: '今日客户接待数',
icon: 'day'
label: '客户接待数',
title: '今日',
type: 'day',
icon: dayImgUrl
},
{
label: '本周客户接待数',
icon: 'week'
label: '客户接待数',
title: '本周',
type: 'week',
icon: weekImgUrl
},
{
label: '本月客户接待数',
icon: 'month'
label: '客户接待数',
title: '本月',
type: 'month',
icon: monthImgUrl
}
],
dateList: [
......@@ -264,7 +277,7 @@ export default {
endTime = new Date(now.getFullYear(), now.getMonth(), now.getDate());
} else if (type === 'week') {
let dayOfWeek = now.getDay();
if(dayOfWeek == 0) dayOfWeek = 7
if (dayOfWeek == 0) dayOfWeek = 7
startTime = new Date(now.getFullYear(), now.getMonth(), now.getDate() - dayOfWeek + 1);
endTime = new Date(now.getFullYear(), now.getMonth(), now.getDate() + (7 - dayOfWeek));
} else if (type === 'month') {
......@@ -292,15 +305,15 @@ export default {
box-sizing: border-box;
height: 100%;
.record-content {
padding: 96rpx 60rpx;
padding: 96rpx 0;
}
.list {
display: flex;
flex-wrap: wrap;
gap: 32rpx 60rpx;
padding-top: 50rpx;
gap: 48rpx 60rpx;
padding-top: 48rpx;
.item {
width: 628rpx;
width: 640rpx;
background: #ffffff;
border-radius: 16rpx;
box-sizing: border-box;
......@@ -354,19 +367,22 @@ export default {
display: flex;
gap: 0 60rpx;
// justify-content: space-between;
padding-left: 20rpx;
.data-item {
width: 628rpx;
width: 640rpx;
height: 200rpx;
position: relative;
font-weight: 500;
font-size: 28rpx;
.sprite-icon {
.data-item-bg {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: -1;
width: 712rpx;
height: 284rpx;
vertical-align: top;
}
.content {
width: 100%;
......@@ -404,13 +420,13 @@ export default {
}
}
.day {
color: #3b73ff;
color: #7C5AFD;
}
.week {
color: #fd775a;
color: #3B73FF;
}
.month {
color: #ff8e43;
color: #FF8E43;
}
}
.data-tabs-box {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!