Commit f80f86bc by 前端

Merge branch 'SAAS+V4.42' of http://192.168.3.233:8090/saas_plus/dj-car-boutique…

…-work-wechat into SAAS+V4.42
2 parents 69fee1c5 14f59430
Showing 26 changed files with 710 additions and 446 deletions
......@@ -91,9 +91,14 @@ Component({
if (paused) this.qualityAudio.play()
},
onPause() {
const {audioIndex } = this.data
const {
audioIndex
} = this.data
// this.qualityAudio.pause()
this.data[audioIndex].pause()
if (this.data[audioIndex]) {
this.data[audioIndex].pause()
}
},
//结束播放
stopAudio() {
......@@ -122,14 +127,17 @@ Component({
status: 'pause'
})
})
const {audioIndex,status} = this.data
console.log(index,audioIndex)
if(audioIndex) {
const {
audioIndex,
status
} = this.data
console.log(index, audioIndex)
if (audioIndex) {
this.data[audioIndex].pause()
}
this.setData({
audioIndex:index
audioIndex: index
})
this.data[index].src = url
this.data[index].play();
......
......@@ -7,7 +7,8 @@
height: var(--fontSize112);
background: #EDF4FF;
border-radius: var(--fontSize16) var(--fontSize16) 0 0;
// border-top: var(--fontSize16);
// border-right: var(--fontSize16);
}
.classify-list {
......@@ -16,8 +17,6 @@
box-sizing: border-box;
flex: 1;
text-align: center;
border-radius: 0 0 0 var(--fontSize16);
background: #EDF4FF;
.title {
font-weight: 400;
......@@ -32,8 +31,9 @@
font-size: var(--fontSize28);
color: #347BFF;
line-height: var(--fontSize40);
.fail{
color:#F24724;
.fail {
color: #F24724;
}
}
......@@ -51,11 +51,14 @@ color:#F24724;
}
.quality-reception-wrap {
overflow:scroll;
height: calc(100vh - var(--fontSize1150));
overflow: scroll;
height: calc(100vh - var(--fontSize1150));
.link-list {
background-color: #fff;
margin-bottom:var(--fontSize24);
margin-bottom: var(--fontSize24);
border-radius: 0 0 var(--fontSize16) var(--fontSize16);
.link-title {
width: 100%;
height: var(--fontSize80);
......@@ -92,11 +95,13 @@ color:#F24724;
color: #F24724;
margin: 0 var(--fontSize44) 0 auto;
}
.failStage{
color:#F24724;
}
.success{
font-weight: 500;
.failStage {
color: #F24724;
}
.success {
font-weight: 500;
font-size: var(--fontSize24);
color: #35C376;
margin: 0 var(--fontSize44) 0 auto;
......@@ -104,10 +109,12 @@ color:#F24724;
}
.quality-content {
height: auto;
background-color: #fff;
border-radius: 0 0 var(--fontSize16) var(--fontSize16);
.content {
position:relative;
position: relative;
width: 100%;
height: auto;
display: flex;
......@@ -115,18 +122,21 @@ color:#F24724;
padding: var(--fontSize24) var(--fontSize74) var(--fontSize24) var(--fontSize16);
box-sizing: border-box;
margin-bottom: var(--fontSize12);
.trumpet-box{
width:var(--fontSize40);
height: var(--fontSize40);
border-radius:50%;
position:absolute;
right:var(--fontSize12);
margin:0 auto;
}
.trumpet{
width:var(--fontSize48);
height: var(--fontSize40);
}
.trumpet-box {
width: var(--fontSize40);
height: var(--fontSize40);
border-radius: 50%;
position: absolute;
right: var(--fontSize12);
margin: 0 auto;
display: none;
}
.trumpet {
width: var(--fontSize48);
height: var(--fontSize40);
}
}
.text {
......@@ -138,6 +148,7 @@ color:#F24724;
.left {
position: relative;
.avatar {
width: var(--fontSize80);
height: var(--fontSize80);
......@@ -145,9 +156,9 @@ color:#F24724;
}
.duration {
position:absolute;
top:var(--fontSiz60);
left:50%;
position: absolute;
top: var(--fontSize70);
left: 50%;
transform: translateX(-50%);
padding: 0 var(--fontSize9);
height: var(--fontSize28);
......@@ -161,54 +172,42 @@ color:#F24724;
}
.hit {
position:relative;
background: #F0F6FF;
margin-bottom: 0 !important;
.trumpet-box{
width:var(--fontSize48);
height: var(--fontSize40);
background:#fff;
border-radius:50%;
position:absolute;
right:var(--fontSize12);
margin:0 auto;
}
.trumpet{
width:var(--fontSize48);
height: var(--fontSize40);
}
}
.hit-content {
width: 100%;
background: #F5F5F5;
padding: var(--fontSize12) 0;
.matching {
padding-bottom:var(--fontSize24);
.matching {
display: flex;
font-size: var(--fontSize24);
color: #B38442;
height: var(--fontSize56);
height: var(--fontSize80);
align-items: center;
padding: 0 var(--fontSize24);
.title{
display: flex;
align-items: center;
justify-content: center;
width: var(--fontSize172);
height: var(--fontSize56);
background-image: linear-gradient(90deg, #ff8e0c1a 0%, #ffba7b1a 100%);
border-radius: var(--fontSize28);
margin-right: var(--fontSize8);
.arrow {
width: var(--fontSize36);
height: var(--fontSize36);
transition: all .25s;
}
padding: var(--fontSize12) var(--fontSize24);
box-sizing: border-box;
.title {
display: flex;
align-items: center;
justify-content: center;
width: var(--fontSize172);
height: var(--fontSize56);
background-image: linear-gradient(90deg, #ff8e0c1a 0%, #ffba7b1a 100%);
border-radius: var(--fontSize28);
margin-right: var(--fontSize8);
.arrow {
width: var(--fontSize36);
height: var(--fontSize36);
transition: all .25s;
}
}
.score {
......@@ -216,18 +215,19 @@ color:#F24724;
}
}
}
.up {
height: auto;
.arrow {
transform: rotate(90deg);
}
.up {
height: auto;
.content-box {
animation: move-up .2s forwards;
}
.arrow {
transform: rotate(90deg);
}
.content-box {
animation: move-up .2s forwards;
}
}
.verbal-warp {
padding: var(--fontSize24) var(--fontSize28);
background: #FFFFFF;
......@@ -253,8 +253,8 @@ color:#F24724;
font-weight: 400;
font-size: var(--fontSize26);
color: #292D33;
line-height:var(--fontSize44);
white-space:pre-wrap;
line-height: var(--fontSize44);
white-space: pre-wrap;
}
}
......@@ -266,13 +266,19 @@ color:#F24724;
font-size: var(--fontSize26);
font-weight: 500;
padding: var(--fontSize20) 0;
.improve {
width: var(--fontSize32);
height: var(--fontSize32);
margin-right: var(--fontSize8);
}
}
.line {
width: 100%;
height: var(--fontSize2);
background: #EDEDED;
margin: var(--fontSize12) 0 var(--fontSize24);
margin-bottom: var(--fontSize24);
}
.more {
......@@ -286,34 +292,41 @@ color:#F24724;
color: #757980;
font-size: var(--fontSize24);
}
.no-hit-content{
padding:var(--fontSize24) 0;
.verbal-warp{
.no-hit-content {
padding-bottom:var(--fontSize24);
.verbal-warp {
background: #FAFAFA;
margin-top: var(--fontSize24);
}
}
.empty-box{
margin:0 auto ;
display:flex;
align-items:center;
justify-content: center;
width: var(--fontSize488);
height:var(--fontSiz124);
opacity: 0.6;
background: #FFFFFF;
border-radius:var(--fontSize16);
padding:var(--fontSize24) 0;
.no-data-img{
width:var(--fontSize76);
height: var(--fontSize76);
.empty-box {
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
width: var(--fontSize646);
height: var(--fontSiz124);
opacity: 0.6;
background: #FFFFFF;
border-radius: var(--fontSize16);
padding: var(--fontSize24) 0;
.no-data-img {
width: var(--fontSize76);
height: var(--fontSize76);
}
.list-not-text{
font-weight: 400;
font-size: var(--fontSize24);
color: #8A8C90;
margin-left:var(--fontSize16);
.list-not-text {
font-weight: 400;
font-size: var(--fontSize24);
color: #8A8C90;
margin-left: var(--fontSize16);
}
}
.no-data {
text-align: center;
padding-top: var(--fontSize128);
......@@ -323,8 +336,19 @@ color:#F24724;
width: var(--fontSize172);
height: var(--fontSize172);
}
.list-not {
font-size:var(--fontSize24);
font-size: var(--fontSize24);
text-align: center;
color: #999EA8;
color: #999EA8;
}
.axis-active {
.appeal-disabled {
display: block !important;
}
}
.more-bg{
padding:var(--fontSize24) 0;
background-color: #fff;
}
\ No newline at end of file
......@@ -92,6 +92,13 @@ Page({
},
onRoute(options) {
this.setData({
'customer.customerName': options.customerName,
'customer.customerPhone': options.customerPhone
})
},
onShow: function () { },
toSelectReason(e) {
let { deafeatReason } = this.data
......
......@@ -131,7 +131,7 @@ Component({
startDateTime: '',
endDateTime: ''
}],
customerKeyWord: '',
customerName: '',
merchantShowMore: false,
staffShowMore: false
},
......@@ -166,9 +166,13 @@ Component({
})
},
popupConfirm(e) {
let selectedData = e?.detail || []
selectedData = selectedData.filter(v => v.merchantNo)
this.setData({
showSelectPopup: false,
'form.selectedMerchantList': e?.detail
'form.selectedMerchantList': selectedData
}, () => {
this.getStaffList(true)
})
},
updata(e) {
......@@ -293,16 +297,17 @@ Component({
'form.dateTime': dateTime,
'form.selectedMerchantList': [],
'form.staffRangeList': staffRangeList,
customerKeyWord: '',
customerName: '',
isReset: true
})
this.getStaffList(true)
},
confirm() {
let {
form,
userInfo,
isReset,
customerKeyWord
customerName
} = this.data
let obj = {}
Object.keys(form).forEach(e => {
......@@ -349,14 +354,15 @@ Component({
}
})
})
if (customerKeyWord) obj.customerName = customerKeyWord
if (customerName) obj.customerName = customerName
if (isReset) obj = {}
this.triggerEvent('confirm', obj)
},
input(e) {
let { value } = e.detail
this.setData({
customerKeyWord: value
customerName: value,
isReset: false
})
},
showMore(e) {
......@@ -412,10 +418,12 @@ Component({
}
})
},
getStaffList() {
let { storeRangeList } = this.data
getStaffList(isFilterMerchant = false) {
let { storeRangeList, form } = this.data
let selectedMerchantData = form.selectedMerchantList?.map(val => { if (val.merchantNo) return val.merchantNo})
let allMerchantData = storeRangeList?.map(val => { if (val.merchantNo) return val.merchantNo})
let params = {
merchantNos: storeRangeList?.map(val => { if (val.merchantNo) return val.merchantNo})
merchantNos: isFilterMerchant ? (selectedMerchantData?.length ? selectedMerchantData : allMerchantData) : allMerchantData
}
if (!params.merchantNos?.length) return
receptionRecordsApi.getStaffListApi(params).then(res => {
......
<!--pages/tabWorkOrder/components/OrderScreen/OrderScreen.wxml-->
<scroll-view scroll-y class="confirm-box" style="height:calc(100vh - {{navBarHeight}}px);margin-top:{{navBarHeight}}px;"
<scroll-view scroll-y class="confirm-box" style="height:calc(100vh - {{navBarHeight - 2}}px);margin-top:{{navBarHeight - 2}}px;"
hidden="{{!show}}">
<view class="main" style="padding-bottom:{{btnHeight}}px">
<view class="main">
<view class="box">
<view class="title">
日期
......@@ -23,7 +23,7 @@
<view class="list-box">
<view class="item flex-block">
<image src="/images/search.png" class="icon"></image>
<input placeholder="客户姓名/手机号" bindinput="input" maxlength="11" value="{{customerKeyWord}}" type="text"/>
<input placeholder="客户姓名/手机号" bindinput="input" maxlength="11" value="{{customerName}}" type="text"/>
</view>
</view>
</view>
......
......@@ -78,7 +78,8 @@ Component({
itemInfo: params,
['itemInfo.startTimeStr']: startTimeStr,
['itemInfo.endTimeStr']: endTimeStr,
['itemInfo.duration']: _this.calculateTimeDifference(params.totalDuration)
['itemInfo.duration']: _this.calculateTimeDifference(params.totalDuration),
['itemInfo.isNoShow']: true
})
},
// 质检环节
......@@ -94,6 +95,10 @@ Component({
if (event.left > (timelineWidth - event.width)) { // 处理会超出时间轴的质检环节
event.left = (timelineWidth - event.width)
}
// 处理相邻两个质检环节重叠(分两列一上一下一上一下)
if (event.left < (events[index - 2]?.left + events[index - 2]?.width)) {
event.left = (events[index - 2]?.left + events[index - 2]?.width)
}
event.bottom = 'var(--fontSize34)'
event.bottom = index % 2 == 0 ? 'var(--fontSize34)' : 0
if (event.totalScore == 4) { // 接待环节
......@@ -121,12 +126,13 @@ Component({
}
this.setData({
['itemInfo.receptionStaticInfoDetailDTOList'] : events,
['itemInfo.isNoShow']: false
})
},
// 攻防点
getDefensePoints(events, timelineWidth, totalMinutes) {
events?.forEach(event => {
event.left = Math.ceil(event.mergedOffset / totalMinutes * timelineWidth)
event.left = Math.ceil(event.mergedOffset / totalMinutes * timelineWidth) - 7
})
this.setData({
['itemInfo.receptionStaticInfoODDetailDTOList']: events
......@@ -140,8 +146,9 @@ Component({
return filterWidth
},
// 快速录战败单
createDefeatOrder() {
wx.$router.go('packageEquity.createDeafeatOrder', {scene: 0})
createDefeatOrder(e) {
let { item } = e.currentTarget.dataset
wx.$router.go('packageEquity.createDeafeatOrder', {customerName: item.customerName, customerPhone: item.phoneNumber})
},
// 点击质检环节
handleTagsTap(e) {
......
......@@ -21,15 +21,21 @@
}
.record-name{
flex-shrink: 0;
font-weight: 600;
font-size: var(--fontSize30);
color: #292D33;
margin-right: var(--fontSize12);
display: inline-block;
max-width: var(--fontSize300);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
.value{
font-weight: 600;
font-size: var(--fontSize30);
color: #292D33;
}
.order-name{
font-weight: 400;
font-size: var(--fontSize26);
}
}
.record-phone{
font-size: var(--fontSize26);
......@@ -57,6 +63,7 @@
padding: 0 var(--fontSize8);
height: var(--fontSize28);
border: var(--fontSize2) solid #F56C50;
border-radius: var(--fontSize4);
color: #F56C50;
}
.record-amount{
......@@ -73,12 +80,15 @@
}
.record-score{
font-size: var(--fontSize24);
font-weight: 600;
color: #F56C50;
.value{
font-size: var(--fontSize48);
font-family: "numberBold";
}
.unit{
font-weight: 600;
margin-left: var(--fontSize4);
}
&.black{
color: #292D33;
}
......@@ -202,6 +212,9 @@
line-height: var(--fontSize32);
overflow: hidden;
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
&.red-tag{
background: #F247241f;
color: #F56C50;
......
......@@ -5,8 +5,8 @@
<view class="base-message">
<view>
<view class="record-name">
<text>{{itemInfo.customerName}}</text>
<text wx:if="{{itemInfo.realCustomerName && itemInfo.realCustomerName != itemInfo.customerName}}">({{itemInfo.realCustomerName}})</text>
<text class="value">{{itemInfo.customerName}}</text>
<text class="order-name" wx:if="{{itemInfo.realCustomerName && itemInfo.realCustomerName != itemInfo.customerName}}">({{itemInfo.realCustomerName}})</text>
</view>
<text class="record-phone" catchtap="phoneCall" data-phone="{{itemInfo.phoneNumber}}">{{itemInfo.phoneNumber}}</text>
</view>
......@@ -24,10 +24,10 @@
<text class="line"></text>
</text>
<text class="record-score {{itemInfo.qualityCheckScore > 20 ? 'black': ''}}" wx:if="{{itemInfo.qualityCheckScore || itemInfo.qualityCheckScore === 0}}">
<text class="value">{{itemInfo.qualityCheckScore}}</text>分
<text class="value">{{itemInfo.qualityCheckScore}}</text><text class="unit">分</text>
</text>
<text class="record-score" wx:if="{{itemInfo.qualityCheckScore !== 0 && !itemInfo.qualityCheckScore}}">
<text>统计中</text>
<text>分析中</text>
</text>
</view>
</view>
......@@ -37,18 +37,18 @@
<view class="line-status">
<view class="circular circular-left"></view>
<view class="circular circular-right"></view>
<view class="reception-result {{itemInfo.orderStatus == 2 ? 'defeat' : itemInfo.orderStatus == 1 ? 'success' : ''}}">
<gl-image wx:if="{{itemInfo.orderStatus == 3}}" webp src="/equity/unknown-icon.png" />
<view class="reception-result">
<gl-image webp src="/equity/order-status-{{itemInfo.orderStatus}}.png" />
</view>
</view>
<view class="creat-order-btn" wx:if="{{itemInfo.orderStatus == 3 && isShowDefeatBtn}}" catchtap="createDefeatOrder">
<view class="creat-order-btn" wx:if="{{itemInfo.orderStatus == 3 && isShowDefeatBtn}}" data-item="{{itemInfo}}" catchtap="createDefeatOrder">
<view class="bubble">
<view class="bubble-content">快速录单</view>
<view class="bubble-pointer"></view>
</view>
</view>
<!-- 质检环节 -->
<view class="tags-box">
<view class="tags-box" hidden="{{itemInfo.isNoShow}}">
<block wx:key="index" wx:for="{{itemInfo.receptionStaticInfoDetailDTOList}}"
wx:for-item="item">
<view class="tags-item"
......
......@@ -379,7 +379,7 @@ Component({
carModels: searchForm?.carModels,
orderResult: searchForm?.orderResult,
merchantNo: userInfo?.isSuper && !searchForm?.merchantNo?.length ? storeRangeList.map(v => {if (v.merchantNo) return v.merchantNo}) : (searchForm?.merchantNo || [userInfo.default4SStoreInfo.merchantId]),
staffUuids: searchForm?.staffUuids
staffUuids: userInfo.isSuper ? searchForm?.staffUuids : [userInfo.uuid]
}
return obj
},
......@@ -527,7 +527,8 @@ Component({
getReceptionRecordList({
merchantNo: params.merchantNo,
startDateTime: params.startDateTime,
endDateTime: params.endDateTime
endDateTime: params.endDateTime,
staffUuids: params.staffUuids
}).then(res => {
let { code, message, data } = res
if (code == 0) {
......
......@@ -512,10 +512,12 @@ swiper{
.list-box{
padding: 0 var(--fontSize8);
.date-section {
height: var(--fontSize40);
line-height: var(--fontSize40);
padding: var(--fontSize16);
height: var(--fontSize72);
line-height: var(--fontSize70);
padding-left: var(--fontSize32);
background: #F7F8FA;
display: flex;
align-items: center;
&.sticky-date-section{
position: sticky;
top: var(--fontSize80);
......@@ -523,36 +525,52 @@ swiper{
z-index: 1000;
}
.date {
flex-shrink: 0;
width: var(--fontSize146);
font-size: var(--fontSize28);
color: #292D33;
font-weight: 500;
margin-right: var(--fontSize36);
}
.summary-item{
font-size: var(--fontSize26);
color: #5A5E66;
&.blue{
color: #347BFF;
}
&.blue-blod{
font-weight: 600;
.static{
height: 100%;
white-space: nowrap;
overflow: hidden;
width: calc(100% - var(--fontSize146));
.static-warp{
height: 100%;
display: inline-block;
white-space: nowrap;
view{
display: inline-block;
.summary-item{
font-size: var(--fontSize26);
color: #5A5E66;
&.blue{
color: #347BFF;
}
&.blue-blod{
font-weight: 600;
}
}
.line{
display: inline-block;
width: var(--fontSize2);
height: var(--fontSize14);
background: #D1DBE7;
margin: 0 var(--fontSize16);
}
&.first-child{
padding-top: 0;
}
}
}
}
.line{
display: inline-block;
width: var(--fontSize2);
height: var(--fontSize14);
background: #D1DBE7;
margin: 0 var(--fontSize16);
}
&.first-child{
padding-top: 0;
}
}
.record-card-top{
display: flex;
flex-flow: column;
align-items: center;
padding-top: var(--fontSize8);
margin-right: var(--fontSize4);
.round-dot{
width: var(--fontSize28);
......@@ -570,9 +588,15 @@ swiper{
.record-card{
display: flex;
margin-top: var(--fontSize16);
padding: 0 var(--fontSize20) 0 var(--fontSize4);
position: relative;
.card-line{
position: absolute;
top: var(--fontSize44);
left: var(--fontSize14);
transparent: translateX(-50%);
width: var(--fontSize3);
height: var(--fontSize310);
height: var(--fontSize280);
background: repeating-linear-gradient(to bottom, transparent, transparent var(--fontSize10), #DEE0E3 var(--fontSize10), #DEE0E3 var(--fontSize20));
}
.card-item{
......@@ -592,5 +616,22 @@ swiper{
height: var(--fontSize1);
background: transparent;
}
.empty-box{
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
.no-data-img{
width: var(--fontSize160);
height: var(--fontSize160);
}
.list-not-text{
margin-top: var(--fontSize10);
font-size: var(--fontSize28);
color: #BEC1C7;
}
}
}
......@@ -114,29 +114,49 @@
</view>
</view>
<view class="list-box">
<block wx:for="{{listData}}" wx:key="date" wx:if="{{item.receptionStaticInfoDTOList.length}}">
<view class="date-section {{showScreen ? '' : 'sticky-date-section'}}">
<text class="date">{{item.staticDateStr}}</text>
<text class="summary-item">交付量 {{item.deliveryVolume}}</text>
<text class="line"></text>
<text class="summary-item">触客数 {{item.customerContacts}}</text>
<text class="line"></text>
<text class="summary-item blue {{isFilterUpgrade ? 'blue-blod' : ''}}" data-type="upgrade" bindtap="filterItemData">升级 {{item.upgrades}}</text>
<text class="line"></text>
<text class="summary-item blue {{isFilterDefeat ? 'blue-blod' : ''}}" data-type="defeat" bindtap="filterItemData">战败 {{item.losses}}</text>
</view>
<block wx:for="{{item.receptionStaticInfoDTOList}}" wx:key="time" wx:for-index="subIndex" wx:for-item="record">
<view class="record-card" bindtap="goReceptionDetail" data-item="{{record}}">
<view class="record-card-top">
<text class="round-dot">{{subIndex + 1}}</text>
<view class="card-line"></view>
</view>
<view class="card-item">
<record-item record="{{record}}" showEmployeeName="{{showEmployeeName}}" isShowDefeatBtn="{{isShowDefeatBtn}}"></record-item>
</view>
<block wx:if="{{filter.isShowEmpty(listData)}}">
<block wx:for="{{listData}}" wx:key="date" wx:if="{{item.receptionStaticInfoDTOList.length}}">
<view class="date-section {{showScreen ? '' : 'sticky-date-section'}}">
<text class="date">{{item.staticDateStr}}</text>
<scroll-view scroll-x show-scrollbar="{{false}}" class="static">
<view class="static-warp">
<view>
<text class="summary-item">交付量 {{item.deliveryVolume}}</text>
<text class="line"></text>
</view>
<view>
<text class="summary-item">触客数 {{item.customerContacts}}</text>
<text class="line"></text>
</view>
<view>
<text class="summary-item blue {{isFilterUpgrade ? 'blue-blod' : ''}}" data-type="upgrade" bindtap="filterItemData">升级 {{item.upgrades}}</text>
<text class="line"></text>
</view>
<view>
<text class="summary-item blue {{isFilterDefeat ? 'blue-blod' : ''}}" data-type="defeat" bindtap="filterItemData">战败 {{item.losses}}</text>
</view>
</view>
</scroll-view>
</view>
<block wx:for="{{item.receptionStaticInfoDTOList}}" wx:key="time" wx:for-index="subIndex" wx:for-item="record">
<view class="record-card" bindtap="goReceptionDetail" data-item="{{record}}">
<view class="record-card-top">
<text class="round-dot">{{subIndex + 1}}</text>
<view class="card-line"></view>
</view>
<view class="card-item">
<record-item record="{{record}}" showEmployeeName="{{showEmployeeName}}" isShowDefeatBtn="{{isShowDefeatBtn}}"></record-item>
</view>
</view>
</block>
</block>
</block>
<block wx:if="{{!filter.isShowEmpty(listData)}}">
<view class="empty-box">
<image class="no-data-img" src="{{IMG_URL}}empty_data.png" />
<view class="list-not-text">近七天暂无接待记录数据</view>
</view>
</block>
<block wx:if="{{nothing}}">
<view class="show-more-btn" bindtap="goPage">查看更多</view>
</block>
......
......@@ -6,7 +6,8 @@ Component({
* 组件的属性列表
*/
properties: {
batchId: Number
batchId: Number,
defenceResultFlag:Number
},
lifetimes: {
ready() {
......@@ -84,13 +85,13 @@ Component({
list
} = this.data;
let mergedOffset = list.detailList[activeIndex].mergedOffset;
thisPage.onPause()
thisPage.seek(mergedOffset)
thisPage.setData({
activeIndex: 0,
avgDefence:''
}, () => {
thisPage.dialogueRef().toDefenceItem(mergedOffset)
thisPage.play()
})
},
......
......@@ -52,7 +52,7 @@
.attack-content {
width: 100%;
overflow: scroll;
height: calc(100vh - var(--fontSize740));
height: calc(100vh - var(--fontSize760));
background-color: #fff;
.content {
......
<!--packageEquity/pages/receptionDetail/components/attack/index.wxml-->
<view class="attack-wrap">
<block wx:if="{{isShow}}">
<block wx:if="{{list&&list.detailList&&list.detailList.length>0}}">
<scroll-view scroll-x class="scroll-view" wx:if="{{list&&list.detailList&&list.detailList.length>0}}">
<view class="attack-bout {{list.detailList.length>4?'attach-list-scroll':''}}">
<view class="attack-list {{activeIndex==index?'active':''}}" wx:for="{{list.detailList}}" data-index="{{index}}" bind:tap="changeAttackType">
<view class="title">攻防回合{{index+1}}</view>
<view class="score">{{item.defScore}}<text>分</text></view>
</view>
</view>
</scroll-view>
<scroll-view scroll-y class="attack-content" scroll-top="{{scrollTop}}">
<view class="content">
<view class="left attack">
攻
</view>
<view class="text">{{list.detailList[activeIndex].question}}</view>
</view>
<view class="content hit">
<view class="left defend">
防
</view>
<view class="text">{{list.detailList[activeIndex].answer}}</view>
</view>
<view class="verbal-wrap">
<view class="verbal-wrap-content">
<view class="title">
<gl-image class="improve" webp src="/improve.png" />话术建议
<block wx:if="{{isShow}}">
<block wx:if="{{list&&list.detailList&&list.detailList.length>0}}">
<scroll-view scroll-x class="scroll-view" wx:if="{{list&&list.detailList&&list.detailList.length>0}}">
<view class="attack-bout {{list.detailList.length>4?'attach-list-scroll':''}}">
<view class="attack-list {{activeIndex==index?'active':''}}" wx:for="{{list.detailList}}" data-index="{{index}}" bind:tap="changeAttackType">
<view class="title">攻防回合{{index+1}}</view>
<view class="score">{{item.defScore}}<text>分</text></view>
</view>
<view class="suggest-content">
<rich-text nodes="{{list.detailList[activeIndex].suggestionsForImprovement}}"></rich-text>
</view>
</scroll-view>
<scroll-view scroll-y class="attack-content" scroll-top="{{scrollTop}}">
<view class="content">
<view class="left attack">
攻
</view>
<view class="line"></view>
<view class="title">
<gl-image class="improve" webp src="/polish.png" />润色表达
<view class="text">{{list.detailList[activeIndex].question}}</view>
</view>
<view class="content hit">
<view class="left defend">
防
</view>
<view class="suggest-content">
<rich-text nodes="{{list.detailList[activeIndex].refineTheExpression}}"></rich-text>
<view class="text">{{list.detailList[activeIndex].answer}}</view>
</view>
<view class="verbal-wrap">
<view class="verbal-wrap-content">
<view class="title">
<gl-image class="improve" webp src="/improve.png" />话术建议
</view>
<view class="suggest-content">
<rich-text nodes="{{list.detailList[activeIndex].suggestionsForImprovement}}"></rich-text>
</view>
<view class="line"></view>
<view class="title">
<gl-image class="improve" webp src="/polish.png" />润色表达
</view>
<view class="suggest-content">
<rich-text nodes="{{list.detailList[activeIndex].refineTheExpression}}"></rich-text>
</view>
</view>
</view>
<view class="footer">
<view class="more" bind:tap="lookMore">去对话查看</view>
</view>
</scroll-view>
</block>
<block wx:else>
<view class="no-data">
<gl-image class="no-data-img" webp src="/equity/empty.png" />
<view class="list-not"> {{
defenceResultFlag === 1 ||
defenceResultFlag === 0 ||
defenceResultFlag === 4
? "数据分析中,请稍等"
: defenceResultFlag === 3
? "未发现攻防"
: "未进行攻防识别"
}}</view>
</view>
<view class="footer">
<view class="more" bind:tap="lookMore">去对话查看</view>
</view>
</scroll-view>
</block>
<block wx:else>
<view class="no-data">
<gl-image class="no-data-img" webp src="/equity/empty.png" />
<view class="list-not">分析中,请稍等...</view>
</view>
</block>
</block>
</block>
</view>
\ No newline at end of file
......@@ -148,8 +148,9 @@ Component({
const {
data: dialogueList
} = await api.post("dj.api.smartcarlife.recepiton.findConversationDetailByBatchId", params), {
totalDuration
} = this.data.recordData
totalDuration
} = this.data.recordData,
userInfo = wx.$util.getUserInfo() || {}
let defenceNum = 1,
defenceDetailList = []
dialogueList?.map(e => {
......@@ -179,17 +180,22 @@ Component({
}
if (e?.conversationCheckDetailDTO) {
let {
suggestions,
firstClassify
} = e.conversationCheckDetailDTO
if (suggestions) e.conversationCheckDetailDTO.suggestions = this.transitionBr(suggestions)
if (suggestions == '-') e.conversationCheckDetailDTO.suggestions = ''
let regex = new RegExp('环节', 'g')
e.conversationCheckDetailDTO.firstClassify = firstClassify.replace(regex, '')
e.conversationCheckDetailDTO = Array.isArray(e.conversationCheckDetailDTO) ? e.conversationCheckDetailDTO : [e.conversationCheckDetailDTO]
e.conversationCheckDetailDTO.map(i => {
let {
suggestions,
firstClassify
} = i
if (suggestions) i.suggestions = this.transitionBr(suggestions)
if (suggestions == '-') i.suggestions = ''
let regex = new RegExp('环节', 'g')
i.firstClassify = firstClassify.replace(regex, '')
})
} else {
e.appealText = e.conversationDetailAppealId ? '已申诉' : '申诉'
e.appealClass = e.conversationDetailAppealId ? 'appeal-disabled' : ''
if (!userInfo.isSuper) {
e.appealText = e.conversationDetailAppealId ? '已申诉' : '申诉'
e.appealClass = e.conversationDetailAppealId ? 'appeal-disabled' : ''
}
}
})
this.setData({
......@@ -253,8 +259,11 @@ Component({
regex = new RegExp('注意事项', 'g')
totalDuration = totalDuration / 1000
wx.$util.getViewInfo('.axis-bar', ({
height: containerHeight
height: containerHeight,
top: barTop
}) => {
this.barTop = barTop
this.containerHeight = containerHeight
let colorList = [],
processedTops = [],
margin = 13,
......@@ -336,10 +345,13 @@ Component({
const {
index,
value,
ind,
key
} = e.currentTarget.dataset
let target = `dialogueList[${index}]`
if (ind > -1) target = `dialogueList[${index}].conversationCheckDetailDTO[${ind}]`
this.setData({
[`dialogueList[${index}].${key}`]: !value
[`${target}.${key}`]: !value
})
},
touchstart() {
......@@ -405,7 +417,51 @@ Component({
dialogueList
} = this.data,
item = dialogueList.find(e => e.mergedOffset == mergedOffset)
if (item && item.id) this.setTopId(item, true)
if (item && item.id) wx.nextTick(() => this.setData({
toId: item.text_id,
activeId: item.text_id
}))
},
barSeek(e) {
function findNearest(arr, target) {
let closest = arr[0];
let minDiff = Math.abs(target - arr[0]);
for (let i = 1; i < arr.length; i++) {
const diff = Math.abs(target - arr[i]);
if (diff < minDiff) {
minDiff = diff;
closest = arr[i];
}
}
return closest;
}
let [touches] = e.touches, {
barTop,
containerHeight
} = this, {
duration
} = this.innerAudioContext, {
dialogueList
} = this.data
if (touches) {
let {
clientY
} = touches,
progress = (clientY - barTop) / containerHeight * 100,
offsetList = dialogueList.map(i => i.mergedOffset),
mergedOffset = findNearest(offsetList, duration * progress / 100),
item = dialogueList.find(i => i.mergedOffset == mergedOffset)
this.setData({
progress
})
this.seekPlay({
currentTarget:{
dataset:{item,scroll:true}
}
})
}
}
}
})
\ No newline at end of file
......@@ -39,12 +39,15 @@
width: var(--fontSize80);
height: var(--fontSize80);
flex-shrink: 0;
display: flex;
align-items: center;
flex-direction: column;
.icon {
width: 100%;
height: 100%;
border-radius: 100%;
overflow: hidden;
flex-shrink: 0;
}
.time {
......@@ -323,12 +326,12 @@
.axis-bar {
position: absolute;
top: 50%;
right: -6rpx;
width: var(--fontSize12);
right: -8rpx;
width: 16rpx;
height: calc(100% - var(--fontSize140));
background-color: #E7E7E7;
transform: translateY(-50%);
border-radius: var(--fontSize6);
border-radius: var(--fontSize8);
z-index: 8;
.hide-bar {
......@@ -337,16 +340,16 @@
height: 100%;
top: 0;
left: 0;
border-radius: var(--fontSize6);
border-radius: var(--fontSize8);
overflow: hidden;
.axis-line {
border-radius: var(--fontSize2);
border-radius: var(--fontSize4);
position: absolute;
left: 50%;
transform: translateX(-50%);
z-index: -1;
width: 4rpx;
width: 8rpx;
}
.yellow-tag {
......@@ -368,8 +371,9 @@
background-color: #347BFF;
top: 0;
left: 0;
border-radius: var(--fontSize6);
border-radius: var(--fontSize8);
z-index: 2;
transition: all .1s;
}
.axis-item {
......@@ -385,8 +389,8 @@
left: 50%;
top: 0;
transform: translate(-50%, -50%);
width: var(--fontSize16);
height: var(--fontSize16);
width: 20rpx;
height:20rpx;
background: #FFFFFF;
border: var(--fontSize4) solid transparent;
box-shadow: 0 var(--fontSize4) var(--fontSize16) 0 #7a7a7a33;
......@@ -396,7 +400,7 @@
.axis-text {
position: absolute;
right: var(--fontSize16);
right: var(--fontSize20);
font-size: var(--fontSize24);
color: #757980;
display: inline-block;
......@@ -409,39 +413,28 @@
}
.yellow-tag {
background-color: #FFF5E6;
.axis-dot {
border-color: #FF9D0A;
}
&~.axis-text {
background-color: #FFF5E6;
}
}
.green-tag {
background-color: #EAF9F1;
.axis-dot {
border-color: #35C376;
}
&~.axis-text {
background-color: #EAF9F1;
}
}
.red-tag {
background-color: #FFE8E8;
.axis-dot {
border-color: #F56C50;
}
&~.axis-text {
background-color: #FFF4F4;
}
}
.axis-active {
z-index: 2;
z-index: 4;
.axis-dot {
width: var(--fontSize36);
height: var(--fontSize36);
......@@ -472,7 +465,8 @@
color: #FFFFFF !important;
background-color: #347BFF !important;
border-radius: var(--fontSize16) 0 0 var(--fontSize16);
right: var(--fontSize14);
right: 18rpx;
z-index: 2;
}
.defence-item {
......@@ -482,13 +476,13 @@
left: 50%;
transform: translateX(-50%);
z-index: 4;
.icon {
position: absolute;
top: 50%;
right: 100%;
width: 80rpx;
height: 40rpx;
transform: translateY(-50%);
}
}
}
......
......@@ -22,40 +22,43 @@
</view>
<!-- 意图匹配 -->
<block wx:if="{{item.conversationCheckDetailDTO}}">
<view class="detail-box {{item.showCheckDetail?'up':'down'}}">
<view class="text-box">
<view class="btn" bindtap="switchDetail" data-index="{{index}}" data-key="showCheckDetail" data-value="{{item.showCheckDetail}}">
意图匹配
<gl-image class="arrow" webp src="/equity/reception/suggestions-arrow.png" />
</view>
{{item.conversationCheckDetailDTO.firstClassify}}/{{item.conversationCheckDetailDTO.secondClassify}}
<view class="score">{{item.conversationCheckDetailDTO.score}}分</view>
</view>
<view class="content-box">
<block wx:if="{{!item.conversationCheckDetailDTO.suggestions}}">
<view class="suggestions-box no">
<gl-image class="icon" webp src="/equity/reception/no-suggestions.png" />
暂无建议
<block wx:for="{{item.conversationCheckDetailDTO}}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<view class="detail-box {{i.showCheckDetail?'up':'down'}}">
<view class="text-box">
<view class="btn" bindtap="switchDetail" data-index="{{index}}"
data-ind="{{ind}}" data-key="showCheckDetail" data-value="{{i.showCheckDetail}}">
意图匹配
<gl-image class="arrow" webp src="/equity/reception/suggestions-arrow.png" />
</view>
</block>
<block wx:else>
<view class="suggestions-box">
<view class="title">
<gl-image class="icon" webp src="/equity/reception/suggestions-icon.png" />
话术建议
{{i.firstClassify}}/{{i.secondClassify}}
<view class="score">{{i.score}}分</view>
</view>
<view class="content-box">
<block wx:if="{{!i.suggestions}}">
<view class="suggestions-box no">
<gl-image class="icon" webp src="/equity/reception/no-suggestions.png" />
暂无建议
</view>
<view class="text">
<rich-text nodes="{{item.conversationCheckDetailDTO.suggestions}}"></rich-text>
</block>
<block wx:else>
<view class="suggestions-box">
<view class="title">
<gl-image class="icon" webp src="/equity/reception/suggestions-icon.png" />
话术建议
</view>
<view class="text">
<rich-text nodes="{{i.suggestions}}"></rich-text>
</view>
</view>
</view>
</block>
</block>
<view class="ai-btn" data-satge="{{item.conversationCheckDetailDTO.firstClassify}}" bindtap="practiceHandle">
<gl-image class="icon" webp src="/equity/reception/message.png" />
快速练习
<view class="ai-btn" data-satge="{{i.firstClassify}}" bindtap="practiceHandle">
<gl-image class="icon" webp src="/equity/reception/message.png" />
快速练习
</view>
</view>
</view>
</view>
</block>
</block>
<!-- 攻防回合 -->
<block wx:if="{{item.defenceDetail}}">
......@@ -109,16 +112,16 @@
</view>
</block>
</block>
<view class="axis-bar">
<view class="axis-bar" bindtap="barSeek">
<!-- <view class="axis-bar {{axisList.length ? '' : 'hide-axis-bar'}}"> -->
<view class="progress-bar" style="height:{{progress + '%'}}"></view>
<block wx:for="{{axisList}}" wx:key="index">
<block wx:if="{{item.inspectionConversationDetailId}}">
<view class="axis-item {{activeId == item.text_id?'axis-active':''}} {{item.colorName}}" style="top:{{item.docTop + 'px'}};">
<view class="axis-dot {{!isPlayIng && !isScrollling?'':'radius'}}" bindtap="seekPlay" data-item="{{item}}" data-scroll></view>
<view class="axis-dot {{!isPlayIng && !isScrollling?'':'radius'}}" catchtap="seekPlay" data-item="{{item}}" data-scroll></view>
</view>
<block wx:if="{{!isPlayIng && !isScrollling}}">
<view class="axis-text {{activeId == item.text_id?'axis-text-active':''}}" bindtap="seekPlay" data-item="{{item}}" data-scroll style="top:{{item.top + 'px'}};">
<view class="axis-text {{item.colorName}} {{activeId == item.text_id?'axis-text-active':''}}" catchtap="seekPlay" data-item="{{item}}" data-scroll style="top:{{item.top + 'px'}};">
{{item.secondClassify}}+{{item.score}}
</view>
</block>
......@@ -126,7 +129,7 @@
</block>
<block wx:for="{{defenceDetailList}}" wx:key="index">
<view class="defence-item" style="top:{{item.top + '%'}};">
<view class="icon" bindtap="toDefenceDetail" data-item="{{item}}">
<view class="icon" catchtap="toDefenceDetail" data-item="{{item}}">
<gl-image webp src="/equity/reception/defence-icon.png" />
</view>
</view>
......
......@@ -26,14 +26,18 @@ Component({
secondIndex: 0,
activeids: [],
list: [{
stage: '接待环节'
stage: '接待环节',
totalScore: 4
}, {
stage: '车辆交付'
stage: '车辆交付',
totalScore: 50
},
{
stage: '需求挖掘'
stage: '需求挖掘',
totalScore: 40
}, {
stage: '促成交'
stage: '促成交',
totalScore: 6
}
]
},
......@@ -66,12 +70,15 @@ Component({
}
})
if (data.every(item => !item.active)) {
data[0].active = true
}
if (data[data.length - 1].active) {
data[data.length - 1].active = false
if((data[data.length-1].duration+data[data.length-1].offset)/1000<=mergedOffset){
data[data.length - 1].active = false
}
}
this.setData({
list
......
......@@ -7,7 +7,8 @@
height: var(--fontSize112);
background: #EDF4FF;
border-radius: var(--fontSize16) var(--fontSize16) 0 0;
// border-top: var(--fontSize16);
// border-right: var(--fontSize16);
}
.classify-list {
......@@ -16,8 +17,6 @@
box-sizing: border-box;
flex: 1;
text-align: center;
border-radius: 0 0 0 var(--fontSize16);
background: #EDF4FF;
.title {
font-weight: 400;
......@@ -32,8 +31,9 @@
font-size: var(--fontSize28);
color: #347BFF;
line-height: var(--fontSize40);
.fail{
color:#F24724;
.fail {
color: #F24724;
}
}
......@@ -51,12 +51,14 @@ color:#F24724;
}
.quality-reception-wrap {
overflow:scroll;
height: calc(100vh - var(--fontSize750));
overflow: scroll;
height: calc(100vh - var(--fontSize750));
.link-list {
background-color: #fff;
margin-bottom:var(--fontSize24);
padding-bottom:var(--fontSize24);
margin-bottom: var(--fontSize24);
border-radius: 0 0 var(--fontSize16) var(--fontSize16);
.link-title {
width: 100%;
height: var(--fontSize80);
......@@ -93,11 +95,13 @@ color:#F24724;
color: #F24724;
margin: 0 var(--fontSize44) 0 auto;
}
.failStage{
color:#F24724;
}
.success{
font-weight: 500;
.failStage {
color: #F24724;
}
.success {
font-weight: 500;
font-size: var(--fontSize24);
color: #35C376;
margin: 0 var(--fontSize44) 0 auto;
......@@ -105,10 +109,12 @@ color:#F24724;
}
.quality-content {
height:auto;
height: auto;
background-color: #fff;
border-radius: 0 0 var(--fontSize16) var(--fontSize16);
.content {
position:relative;
position: relative;
width: 100%;
height: auto;
display: flex;
......@@ -116,19 +122,21 @@ color:#F24724;
padding: var(--fontSize24) var(--fontSize74) var(--fontSize24) var(--fontSize16);
box-sizing: border-box;
margin-bottom: var(--fontSize12);
.trumpet-box{
width:var(--fontSize40);
height: var(--fontSize40);
border-radius:50%;
position:absolute;
right:var(--fontSize12);
margin:0 auto;
display:none;
}
.trumpet{
width:var(--fontSize48);
height: var(--fontSize40);
}
.trumpet-box {
width: var(--fontSize40);
height: var(--fontSize40);
border-radius: 50%;
position: absolute;
right: var(--fontSize12);
margin: 0 auto;
display: none;
}
.trumpet {
width: var(--fontSize48);
height: var(--fontSize40);
}
}
.text {
......@@ -140,6 +148,7 @@ color:#F24724;
.left {
position: relative;
.avatar {
width: var(--fontSize80);
height: var(--fontSize80);
......@@ -147,9 +156,9 @@ color:#F24724;
}
.duration {
position:absolute;
top:var(--fontSiz60);
left:50%;
position: absolute;
top: var(--fontSize70);
left: 50%;
transform: translateX(-50%);
padding: 0 var(--fontSize9);
height: var(--fontSize28);
......@@ -163,41 +172,42 @@ color:#F24724;
}
.hit {
background: #F0F6FF;
margin-bottom: 0 !important;
}
.hit-content {
width: 100%;
background: #F5F5F5;
padding: var(--fontSize12) 0 ;
.matching {
display: flex;
font-size: var(--fontSize24);
color: #B38442;
height: var(--fontSize56);
height: var(--fontSize80);
align-items: center;
padding: 0 var(--fontSize24);
.title{
display: flex;
align-items: center;
justify-content: center;
width: var(--fontSize172);
height: var(--fontSize56);
background-image: linear-gradient(90deg, #ff8e0c1a 0%, #ffba7b1a 100%);
border-radius: var(--fontSize28);
margin-right: var(--fontSize8);
.arrow {
width: var(--fontSize36);
height: var(--fontSize36);
transition: all .25s;
}
padding: var(--fontSize12) var(--fontSize24);
box-sizing: border-box;
.title {
display: flex;
align-items: center;
justify-content: center;
width: var(--fontSize172);
height: var(--fontSize56);
background-image: linear-gradient(90deg, #ff8e0c1a 0%, #ffba7b1a 100%);
border-radius: var(--fontSize28);
margin-right: var(--fontSize8);
.arrow {
width: var(--fontSize36);
height: var(--fontSize36);
transition: all .25s;
}
}
.score {
......@@ -205,17 +215,19 @@ color:#F24724;
}
}
}
.up {
height: auto;
.arrow {
transform: rotate(90deg);
}
.up {
height: auto;
.content-box {
animation: move-up .2s forwards;
}
.arrow {
transform: rotate(90deg);
}
.content-box {
animation: move-up .2s forwards;
}
}
.verbal-warp {
padding: var(--fontSize24) var(--fontSize28);
background: #FFFFFF;
......@@ -241,8 +253,8 @@ color:#F24724;
font-weight: 400;
font-size: var(--fontSize26);
color: #292D33;
line-height:var(--fontSize44);
white-space:pre-wrap;
line-height: var(--fontSize44);
white-space: pre-wrap;
}
}
......@@ -254,13 +266,19 @@ color:#F24724;
font-size: var(--fontSize26);
font-weight: 500;
padding: var(--fontSize20) 0;
.improve {
width: var(--fontSize32);
height: var(--fontSize32);
margin-right: var(--fontSize8);
}
}
.line {
width: 100%;
height: var(--fontSize2);
background: #EDEDED;
margin: var(--fontSize24) 0 ;
margin-bottom: var(--fontSize24);
}
.more {
......@@ -274,34 +292,39 @@ color:#F24724;
color: #757980;
font-size: var(--fontSize24);
}
.no-hit-content{
.verbal-warp{
.no-hit-content {
.verbal-warp {
background: #FAFAFA;
margin-top:var(--fontSize24);
margin-top: var(--fontSize24);
}
}
.empty-box{
margin:0 auto;
display:flex;
align-items:center;
justify-content: center;
width: var(--fontSize488);
height:var(--fontSiz124);
opacity: 0.6;
background: #FFFFFF;
border-radius:var(--fontSize16);
padding:var(--fontSize24) 0;
.no-data-img{
width:var(--fontSize76);
height: var(--fontSize76);
.empty-box {
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
width: var(--fontSize646);
height: var(--fontSiz124);
opacity: 0.6;
background: #FFFFFF;
border-radius: var(--fontSize16);
padding: var(--fontSize24) 0;
.no-data-img {
width: var(--fontSize76);
height: var(--fontSize76);
}
.list-not-text{
font-weight: 400;
font-size: var(--fontSize24);
color: #8A8C90;
margin-left:var(--fontSize16);
.list-not-text {
font-weight: 400;
font-size: var(--fontSize24);
color: #8A8C90;
margin-left: var(--fontSize16);
}
}
.no-data {
text-align: center;
padding-top: var(--fontSize128);
......@@ -311,13 +334,19 @@ color:#F24724;
width: var(--fontSize172);
height: var(--fontSize172);
}
.list-not {
font-size:var(--fontSize24);
font-size: var(--fontSize24);
text-align: center;
color: #999EA8;
color: #999EA8;
}
.axis-active{
.appeal-disabled{
display:block!important;
.axis-active {
.appeal-disabled {
display: block !important;
}
}
.more-bg{
padding:var(--fontSize24) 0;
background-color: #fff;
}
\ No newline at end of file
......@@ -46,8 +46,8 @@
<image class="no-data-img" src="{{IMG_URL}}empty_data.png" />
<view class="list-not-text">暂无数据</view>
</view>
<view class="exercise" bind:tap="practiceHandle" data-satge="{{i.stage}}">
<gl-image class="improve" webp src="/improve.png" />快速练习
<view class="exercise" bind:tap="practiceHandle" data-stage="{{i.firstClassify}}">
<gl-image class="improve" webp src="/exercise.png" />快速练习
</view>
</block>
......@@ -65,11 +65,14 @@
<image class="no-data-img" src="{{IMG_URL}}empty_data.png" />
<view class="list-not-text">暂无数据</view>
</view>
<view class="exercise" bind:tap="practiceHandle" data-satge="{{i.stage}}">
<gl-image class="improve" webp src="/improve.png" />快速练习
<view class="exercise" bind:tap="practiceHandle" data-stage="{{i.firstClassify}}">
<gl-image class="improve" webp src="/exercise.png" />快速练习
</view>
</view>
<view class="more" wx:if="{{i.conversationDetailDTOList}}" bind:tap="lookMore" data-fIndex="{{ind}}">查看更多</view>
<view class="more-bg" wx:if="{{i.conversationDetailDTOList}}">
<view class="more" bind:tap="lookMore" data-fIndex="{{ind}}">查看更多</view>
</view>
</view>
</view>
</block>
......
......@@ -53,6 +53,7 @@ Page({
content: '是否前往AI趣练练习该对话环节',
success(res) {
if (res.confirm) {
console.log(tag,stage)
if (tag && stage) {
wx.navigateTo({
url: `/packageEquity/pages/aiCheck/chat/chat?stage=${stage}&roleName=${tag}`
......@@ -174,7 +175,7 @@ Page({
startTime
} = record
// 门店 - 接待开始时间 - 接待时长 - 员工标记的接待结果 - 接待录音mp3地址
let text = [`${userInfo && userInfo.default4SStoreInfo && userInfo.default4SStoreInfo.merchantName}`, wx.$util.tsFormatTime(startTime, 'Y年M月D日'), wx.$util.tsFormatTime(endTime, 'Y年M月D日'), this.format(totalDuration), receptionStatus, fileUrl].join(' - ')
let text = [`${userInfo && userInfo.default4SStoreInfo && userInfo.default4SStoreInfo.merchantName}`, wx.$util.tsFormatTime(startTime, 'Y年M月D日 h:m:s'), wx.$util.tsFormatTime(endTime, 'Y年M月D日 h:m:s'), this.format(totalDuration), receptionStatus, fileUrl].join(' - ')
wx.$util.setCopyData(text)
// wx.$util.showToast('复制成功')
},
......
......@@ -39,7 +39,7 @@ page {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--fontSize16) 0;
padding: 0 0 var(--fontSize16) 0;
}
.reception-types {
......
......@@ -29,6 +29,6 @@
<dialogue id="dialogue" bindplay="play" bindpause="onPause" recordData="{{record}}"></dialogue>
</view>
<quality id="quality" wx:if="{{activeIndex==1}}" batchId="{{record.batchId}}"></quality>
<attack wx:elif="{{activeIndex==2}}" batchId="{{record.batchId}}"></attack>
<attack wx:elif="{{activeIndex==2}}" defenceResultFlag="{{record.defenceResultFlag}}" batchId="{{record.batchId}}"></attack>
</block>
</view>
\ No newline at end of file
......@@ -69,7 +69,7 @@ Page({
carModels: searchForm?.carModels,
orderResult: searchForm?.orderResult,
merchantNo: userInfo?.isSuper && !searchForm?.merchantNo?.length ? storeRangeList?.map(v => {if (v.merchantNo) return v.merchantNo}) : (searchForm?.merchantNo || [userInfo.default4SStoreInfo.merchantId]),
staffUuids: searchForm?.staffUuids
staffUuids: userInfo.isSuper ? searchForm?.staffUuids : [userInfo.uuid]
}
return obj
},
......@@ -131,7 +131,8 @@ Page({
getReceptionRecordList({
merchantNo: params.merchantNo,
startDateTime: params.startDateTime,
endDateTime: params.endDateTime
endDateTime: params.endDateTime,
staffUuids: params.staffUuids
}).then(res => {
let { code, message, data } = res
if (code == 0) {
......
......@@ -52,48 +52,63 @@
position: relative;
}
.date-section {
height: var(--fontSize40);
line-height: var(--fontSize40);
padding: var(--fontSize16);
height: var(--fontSize72);
line-height: var(--fontSize70);
padding-left: var(--fontSize32);
background: #F7F8FA;
display: flex;
align-items: center;
position: sticky;
top: 0;
left: 0;
z-index: 1000;
&.sticky-date-section{
}
.date {
flex-shrink: 0;
width: var(--fontSize146);
font-size: var(--fontSize28);
color: #292D33;
font-weight: 500;
margin-right: var(--fontSize36);
}
.summary-item{
font-size: var(--fontSize26);
color: #5A5E66;
&.blue{
color: #347BFF;
}
&.blue-blod{
font-weight: 600;
.static{
height: 100%;
white-space: nowrap;
overflow: hidden;
width: calc(100% - var(--fontSize146));
.static-warp{
height: 100%;
display: inline-block;
white-space: nowrap;
view{
display: inline-block;
.summary-item{
font-size: var(--fontSize26);
color: #5A5E66;
&.blue{
color: #347BFF;
}
&.blue-blod{
font-weight: 600;
}
}
.line{
display: inline-block;
width: var(--fontSize2);
height: var(--fontSize14);
background: #D1DBE7;
margin: 0 var(--fontSize16);
}
&.first-child{
padding-top: 0;
}
}
}
}
.line{
display: inline-block;
width: var(--fontSize2);
height: var(--fontSize14);
background: #D1DBE7;
margin: 0 var(--fontSize16);
}
&.first-child{
padding-top: 0;
}
}
.record-card-top{
display: flex;
flex-flow: column;
align-items: center;
padding-top: var(--fontSize8);
margin-right: var(--fontSize4);
.round-dot{
width: var(--fontSize28);
......@@ -110,11 +125,16 @@
}
.record-card{
display: flex;
margin-top: var(--fontSize16);
margin: var(--fontSize16) 0;
padding: 0 var(--fontSize20) 0 var(--fontSize4);
position: relative;
.card-line{
position: absolute;
top: var(--fontSize44);
left: var(--fontSize14);
transparent: translateX(-50%);
width: var(--fontSize3);
height: var(--fontSize310);
height: var(--fontSize280);
background: repeating-linear-gradient(to bottom, transparent, transparent var(--fontSize10), #DEE0E3 var(--fontSize10), #DEE0E3 var(--fontSize20));
}
.card-item{
......
......@@ -26,14 +26,26 @@
<block wx:if="{{filter.isShowEmpty(listData)}}">
<block wx:for="{{listData}}" wx:key="date" wx:if="{{item.receptionStaticInfoDTOList.length}}">
<view class="date-section">
<text class="date">{{item.staticDateStr}}</text>
<text class="summary-item">交付量 {{item.deliveryVolume}}</text>
<text class="line"></text>
<text class="summary-item">触客数 {{item.customerContacts}}</text>
<text class="line"></text>
<text class="summary-item blue {{isFilterUpgrade ? 'blue-blod' : ''}}" data-type="upgrade" bindtap="filterItemData">升级 {{item.upgrades}}</text>
<text class="line"></text>
<text class="summary-item blue {{isFilterDefeat ? 'blue-blod' : ''}}" data-type="defeat" bindtap="filterItemData">战败 {{item.losses}}</text>
<view class="date">{{item.staticDateStr}}</view>
<scroll-view scroll-x show-scrollbar="{{false}}" class="static">
<view class="static-warp">
<view>
<text class="summary-item">交付量 {{item.deliveryVolume}}</text>
<text class="line"></text>
</view>
<view>
<text class="summary-item">触客数 {{item.customerContacts}}</text>
<text class="line"></text>
</view>
<view>
<text class="summary-item blue {{isFilterUpgrade ? 'blue-blod' : ''}}" data-type="upgrade" bindtap="filterItemData">升级 {{item.upgrades}}</text>
<text class="line"></text>
</view>
<view>
<text class="summary-item blue {{isFilterDefeat ? 'blue-blod' : ''}}" data-type="defeat" bindtap="filterItemData">战败 {{item.losses}}</text>
</view>
</view>
</scroll-view>
</view>
<block wx:for="{{item.receptionStaticInfoDTOList}}" wx:key="time" wx:for-index="subIndex" wx:for-item="record">
<view class="record-card" bind:tap="goto" data-record="{{record}}">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!