wangxiaohua 3 years ago
parent
commit
560f43dea3
11 changed files with 2254 additions and 119 deletions
  1. +2
    -2
      config.js
  2. +8
    -1
      pages.json
  3. +131
    -109
      pages/center/records/index.vue
  4. +174
    -5
      pages/center/records/recordSearch.vue
  5. +1937
    -0
      pages/mine/details2.vue
  6. BIN
      static/images/Shutdown.png
  7. BIN
      static/images/audioinfo1.png
  8. BIN
      static/images/audioinfo2.png
  9. BIN
      static/images/audioinfo3.png
  10. BIN
      static/images/audioinfo4.png
  11. +2
    -2
      utils/http.js

+ 2
- 2
config.js View File

@@ -2,9 +2,9 @@
* 小程序配置文件
*/
// 此处主机域名修改成腾讯云解决方案分配的域名
// 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.163:8080/autoSR/api'; // 长龙
var host = 'http://192.168.31.128:8080/autoSR/api'; // 佳豪
// var host = 'http://192.168.31.128:8080/autoSR/api'; // 佳豪
// var host = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏
// var host = 'https://zkgj.quhouse.com/api'; // 质控正式
// var host = 'https://hfju.com/api'; // 数智正式


+ 8
- 1
pages.json View File

@@ -104,7 +104,14 @@
"navigationBarTextStyle": "black"
}
},
{
"path": "details2",
"style": {
"navigationBarTitleText": "详情",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black"
}
},
{
"path": "Myprofile",
"style": {


+ 131
- 109
pages/center/records/index.vue View File

@@ -30,92 +30,41 @@
</view>
</view>
<view class="content">
<view class="content-tips">
<view class="content-first">
<view class="left">
<view class="img">
</view>
<view class="name">
宋幸运
</view>
<view class="status">
代接待
</view>
</view>
<view class="right">
<view class="point">
</view>
<view class="">
优秀案例
</view>
</view>
</view>
<view class="content-sec">
<view class="left">
<view class="cus">
客户:王先生 |
</view>
<view class="arriveNum">
首次到访
</view>
</view>
<view class="right">
88% | 55分
</view>
</view>
<view class="content-last">
2021-07-20 16:00:30 | 80分钟
</view>
</view>
<view class="content-tips">
<view class="content-tips" v-for="(item,index) in recordList" :key='index' @click="tapThevisiting(item)">
<view class="content-first">
<view class="left">
<view class="img">
</view>
<view class="name">
宋幸运
</view>
<view class="status">
代接待
</view>
</view>
<view class="right">
<view class="point">
</view>
<view class="">
优秀案例
</view>
<view class="img">{{item.agentName.slice(0,1)}}</view>
<view class="name">{{item.agentName}}</view>
<view class="status">代接待</view>
</view>
<!-- <view class="right">
<view class="point"></view>
<view class="">优秀案例</view>
</view> -->
</view>
<view class="content-sec">
<view class="left">
<view class="cus">
客户:王先生 |
</view>
<view class="arriveNum">
首次到访
</view>
<view class="cus">客户:{{item.name || '--'}} |</view>
<view class="arriveNum">首次到访</view>
</view>
<view class="right">
88% | 55
{{item.fraction || '0'}}% | {{item.fraction || '0'}}分
</view>
</view>
<view class="content-last">
2021-07-20 16:00:30 | 80分钟
{{item.createTime}} | {{item.mm || '0'}}分钟
</view>
</view>
</view>
<u-popup v-model="screenShow" mode="top" height="770">
<u-popup v-model="screenShow" mode="top" height="600">
<view class="screen">
<!-- 顾问选择 -->
<view class="screen-counselor">
@@ -128,10 +77,8 @@
</view>
</view>
<!-- 录音标示 -->
<view class="screen-record">
<view class="screen-record-text">
录音标识
</view>
<!-- <view class="screen-record">
<view class="screen-record-text">录音标识</view>
<view class="screen-record-tab">
<view :class="[screen.record==0?'screen-record-chose':'screen-record-nochose']" @click="screen.record=0">
有效录音
@@ -140,7 +87,7 @@
无效录音
</view>
</view>
</view>
</view> -->
<view class="screen-record">
<view class="screen-record-text">
标记顾问
@@ -184,7 +131,7 @@
</view>
</u-popup>
<!-- 选择顾问的选择框 -->
<u-select v-model="selectshow" :list="list" @confirm="actionSelectCallback"></u-select>
<u-select v-model="selectshow" :list="freeList" @confirm="actionSelectCallback"></u-select>
<u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
</view>
@@ -200,58 +147,136 @@
selectshow:false,
totalTimeShow: false,
screen:{
counselorName:'',
agentId:'',//顾问id
record:'0',
flag:'0',
arriveNum:'0'
},
list:[
{
value:1,
label:'1'
},
{
value:2,
label:'2'
},
{
value:3,
label:'3'
},
{
value:4,
label:'4'
},
],
recordList:[],
freeList:[],//顾问
recordList:[],
buildingID:'',
nextPage:1,
totalRecord:"",
staTime:'',
endtime:''
}
},
onShow() {
this.buildingID = uni.getStorageSync('buildingID').id;
this.getMyCustom()
this.getFreeList();
},
onReachBottom() {
if(this.totalRecord==this.nextPage){
uni.showToast({
icon:'none',
title: '到底了',
duration: 2000
});
return
}else{
this.nextPage+=1;
this.getMyCustom();
}
},
methods:{
tapThevisiting(item) {
if(item.status==0){
uni.showToast({
icon: "none",
title: "排队中"
})
return
}else{
const parames = {
pageNum: 1,
pageSize: 100,
query: {
customerId: item.id,
}
}
var item={
bg:0,
customerId:item.id,
}
this.$u.post("/corpus/findByPage", parames).then(res => {
let newobj = res[0];
if(res[0].recordDuration>360){
uni.navigateTo({
url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(item)}&stateisshow=${"2"}`
})
}else{
uni.navigateTo({
url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(item)}&stateisshow=${"1"}`
})
// uni.navigateTo({
// url: `/pages/main/details?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(item)}&stateisshow=${"2"}`
// })
}
})
}
},
getMyCustom(){
var parames = {
pageNum: this.nextPage,
pageSize: 10,
query: {
projectId:this.buildingID,
time:1,
staTime:this.staTime,
endtime:this.endtime
}
};
if(this.screen.agentId){
parames.query.agentId = this.screen.agentId
}
this.$u.post("/customer/findbypage", parames).then(data => {
var list = data.results || [];
this.recordList = [...this.recordList, ...list];
this.totalRecord=data.totalPage;
})
},
//获取顾问列表
getFreeList() {
this.$u.get("/zkAgentPool/freeList?itemId="+this.buildingID).then(res => {
this.freeList = res;
this.freeList.forEach(item=>{
item.label=item.name;
item.value=item.agentId
})
})
},
tabtimetap(index){
// console.log(idx)
// this.activeTotal=idx
if (index == 3) {
this.totalTimeShow = true;
} else {
this.activeTotal = index;
this.staTime='';
this.endtime='';
}
},
//自定义时间
totalTimeChange(e) {
console.log(e.startDate, e.endDate)
this.staTime=e.startDate;
this.endtime=e.endDate;
this.activeTotal=3;
this.nextPage=1;
this.recordList=[];
this.getMyCustom();
},
// 筛选
screenshow(){
this.screenShow=true
},
actionSelectCallback(e){
console.log(e[0].label)
// this.value = this.actionSheetList[index].label;
this.screen.counselorName=e[0].label
this.screen.agentId=e[0].value;
this.screenShow=false;
this.recordList=[];
this.nextPage=1;
this.getMyCustom();
},
reset(){
this.screen={
@@ -271,9 +296,6 @@
});
},
},
onLoad() {
console.log('这里是进入')
}
}
</script>

