From f9e5d582d7a65de6775ed2d268e58575a0143087 Mon Sep 17 00:00:00 2001
From: wangxiaohua <1214073490@qq.com>
Date: Tue, 16 Nov 2021 11:07:03 +0800
Subject: [PATCH] init
---
config.js | 4 +--
.../Customerportrait/Receivedetailabout.vue | 28 ++++++++++++-----
pages/center/consumer/consumerDetail.vue | 3 +-
pages/center/consumer/edit.vue | 30 ++++++++++++++-----
.../consumer/newFollowup/newFollowup.vue | 22 +++++++-------
pages/index/index.vue | 4 +++
pages/mine/details.vue | 23 +++++++++-----
pages/mine/details2.vue | 20 +++++++++----
pages/mine/reception/addreception.vue | 23 ++++++++++++--
utils/http.js | 4 +--
10 files changed, 112 insertions(+), 49 deletions(-)
diff --git a/config.js b/config.js
index 6419d1c..e94ab8d 100644
--- a/config.js
+++ b/config.js
@@ -2,11 +2,11 @@
* 小程序配置文件
*/
// 此处主机域名修改成腾讯云解决方案分配的域名
-var host = 'http://121.42.63.138:9091/autoSR/api'; // 测试站
+// var host = 'http://121.42.63.138:9091/autoSR/api'; // 测试站
// var host = 'http://192.168.31.169:8080/autoSR/api'; // 长龙
// var host = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪
// var host = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏
-// var host = 'https://zkgj.quhouse.com/api'; // 质控正式
+var host = 'https://zkgj.quhouse.com/api'; // 质控正式
// var host = 'https://hfju.com/api'; // 数智正式
diff --git a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue
index a608662..0e2a19d 100644
--- a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue
+++ b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue
@@ -460,6 +460,10 @@
buildingID:'',
methodsisshow:false,
calibration:0,
+
+ textItself:'',
+ argtextindex1:0,
+ argtextindex2:0
};
},
onShow() {
@@ -652,13 +656,15 @@
translateHtmlContent: this.messagelisy,
}
- this.$u.post("/corpus/addCorrectWord", parames).then(data => {
- this.isshow2 = false;
- this.dialogList.forEach(res => {
- res.message.forEach(asd => {
- asd.isshow = false;
- })
+ this.isshow2 = false;
+ let sas=this.textItself.replace(this.thewrongword,this.reswrongword)
+ this.dialogList[this.argtextindex1].message[this.argtextindex2].onebest=sas;
+ this.dialogList.forEach(res => {
+ res.message.forEach(asd => {
+ asd.isshow = false;
})
+ })
+ this.$u.post("/corpus/addCorrectWord", parames).then(data => {
this.thewrongword = "";
this.reswrongword = "";
})
@@ -704,9 +710,15 @@
this.changanitem = item;
this.duihuawenjianid = this.luyinList[this.csdFileindex].id;
this.dialogList[i].message[index].isshow = !this.dialogList[i].message[index].isshow;
- this.thewrongword = item.onebest;
+
+ this.textItself=item.onebest;
+ let onebest=item.onebest;
+ this.thewrongword =onebest.replace(/<.*?>/ig,"");
+
this.messagelisy = this.dialogList[i].message
- console.log("长按触发")
+
+ this.argtextindex1=i;
+ this.argtextindex2=index;
this.$forceUpdate()
},
onPlay(){
diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue
index 37dbca8..c9d44db 100644
--- a/pages/center/consumer/consumerDetail.vue
+++ b/pages/center/consumer/consumerDetail.vue
@@ -23,7 +23,8 @@
- 手机号码:{{customerInfo.phone&&customerInfo.isShow==1?customerInfo.phone.substr(0, 3) + '****' + customerInfo.phone.substr(7):customerInfo.phone&&customerInfo.isShow!=1?customerInfo.phone: '--'}}
+ 手机号码:
+{{customerInfo.phone&&customerInfo.isShow==1?customerInfo.phone.length==11?customerInfo.phone.substr(0, 3) + '****' + customerInfo.phone.substr(7):customerInfo.phone:customerInfo.phone&&customerInfo.isShow!=1?customerInfo.phone: '--'}}
客户标签:
diff --git a/pages/center/consumer/edit.vue b/pages/center/consumer/edit.vue
index cc9d146..53efda9 100644
--- a/pages/center/consumer/edit.vue
+++ b/pages/center/consumer/edit.vue
@@ -263,14 +263,28 @@
})
return
}
- if(!(/^1[3456789]\d{9}$/.test(this.form.phone))){
- uni.showToast({
- title: "请检查手机号码格式",
- icon:'none'
- });
- // this.form.phone=''
- return false;
- }
+ // if(!(/^1[3456789]\d{9}$/.test(this.form.phone))){
+ // uni.showToast({
+ // title: "请检查手机号码格式",
+ // icon:'none'
+ // });
+ // // this.form.phone=''
+ // return false;
+ // }
+ if (this.form.phone.length<5) {
+ uni.showToast({
+ icon: "none",
+ title: "手机号码不能小于5位"
+ })
+ return;
+ }
+ if (this.form.phone.length>11) {
+ uni.showToast({
+ icon: "none",
+ title: "手机号码不能大于11位"
+ })
+ return;
+ }
this.allList.map(item=>{
item.children.map(item1=>{
diff --git a/pages/center/consumer/newFollowup/newFollowup.vue b/pages/center/consumer/newFollowup/newFollowup.vue
index e89408a..660a03c 100644
--- a/pages/center/consumer/newFollowup/newFollowup.vue
+++ b/pages/center/consumer/newFollowup/newFollowup.vue
@@ -35,11 +35,11 @@
-
+
+
@@ -50,7 +50,7 @@
-
+ -->
跟进内容
@@ -153,14 +153,14 @@
words.push(item.keywords)
}
})
- if (words.length == 0 ) {
- uni.showModal({
- title: '提示',
- content: '请选择、类型',
- showCancel: false
- });
- return;
- }
+ // if (words.length == 0 ) {
+ // uni.showModal({
+ // title: '提示',
+ // content: '请选择、类型',
+ // showCancel: false
+ // });
+ // return;
+ // }
uni.showLoading({
title: "保存中~",
mask: true
diff --git a/pages/index/index.vue b/pages/index/index.vue
index e7b8ddb..0f81d5c 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -165,6 +165,10 @@
{{Thisweekobj.prohibitedCustomer || 0}}
违禁预警
+
+
+
+
diff --git a/pages/mine/details.vue b/pages/mine/details.vue
index 7684ee4..e962fdd 100644
--- a/pages/mine/details.vue
+++ b/pages/mine/details.vue
@@ -255,7 +255,10 @@
{value: '4',name: '非接访场景录音'},
{value: '5',name: '其他'}
],
- effectiveitext:''
+ effectiveitext:'',
+ textItself:'',
+ argtextindex1:0,
+ argtextindex2:0
};
},
onLoad: function(options) {
@@ -738,13 +741,15 @@
translateHtmlContent: this.messagelisy,
}
- this.$u.post("/corpus/addCorrectWord", parames).then(data => {
- this.isshow2 = false;
- this.dialogList.forEach(res => {
- res.message.forEach(asd => {
- asd.isshow = false;
- })
+ this.isshow2 = false;
+ let sas=this.textItself.replace(this.thewrongword,this.reswrongword)
+ this.dialogList[this.argtextindex1].message[this.argtextindex2].onebest=sas
+ this.dialogList.forEach(res => {
+ res.message.forEach(asd => {
+ asd.isshow = false;
})
+ })
+ this.$u.post("/corpus/addCorrectWord", parames).then(data => {
this.thewrongword = "";
this.reswrongword = "";
})
@@ -856,11 +861,13 @@
this.changanitem = item;
this.duihuawenjianid = this.luyinList[this.csdFileindex].id;
this.dialogList[i].message[index].isshow = !this.dialogList[i].message[index].isshow;
+ this.textItself=item.onebest;
let onebest=item.onebest;
this.thewrongword =onebest.replace(/<.*?>/ig,"");
this.thewrongword = item.onebest;
this.messagelisy = this.dialogList[i].message
- console.log(this.dialogList[i], "长按触发")
+ this.argtextindex1=i;
+ this.argtextindex2=index;
},
//回到顶部
gotoTop() {
diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue
index cee4a6f..f0ac075 100644
--- a/pages/mine/details2.vue
+++ b/pages/mine/details2.vue
@@ -504,6 +504,8 @@
],
effectiveitext:'',
textItself:'',
+ argtextindex1:0,
+ argtextindex2:0
};
},
onLoad: function(options) {
@@ -1290,12 +1292,17 @@
}
this.isshow2 = false;
- this.$u.post("/corpus/addCorrectWord", parames).then(data => {
- this.dialogList.forEach(res => {
- res.message.forEach(asd => {
- asd.isshow = false;
- })
+
+
+ let sas=this.textItself.replace(this.thewrongword,this.reswrongword)
+ this.dialogList[this.argtextindex1].message[this.argtextindex2].onebest=sas
+
+ this.dialogList.forEach(res => {
+ res.message.forEach(asd => {
+ asd.isshow = false;
})
+ })
+ this.$u.post("/corpus/addCorrectWord", parames).then(data => {
this.thewrongword = "";
this.reswrongword = "";
})
@@ -1422,7 +1429,8 @@
let onebest=item.onebest;
this.thewrongword =onebest.replace(/<.*?>/ig,"");
this.messagelisy = this.dialogList[i].message
- console.log(this.dialogList[i], "长按触发")
+ this.argtextindex1=i;
+ this.argtextindex2=index;
},
//回到顶部
diff --git a/pages/mine/reception/addreception.vue b/pages/mine/reception/addreception.vue
index f417dfd..e38d8a4 100644
--- a/pages/mine/reception/addreception.vue
+++ b/pages/mine/reception/addreception.vue
@@ -23,7 +23,7 @@
联系电话
-
+
@@ -145,10 +145,27 @@
})
return;
}
- if (this.parames.phone && !this.$u.test.mobile(this.parames.phone)) {
+ // (this.parames.phone && !this.$u.test.mobile(this.parames.phone))
+ // if (this.parames.phone) {
+ // uni.showToast({
+ // icon: "none",
+ // title: "手机号码不能为空"
+ // })
+ // return;
+ // }
+ console.log(this.parames.phone.length)
+
+ if (this.parames.phone && this.parames.phone.length<5) {
+ uni.showToast({
+ icon: "none",
+ title: "手机号码不能小于5位"
+ })
+ return;
+ }
+ if (this.parames.phone && this.parames.phone.length>11) {
uni.showToast({
icon: "none",
- title: "手机号码格式不正确"
+ title: "手机号码不能大于11位"
})
return;
}
diff --git a/utils/http.js b/utils/http.js
index d9610ae..761ef4c 100644
--- a/utils/http.js
+++ b/utils/http.js
@@ -1,9 +1,9 @@
-const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站
+// const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站
// const baseUrl = 'http://192.168.31.169:8080/autoSR/api'; // 长龙
// const baseUrl = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪
// const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏
-// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式
+const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式
// const baseUrl = 'https://hfju.com/api'; // 数智正式
const install = (Vue, vm) => {