From ec636dbc77cb21ccd551599adbbf057025e1a352 Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Thu, 3 Mar 2022 14:20:30 +0800 Subject: [PATCH] tijaio --- components/yz-audio/index.scss | 119 +++++++ components/yz-audio/static/loading.png | Bin 0 -> 331 bytes components/yz-audio/static/loading2.png | Bin 0 -> 333 bytes components/yz-audio/static/pausebtn.png | Bin 0 -> 189 bytes components/yz-audio/static/playbtn.png | Bin 0 -> 274 bytes components/yz-audio/yz-audio.vue | 318 ++++++++++++++++++ manifest.json | 1 + pages/center/Piabodata/Theteamcompared.vue | 3 +- pages/center/Piabodata/TrendAnalysis.vue | 4 +- pages/center/consumer/consumerDetail.vue | 29 +- pages/center/consumer/edit.vue | 16 +- .../consumer/newFollowup/newFollowup.vue | 6 +- pages/center/records/index.vue | 21 +- pages/index/consumer/index.vue | 46 ++- pages/index/index.vue | 5 + pages/index/learning.vue | 2 +- pages/learning/Thefulltext/index.vue | 4 +- pages/learning/Thefulltext/index2.vue | 12 +- pages/mine/details2.vue | 11 +- utils/domain.js | 3 +- 20 files changed, 545 insertions(+), 55 deletions(-) create mode 100644 components/yz-audio/index.scss create mode 100644 components/yz-audio/static/loading.png create mode 100644 components/yz-audio/static/loading2.png create mode 100644 components/yz-audio/static/pausebtn.png create mode 100644 components/yz-audio/static/playbtn.png create mode 100644 components/yz-audio/yz-audio.vue diff --git a/components/yz-audio/index.scss b/components/yz-audio/index.scss new file mode 100644 index 0000000..53c375b --- /dev/null +++ b/components/yz-audio/index.scss @@ -0,0 +1,119 @@ +@mixin textoverflow() { + display: -webkit-box; + overflow: hidden; + text-overflow: ellipsis; + -webkit-box-orient: vertical; + -webkit-line-clamp: 1; +} +@keyframes rowup { + 0% { + -webkit-transform: translate(-50%, -50%) rotate(0deg); + transform-origin: center center; + } + + 100% { + -webkit-transform: translate(-50%, -50%) rotate(360deg); + transform-origin: center center; + } +} +.imt-audio{ + position:relative; + width: 100%; + display: flex; + box-sizing: border-box; + background: #fff; + overflow: hidden; + + .top { + width: 140rpx; + position: relative; + } + + .audio-wrapper { + display: flex; + flex-direction: column; + flex: 1; + color: #fff; + margin-left: 20rpx; + } + .slidebox { + display: flex; + justify-content: space-between; + width: 96%; + } + /deep/ .uni-slider-tap-area { + padding: 0; + } + /deep/ .uni-slider-wrapper { + min-height: 0; + } + /deep/ .uni-slider-handle-wrapper { + height: 6px; + } + .audio-slider { + padding-top: 10rpx; + margin-left: 150rpx; + position: absolute; + bottom: 40rpx; + width: 75vw; + left: 0; + padding: 0; + } + + + // .cover { + // width: 120rpx; + // height: 120rpx; + // box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2); + // position: absolute; + // top: 50%; + // left: 50%; + // transform: translate(-50%, -50%); + // animation-fill-mode: forwards; + // -webkit-animation-fill-mode: forwards; + // } + + .play { + width: 48rpx; + height: 48rpx; + z-index: 99; + background: rgba(0, 0, 0, 0.4); + border-radius: 50%; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + &.loading{ + width: 48rpx; + height: 48rpx; + animation: rotating_theme3 2s linear infinite; + } + } +} + +@keyframes rotating { + 0% { + transform: rotateZ(0deg) + } + 100% { + transform: rotateZ(360deg) + } +} +@keyframes rotating_theme3 { + 0% { + transform: translate(-50%, -50%) rotateZ(0deg) + } + 100% { + transform: translate(-50%, -50%) rotateZ(360deg) + } +} + +.hItem +{ + margin-left: 16rpx; +} + +.extrButton +{ + font-size: 36rpx; +} \ No newline at end of file diff --git a/components/yz-audio/static/loading.png b/components/yz-audio/static/loading.png new file mode 100644 index 0000000000000000000000000000000000000000..edd7142de8e5472375f74c11270c4d4c9e96be4a GIT binary patch literal 331 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDB3?!H8JlO)I)B}7%T!Hj|BEULZFH4|Oo{}KH zV1|Y(`&TM2p4#6rcXq9VHy=>^xTlL_h{fsT1-uDC2NV^HCrlG!JR!7(qi|mH2_Yl) z2SSGFY6>bA=Ve;G4dz)kPIzId++dJ>ZYI+VmftfcdrT{yW63%>qIenO%}CR9Aqj~Y zyb=;O&dInJ>R+F!EYNm-ChH2jla|a2&&xP}R^q;L-H4B;gtbYbq4jhP8w-zvPl%rI z3|3Ee4n4ocFSsHW9Mn@j(4c(d;w3S2r9}&(1OmA|-{!1{vN$)VO|{L|KzGJTb`K$s sf*GDu92Olr!&Y*-nS;UatqCJToOf8HUY^M=pqCgtUHx3vIVCg!0LPw(3;+NC literal 0 HcmV?d00001 diff --git a/components/yz-audio/static/loading2.png b/components/yz-audio/static/loading2.png new file mode 100644 index 0000000000000000000000000000000000000000..3483c9de5dde14271aa5948da74280a9f635783b GIT binary patch literal 333 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDB3?!H8JlO)I)B}7%T!HlT>C%Knx0%8Tbr?eAdzlaT`yKk4b>7-Dfcc>!-i&;doo;tA7)I8O-W za1_p4d_u^O{eh5Wx|xE?j`K3j-W%pwwoZsBR%1xKHqTf%L1<38pK|26(q}9_i=Llh zN=ZL!8GPWtfgB*Nd#2J=ZFx?n(V*s>$%0=?p7FHU70aCM)(MC|ZDDXhl%t73Oz*R# zfB}PH;7*?eF%?;b9TvTdv=bWHcK0wa_a)e$XwY8tAW9(c^b&@yTZ?&i2stw_e|yrr zrd3e)prGF(8}^C9ThB1Y+-%6J6kt5Ca;_Q!!|X2+uei6*y94wTgQu&X%Q~loCIFeI Bfx`d* literal 0 HcmV?d00001 diff --git a/components/yz-audio/static/pausebtn.png b/components/yz-audio/static/pausebtn.png new file mode 100644 index 0000000000000000000000000000000000000000..f2bc86cf1406f07591eb276552cb2a509bf17d79 GIT binary patch literal 189 zcmeAS@N?(olHy`uVBq!ia0vp^O+Z}D#0(^le%P=dNbv;tgt!9f|NsC0{qyhrtFMkh z+BrZzV@Z%-FoVOh8)-mJyr+v}NW|e}3D(64B0Wuk4q6v_7$*88@>+z(@Y*t{_&ReJ zXeRLSmNEn_Txhr>#GtKBjbY`=g^Cp+EDdKQLJe0Xg&bYcmAIBEN^Da6Jf%}9N~gXC i8gRKC)R16RVPZIcBJ#r)Up}Bs3=E#GelF{r5}E*?rah4W literal 0 HcmV?d00001 diff --git a/components/yz-audio/static/playbtn.png b/components/yz-audio/static/playbtn.png new file mode 100644 index 0000000000000000000000000000000000000000..3f51b61d3cd72bf3fb5a918138e1261ccdafe038 GIT binary patch literal 274 zcmeAS@N?(olHy`uVBq!ia0vp^O(4v|3?wUbdCvhU=>VS)S0MfW|NobdKK}jl@8^%- zUqAkM^Yqh)*I(bi{9@vpI1wn#SQ6wH%;50sMjDW_)YHW=B;(%OYa0cb40&8GN(*_2 z_seomEl^#-;0#fAmFtrJ5o@MvYQiiSj7XvM-=vEjoXriHisi&B2~uKG6Jbn)Nzoww?5iB>$? z;=lK<-QVyBx+`jh58r<9+u?30+x;_hLH5o0-EJqdU02WATx15&!3>_RelF{r5}E)$ CYj?l^ literal 0 HcmV?d00001 diff --git a/components/yz-audio/yz-audio.vue b/components/yz-audio/yz-audio.vue new file mode 100644 index 0000000..e6fdece --- /dev/null +++ b/components/yz-audio/yz-audio.vue @@ -0,0 +1,318 @@ + + + + + diff --git a/manifest.json b/manifest.json index 53f827a..2a000e7 100644 --- a/manifest.json +++ b/manifest.json @@ -100,6 +100,7 @@ }, "usingComponents" : true, "permission" : {}, + "requiredBackgroundModes": ["audio"], "plugins" : { "WechatSI" : { "version" : "0.3.4", diff --git a/pages/center/Piabodata/Theteamcompared.vue b/pages/center/Piabodata/Theteamcompared.vue index 6b87b26..0382630 100644 --- a/pages/center/Piabodata/Theteamcompared.vue +++ b/pages/center/Piabodata/Theteamcompared.vue @@ -169,7 +169,7 @@ - + @@ -379,6 +379,7 @@ this.lineOptsect1 = null this.lineOptsect2 = null this.lineOptsect3 = null + this.chartData1 = null // 团队对比接待量 this.receptionCountList(this.eharTab.active1, 1, '/cusLvStatistics/teamAnalysisReception') // 团队对比接待时长 diff --git a/pages/center/Piabodata/TrendAnalysis.vue b/pages/center/Piabodata/TrendAnalysis.vue index 5b39857..f964d32 100644 --- a/pages/center/Piabodata/TrendAnalysis.vue +++ b/pages/center/Piabodata/TrendAnalysis.vue @@ -55,8 +55,8 @@ 对比:{{index==1?item.num1+'%':item.num1}} - {{item.num2+'%'}} - {{(item.num2*1) > 0 ? '↑' : '↓'}} + {{item.num2+'%'}}{{(item.num2*1) > 0 ? '↑' : '↓'}} diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue index 2ee9aa3..f360166 100644 --- a/pages/center/consumer/consumerDetail.vue +++ b/pages/center/consumer/consumerDetail.vue @@ -9,7 +9,10 @@ B C D - {{customerInfo.name || '--'}} + + {{customerInfo.name || '--'}} + {{ customerInfo.clientStageName }} + @@ -122,6 +125,7 @@ {{item.agentName.slice(0,1) || '--'}} {{item.agentName || '||'}} + {{ item.clientStageName }} {{item.createTime}} @@ -905,6 +909,17 @@ flex-grow: 1; font-weight: 500; color: #333333; + display: flex; + align-items: center; + + .clientStageName { + margin-left: 20rpx; + padding: 5rpx 20rpx; + border: 1px solid #F29819; + border-radius: 32rpx 32rpx 32rpx 0; + color: #F29819; + font-size: 20rpx; + } } .edit { @@ -918,6 +933,7 @@ height: 100%; } } + } .right { @@ -1149,6 +1165,7 @@ // height: 75rpx; .tab2-first-left { display: flex; + align-items: center; .img { width: 52rpx; @@ -1164,7 +1181,15 @@ font-weight: 600; color: #333333; margin-left: 20rpx; - margin-top: 11rpx; + } + + .clientStageName { + margin-left: 20rpx; + padding: 5rpx 20rpx; + border: 1px solid #F29819; + border-radius: 32rpx 32rpx 32rpx 0; + color: #F29819; + font-size: 20rpx; } } diff --git a/pages/center/consumer/edit.vue b/pages/center/consumer/edit.vue index 5f3dcbb..074f5f1 100644 --- a/pages/center/consumer/edit.vue +++ b/pages/center/consumer/edit.vue @@ -90,12 +90,11 @@ - + 客户标签 - @@ -193,11 +192,16 @@ console.log(this.userInfo.showPhoneStatus) // 先调用借口查询数据 this.customerId = e.id - this.getdetail() + this.initPage() }, methods: { + initPage() { + this.getdetail() + // 获取置业需求 + this.getListByType() + }, + Edittag(item, item1, index, i) { - if (this.allList[index].children[i].selected == 0) { this.allList[index].children[i].selected = 1; } else { @@ -241,8 +245,6 @@ this.selectform.level = 'A'; this.form.level = 1; } - // 获取置业需求 - this.getListByType() }) }, @@ -252,7 +254,7 @@ customerId: this.customerId }) .then(res => { - // console.log(res) + console.log(res, '123123123123') res.forEach(item1 => { item1.children.map(item => { if (item.isInterval == 0) { diff --git a/pages/center/consumer/newFollowup/newFollowup.vue b/pages/center/consumer/newFollowup/newFollowup.vue index 486ca89..e1b2599 100644 --- a/pages/center/consumer/newFollowup/newFollowup.vue +++ b/pages/center/consumer/newFollowup/newFollowup.vue @@ -95,11 +95,12 @@ totalRecord: '', freeList: [], customerType: [], - customerId: '' + customerId: '', + orgCode: '', } }, onShow() { - + this.orgCode = uni.getStorageSync('orgCode') }, onLoad(e) { this.customerId = e.id @@ -174,6 +175,7 @@ "stageCode": this.stateList[this.screen.state].stageCode, "stageName": this.stateList[this.screen.state].stageName, "remarks": this.screen.con, + orgCode: this.orgCode, words, // "settingTime":"", "agentRelationPo": { diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue index 3495ed6..ab250da 100644 --- a/pages/center/records/index.vue +++ b/pages/center/records/index.vue @@ -55,13 +55,13 @@ - {{item.receptionStatusName.slice(0, 2) || ''}} + {{item.receptionStatusName.slice(0, 2) || ''}} | 违禁 | - {{item.validInvalidName.slice(0, 2)||''}} + {{item.validInvalidName.slice(0, 2)||''}} | 未标记 已标记 @@ -108,7 +108,7 @@ 所属顾问 - @@ -507,11 +507,11 @@ }, //获取顾问列表 getFreeList() { - this.$u.get("/zkAgentPool/freeList?itemId=" + this.buildingID).then(res => { + this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {houseId: this.buildingID}).then(res => { this.freeList = res; this.freeList.forEach(item => { item.label = item.name; - item.value = item.agentId + item.value = item.accountId }) }) }, @@ -521,7 +521,7 @@ }, actionSelectCallback(e) { this.screen.agentId = e[0].value; - this.screenShow = false; + this.screen.counselorName = e[0].label this.recordList = []; this.nextPage = 1; this.getMyCustom(); @@ -864,6 +864,7 @@ .screen-counselor { display: flex; + align-items: center; height: 106rpx; // padding: 40rpx 30rpx 36rpx 30rpx; padding: 0 30rpx; @@ -871,7 +872,6 @@ border-bottom: 1px solid #EEEEEE; .screen-text { - margin: 40rpx 0 36rpx 0; font-size: 30rpx; font-weight: 400; color: #333333; @@ -880,21 +880,20 @@ .screen-sel { display: flex; - justify-content: space-between; + justify-content: flex-end; + align-items: center; width: 500rpx; margin-left: 60rpx; .screen-sel-img { flex-shrink: 0; - margin: 40rpx 0 36rpx 0; width: 14rpx; height: 30rpx; } .screen-inp { - margin-top: 20rpx; padding: 0 20rpx; - flex-grow: 1; + text-align: right; } } } diff --git a/pages/index/consumer/index.vue b/pages/index/consumer/index.vue index 2391044..12746f6 100644 --- a/pages/index/consumer/index.vue +++ b/pages/index/consumer/index.vue @@ -104,8 +104,8 @@ 所属顾问 - - + @@ -114,8 +114,8 @@ 客户标签 - - + @@ -320,7 +320,7 @@ soltishow: false, staTime: '', endtime: '', - orderBy: '', + orderBy: '', // 排序的id permissions: { commonly1: false, commonly2: false @@ -351,16 +351,16 @@ }, onPullDownRefresh() { - this.nextPage = 1; - this.recordList = [] + this.resetFilter() this.reset() this.getFreeList() this.getfindKeywordsList() this.getFromSource(); this.getMyCustom(); + setTimeout(() => { uni.stopPullDownRefresh() - }, 3000) + }, 2000) }, onShow() { @@ -393,11 +393,26 @@ } }, methods: { + // 过滤 + resetFilter() { + this.sortFilter = '排序'; + this.orderBy = null; + this.arriveFilter = '到访时间'; + this.staTime = ''; + this.endtime = ''; + this.nextPage = 1; + this.activeTotal = 5; + this.recordList = []; + this.receptionDuration = '接待时长'; + this.activeTotal2 = 0; + }, + + // 获取客户来源 getFromSource() { this.$u.get('customer/findCustomerSourceList', { houseId: this.buildingID - }).then(res => { + }).then(res => { console.log('我进来了') this.list = res }) @@ -555,11 +570,11 @@ //获取顾问列表 getFreeList() { this.freeList = [] - this.$u.get("/zkAgentPool/freeList?itemId=" + this.buildingID).then(res => { + this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {houseId: this.buildingID}).then(res => { this.freeList = res; this.freeList.forEach(item => { item.label = item.name; - item.value = item.agentId + item.value = item.accountId }) }) }, @@ -969,6 +984,7 @@ border-bottom: 1px solid #E0E0E0; .screen-text { + flex-shrink: 0; margin: 40rpx 0 36rpx 0; font-size: 30rpx; font-weight: 400; @@ -977,9 +993,10 @@ } .screen-sel { + flex-grow: 1; display: flex; - justify-content: space-between; - width: 500rpx; + justify-content: flex-end; + align-items: center; margin-left: 60rpx; .screen-sel-img { @@ -990,9 +1007,8 @@ } .screen-inp { - margin-top: 20rpx; padding: 0 20rpx; - flex-grow: 1; + text-align: right; } } } diff --git a/pages/index/index.vue b/pages/index/index.vue index 48d405b..48a0517 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -464,9 +464,11 @@ this.methodsisshow = true; } if (this.userInfo.zkProperties.length == 1) { + console.log('asdklajkl') this.buildingID = uni.getStorageSync('buildingID').id; this.buildingname = uni.getStorageSync('buildingID').name; this.buildingishow = false; + uni.setStorageSync('orgCode', this.userInfo.zkProperties[0].orgCode) } else { this.buildingishow = true; this.buildingname = uni.getStorageSync('buildingID').name; @@ -490,6 +492,8 @@ this.initworkThisWeek() this.initrealTimeStatistics() // this.sendLog() + + console.log(this.lpanlist, '123uio123uyoiasdcfnmklsdfm;kl ') }, methods: { indexStatus(i){ @@ -754,6 +758,7 @@ name: e[0].label } uni.setStorageSync("buildingID", lopan); //楼盘id写入缓存 + uni.setStorageSync("orgCode", e[0].orgCode); //楼盘id写入缓存 this.initworkThisWeek() this.initrealTimeStatistics() this.waitForOperation() diff --git a/pages/index/learning.vue b/pages/index/learning.vue index 389bc75..fe6364b 100644 --- a/pages/index/learning.vue +++ b/pages/index/learning.vue @@ -17,7 +17,7 @@ {{item.jbaName}} - 未学习 + {{ item.studyStatus }} diff --git a/pages/learning/Thefulltext/index.vue b/pages/learning/Thefulltext/index.vue index ad1be2e..0f2cb4b 100644 --- a/pages/learning/Thefulltext/index.vue +++ b/pages/learning/Thefulltext/index.vue @@ -272,8 +272,8 @@ }, addHot(){ // console.log('30') - this.$u.get('/addtodigest/addHeat',{ - id:this.customerId + this.$u.post('/zkstudyrecord',{ + targetId: this.customerId }) .then(res=>{ // console.log(res) diff --git a/pages/learning/Thefulltext/index2.vue b/pages/learning/Thefulltext/index2.vue index d1a4cb8..228230a 100644 --- a/pages/learning/Thefulltext/index2.vue +++ b/pages/learning/Thefulltext/index2.vue @@ -361,8 +361,8 @@ }, addHot() { // console.log('30') - this.$u.get('/addtodigest/addHeat', { - id: this.customerId + this.$u.post('/zkstudyrecord', { + targetId: this.customerId }) .then(res => { // console.log(res) @@ -873,23 +873,23 @@ color: #FFFFFF; border: none; } - + .boxs { min-height: 100%; display: flex; flex-direction: column; - + .chat { flex-grow: 1; } - + .bottomArea { flex-shrink: 0; position: sticky; bottom: 0; } } - + // 表单 .tian-view { width: 570upx; diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue index bb790bd..6432af5 100644 --- a/pages/mine/details2.vue +++ b/pages/mine/details2.vue @@ -30,7 +30,7 @@ - + 录音文件 + diff --git a/utils/domain.js b/utils/domain.js index 2f8fb4a..41efe05 100644 --- a/utils/domain.js +++ b/utils/domain.js @@ -2,7 +2,8 @@ // const base = 'http://8kdmng.natappfree.cc' ;// 佳豪 // const base = 'http://192.168.31.134:9999' ;// 佳豪 // const base = 'http://192.168.31.167:9999' // 长龙 -const base = 'https://zanyong.hfju.com';// 正式 +const base = 'https://zanyong.hfju.com';// 正式 AI销管 +// const base = 'https://hxz.quhouse.com';// 正式 AI销讲助手 // http.js使用 const baseUrl = `${base}/autoSR/api`;