Commit ac747446 by 李伟康

commit 接待中心

1 parent 81364805
No preview for this file type

2.53 MB | W: | H:

2.51 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin

15.8 KB | W: | H:

223 Bytes | W: | H:

assets/spritesmith/customer-add.png
assets/spritesmith/customer-add.png
assets/spritesmith/customer-add.png
assets/spritesmith/customer-add.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -250,6 +250,7 @@ export default {
this.leaveTrack()
this.trackId = 0
clearInterval(this.trackInterval)
this.trackInterval = null
}
this.$emit('update:tabIndex', index)
this.$emit("changeTab", {
......
......@@ -121,8 +121,8 @@
<script type='text/ecmascript-6'>
import CarBrands from '@/components/CarBrands.vue'
import dayjs from 'dayjs'
import CustomerTags from '../../CustomerTags.vue'
import ReceptionSence from '../../ReceptionSence.vue'
import CustomerTags from './CustomerTags.vue'
import ReceptionSence from './ReceptionSence.vue'
const phoneRex = /^[1]([3-9])[0-9]{9}$/,
default_customerForm = [{
label: '车主姓名',
......@@ -374,7 +374,7 @@ export default {
border-radius: toRpx(48);
backdrop-filter: blur(toRpx(8));
pointer-events: auto;
animation: show-info-box 0.25s forwards;
animation: left-in 0.25s forwards;
.nav-bar {
width: 100%;
height: toRpx(96);
......@@ -476,27 +476,11 @@ export default {
}
}
.backClass {
animation: back 0.25s forwards;
animation: left-out 0.25s forwards;
}
.popup {
pointer-events: auto;
}
@keyframes show-info-box {
0% {
left: 100%;
}
100% {
left: toRpx(240);
}
}
@keyframes back {
0% {
left: toRpx(240);
}
100% {
left: 100%;
}
}
}
.show-box {
......
<template>
<view class="reception-box">
<view class="left box-class">
<view class="common-title">
业绩看板
<view
:class="['sprite-icon',`icon-eyes-${dataShow?'on':'off'}`]"
@click="dataShow = !dataShow"
></view>
<view class="time-box flex">
时间进度
<view class="time-bar">
<view
class="time-line"
:style="{ width: timeProgress + '%' }"
></view>
</view>
<view class="progress">
{{timeProgress }}%
<view :class="['record-box-content',{'hide-record':!showRecord}]">
<view class="left box-class">
<view class="common-title">
业绩看板
<view
:class="['sprite-icon',`icon-eyes-${dataShow?'on':'off'}`]"
@click="dataShow = !dataShow"
></view>
<view class="time-box flex">
时间进度
<view class="time-bar">
<view
class="time-line"
:style="{ width: timeProgress + '%' }"
></view>
</view>
<view class="progress">
{{timeProgress }}%
</view>
</view>
</view>
<view class="customer-box box">
<customer-flow />
</view>
<view class="linebar-box box">
<line-bar />
</view>
<view class="box">
<output-value />
</view>
</view>
<view class="customer-box box">
<customer-flow />
</view>
<view class="linebar-box box">
<line-bar />
</view>
<view class="box">
<output-value />
</view>
</view>
<view class="right box-class">
<view class="type-box">
<view
class="tab-item"
v-for="(i, index) in typeList"
:key="index"
@click="changeType(index, 'firstIndex')"
>
<view :class="['sprite-icon',firstIndex == index ? `icon-${firstClass[index]} active` : '', firstLeft[index]]"></view>
<view class="right box-class">
<view class="type-box">
<view
class="text"
:class="[firstIndex == index ? `active` : '']"
class="tab-item"
v-for="(i, index) in typeList"
:key="index"
@click="tabIndex = index"
>
{{ i.tabName }}
<view :class="['sprite-icon',tabIndex == index ? `icon-${firstClass[index]} active` : '', firstLeft[index]]"></view>
<view
class="text"
:class="[tabIndex == index ? `active` : '']"
>
{{ i.tabName }}
</view>
</view>
</view>
<view :class="['right-content']">
<customer-file />
</view>
<!-- <view class="right-content">
<record-list
@openRecordPage="openRecordPage"
ref="recordListRef"
/>
</view> -->
</view>
<view class="right-content">
<record-list />
</view>
<!-- -->
</view>
<template v-if="!showRecord">
<view :class="['save-record-box',backClass]">
<save-record
@cancel="handleCancel"
@submit="handleSubmit"
:customerInfoVal="customerInfo"
></save-record>
</view>
</template>
</view>
</template>
......@@ -61,26 +77,33 @@ import CustomerFlow from './CustomerFlow.vue'
import LineBar from './LineBar.vue'
import OutputValue from './OutputValue.vue'
import RecordList from './RecordList.vue'
import saveRecord from './saveRecord.vue'
import CustomerFile from './CustomerFile.vue'
export default {
components: {
CustomerFlow,
LineBar,
OutputValue,
RecordList
RecordList,
saveRecord,
CustomerFile
},
name: '',
data () {
return {
backClass: '',
showRecord: true,
customerInfo: {},
dataShow: true,
timeProgress: '',
firstIndex: 0,
tabIndex: 0,
typeList: Object.freeze([
{ tabName: '客户预录' },
{ tabName: '接待复盘' },
]),
firstLeft: Object.freeze(['first', 'second', 'three']),
firstClass: Object.freeze(['first-nav', 'second-nav', 'second-nav']),
firstLeft: Object.freeze(['first', 'second']),
firstClass: Object.freeze(['first-nav', 'second-nav']),
}
},
mounted () {
......@@ -94,28 +117,22 @@ export default {
},
changeType (index, name) {
if (this[name] == index) return // 点击同一个
this.direction = ''
if (this[name] < index) {
this.direction = 'right'
} else {
this.direction = 'left'
}
this[name] = index
this.list = []
this.pageNum = 1;
this.nothing = false
switch (index) {
case 0:
this.getReceptionList()
this.getRecordNum()
break;
case 1:
this.getRecordFail()
break;
default:
this.getPreRecordFail()
break;
}
},
openRecordPage (item) {
this.showRecord = false
this.customerInfo = item
},
handleCancel () {
this.backClass = 'backClass'
setTimeout(() => {
this.showRecord = true;
this.backClass = ''
}, 300)
},
handleSubmit (val) {
this.handleCancel()
this.$refs.recordListRef.submitRecord(val)
},
}
}
......@@ -123,11 +140,22 @@ export default {
<style scoped lang='scss'>
.reception-box {
height: 100vh;
box-sizing: border-box;
padding: 64rpx 0 80rpx;
display: flex;
gap: 0 48rpx;
.record-box-content {
position: relative;
height: 100vh;
box-sizing: border-box;
padding: 64rpx 0 80rpx;
display: flex;
gap: 0 48rpx;
visibility: visible;
transition: all .15s;
opacity: 1;
}
.hide-record {
opacity: 0;
z-index: -1;
visibility: hidden;
}
.box-class {
height: 100%;
background: #ffffff59;
......@@ -239,5 +267,35 @@ export default {
}
}
}
.save-record-box {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
animation: left-in 0.25s forwards;
}
.backClass {
animation: left-out 0.25s forwards;
}
@keyframes left-in {
0% {
left: 100%;
}
100% {
left: 0;
}
}
@keyframes left-out {
0% {
left:0;
}
100% {
left: 100%;
}
}
}
</style>
......@@ -69,13 +69,13 @@
:isPermissionFunction="isPermission"
/>
</template>
<view
class="store-addr"
v-if="footerBox"
>
<view class="icon-addr sprite-icon icon-addr"></view>
<view class="addr-text">{{ userInfo.shopMerchantName }}</view>
</view>
</view>
<view
class="store-addr"
v-if="footerBox"
>
<view class="icon-addr sprite-icon icon-addr"></view>
<view class="addr-text">{{ userInfo.shopMerchantName }}</view>
</view>
</view>
<view :class="['detail', { show: id }]">
......@@ -156,7 +156,6 @@ import timeout from '@/mixin/timeout'
import recorder from '@/mixin/record/recorder'
import uploader from '@/mixin/record/uploader.js'
import versionCheck from '@/mixin/versionCheck.js'
import CustomerFile from './components/CustomerFile.vue'
import LeftSide from './components/LeftSide.vue'
import Point from './components/Point.vue'
import dayPoint from './components/Point/DayPoint.vue'
......@@ -174,7 +173,7 @@ import StudyCenter from './components/StudyCenter.vue'
import SwiperComponent from '../SwiperComponent.vue'
export default {
mixins: [recorder, uploader, timeout, versionCheck, merge],
components: { ReceptionCenter, StudyCenter, SceneMarket, CustomerFile, LeftSide, Point, dayPoint, rulePoint, Course, Ranking, LevelPoint, Calendar, Promotion, History, LevelMedal, MessageDetail, SwiperComponent },
components: { ReceptionCenter, StudyCenter, SceneMarket, LeftSide, Point, dayPoint, rulePoint, Course, Ranking, LevelPoint, Calendar, Promotion, History, LevelMedal, MessageDetail, SwiperComponent },
props: {
id: [String, Number],
finishDoneText: String,
......@@ -418,6 +417,43 @@ export default {
.home {
display: flex;
height: 100vh;
position: relative;
.store-addr {
position: absolute;
left: 50%;
bottom: toRpx(24);
transform: translateX(-50%);
display: flex;
align-items: center;
.icon-addr {
width: toRpx(32);
height: toRpx(32);
flex-shrink: 0;
}
.addr-text {
font-size: toRpx(24);
color: #999999;
word-wrap: break-word;
white-space: normal;
line-height: toRpx(32);
margin-left: toRpx(4);
flex-shrink: 0;
}
&::before,
&::after {
content: '';
width: toRpx(600);
height: toRpx(2);
margin: 0 toRpx(40);
}
&::before {
background-image: linear-gradient(270deg, #eeeeee 0%, #d8d8d800 100%);
}
&::after {
background-image: linear-gradient(90deg, #eeeeee 0%, #d8d8d800 100%);
}
}
}
.show {
position: absolute;
......@@ -514,43 +550,6 @@ export default {
opacity: 1;
z-index: 1;
}
.store-addr {
position: absolute;
left: 50%;
bottom: toRpx(24);
transform: translateX(-50%);
display: flex;
align-items: center;
margin-top: toRpx(38);
.icon-addr {
width: toRpx(32);
height: toRpx(32);
flex-shrink: 0;
}
.addr-text {
font-size: toRpx(24);
color: #999999;
word-wrap: break-word;
white-space: normal;
line-height: toRpx(32);
margin-left: toRpx(4);
flex-shrink: 0;
}
&::before,
&::after {
content: '';
width: toRpx(600);
height: toRpx(2);
margin: 0 toRpx(40);
}
&::before {
background-image: linear-gradient(270deg, #eeeeee 0%, #d8d8d800 100%);
}
&::after {
background-image: linear-gradient(90deg, #eeeeee 0%, #d8d8d800 100%);
}
}
}
.footer {
border-top: toRpx(2) solid #eff0f2;
......
<template>
<view class="select-box">
<view
class="select"
@click.stop="isSelect = !isSelect"
>
{{selectList[selectIndex].label}}
<view class="sprite-icon icon-arrow-bottom"></view>
</view>
<view
class="pop-box"
v-if="isSelect"
>
<view
v-for="(i,index) in selectList"
:key="index"
class="type-item"
:class="index == selectIndex ? 'active' : ''"
@click="chooseType(index, i)"
>{{i[labelKey]}}</view>
</view>
</view>
</template>
<script type='text/ecmascript-6'>
export default {
props: {
selectList: Array,
labelKey: {
type: String,
default: 'label'
}
},
name: '',
data () {
return {
selectIndex: 0,
isSelect: false
}
},
mounted () {
},
methods: {
hideSelect () {
this.isSelect = false
},
chooseType (index, item) {
this.selectIndex = index
this.isSelect = false
this.$emit('chooseType', { item, index })
},
}
}
</script>
<style scoped lang='scss'>
.select-box {
position: relative;
z-index: 5;
.select {
display: flex;
align-items: center;
justify-content: flex-end;
height: 84rpx;
border-radius: 16rpx;
opacity: 1;
background: #f2f2f2;
padding: 0 24rpx 0 40rpx;
}
.arrow-bottom {
width: toRpx(48);
height: toRpx(48);
}
.pop-box {
position: absolute;
top: 100rpx;
left: 0;
width: 100%;
background: #ffffff;
box-shadow: 0 0 16rpx 0 #99999933;
border-radius: toRpx(16);
padding: toRpx(16) 0;
text-align: center;
animation: show-view-opacity 0.15s forwards;
.type-item {
padding: 0 toRpx(24);
margin-bottom: toRpx(8);
height: toRpx(48);
line-height: toRpx(48);
&:last-child {
margin-bottom: 0;
}
&.active {
background-color: #ecf1ff;
}
}
}
}
</style>
\ No newline at end of file
......@@ -95,7 +95,7 @@
<script type="text/ecmascript-6">
import dayjs from 'dayjs'
import PackagePopup from './components/PackagePopup.vue'
import CaseItem from '@/components/HomeFrame/components/CaseItem.vue'
import CaseItem from '@/components/HomeFrame/components/ReceptionCenter/CaseItem.vue'
export default {
components: {
PackagePopup,
......
......@@ -162,4 +162,20 @@ $margin: 0 calc((100vmax - #{$detailVW}) / 2);
filter: blur(toRpx(24));
}
}
@keyframes left-in {
0% {
left: 100%;
}
100% {
left: toRpx(240);
}
}
@keyframes left-out {
0% {
left: toRpx(240);
}
100% {
left: 100%;
}
}
\ 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!