wangxiaohua пре 3 година
родитељ
комит
f9e5d582d7
10 измењених фајлова са 112 додато и 49 уклоњено
  1. +2
    -2
      config.js
  2. +20
    -8
      pages/center/Piabodata/Customerportrait/Receivedetailabout.vue
  3. +2
    -1
      pages/center/consumer/consumerDetail.vue
  4. +22
    -8
      pages/center/consumer/edit.vue
  5. +11
    -11
      pages/center/consumer/newFollowup/newFollowup.vue
  6. +4
    -0
      pages/index/index.vue
  7. +15
    -8
      pages/mine/details.vue
  8. +14
    -6
      pages/mine/details2.vue
  9. +20
    -3
      pages/mine/reception/addreception.vue
  10. +2
    -2
      utils/http.js

+ 2
- 2
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'; // 数智正式




+ 20
- 8
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(){


+ 2
- 1
pages/center/consumer/consumerDetail.vue Прегледај датотеку

@@ -23,7 +23,8 @@
</view>
<view class="content-sec">
<view class="content-sec-lab">
手机号码:<view class="content-sec-lab1">{{customerInfo.phone&&customerInfo.isShow==1?customerInfo.phone.substr(0, 3) + '****' + customerInfo.phone.substr(7):customerInfo.phone&&customerInfo.isShow!=1?customerInfo.phone: '--'}}</view>
手机号码:<view class="content-sec-lab1">
{{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: '--'}}</view>
</view>
<view class="content-sec-lab" @click.stop="tipupon">
客户标签:


+ 22
- 8
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=>{


+ 11
- 11
pages/center/consumer/newFollowup/newFollowup.vue Прегледај датотеку

@@ -35,11 +35,11 @@
</view>
</view>
</view>
<view class="screen-record" style="height: auto;">
<!-- <view class="screen-record" style="height: auto;">
<view class="screen-record-text" style="margin-bottom: 20rpx;">
客户类型
</view>
<!-- <u-search placeholder="请输入搜索" v-model="keyword" :clearabled="true" :show-action="false" @change="search"></u-search> -->
<u-search placeholder="请输入搜索" v-model="keyword" :clearabled="true" :show-action="false" @change="search"></u-search>
<scroll-view style="height: 180rpx;" scroll-y="true" >
<view class="screen-record-tab" style="flex-wrap: wrap;">
<view v-for="(item,index) in customerType" :key="index">
@@ -50,7 +50,7 @@
</view>
</scroll-view>
</view>
</view> -->
<view class="screen-record">
<view class="screen-record-text">
跟进内容
@@ -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


+ 4
- 0
pages/index/index.vue Прегледај датотеку

@@ -165,6 +165,10 @@
<view class="realnum" style="color: red;" >{{Thisweekobj.prohibitedCustomer || 0}}</view>
<view class="realtext">违禁预警</view>
</view>
<view class="real" v-else>
<view class="realnum"></view>
<view class="realtext"></view>
</view>
<view class="real">
<view class="realnum"></view>
<view class="realtext"></view>


+ 15
- 8
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() {


+ 14
- 6
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;
},
//回到顶部


+ 20
- 3
pages/mine/reception/addreception.vue Прегледај датотеку

@@ -23,7 +23,7 @@
<view class="title">
<view class="titletext">联系电话</view>
<view class="titletext2">
<input class="titletext-input" style="color: #333333;" v-model="parames.phone" placeholder-class="titletext-input" placeholder-style="color:#B2B2B2;" type="text" placeholder="请输入联系电话" />
<input class="titletext-input" style="color: #333333;" v-model="parames.phone" placeholder-class="titletext-input" placeholder-style="color:#B2B2B2;" type="number" placeholder="请输入联系电话" />
</view>
</view>
@@ -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;
}


+ 2
- 2
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) => {


Loading…
Откажи
Сачувај