|
@@ -25,32 +25,32 @@
|
25
|
25
|
import { onLoad } from '@dcloudio/uni-app'
|
26
|
26
|
import { useLoginUserStore } from '@/stores/loginUser'
|
27
|
27
|
import { api_wechatRequesterIncident, api_callrecord } from "@/http/api.js"
|
28
|
|
-
|
|
28
|
+
|
29
|
29
|
const emit = defineEmits(['cancelEmit', 'knowEmit']);
|
30
|
30
|
const { incidentData } = defineProps({
|
31
|
31
|
incidentData: Object,
|
32
|
32
|
});
|
33
|
33
|
const loginUserStore = useLoginUserStore();
|
34
|
|
-
|
|
34
|
+
|
35
|
35
|
// 页面数据
|
36
|
36
|
const pageData = reactive({
|
37
|
37
|
repairImgList: [],//报修图片
|
38
|
38
|
audioSrc: '',//音频
|
39
|
39
|
});
|
40
|
|
-
|
|
40
|
+
|
41
|
41
|
const audio = ref(null);
|
42
|
|
-
|
|
42
|
+
|
43
|
43
|
// 取消
|
44
|
44
|
function cancel(){
|
45
|
45
|
emit('cancelEmit')
|
46
|
46
|
}
|
47
|
|
-
|
|
47
|
+
|
48
|
48
|
// 确认
|
49
|
49
|
function know(){
|
50
|
50
|
audio.value && audio.value.audioDestroy()
|
51
|
51
|
emit('knowEmit');
|
52
|
52
|
}
|
53
|
|
-
|
|
53
|
+
|
54
|
54
|
// 预览图片
|
55
|
55
|
function previewImg(index){
|
56
|
56
|
uni.previewImage({
|
|
@@ -67,7 +67,7 @@
|
67
|
67
|
}
|
68
|
68
|
});
|
69
|
69
|
}
|
70
|
|
-
|
|
70
|
+
|
71
|
71
|
// 获取报修图片
|
72
|
72
|
function getRepairImgs() {
|
73
|
73
|
uni.showLoading({
|
|
@@ -83,7 +83,7 @@
|
83
|
83
|
pageData.repairImgList = res.data;
|
84
|
84
|
});
|
85
|
85
|
}
|
86
|
|
-
|
|
86
|
+
|
87
|
87
|
// 获取通话音频
|
88
|
88
|
function getCallrecord() {
|
89
|
89
|
uni.showLoading({
|
|
@@ -100,7 +100,7 @@
|
100
|
100
|
if(res.status == 200){
|
101
|
101
|
res.list = res.list || [];
|
102
|
102
|
if(res.list.length){
|
103
|
|
- pageData.audioSrc = location.protocol + "//" + location.hostname + res.list[0].recordingFileName;
|
|
103
|
+ pageData.audioSrc = location.origin + res.list[0].recordingFileName;
|
104
|
104
|
}else{
|
105
|
105
|
pageData.audioSrc = '';
|
106
|
106
|
}
|
|
@@ -112,7 +112,7 @@
|
112
|
112
|
}
|
113
|
113
|
});
|
114
|
114
|
}
|
115
|
|
-
|
|
115
|
+
|
116
|
116
|
onLoad((option) => {
|
117
|
117
|
incidentData.reqAttachment && getRepairImgs();
|
118
|
118
|
incidentData.callID && getCallrecord();
|
|
@@ -138,14 +138,14 @@
|
138
|
138
|
width: 690rpx;
|
139
|
139
|
background-color: #fff;
|
140
|
140
|
border-radius: 10rpx;
|
141
|
|
-
|
|
141
|
+
|
142
|
142
|
.container_head{
|
143
|
143
|
padding: 55rpx;
|
144
|
144
|
font-size: 32rpx;
|
145
|
145
|
color: #333;
|
146
|
146
|
text-align: center;
|
147
|
147
|
}
|
148
|
|
-
|
|
148
|
+
|
149
|
149
|
.container_form{
|
150
|
150
|
padding: 0 55rpx;
|
151
|
151
|
.repairImgList{
|
|
@@ -159,12 +159,12 @@
|
159
|
159
|
height: 186rpx;
|
160
|
160
|
}
|
161
|
161
|
}
|
162
|
|
-
|
|
162
|
+
|
163
|
163
|
.audio{
|
164
|
164
|
margin-bottom: 45rpx;
|
165
|
165
|
}
|
166
|
166
|
}
|
167
|
|
-
|
|
167
|
+
|
168
|
168
|
.container_foot{
|
169
|
169
|
.foot_btns{
|
170
|
170
|
display: flex;
|