| @@ -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.163:8080/autoSR/api'; // 长龙 | ||||
| // var host = 'http://192.168.31.130: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 = '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'; // 数智正式 | // var host = 'https://hfju.com/api'; // 数智正式 | ||||
| @@ -72,6 +72,10 @@ var config = { | |||||
| workThisWeek:`${host}/cusLvStatistics/workThisWeek`, | workThisWeek:`${host}/cusLvStatistics/workThisWeek`, | ||||
| //查询是否开启选择顾问权限 | //查询是否开启选择顾问权限 | ||||
| getSelfAssignedByHouseId:`${host}/user/getSelfAssignedByHouseId`, | getSelfAssignedByHouseId:`${host}/user/getSelfAssignedByHouseId`, | ||||
| //确认加精 | |||||
| addATD:`${host}/addtodigest/addATD`, | |||||
| //取消加精 | |||||
| delATD:`${host}/addtodigest/delATD`, | |||||
| } | } | ||||
| }; | }; | ||||
| module.exports = config; | module.exports = config; | ||||
| @@ -96,6 +96,15 @@ | |||||
| "root": "pages/mine",//个人中心 | "root": "pages/mine",//个人中心 | ||||
| "name": "mine", | "name": "mine", | ||||
| "pages": [ | "pages": [ | ||||
| { | |||||
| "path": "details", | |||||
| "style": { | |||||
| "navigationBarTitleText": "详情", | |||||
| "navigationBarBackgroundColor": "#FFFFFF", | |||||
| "navigationBarTextStyle": "black" | |||||
| } | |||||
| }, | |||||
| { | { | ||||
| "path": "Myprofile", | "path": "Myprofile", | ||||
| "style": { | "style": { | ||||
| @@ -1,7 +1,7 @@ | |||||
| <template> | <template> | ||||
| <view class="cented-box"> | <view class="cented-box"> | ||||
| <view class="customer" v-for="(item,index) in waitCustomList" :key='index'> | |||||
| <view class="customer" v-for="(item,index) in waitCustomList" :key='index' @click="tapThevisiting(item)"> | |||||
| <view class="title"> | <view class="title"> | ||||
| <view class="zuo"> | <view class="zuo"> | ||||
| <view class="zuoimg">A</view> | <view class="zuoimg">A</view> | ||||
| @@ -17,7 +17,7 @@ | |||||
| <view class="centerbox-che">手机号码:<text class="shizai">{{item.phone || "--"}}</text></view> | <view class="centerbox-che">手机号码:<text class="shizai">{{item.phone || "--"}}</text></view> | ||||
| <view class="centerbox-che">开始时间:<text class="shizai">{{item.createTime}}</text></view> | <view class="centerbox-che">开始时间:<text class="shizai">{{item.createTime}}</text></view> | ||||
| <view class="centerbox-che">顾问姓名:<text class="shizai">{{item.agentName}}</text></view> | <view class="centerbox-che">顾问姓名:<text class="shizai">{{item.agentName}}</text></view> | ||||
| <view class="centerbox-che2" v-if="item.zkEquipmentState.audioStatus!=''"> | |||||
| <view class="centerbox-che2" v-if="item.zkEquipmentState.audioStatus!='' && item.zkEquipmentState!=null"> | |||||
| <view class="Workcard">工牌电量:<text class="shizai">{{item.zkEquipmentState.electricity}}%</text></view> | <view class="Workcard">工牌电量:<text class="shizai">{{item.zkEquipmentState.electricity}}%</text></view> | ||||
| <view class="Workcard">录音状态: | <view class="Workcard">录音状态: | ||||
| <text v-if="item.zkEquipmentState.audioStatus=='true'" class="shizai">使用中</text> | <text v-if="item.zkEquipmentState.audioStatus=='true'" class="shizai">使用中</text> | ||||
| @@ -67,6 +67,42 @@ | |||||
| this.queryHaveDept() | this.queryHaveDept() | ||||
| }, | }, | ||||
| methods: { | 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 => { | |||||
| if(res){ | |||||
| let newobj = res[0]; | |||||
| uni.navigateTo({ | |||||
| url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(item)}&stateisshow=${"1"}` | |||||
| }) | |||||
| }else{ | |||||
| uni.showToast({ | |||||
| icon: "none", | |||||
| title: "暂无音频" | |||||
| }) | |||||
| return | |||||
| } | |||||
| }) | |||||
| } | |||||
| }, | |||||
| queryHaveDept() { | queryHaveDept() { | ||||
| return new Promise((resolve, reject) => { | return new Promise((resolve, reject) => { | ||||
| this.$u.get("/user/queryHaveDept?houseId="+this.buildingID).then(res => { | this.$u.get("/user/queryHaveDept?houseId="+this.buildingID).then(res => { | ||||
| @@ -81,7 +117,6 @@ | |||||
| itemId:this.buildingID | itemId:this.buildingID | ||||
| } | } | ||||
| this.$u.post("/customer/reception", parames).then(data => { | this.$u.post("/customer/reception", parames).then(data => { | ||||
| console.log(data) | |||||
| this.waitCustomList=data; | this.waitCustomList=data; | ||||
| }); | }); | ||||
| }, | }, | ||||
| @@ -166,7 +201,6 @@ | |||||
| url: '/pages/mine/reception/addreception' | url: '/pages/mine/reception/addreception' | ||||
| }); | }); | ||||
| } | } | ||||
| }, | }, | ||||
| assign(item) { | assign(item) { | ||||
| let url = `/pages/mine/reception/consultant?id=${item.id}` | let url = `/pages/mine/reception/consultant?id=${item.id}` | ||||
| @@ -3,7 +3,7 @@ | |||||
| <view style="width: 690rpx;height: 64rpx;margin: 0 auto;margin-top: 30rpx;background: #F2F2F2;border-radius: 32rpx; | <view style="width: 690rpx;height: 64rpx;margin: 0 auto;margin-top: 30rpx;background: #F2F2F2;border-radius: 32rpx; | ||||
| display: flex;align-items: center;"> | display: flex;align-items: center;"> | ||||
| <view style="width: 10%;height: 64rpx;display: flex;align-items: center;"> | <view style="width: 10%;height: 64rpx;display: flex;align-items: center;"> | ||||
| <image style="width: 28rpx;height: 28rpx;margin-left: 30rpx;" src="/static/images/customer/search.png" mode=""></image> | |||||
| <image style="width: 28rpx;height: 28rpx;margin-left: 30rpx;" src="/static/images/search.png" mode=""></image> | |||||
| </view> | </view> | ||||
| <view style="width: 90%;height: 64rpx;display: flex;align-items: center;"> | <view style="width: 90%;height: 64rpx;display: flex;align-items: center;"> | ||||
| <input type="text" @input="searchinfo" :disabled="disabled" v-model="keyword" placeholder="请输入关键字" | <input type="text" @input="searchinfo" :disabled="disabled" v-model="keyword" placeholder="请输入关键字" | ||||
| @@ -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.130:8080/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://10.2.1.104:8081/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 baseUrl = 'https://hfju.com/api'; // 数智正式 | ||||