Commit c0339ba0 by 李伟康

commit 提交

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