|
@@ -561,7 +561,7 @@ |
|
|
this.init(info) |
|
|
this.init(info) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
// 关闭弹窗 |
|
|
// 关闭弹窗 |
|
|
close() { |
|
|
close() { |
|
@@ -1113,18 +1113,19 @@ |
|
|
carId: that.customerId, |
|
|
carId: that.customerId, |
|
|
itemId: that.buildingID |
|
|
itemId: that.buildingID |
|
|
}).then(data => { |
|
|
}).then(data => { |
|
|
if (data.data.code == 10000) { |
|
|
|
|
|
|
|
|
console.log(data) |
|
|
|
|
|
if (!data || data.code == 10000) { |
|
|
that.status = 1 |
|
|
that.status = 1 |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
title: '取消成功', |
|
|
title: '取消成功', |
|
|
duration: 2000 |
|
|
duration: 2000 |
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: data.data.message, |
|
|
|
|
|
duration: 2000 |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
}).catch(e => { |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: e.message, |
|
|
|
|
|
duration: 2000 |
|
|
|
|
|
}); |
|
|
}) |
|
|
}) |
|
|
} else if (res.cancel) { |
|
|
} else if (res.cancel) { |
|
|
console.log('用户点击取消'); |
|
|
console.log('用户点击取消'); |
|
@@ -1147,19 +1148,18 @@ |
|
|
"itemId": that.buildingID, |
|
|
"itemId": that.buildingID, |
|
|
} |
|
|
} |
|
|
that.$u.post(config.service.addATD, objdata).then(data => { |
|
|
that.$u.post(config.service.addATD, objdata).then(data => { |
|
|
|
|
|
|
|
|
if (data.data.code == 10000) { |
|
|
|
|
|
|
|
|
if (!data || data.code == 10000) { |
|
|
that.status = 0 |
|
|
that.status = 0 |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
title: '加精成功', |
|
|
title: '加精成功', |
|
|
duration: 2000 |
|
|
duration: 2000 |
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: data.data.message, |
|
|
|
|
|
duration: 2000 |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
}).catch(e => { |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: e.message, |
|
|
|
|
|
duration: 2000 |
|
|
|
|
|
}); |
|
|
}) |
|
|
}) |
|
|
} else if (res.cancel) { |
|
|
} else if (res.cancel) { |
|
|
console.log('用户点击取消'); |
|
|
console.log('用户点击取消'); |
|
@@ -1579,14 +1579,14 @@ |
|
|
asd.isshow = false; |
|
|
asd.isshow = false; |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//录音实例 |
|
|
//录音实例 |
|
|
zyAudio() { |
|
|
zyAudio() { |
|
|
console.log('this.recordPath', this.recordPath) |
|
|
console.log('this.recordPath', this.recordPath) |
|
|
this.$refs.zyAudio.setSrc(this.recordPath) |
|
|
this.$refs.zyAudio.setSrc(this.recordPath) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|