Commit a688b601 by 吕海涛

修改司机端语音配置bug

parent 7012b60a
...@@ -299,25 +299,13 @@ export default { ...@@ -299,25 +299,13 @@ export default {
}, },
complaintLable() { complaintLable() {
let t = this.$refs.remindText.innerHTML; let t = this.$refs.remindText.innerHTML;
t = t.replace( t = t.replace(/#乘客手机尾号#/gm, "PHONE");
/<span(\s+[^="']+=(['"]).*?\2)*\s*>#乘客手机尾号#<\/span>/g, t = t.replace(/#乘客上车地址#/gm, "STARTADDRESS");
"PHONE" t = t.replace(/#乘客目的地#/gm, "ENDADDRESS");
); t = t.replace(/#乘客预约时间#/gm, "APPOINTTIME");
t = t.replace( t = t.replace(/<\/?[^>]*>/gim, ""); //去除HTML tag
/<span(\s+[^="']+=(['"]).*?\2)*\s*>#乘客目的地#<\/span>/g, t = t.replace(/[ | ]*\n/gim, "\n"); //去除行尾空白
"ENDADDRESS" t = t.replace(/&nbsp;/gim, ""); //去掉&nbsp;
);
t = t.replace(
/<span(\s+[^="']+=(['"]).*?\2)*\s*>#乘客预约时间#<\/span>/g,
"APPOINTTIME"
);
t = t.replace(
/<span(\s+[^="']+=(['"]).*?\2)*\s*>#乘客上车地址#<\/span>/g,
"STARTADDRESS"
);
t = t.replace(/<\/?[^>]*>/g, ""); //去除HTML tag
t = t.replace(/[ | ]*\n/g, "\n"); //去除行尾空白
t = t.replace(/&nbsp;/gi, ""); //去掉&nbsp;
let json = { let json = {
id: this.form.id, id: this.form.id,
inspectData: this.form.inspectData, inspectData: this.form.inspectData,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment