From c85fd07458428d6d25ddc8d069f689add9f26d9a Mon Sep 17 00:00:00 2001 From: wangxiaohua <1214073490@qq.com> Date: Thu, 28 Oct 2021 17:43:02 +0800 Subject: [PATCH] init --- config.js | 4 +- pages.json | 2 +- .../Customerportrait/Detailsofthesearch.vue | 1 + .../Customerportrait/Receivedetailabout.vue | 13 ++- .../Customerportrait/Receivingrecords.vue | 1 + pages/center/consumer/consumerDetail.vue | 1 + pages/center/prohibited/index.vue | 4 + pages/center/records/index.vue | 6 ++ pages/center/records/recordSearch.vue | 1 + pages/index/index.vue | 100 +++++++++++++++--- pages/learning/Keywordsearch.vue | 1 + pages/mine/ScoringPlaylist.vue | 5 +- pages/mine/details.vue | 25 +++-- pages/mine/details2.vue | 15 ++- utils/http.js | 4 +- 15 files changed, 150 insertions(+), 33 deletions(-) diff --git a/config.js b/config.js index a9d1626..15384ac 100644 --- a/config.js +++ b/config.js @@ -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.160:8080/autoSR/api'; // 长龙 -var host = 'http://192.168.31.133:8080/autoSR/api'; // 佳豪 +// var host = 'http://192.168.31.133: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'; // 数智正式 diff --git a/pages.json b/pages.json index 35833ab..cd6995e 100644 --- a/pages.json +++ b/pages.json @@ -452,7 +452,7 @@ "pagePath": "pages/index/index", "iconPath": "/static/images/tabBar/home.png", "selectedIconPath": "/static/images/tabBar/homeActive.png", - "text": "楼盘" + "text": "首页" }, { "pagePath": "pages/index/customer", diff --git a/pages/center/Piabodata/Customerportrait/Detailsofthesearch.vue b/pages/center/Piabodata/Customerportrait/Detailsofthesearch.vue index 93bc6c7..59e35f4 100644 --- a/pages/center/Piabodata/Customerportrait/Detailsofthesearch.vue +++ b/pages/center/Piabodata/Customerportrait/Detailsofthesearch.vue @@ -155,6 +155,7 @@ }, //跳转 toaidoinfo(item,id,index){ + uni.setStorageSync("entrance", 2); //写入缓存 item.customerId=this.customerId; item.id=id; item.index=index; diff --git a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue index a50ff10..9d7ea03 100644 --- a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue +++ b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue @@ -987,7 +987,12 @@ const currTimeStr = this.formatTime(e) this.currentTimeStr = currTimeStr this.innerAudioContext.seek(e); - this.innerAudioContext.play(); + + if(uni.getStorageSync('entrance')==1){ + return + }else{ + this.innerAudioContext.play(); + } }, // 播放/暂停 changePlayState(){ @@ -1000,7 +1005,11 @@ //录音实例 creatAudio() { this.innerAudioContext = uni.createInnerAudioContext(); - this.innerAudioContext.autoplay = true; + if(uni.getStorageSync('entrance')==1){ + this.innerAudioContext.autoplay = false; + }else{ + this.innerAudioContext.autoplay = true; + } this.innerAudioContext.src = this.recordPath; this.innerAudioContext.title = '音频'; this.onPlay() diff --git a/pages/center/Piabodata/Customerportrait/Receivingrecords.vue b/pages/center/Piabodata/Customerportrait/Receivingrecords.vue index d7ece2a..227e09e 100644 --- a/pages/center/Piabodata/Customerportrait/Receivingrecords.vue +++ b/pages/center/Piabodata/Customerportrait/Receivingrecords.vue @@ -192,6 +192,7 @@ export default { }, methods: { toinfo(item){ + uni.setStorageSync("entrance", 1); //写入缓存 uni.navigateTo({ url: `/pages/center/Piabodata/Customerportrait/Receivedetailabout?customerId=${item.id}` }) diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue index c0aefc6..37dbca8 100644 --- a/pages/center/consumer/consumerDetail.vue +++ b/pages/center/consumer/consumerDetail.vue @@ -321,6 +321,7 @@ customerId:item.id, id:'' } + uni.setStorageSync("entrance", 1); //写入缓存 uni.setStorageSync("searchobj", item); //写入缓存 this.$u.post("/corpus/findByPage", parames).then(res => { if(res==null){ diff --git a/pages/center/prohibited/index.vue b/pages/center/prohibited/index.vue index 4d0bab3..4e4d14d 100644 --- a/pages/center/prohibited/index.vue +++ b/pages/center/prohibited/index.vue @@ -102,6 +102,10 @@ if(options.activeTotal){ this.activeTotal=options.activeTotal } + if(options.staTime){ + this.staTime=options.staTime; + this.endtime=options.endtime; + } }, onShow() { this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue index 3c6a390..8fbbb33 100644 --- a/pages/center/records/index.vue +++ b/pages/center/records/index.vue @@ -227,6 +227,11 @@ if(options.validInvalid){ this.screen.validInvalid=options.validInvalid } + if(options.staTime){ + this.staTime=options.staTime; + this.endtime=options.endtime; + } + }, onShow() { this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); @@ -326,6 +331,7 @@ customerId:item.id, } uni.setStorageSync("searchobj", item); //写入缓存 + uni.setStorageSync("entrance", 1); //写入缓存 this.$u.post("/corpus/findByPage", parames).then(res => { if(res==null){ uni.showToast({ diff --git a/pages/center/records/recordSearch.vue b/pages/center/records/recordSearch.vue index d862656..68a0b14 100644 --- a/pages/center/records/recordSearch.vue +++ b/pages/center/records/recordSearch.vue @@ -103,6 +103,7 @@ bg:0, customerId:item.id, } + uni.setStorageSync("entrance", 1); //写入缓存 uni.setStorageSync("searchobj", item); //写入缓存 this.$u.post("/corpus/findByPage", parames).then(res => { if(res==null){ diff --git a/pages/index/index.vue b/pages/index/index.vue index abbe24f..e08ac24 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -133,7 +133,14 @@ - 本周工作 + + 概览 + + 近7天 + 近30天 + 自定义 + + @@ -204,6 +211,7 @@ + @@ -250,7 +258,11 @@ fraction: '', receptionCount:'' }, - methodsisshow:false + methodsisshow:false, + zhixingcenterindex:2, + totalTimeShow: false, + statDateStart:'', + statDateEnd:'', }; }, components: {}, @@ -289,6 +301,22 @@ this.initrealTimeStatistics() }, methods: { + //自定义时间 + totalTimeChange(e) { + this.statDateStart=e.startDate; + this.statDateEnd=e.endDate; + this.zhixingcenterindex=7; + this.initworkThisWeek() + }, + tabtimeclick(i){ + + if(i==7){ + this.totalTimeShow = true; + }else{ + this.zhixingcenterindex=i; + this.initworkThisWeek() + } + }, initworkThisWeek() { uni.request({ url: config.service.workThisWeek, @@ -298,7 +326,10 @@ 'Access-Token': uni.getStorageSync('weapp_session_login_data').token }, data: { - houseId: this.buildingID + houseId: this.buildingID, + dateType:this.zhixingcenterindex==7?null:this.zhixingcenterindex, + statDateStart:this.statDateStart, + statDateEnd:this.statDateEnd }, success: (data) => { if (data.data.data == null) { @@ -454,11 +485,20 @@ url: '/pages/center/prohibited/index?refresh='+'refresh'+'&activeTotal='+'0' }); }else{ - uni.navigateTo({ - url: '/pages/center/prohibited/index?refresh='+'refresh'+'&activeTotal='+'2' - }); + if(this.zhixingcenterindex==2){ + uni.navigateTo({ + url: '/pages/center/prohibited/index?refresh='+'refresh'+'&activeTotal='+'2' + }); + }else if(this.zhixingcenterindex==6){ + uni.navigateTo({ + url: '/pages/center/prohibited/index?refresh='+'refresh'+'&activeTotal='+'3' + }); + }else{ + uni.navigateTo({ + url: '/pages/center/prohibited/index?refresh='+'refresh'+'&activeTotal='+'4'+'&staTime='+this.statDateStart+'&endtime='+this.statDateEnd + }); + } } - }, tapjumpreception(i){ this.Menulist.forEach(item=>{ @@ -472,17 +512,38 @@ url: '/pages/index/customer' }); }else if(i==3){ - uni.navigateTo({ - url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'2' - }); + if(this.zhixingcenterindex==2){ + uni.navigateTo({ + url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'2' + }); + }else if(this.zhixingcenterindex==6){ + uni.navigateTo({ + url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'3' + }); + }else{ + uni.navigateTo({ + url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'4'+'&staTime='+this.statDateStart+'&endtime='+this.statDateEnd + }); + } + }else if(i==6){ uni.navigateTo({ url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'0'+'&validInvalid=0' }); }else if(i==7){ - uni.navigateTo({ - url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'2'+'&validInvalid=0' - }); + if(this.zhixingcenterindex==2){ + uni.navigateTo({ + url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'2'+'&validInvalid=0' + }); + }else if(this.zhixingcenterindex==6){ + uni.navigateTo({ + url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'3'+'&validInvalid=0' + }); + }else{ + uni.navigateTo({ + url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'4'+'&staTime='+this.statDateStart+'&endtime='+this.statDateEnd+'&validInvalid=0' + }); + } }else{ uni.navigateTo({ url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal=0'+'&markAdvisor=0' @@ -530,6 +591,19 @@