@@ -325,12 +347,8 @@
}
}
.content{
// background: #F8F8F8;
height: 1000rpx;
overflow: hidden;
.content-tips{
background: #fff;
// height: 210rpx;
padding: 0 20rpx;
box-sizing: border-box;
overflow: hidden;
@@ -430,6 +448,7 @@
.screen{
// box-sizing: border-box;
// padding: 0 30rpx;
position:absolute;
.screen-counselor{
display: flex;
height: 106rpx;
@@ -501,6 +520,9 @@
}
}
.screen-foot{
position: relative;
left: 0rpx;
bottom: 0rpx;
height: 88rpx;
display: flex;
.screen-foot-reset{


+ 174
- 5
pages/center/records/recordSearch.vue View File

@@ -1,9 +1,37 @@
<template>
<view class="box">
<view style="width: 690rpx;margin: 0 auto;margin-top: 20rpx;">
<u-search placeholder="请输入" v-model="keyword"></u-search>
<u-search @search='searchinfo()' placeholder="请输入" v-model="keyword"></u-search>
</view>
<view @click="searchinfo()">搜索</view>
<view class="content">
<view class="content-tips" v-for="(item,index) in recordList" :key='index'>
<view class="content-first">
<view class="left">
<view class="img">{{item.agentName.slice(0,1)}}</view>
<view class="name">{{item.agentName}}</view>
<view class="status">代接待</view>
</view>
<!-- <view class="right">
<view class="point"></view>
<view class="">优秀案例</view>
</view> -->
</view>
<view class="content-sec">
<view class="left">
<view class="cus">客户:{{item.name || '--'}} |</view>
<view class="arriveNum">首次到访</view>
</view>
<view class="right">
{{item.fraction || '0'}}% | {{item.fraction || '0'}}分
</view>
</view>
<view class="content-last">
{{item.createTime}} | {{item.mm || '0'}}分钟
</view>
</view>
</view>
</view>
</template>

@@ -11,8 +39,51 @@
export default{
data(){
return{
keyword:''
keyword:'',
recordList:[],
buildingID:'',
nextPage:1,
totalRecord:"",
}
},
onShow() {
this.buildingID = uni.getStorageSync('buildingID').id;
},
onReachBottom() {
if(this.totalRecord==this.nextPage){
uni.showToast({
icon:'none',
title: '到底了',
duration: 2000
});
return
}else{
this.nextPage+=1;
this.getMyCustom();
}
},
methods:{
searchinfo(){
this.nextPage=1;
this.recordList=[];
this.getMyCustom();
},
getMyCustom(){
var parames = {
pageNum: this.nextPage,
pageSize: 10,
query: {
projectId:this.buildingID,
time:1,
nameOrPhone:this.keyword
}
};
this.$u.post("/customer/findbypage", parames).then(data => {
var list = data.results || [];
this.recordList = [...this.recordList, ...list];
this.totalRecord=data.totalPage;
})
},
}
}
</script>
@@ -20,7 +91,105 @@
<style lang="scss" scoped>
.box {
width: 100%;
height: 100%;
// background: #F8F8F8;
height: 100vh;
background: #F8F8F8;
}
.content{
.content-tips{
background: #fff;
padding: 0 20rpx;
box-sizing: border-box;
overflow: hidden;
margin-top: 20rpx;
.content-first{
margin-top: 19rpx;
display: flex;
justify-content: space-between;
.left{
display: flex;
.img{
width: 52rpx;
height: 52rpx;
background: #FFFFFF;
border: 1px solid #C9C9C9;
border-radius: 50%;
text-align: center;
line-height: 52rpx;
}
.name{
font-weight: 600;
color: #333333;
margin-left: 20rpx;
margin-top: 11rpx;
}
.status{
width: 110rpx;
height: 42rpx;
background: #FFF9F5;
border-radius: 4rpx;
font-size: 26rpx;
font-weight: 400;
color: #EC8D49;
line-height: 42rpx;
text-align: center;
margin-left: 19rpx;
margin-top: 11rpx;
}
}
.right{
display: flex;
margin-top: 11rpx;
.point{
width: 12rpx;
height: 12rpx;
background: #2B6EFF;
border-radius: 50%;
margin-right: 9rpx;
margin-top: 16rpx;
}
}
}
.content-sec{
display: flex;
justify-content: space-between;
margin-top: 19rpx;
.left{
display: flex;
.cus{
font-size: 30rpx;
font-weight: 400;
color: #666666;
line-height: 30rpx;
}
.arriveNum{
font-size: 30rpx;
font-weight: 400;
line-height: 30rpx;
margin-left: 10rpx;
}
}
.right{
width: 192rpx;
height: 46rpx;
background: #F4F8FD;
border-radius: 6rpx;
text-align: center;
line-height: 46rpx;
font-weight: 400;
color: #2671E2;
}
}
.content-last{
margin: 30rpx 0;
font-size: 30rpx;
font-weight: 400;
color: #666666;
line-height: 30rpx;
}
}
}
</style>

+ 1937
- 0
pages/mine/details2.vue
File diff suppressed because it is too large
View File


BIN
static/images/Shutdown.png View File

Before After
Width: 48  |  Height: 48  |  Size: 1.9 KiB

BIN
static/images/audioinfo1.png View File

Before After
Width: 80  |  Height: 80  |  Size: 2.8 KiB

BIN
static/images/audioinfo2.png View File

Before After
Width: 80  |  Height: 80  |  Size: 2.9 KiB

BIN
static/images/audioinfo3.png View File

Before After
Width: 80  |  Height: 80  |  Size: 2.5 KiB

BIN
static/images/audioinfo4.png View File

Before After
Width: 80  |  Height: 80  |  Size: 2.2 KiB

+ 2
- 2
utils/http.js View File

@@ -1,6 +1,6 @@
// 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.161:8080/autoSR/api'; // 长龙
const baseUrl = 'http://192.168.31.128:8080/autoSR/api'; // 佳豪
// const baseUrl = 'http://192.168.31.128:8080/autoSR/api'; // 佳豪
// const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏
// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式
// const baseUrl = 'https://hfju.com/api'; // 数智正式


Loading…
Cancel
Save