Commit fc2652d8 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 8d0659fd c6a67226
...@@ -552,9 +552,11 @@ Page({ ...@@ -552,9 +552,11 @@ Page({
} = e.currentTarget.dataset, { } = e.currentTarget.dataset, {
reportItem, reportItem,
avatar, avatar,
score,
id, id,
entry entry
} = this.data } = this.data
if(score == null) return
wx.$router.go("/packageEquity/pages/aiCheck/detail/detail", { wx.$router.go("/packageEquity/pages/aiCheck/detail/detail", {
reportItem, reportItem,
avatar, avatar,
......
...@@ -208,19 +208,22 @@ page { ...@@ -208,19 +208,22 @@ page {
margin: 0 auto; margin: 0 auto;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
@keyframes rotateArc { @keyframes rotateArc {
100% { 100% {
transform:translate(-50%,-50%) rotate(0deg); transform: translate(-50%, -50%) rotate(0deg);
} }
} }
.loading-box { .loading-box {
width: 300rpx; width: 300rpx;
height: 300rpx; height: 300rpx;
transform:translate(-50%,-50%) rotate(360deg); transform: translate(-50%, -50%) rotate(360deg);
animation: rotateArc 45s infinite linear; animation: rotateArc 45s infinite linear;
position: absolute; position: absolute;
left: 50%; left: 50%;
top: 50%; top: 50%;
&::before { &::before {
position: absolute; position: absolute;
content: ""; content: "";
...@@ -255,11 +258,13 @@ page { ...@@ -255,11 +258,13 @@ page {
animation: rotate 3s infinite ease-in-out; animation: rotate 3s infinite ease-in-out;
} }
} }
@keyframes rotate { @keyframes rotate {
100% { 100% {
transform: rotate(0deg); transform: rotate(0deg);
} }
} }
.canvas { .canvas {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -297,15 +302,6 @@ page { ...@@ -297,15 +302,6 @@ page {
margin-top: 24rpx; margin-top: 24rpx;
height: 448rpx; height: 448rpx;
.score-bg {
width: 432rpx;
height: 432rpx;
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
z-index: -1;
}
.categories { .categories {
.title { .title {
...@@ -325,6 +321,7 @@ page { ...@@ -325,6 +321,7 @@ page {
transform: rotate(-45deg); transform: rotate(-45deg);
} }
} }
} }
.categories-1 { .categories-1 {
...@@ -359,11 +356,25 @@ page { ...@@ -359,11 +356,25 @@ page {
} }
} }
.pending {
.title {
color: #999EA8 !important;
&::after {
display: none !important;
}
}
&-text {
font-size: 22rpx;
color: #3275FA;
}
}
.type-4 { .type-4 {
.canvas { .canvas {
// transform: scale(1.45) translateY(5%); // transform: scale(1.45) translateY(5%);
transform: scale(1.45) rotate(-45deg); transform: scale(1.45) rotate(-45deg);
transform-origin:center center; transform-origin: center center;
} }
.categories-1 { .categories-1 {
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</navigation-bar> </navigation-bar>
<view class="wrapper" style="margin-top: {{navBarHeight}}px;height: calc(100vh - {{navBarHeight + footerHeight}}px);" wx:if="{{tabId == 1}}"> <view class="wrapper" style="margin-top: {{navBarHeight}}px;height: calc(100vh - {{navBarHeight + footerHeight}}px);" wx:if="{{tabId == 1}}">
<block wx:if="{{duration}}"> <block wx:if="{{duration}}">
<view class="canvas-box type-{{reportItem.length}}"> <view class="canvas-box type-{{reportItem.length}} {{score == null?'pending':''}}">
<view style="position: relative;"> <view style="position: relative;">
<view class="canvas-view"> <view class="canvas-view">
<block wx:if="{{radarImg}}"> <block wx:if="{{radarImg}}">
...@@ -26,9 +26,14 @@ ...@@ -26,9 +26,14 @@
<block wx:for="{{reportItem}}" wx:key="index"> <block wx:for="{{reportItem}}" wx:key="index">
<view class="categories categories-{{index + 1}}" bindtap="jump" data-item="{{item}}"> <view class="categories categories-{{index + 1}}" bindtap="jump" data-item="{{item}}">
<view class="title">{{item.reportItem}}</view> <view class="title">{{item.reportItem}}</view>
<block wx:if="{{score == null && item.reportItem == '服务态度'}}">
<view class="pending-text">分析中...</view>
</block>
<block wx:else>
<block wx:for="{{item.starList}}" wx:key="i" wx:for-item="i"> <block wx:for="{{item.starList}}" wx:key="i" wx:for-item="i">
<gl-image class="star" src="/aiCheck/star-{{i}}.png"></gl-image> <gl-image class="star" src="/aiCheck/star-{{i}}.png"></gl-image>
</block> </block>
</block>
</view> </view>
</block> </block>
</view> </view>
...@@ -138,5 +143,5 @@ ...@@ -138,5 +143,5 @@
<view class="footer" id="footer"> <view class="footer" id="footer">
<view class="back-home" bindtap="backHome">返回首页</view> <view class="back-home" bindtap="backHome">返回首页</view>
<view class="again" bindtap="again">再来一次</view> <view class="again" bindtap="again">再来一次</view>
</view> </view>
</block> </block>
\ No newline at end of file \ No newline at end of file
...@@ -26,8 +26,8 @@ Component({ ...@@ -26,8 +26,8 @@ Component({
mode: { mode: {
type: Number, type: Number,
}, },
staffUuid:{ staffUuid: {
type:String type: String
} }
}, },
/** /**
...@@ -163,7 +163,7 @@ Component({ ...@@ -163,7 +163,7 @@ Component({
this.onLoad(true); this.onLoad(true);
// this.getMerchant4SMode() // this.getMerchant4SMode()
}, },
resize(res) {}, resize(res) { },
}, },
/** /**
* 组件的方法列表 * 组件的方法列表
...@@ -308,9 +308,9 @@ Component({ ...@@ -308,9 +308,9 @@ Component({
if (!userInfo.isSuper) { if (!userInfo.isSuper) {
params.transferIds = [userInfo.uuid]; params.transferIds = [userInfo.uuid];
} }
if(staffUuid){ if (staffUuid) {
params.transferIds = [staffUuid]; params.transferIds = [staffUuid];
}else{ } else {
params.merchantId = storeInfo?.merchantId; params.merchantId = storeInfo?.merchantId;
} }
...@@ -420,8 +420,8 @@ Component({ ...@@ -420,8 +420,8 @@ Component({
this.setData({ this.setData({
tabIndex, tabIndex,
orderStatus, orderStatus,
currentPage:1, currentPage: 1,
list:[] list: []
}); });
this.search(); this.search();
this.getOrderStatistics(); this.getOrderStatistics();
...@@ -550,9 +550,9 @@ Component({ ...@@ -550,9 +550,9 @@ Component({
if (!userInfo.isSuper) { if (!userInfo.isSuper) {
obj.transferIds = [userInfo.uuid]; obj.transferIds = [userInfo.uuid];
} }
if(staffUuid){ if (staffUuid) {
obj.transferIds = [staffUuid]; obj.transferIds = [staffUuid];
}else{ } else {
obj.merchantIds = [storeInfo?.merchantId]; obj.merchantIds = [storeInfo?.merchantId];
} }
...@@ -596,7 +596,7 @@ Component({ ...@@ -596,7 +596,7 @@ Component({
}, },
//手指触摸动作开始 记录起点X坐标 //手指触摸动作开始 记录起点X坐标
touchstart: function (e) { touchstart: function (e) {
let { ind} = e.currentTarget.dataset; let { ind } = e.currentTarget.dataset;
//开始触摸时 重置所有删除 //开始触摸时 重置所有删除
this.data.list[ind].forEach((v) => { this.data.list[ind].forEach((v) => {
// console.log(item) // console.log(item)
...@@ -618,7 +618,7 @@ Component({ ...@@ -618,7 +618,7 @@ Component({
// if (condition) { // if (condition) {
// } // }
// let { userInfo } = this.data // let { userInfo } = this.data
let { item ,ind} = e.currentTarget.dataset; let { item, ind } = e.currentTarget.dataset;
// console.log(!li.repeal) // console.log(!li.repeal)
if (!item.repeal) return; if (!item.repeal) return;
// let userType = !userInfo.isSuper && userInfo.merchantType // let userType = !userInfo.isSuper && userInfo.merchantType
...@@ -668,7 +668,7 @@ Component({ ...@@ -668,7 +668,7 @@ Component({
var that = this; var that = this;
// console.log(e.changedTouches.length) // console.log(e.changedTouches.length)
// debugger // debugger
let { item,ind } = e.currentTarget.dataset; let { item, ind } = e.currentTarget.dataset;
// // console.log(!li.repeal) // // console.log(!li.repeal)
if (!item.repeal) return; if (!item.repeal) return;
if (e.changedTouches.length == 1) { if (e.changedTouches.length == 1) {
...@@ -711,8 +711,8 @@ Component({ ...@@ -711,8 +711,8 @@ Component({
}) })
}, },
confirmRepeal() { confirmRepeal() {
const {repealReason, repealId} = this.data const { repealReason, repealId } = this.data
if(!repealReason){ if (!repealReason) {
wx.showToast({ wx.showToast({
title: '请填写撤销原因', title: '请填写撤销原因',
duration: 2000, duration: 2000,
...@@ -726,12 +726,12 @@ Component({ ...@@ -726,12 +726,12 @@ Component({
console.log(e.currentTarget.dataset, 'e.currentTarget.dataset') console.log(e.currentTarget.dataset, 'e.currentTarget.dataset')
const { id, repeal, status } = e.currentTarget.dataset; const { id, repeal, status } = e.currentTarget.dataset;
let _this = this; let _this = this;
if(repeal && status==-1) { if (repeal && status == -1) {
this.setData({ this.setData({
repealVisible: true, repealVisible: true,
repealId: id repealId: id
}) })
}else{ } else {
wx.showModal({ wx.showModal({
title: "", title: "",
content: "是否取撤销该工单?", content: "是否取撤销该工单?",
...@@ -757,10 +757,10 @@ Component({ ...@@ -757,10 +757,10 @@ Component({
}, },
}); });
}, },
repeal(id , revokeReason) { repeal(id, revokeReason) {
let _this = this; let _this = this;
let params = {id} let params = { id }
if(revokeReason) { if (revokeReason) {
params.revokeReason = revokeReason params.revokeReason = revokeReason
} }
cancelOrderById(params).then((_res_) => { cancelOrderById(params).then((_res_) => {
...@@ -772,7 +772,12 @@ Component({ ...@@ -772,7 +772,12 @@ Component({
icon: "success", icon: "success",
}); });
setTimeout(() => { setTimeout(() => {
_this.setData({
list: []
})
_this.search(); _this.search();
// _this.getList();
}, 500); }, 500);
} else { } else {
wx.$util.showToast(message); wx.$util.showToast(message);
...@@ -808,7 +813,7 @@ Component({ ...@@ -808,7 +813,7 @@ Component({
} }
); );
}, },
error: () => {}, error: () => { },
}); });
} }
); );
...@@ -826,7 +831,7 @@ Component({ ...@@ -826,7 +831,7 @@ Component({
}, },
showConfirm() { showConfirm() {
const thisPage = wx.$router.getPageInstance(); const thisPage = wx.$router.getPageInstance();
let {orderStatus} = this.data let { orderStatus } = this.data
thisPage.setData({ thisPage.setData({
showScreen: true, showScreen: true,
showOrderRendering: true, showOrderRendering: true,
...@@ -851,11 +856,6 @@ Component({ ...@@ -851,11 +856,6 @@ Component({
detail: tabIndex, detail: tabIndex,
orderStatus: e.detail.orderStatus, orderStatus: e.detail.orderStatus,
}); });
// this.setData({
// tabIndex
// })
// this.search()
// this.getOrderStatistics()
}, },
/**获取门店主营品牌 */ /**获取门店主营品牌 */
async getMerchantCarBrandList() { async getMerchantCarBrandList() {
......
...@@ -181,7 +181,8 @@ Component({ ...@@ -181,7 +181,8 @@ Component({
storeRangeList = tempList storeRangeList = tempList
} }
this.setData({ this.setData({
storeRangeList: searchValue ? arr : tempList storeRangeList: searchValue ? arr : tempList,
isReset: false
}) })
}, },
merchantChoose() { merchantChoose() {
......
...@@ -111,4 +111,4 @@ ...@@ -111,4 +111,4 @@
<view class="btn done text-center" bindtap="confirm">确定</view> <view class="btn done text-center" bindtap="confirm">确定</view>
</view> </view>
</scroll-view> </scroll-view>
<screen-select-popup show="{{showSelectPopup}}" bindconfirm="popupConfirm" bindcancel="hidePopup" bindfilterStore="filterPopupList" selectedData="{{form.selectedMerchantList}}" list="{{storeRangeList || []}}" bindupdata="updata"></screen-select-popup> <screen-select-popup show="{{showSelectPopup}}" bindconfirm="popupConfirm" bindcancel="hideStorePopup" bindfilterStore="filterPopupList" selectedData="{{form.selectedMerchantList}}" list="{{storeRangeList || []}}" bindupdata="updata"></screen-select-popup>
// components/StoreSelectPopup/StoreSelectPopup.js // components/StoreSelectPopup/StoreSelectPopup.js
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
Component({ Component({
/** /**
...@@ -13,11 +14,12 @@ Component({ ...@@ -13,11 +14,12 @@ Component({
this.setData({ this.setData({
scrollTop: 0, scrollTop: 0,
searchValue: '', searchValue: '',
edit: false,
copySelectedData: JSON.parse(JSON.stringify(selectedData)) copySelectedData: JSON.parse(JSON.stringify(selectedData))
}, () => { }, () => {
this.resetListData()
// 清空搜索条件后重置全部门店数据 // 清空搜索条件后重置全部门店数据
this.triggerEvent('updata', '') this.triggerEvent('updata', '')
this.resetListData()
}) })
} }
} }
...@@ -36,6 +38,7 @@ Component({ ...@@ -36,6 +38,7 @@ Component({
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
IMG_URL,
scrollTop: 0, scrollTop: 0,
tempList: [], tempList: [],
copySelectedData: [] copySelectedData: []
...@@ -143,9 +146,13 @@ Component({ ...@@ -143,9 +146,13 @@ Component({
list[0].active = true list[0].active = true
} }
} }
copySelectedData = list.filter(val => { let arr = []
if (val.active) return val // 已选的搜索后未显示出的数据置为选中状态
let selectedArr = wx.$util.arrayUnique(copySelectedData.concat(list), 'merchantNo')
selectedArr.forEach(val => {
if (val.active && val.merchantNo) arr.push(val)
}) })
copySelectedData = arr
this.setData({ this.setData({
copySelectedData, copySelectedData,
list list
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
</view> </view>
<view class="title">门店名称</view> <view class="title">门店名称</view>
<scroll-view class="store-select-box" scroll-y enhanced="{{true}}" show-scrollbar="{{false}}" scroll-top="{{scrollTop}}" bindscrolltolower="scrollonReachBottom"> <scroll-view class="store-select-box" scroll-y enhanced="{{true}}" show-scrollbar="{{false}}" scroll-top="{{scrollTop}}" bindscrolltolower="scrollonReachBottom">
<block wx:if="{{list.length}}">
<view class="box"> <view class="box">
<view class="merchant-box"> <view class="merchant-box">
<block wx:for="{{list}}" wx:key="index"> <block wx:for="{{list}}" wx:key="index">
...@@ -53,5 +54,12 @@ ...@@ -53,5 +54,12 @@
</block> </block>
</view> </view>
</view> </view>
</block>
<block wx:else>
<view class="empty-box">
<image class="no-data-img" src="{{IMG_URL}}empty_data.png" />
<view class="list-not-text">暂无门店</view>
</view>
</block>
</scroll-view> </scroll-view>
</popup> </popup>
\ No newline at end of file \ No newline at end of file
...@@ -90,3 +90,21 @@ ...@@ -90,3 +90,21 @@
border-radius: 100%; border-radius: 100%;
box-sizing: border-box; box-sizing: border-box;
} }
.empty-box{
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
.empty-box .no-data-img{
width: var(--fontSize160);
height: var(--fontSize160);
}
.empty-box .list-not-text{
margin-top: var(--fontSize10);
font-size: var(--fontSize28);
color: #BEC1C7;
}
\ No newline at end of file \ No newline at end of file
...@@ -183,7 +183,8 @@ Component({ ...@@ -183,7 +183,8 @@ Component({
pageNum: 1, // 接待记录时间轴分页 pageNum: 1, // 接待记录时间轴分页
searchForm: {}, searchForm: {},
showEmployeeName: false, // 是否展示销售顾问字段 showEmployeeName: false, // 是否展示销售顾问字段
isShowDefeatBtn: true // 是否展示录单按钮入口 isShowDefeatBtn: true, // 是否展示录单按钮入口
loaded: false
}, },
lifetimes: { lifetimes: {
...@@ -505,7 +506,9 @@ Component({ ...@@ -505,7 +506,9 @@ Component({
}) })
} }
this.setData({ this.setData({
storeRangeList: data storeRangeList: data,
listData: [],
nothing: false
}, () => { }, () => {
this.getReceptionList() this.getReceptionList()
}) })
...@@ -523,7 +526,10 @@ Component({ ...@@ -523,7 +526,10 @@ Component({
// 获取接待记录统计数据 // 获取接待记录统计数据
getReceptionList() { getReceptionList() {
let params = this.getParams() let params = this.getParams()
wx.$util.showLoading() this.setData({
loaded: false
}, () => {
wx.showLoading('加载中')
getReceptionRecordList({ getReceptionRecordList({
merchantNo: params.merchantNo, merchantNo: params.merchantNo,
startDateTime: params.startDateTime, startDateTime: params.startDateTime,
...@@ -546,6 +552,9 @@ Component({ ...@@ -546,6 +552,9 @@ Component({
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
} }
}).catch(err => {
wx.hideLoading()
})
}) })
}, },
// 获取接待记录接待时间轴详情数据 // 获取接待记录接待时间轴详情数据
...@@ -556,24 +565,27 @@ Component({ ...@@ -556,24 +565,27 @@ Component({
...this.getParams() ...this.getParams()
} }
if (nothing) return // 进获取近七天数据 if (nothing) return // 进获取近七天数据
wx.$util.showLoading() wx.showLoading('加载中')
getRecordDetailList(params).then(res => { getRecordDetailList(params).then(res => {
let { code, data, message } = res let { code, data, message } = res
if (code == 0) { if (code == 0) {
listData?.forEach(val => { listData?.forEach(val => {
data?.list?.forEach(subV => { data?.list?.forEach(subV => {
if (val.staticDate == subV.staticDate) val.receptionStaticInfoDTOList.push(subV) if (val.staticDate == subV.staticDate && val.receptionStaticInfoDTOList?.findIndex(v => v.fileUrl == subV.fileUrl) < 0) val.receptionStaticInfoDTOList.push(subV)
}) })
}) })
this.setData({ this.setData({
loaded: true,
listData, listData,
pageNum: pageNum + 1, pageNum: pageNum + 1,
nothing: data?.total == listData.reduce((acc, curr) => acc + curr?.receptionStaticInfoDTOList?.length, 0) || pageNum == data?.pages nothing: pageNum == data?.pages || data?.total == listData.reduce((acc, curr) => acc + curr?.receptionStaticInfoDTOList?.length, 0)
}) })
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
} }
wx.$util.hideLoading() wx.hideLoading()
}).catch(err => {
wx.hideLoading()
}) })
}, },
// 过滤升级/战败接待记录数据 // 过滤升级/战败接待记录数据
...@@ -1132,7 +1144,9 @@ Component({ ...@@ -1132,7 +1144,9 @@ Component({
this.setData({ this.setData({
isFilterUpgrade: orderResult?.includes(1), isFilterUpgrade: orderResult?.includes(1),
isFilterDefeat: orderResult?.includes(2), isFilterDefeat: orderResult?.includes(2),
searchForm searchForm,
listData: [],
nothing: false
}, () => { }, () => {
this.getReceptionList() this.getReceptionList()
}) })
......
...@@ -490,7 +490,7 @@ swiper{ ...@@ -490,7 +490,7 @@ swiper{
margin: 0 var(--fontSize16) 0 var(--fontSize8); margin: 0 var(--fontSize16) 0 var(--fontSize8);
} }
.name{ .name{
color: #999EA8; color: #292D33;
font-size: var(--fontSize24); font-size: var(--fontSize24);
width: var(--fontSize430); width: var(--fontSize430);
&.text-hide{ &.text-hide{
...@@ -573,8 +573,12 @@ swiper{ ...@@ -573,8 +573,12 @@ swiper{
padding-top: var(--fontSize8); padding-top: var(--fontSize8);
margin-right: var(--fontSize4); margin-right: var(--fontSize4);
.round-dot{ .round-dot{
font-size: var(--fontSize20);
width: var(--fontSize28); width: var(--fontSize28);
height: var(--fontSize36); height: var(--fontSize36);
display: flex;
align-items: center;
justify-content: center;
border-radius: var(--fontSize14); border-radius: var(--fontSize14);
background: #5A5E66; background: #5A5E66;
color: #FFFFFF; color: #FFFFFF;
...@@ -629,7 +633,7 @@ swiper{ ...@@ -629,7 +633,7 @@ swiper{
} }
.list-not-text{ .list-not-text{
margin-top: var(--fontSize10); margin-top: var(--fontSize10);
font-size: var(--fontSize28); font-size: var(--fontSize24);
color: #BEC1C7; color: #BEC1C7;
} }
} }
......
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
<view class="receive-list" wx:if="{{storeRangeList.length}}"> <view class="receive-list" wx:if="{{storeRangeList.length}}">
<view class="'screen-box' {{showScreen ? '' : 'sticky-screen'}} {{isScrollTop ? 'bg-white' : ''}}"> <view class="'screen-box' {{showScreen ? '' : 'sticky-screen'}} {{isScrollTop ? 'bg-white' : ''}}">
<view> <view>
<text class="title">接待记录</text> <!-- <text class="title">接待记录</text> -->
<text class="name text-hide">{{searchForm.merchantNames.length > 1 ? '部分门店' : searchForm.merchantNames.length ? filter.filterMerchantName(searchForm.merchantNames) : !userInfo.isSuper ? userInfo.default4SStoreInfo.merchantName : '全部门店'}}</text> <text class="name text-hide">{{searchForm.merchantNames.length > 1 ? '部分门店' : searchForm.merchantNames.length ? filter.filterMerchantName(searchForm.merchantNames) : !userInfo.isSuper ? userInfo.default4SStoreInfo.merchantName : '全部门店'}}</text>
</view> </view>
<view bindtap="showScreenPop"> <view bindtap="showScreenPop">
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
<block wx:for="{{item.receptionStaticInfoDTOList}}" wx:key="time" wx:for-index="subIndex" wx:for-item="record"> <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" bindtap="goReceptionDetail" data-item="{{record}}">
<view class="record-card-top"> <view class="record-card-top">
<text class="round-dot">{{subIndex + 1}}</text> <text class="round-dot" style="font-size: {{subIndex + 1 > 99 ? 'var(--fontSize16)' : 'var(--fontSize20)'}};">{{subIndex + 1}}</text>
<view class="card-line"></view> <view class="card-line"></view>
</view> </view>
<view class="card-item"> <view class="card-item">
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
</block> </block>
</block> </block>
</block> </block>
<block wx:if="{{!filter.isShowEmpty(listData)}}"> <block wx:if="{{!filter.isShowEmpty(listData) && loaded}}">
<view class="empty-box"> <view class="empty-box">
<image class="no-data-img" src="{{IMG_URL}}empty_data.png" /> <image class="no-data-img" src="{{IMG_URL}}empty_data.png" />
<view class="list-not-text">近七天暂无接待记录数据</view> <view class="list-not-text">近七天暂无接待记录数据</view>
......
...@@ -35,7 +35,7 @@ Component({ ...@@ -35,7 +35,7 @@ Component({
} = e.currentTarget.dataset } = e.currentTarget.dataset
this.setData({ this.setData({
activeIndex: index, activeIndex: index,
scrollTop: 9 scrollTop:0
}) })
}, },
getReceptionResult() { getReceptionResult() {
......
...@@ -46,10 +46,12 @@ Component({ ...@@ -46,10 +46,12 @@ Component({
const { const {
dialogueList dialogueList
} = this.data, { } = this.data, {
paused
} = this.innerAudioContext, {
mergedOffset mergedOffset
} = this.setProgress(), } = this.setProgress(),
item = dialogueList.find(e => e.mergedOffset == mergedOffset) item = dialogueList.find(e => e.mergedOffset == mergedOffset)
this.setData({ if (!paused) this.setData({
isPlayIng: true isPlayIng: true
}) })
if (this.data.isScrollling) return if (this.data.isScrollling) return
......
...@@ -100,13 +100,18 @@ ...@@ -100,13 +100,18 @@
color: #fff; color: #fff;
} }
} }
.hide-margin{
margin-bottom: 0;
}
.active { .active {
background: #F0F6FF; background: #F0F6FF;
.appeal-btn { .appeal-btn {
display: block; display: block;
} }
.text{
font-weight: 500;
}
} }
.detail-box { .detail-box {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<scroll-view class="scroll-view" enhanced scroll-y <scroll-view class="scroll-view" enhanced scroll-y
scroll-into-view="{{toId}}" show-scrollbar="{{false}}" bindtouchstart="touchstart" bindtouchend="touchend"> scroll-into-view="{{toId}}" show-scrollbar="{{false}}" bindtouchstart="touchstart" bindtouchend="touchend">
<block wx:for="{{dialogueList}}" wx:key="index"> <block wx:for="{{dialogueList}}" wx:key="index">
<view class="item {{activeId == item.text_id?'active':''}}" id="{{item.text_id}}" data-click bindtap="seekPlay" data-item="{{item}}" data-index="{{index}}"> <view class="item {{activeId == item.text_id?'active':''}} {{item.conversationCheckDetailDTO || item.defenceDetail ? 'hide-margin' :''}}" id="{{item.text_id}}" data-click bindtap="seekPlay" data-item="{{item}}" data-index="{{index}}">
<block wx:if="{{item.visible}}"> <block wx:if="{{item.visible}}">
<view class="avatar-box"> <view class="avatar-box">
<view class="icon"> <view class="icon">
......
...@@ -255,7 +255,9 @@ Component({ ...@@ -255,7 +255,9 @@ Component({
thisPage.setData({ thisPage.setData({
activeIndex: 0 activeIndex: 0
}, () => { }, () => {
setTimeout(()=>{
thisPage.dialogueRef().setTopId(item, true) thisPage.dialogueRef().setTopId(item, true)
},200)
}) })
}, },
......
...@@ -156,9 +156,13 @@ Page({ ...@@ -156,9 +156,13 @@ Page({
index index
} = e.currentTarget.dataset } = e.currentTarget.dataset
this.setData({ this.setData({
activeIndex: index, activeIndex: index
})
if(index!=2){
this.setData({
avgDefence: '' avgDefence: ''
}) })
}
}, },
navbarReady(e) { navbarReady(e) {
let navBarHeight = e.detail.height; let navBarHeight = e.detail.height;
......
...@@ -16,7 +16,8 @@ Page({ ...@@ -16,7 +16,8 @@ Page({
searchForm: {}, searchForm: {},
nothing: false, nothing: false,
showEmployeeName: false, // 是否展示销售顾问字段 showEmployeeName: false, // 是否展示销售顾问字段
isShowDefeatBtn: true isShowDefeatBtn: true,
loaded: false
}, },
/** /**
...@@ -44,7 +45,8 @@ Page({ ...@@ -44,7 +45,8 @@ Page({
} = res } = res
if (code == 0) { if (code == 0) {
this.setData({ this.setData({
storeRangeList: data storeRangeList: data,
listData: []
}, () => { }, () => {
this.getReceptionList() this.getReceptionList()
}) })
...@@ -127,7 +129,10 @@ Page({ ...@@ -127,7 +129,10 @@ Page({
getReceptionList() { getReceptionList() {
let { listData } = this.data let { listData } = this.data
let params = this.getParams() let params = this.getParams()
wx.$util.showLoading() this.setData({
loaded: false
}, () => {
wx.showLoading()
getReceptionRecordList({ getReceptionRecordList({
merchantNo: params.merchantNo, merchantNo: params.merchantNo,
startDateTime: params.startDateTime, startDateTime: params.startDateTime,
...@@ -149,7 +154,11 @@ Page({ ...@@ -149,7 +154,11 @@ Page({
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
} }
}).catch(err => {
wx.hideLoading()
}) })
})
}, },
// 获取接待记录接待时间轴详情数据 // 获取接待记录接待时间轴详情数据
getReceptionRecordDetailInfo() { getReceptionRecordDetailInfo() {
...@@ -159,26 +168,29 @@ Page({ ...@@ -159,26 +168,29 @@ Page({
...this.getParams() ...this.getParams()
} }
if (nothing) return if (nothing) return
wx.$util.showLoading() wx.showLoading('加载中')
getRecordDetailList(params).then(res => { getRecordDetailList(params).then(res => {
let { code, data, message } = res let { code, data, message } = res
if (code == 0) { if (code == 0) {
listData?.forEach(val => { listData?.forEach(val => {
data?.list?.forEach(subV => { data?.list?.forEach(subV => {
if (val.staticDate == subV.staticDate) val.receptionStaticInfoDTOList.push(subV) if (val.staticDate == subV.staticDate && val.receptionStaticInfoDTOList?.findIndex(v => v.fileUrl == subV.fileUrl) < 0) val.receptionStaticInfoDTOList.push(subV)
}) })
}) })
let listDataLength = listData.reduce((acc, curr) => acc + curr?.receptionStaticInfoDTOList?.length, 0) let listDataLength = listData.reduce((acc, curr) => acc + curr?.receptionStaticInfoDTOList?.length, 0)
this.setData({ this.setData({
loaded: true,
listData, listData,
pageNum: pageNum + 1, pageNum: pageNum + 1,
triggered: false, triggered: false,
nothing: listDataLength == data?.total || pageNum == data?.pages nothing: pageNum == data?.pages || listDataLength == data?.total
}) })
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
} }
wx.$util.hideLoading() wx.hideLoading()
}).catch(err => {
wx.hideLoading()
}) })
}, },
// 过滤升级/战败接待记录数据 // 过滤升级/战败接待记录数据
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
margin: 0 var(--fontSize16) 0 var(--fontSize8); margin: 0 var(--fontSize16) 0 var(--fontSize8);
} }
.name{ .name{
color: #999EA8; color: #292D33;
font-size: var(--fontSize24); font-size: var(--fontSize24);
width: var(--fontSize430); width: var(--fontSize430);
&.text-hide{ &.text-hide{
...@@ -51,6 +51,9 @@ ...@@ -51,6 +51,9 @@
.box-content{ .box-content{
position: relative; position: relative;
} }
.empty-contant{
height: 100%;
}
.date-section { .date-section {
height: var(--fontSize72); height: var(--fontSize72);
line-height: var(--fontSize70); line-height: var(--fontSize70);
...@@ -111,8 +114,12 @@ ...@@ -111,8 +114,12 @@
padding-top: var(--fontSize8); padding-top: var(--fontSize8);
margin-right: var(--fontSize4); margin-right: var(--fontSize4);
.round-dot{ .round-dot{
font-size: var(--fontSize20);
width: var(--fontSize28); width: var(--fontSize28);
height: var(--fontSize36); height: var(--fontSize36);
display: flex;
align-items: center;
justify-content: center;
border-radius: var(--fontSize14); border-radius: var(--fontSize14);
background: #5A5E66; background: #5A5E66;
color: #FFFFFF; color: #FFFFFF;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<view class="records-page" style="padding-top:{{ navBarHeight }}px;position: relative;"> <view class="records-page" style="padding-top:{{ navBarHeight }}px;position: relative;">
<view class="screen-box"> <view class="screen-box">
<view> <view>
<text class="title">接待记录</text> <!-- <text class="title">接待记录</text> -->
<text class="name text-hide">{{searchForm.merchantNames.length > 1 ? '部分门店' : searchForm.merchantNames.length ? filter.filterMerchantName(searchForm.merchantNames) : !userInfo.isSuper ? userInfo.default4SStoreInfo.merchantName : '全部门店'}}</text> <text class="name text-hide">{{searchForm.merchantNames.length > 1 ? '部分门店' : searchForm.merchantNames.length ? filter.filterMerchantName(searchForm.merchantNames) : !userInfo.isSuper ? userInfo.default4SStoreInfo.merchantName : '全部门店'}}</text>
</view> </view>
<view bindtap="showScreenPop"> <view bindtap="showScreenPop">
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</view> </view>
</view> </view>
<scroll-view scroll-y class="list-box" enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="refreshListData" bindscrolltolower="onBottomRefresh" style="height: calc(100% - var(--fontSize80));" scroll-top="{{scrollTop}}" refresher-threshold="104" refresher-triggered="{{triggered}}"> <scroll-view scroll-y class="list-box" enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="refreshListData" bindscrolltolower="onBottomRefresh" style="height: calc(100% - var(--fontSize80));" scroll-top="{{scrollTop}}" refresher-threshold="104" refresher-triggered="{{triggered}}">
<view class="box-content"> <view class="box-content {{!filter.isShowEmpty(listData) ? 'empty-contant' : ''}}">
<block wx:if="{{filter.isShowEmpty(listData)}}"> <block wx:if="{{filter.isShowEmpty(listData)}}">
<block wx:for="{{listData}}" wx:key="date" wx:if="{{item.receptionStaticInfoDTOList.length}}"> <block wx:for="{{listData}}" wx:key="date" wx:if="{{item.receptionStaticInfoDTOList.length}}">
<view class="date-section"> <view class="date-section">
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<block wx:for="{{item.receptionStaticInfoDTOList}}" wx:key="subIndex" wx:for-index="subIndex" wx:for-item="record"> <block wx:for="{{item.receptionStaticInfoDTOList}}" wx:key="subIndex" wx:for-index="subIndex" wx:for-item="record">
<view class="record-card" bind:tap="goto" data-record="{{record}}"> <view class="record-card" bind:tap="goto" data-record="{{record}}">
<view class="record-card-top"> <view class="record-card-top">
<text class="round-dot">{{subIndex + 1}}</text> <text class="round-dot" style="font-size: {{subIndex + 1 > 99 ? 'var(--fontSize16)' : 'var(--fontSize20)'}};">{{subIndex + 1}}</text>
<view class="card-line"></view> <view class="card-line"></view>
</view> </view>
<view class="card-item" wx:key="subIndex"> <view class="card-item" wx:key="subIndex">
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<view class="list-nothing">到底了~</view> <view class="list-nothing">到底了~</view>
</block> </block>
</block> </block>
<block wx:else> <block wx:if="{{!filter.isShowEmpty(listData) && loaded}}">
<empty-data /> <empty-data />
</block> </block>
</view> </view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!