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 { ...@@ -250,6 +250,7 @@ export default {
this.leaveTrack() this.leaveTrack()
this.trackId = 0 this.trackId = 0
clearInterval(this.trackInterval) clearInterval(this.trackInterval)
this.trackInterval = null
} }
this.$emit('update:tabIndex', index) this.$emit('update:tabIndex', index)
this.$emit("changeTab", { this.$emit("changeTab", {
......
...@@ -121,8 +121,8 @@ ...@@ -121,8 +121,8 @@
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import CarBrands from '@/components/CarBrands.vue' import CarBrands from '@/components/CarBrands.vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import CustomerTags from '../../CustomerTags.vue' import CustomerTags from './CustomerTags.vue'
import ReceptionSence from '../../ReceptionSence.vue' import ReceptionSence from './ReceptionSence.vue'
const phoneRex = /^[1]([3-9])[0-9]{9}$/, const phoneRex = /^[1]([3-9])[0-9]{9}$/,
default_customerForm = [{ default_customerForm = [{
label: '车主姓名', label: '车主姓名',
...@@ -374,7 +374,7 @@ export default { ...@@ -374,7 +374,7 @@ export default {
border-radius: toRpx(48); border-radius: toRpx(48);
backdrop-filter: blur(toRpx(8)); backdrop-filter: blur(toRpx(8));
pointer-events: auto; pointer-events: auto;
animation: show-info-box 0.25s forwards; animation: left-in 0.25s forwards;
.nav-bar { .nav-bar {
width: 100%; width: 100%;
height: toRpx(96); height: toRpx(96);
...@@ -476,27 +476,11 @@ export default { ...@@ -476,27 +476,11 @@ export default {
} }
} }
.backClass { .backClass {
animation: back 0.25s forwards; animation: left-out 0.25s forwards;
} }
.popup { .popup {
pointer-events: auto; 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 { .show-box {
......
<template> <template>
<view class="reception-box"> <view class="reception-box">
<view :class="['record-box-content',{'hide-record':!showRecord}]">
<view class="left box-class"> <view class="left box-class">
<view class="common-title"> <view class="common-title">
业绩看板 业绩看板
...@@ -36,23 +37,38 @@ ...@@ -36,23 +37,38 @@
class="tab-item" class="tab-item"
v-for="(i, index) in typeList" v-for="(i, index) in typeList"
:key="index" :key="index"
@click="changeType(index, 'firstIndex')" @click="tabIndex = index"
> >
<view :class="['sprite-icon',firstIndex == index ? `icon-${firstClass[index]} active` : '', firstLeft[index]]"></view> <view :class="['sprite-icon',tabIndex == index ? `icon-${firstClass[index]} active` : '', firstLeft[index]]"></view>
<view <view
class="text" class="text"
:class="[firstIndex == index ? `active` : '']" :class="[tabIndex == index ? `active` : '']"
> >
{{ i.tabName }} {{ i.tabName }}
</view> </view>
</view> </view>
</view> </view>
<view class="right-content"> <view :class="['right-content']">
<record-list /> <customer-file />
</view> </view>
<!-- --> <!-- <view class="right-content">
<record-list
@openRecordPage="openRecordPage"
ref="recordListRef"
/>
</view> -->
</view> </view>
</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> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
...@@ -61,26 +77,33 @@ import CustomerFlow from './CustomerFlow.vue' ...@@ -61,26 +77,33 @@ import CustomerFlow from './CustomerFlow.vue'
import LineBar from './LineBar.vue' import LineBar from './LineBar.vue'
import OutputValue from './OutputValue.vue' import OutputValue from './OutputValue.vue'
import RecordList from './RecordList.vue' import RecordList from './RecordList.vue'
import saveRecord from './saveRecord.vue'
import CustomerFile from './CustomerFile.vue'
export default { export default {
components: { components: {
CustomerFlow, CustomerFlow,
LineBar, LineBar,
OutputValue, OutputValue,
RecordList RecordList,
saveRecord,
CustomerFile
}, },
name: '', name: '',
data () { data () {
return { return {
backClass: '',
showRecord: true,
customerInfo: {},
dataShow: true, dataShow: true,
timeProgress: '', timeProgress: '',
firstIndex: 0, tabIndex: 0,
typeList: Object.freeze([ typeList: Object.freeze([
{ tabName: '客户预录' }, { tabName: '客户预录' },
{ tabName: '接待复盘' }, { tabName: '接待复盘' },
]), ]),
firstLeft: Object.freeze(['first', 'second', 'three']), firstLeft: Object.freeze(['first', 'second']),
firstClass: Object.freeze(['first-nav', 'second-nav', 'second-nav']), firstClass: Object.freeze(['first-nav', 'second-nav']),
} }
}, },
mounted () { mounted () {
...@@ -94,28 +117,22 @@ export default { ...@@ -94,28 +117,22 @@ export default {
}, },
changeType (index, name) { changeType (index, name) {
if (this[name] == index) return // 点击同一个 if (this[name] == index) return // 点击同一个
this.direction = '' },
if (this[name] < index) { openRecordPage (item) {
this.direction = 'right' this.showRecord = false
} else { this.customerInfo = item
this.direction = 'left' },
} handleCancel () {
this[name] = index this.backClass = 'backClass'
this.list = [] setTimeout(() => {
this.pageNum = 1; this.showRecord = true;
this.nothing = false this.backClass = ''
switch (index) { }, 300)
case 0:
this.getReceptionList() },
this.getRecordNum() handleSubmit (val) {
break; this.handleCancel()
case 1: this.$refs.recordListRef.submitRecord(val)
this.getRecordFail()
break;
default:
this.getPreRecordFail()
break;
}
}, },
} }
} }
...@@ -123,11 +140,22 @@ export default { ...@@ -123,11 +140,22 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.reception-box { .reception-box {
.record-box-content {
position: relative;
height: 100vh; height: 100vh;
box-sizing: border-box; box-sizing: border-box;
padding: 64rpx 0 80rpx; padding: 64rpx 0 80rpx;
display: flex; display: flex;
gap: 0 48rpx; gap: 0 48rpx;
visibility: visible;
transition: all .15s;
opacity: 1;
}
.hide-record {
opacity: 0;
z-index: -1;
visibility: hidden;
}
.box-class { .box-class {
height: 100%; height: 100%;
background: #ffffff59; background: #ffffff59;
...@@ -239,5 +267,35 @@ export default { ...@@ -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> </style>
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
:isPermissionFunction="isPermission" :isPermissionFunction="isPermission"
/> />
</template> </template>
</view>
<view <view
class="store-addr" class="store-addr"
v-if="footerBox" v-if="footerBox"
...@@ -77,7 +78,6 @@ ...@@ -77,7 +78,6 @@
<view class="addr-text">{{ userInfo.shopMerchantName }}</view> <view class="addr-text">{{ userInfo.shopMerchantName }}</view>
</view> </view>
</view> </view>
</view>
<view :class="['detail', { show: id }]"> <view :class="['detail', { show: id }]">
<slot name="detail" /> <slot name="detail" />
</view> </view>
...@@ -156,7 +156,6 @@ import timeout from '@/mixin/timeout' ...@@ -156,7 +156,6 @@ import timeout from '@/mixin/timeout'
import recorder from '@/mixin/record/recorder' import recorder from '@/mixin/record/recorder'
import uploader from '@/mixin/record/uploader.js' import uploader from '@/mixin/record/uploader.js'
import versionCheck from '@/mixin/versionCheck.js' import versionCheck from '@/mixin/versionCheck.js'
import CustomerFile from './components/CustomerFile.vue'
import LeftSide from './components/LeftSide.vue' import LeftSide from './components/LeftSide.vue'
import Point from './components/Point.vue' import Point from './components/Point.vue'
import dayPoint from './components/Point/DayPoint.vue' import dayPoint from './components/Point/DayPoint.vue'
...@@ -174,7 +173,7 @@ import StudyCenter from './components/StudyCenter.vue' ...@@ -174,7 +173,7 @@ import StudyCenter from './components/StudyCenter.vue'
import SwiperComponent from '../SwiperComponent.vue' import SwiperComponent from '../SwiperComponent.vue'
export default { export default {
mixins: [recorder, uploader, timeout, versionCheck, merge], 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: { props: {
id: [String, Number], id: [String, Number],
finishDoneText: String, finishDoneText: String,
...@@ -418,6 +417,43 @@ export default { ...@@ -418,6 +417,43 @@ export default {
.home { .home {
display: flex; display: flex;
height: 100vh; 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 { .show {
position: absolute; position: absolute;
...@@ -514,43 +550,6 @@ export default { ...@@ -514,43 +550,6 @@ export default {
opacity: 1; opacity: 1;
z-index: 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 { .footer {
border-top: toRpx(2) solid #eff0f2; 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 \ No newline at end of file
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import dayjs from 'dayjs' import dayjs from 'dayjs'
import PackagePopup from './components/PackagePopup.vue' 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 { export default {
components: { components: {
PackagePopup, PackagePopup,
......
...@@ -163,3 +163,19 @@ $margin: 0 calc((100vmax - #{$detailVW}) / 2); ...@@ -163,3 +163,19 @@ $margin: 0 calc((100vmax - #{$detailVW}) / 2);
} }
} }
@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 \ 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!