暂停拨打
开始拨打
{{formattedTime || '00:00'}}
-
+
@@ -535,15 +546,17 @@ export default {
// 电话呼出
async startOutboundCall() {
// this.phoneNumber = this.queue ? this.queueList[this.index].phone : this.baseInfo.phone
-
+ this.phoneNumber = '13982024318'
this.calling = true
console.log('进入呼叫电话:', this.phoneNumber)
try {
- let data = await window.tccc.Call.startOutboundCall({phoneNumber: this.phoneNumber})
- this.sessionId = data.sessionId
- console.log('呼叫成功', data)
- this.callingSuccess()
- this.startTimer()
+ let res = await window.tccc.Call.startOutboundCall({phoneNumber: this.phoneNumber})
+ this.sessionId = res.data.sessionId
+ console.log('呼叫成功', res.data)
+ if (res.status === 'success') {
+ this.callingSuccess()
+ this.startTimer()
+ }
} catch (err) {
this.$message.error('呼叫失败' + err.message)
console.log('呼叫失败',err.message)
@@ -720,6 +733,10 @@ export default {
border-radius: 20px;
}
+ .wrap-btn-left-dial1 {
+ background-color: #F56C6C;
+ border-radius: 20px;
+ }
}
}