Commit a3b39204 by 李伟康

fix(recordingReviewDetail): 修复分享功能中的接待状态显示问题

- 移除了未使用的接待状态映射对象
- 直接使用固定值'战败'替代动态状态显示
- 简化了数据结构,移除了不必要的变量解构
- 保持了分享文本格式的一致性
1 parent aff6093e
...@@ -257,12 +257,7 @@ Page({ ...@@ -257,12 +257,7 @@ Page({
async share(e) { async share(e) {
const { const {
record record
} = this.data, } = this.data, {
receptionStatus = {
1: '成交',
2: '战败',
3: '未知'
} [record.orderStatus], {
endTime, endTime,
totalDuration, totalDuration,
startTime, startTime,
...@@ -278,7 +273,7 @@ Page({ ...@@ -278,7 +273,7 @@ Page({
}) })
if (res.code == '0') { if (res.code == '0') {
// 门店 - 接待开始时间 - 接待时长 - 员工标记的接待结果 - 接待录音mp3地址(更换成短链) // 门店 - 接待开始时间 - 接待时长 - 员工标记的接待结果 - 接待录音mp3地址(更换成短链)
let text = [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, res.data].join(' - ') let text = [merchantName, wx.$util.tsFormatTime(startTime, 'Y年M月D日 h:m:s'), wx.$util.tsFormatTime(endTime, 'Y年M月D日 h:m:s'), this.format(totalDuration), '战败', res.data].join(' - ')
wx.$util.setCopyData(text) wx.$util.setCopyData(text)
} else { } else {
wx.$util.showToast('获取短链失败') wx.$util.showToast('获取短链失败')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!