wangxiaohua 2 jaren geleden
bovenliggende
commit
c85fd07458
15 gewijzigde bestanden met toevoegingen van 150 en 33 verwijderingen
  1. +2
    -2
      config.js
  2. +1
    -1
      pages.json
  3. +1
    -0
      pages/center/Piabodata/Customerportrait/Detailsofthesearch.vue
  4. +11
    -2
      pages/center/Piabodata/Customerportrait/Receivedetailabout.vue
  5. +1
    -0
      pages/center/Piabodata/Customerportrait/Receivingrecords.vue
  6. +1
    -0
      pages/center/consumer/consumerDetail.vue
  7. +4
    -0
      pages/center/prohibited/index.vue
  8. +6
    -0
      pages/center/records/index.vue
  9. +1
    -0
      pages/center/records/recordSearch.vue
  10. +87
    -13
      pages/index/index.vue
  11. +1
    -0
      pages/learning/Keywordsearch.vue
  12. +4
    -1
      pages/mine/ScoringPlaylist.vue
  13. +17
    -8
      pages/mine/details.vue
  14. +11
    -4
      pages/mine/details2.vue
  15. +2
    -2
      utils/http.js

+ 2
- 2
config.js Bestand weergeven

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


+ 1
- 1
pages.json Bestand weergeven

@@ -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",


+ 1
- 0
pages/center/Piabodata/Customerportrait/Detailsofthesearch.vue Bestand weergeven

@@ -155,6 +155,7 @@
},
//跳转
toaidoinfo(item,id,index){
uni.setStorageSync("entrance", 2); //写入缓存
item.customerId=this.customerId;
item.id=id;
item.index=index;


+ 11
- 2
pages/center/Piabodata/Customerportrait/Receivedetailabout.vue Bestand weergeven

@@ -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()


+ 1
- 0
pages/center/Piabodata/Customerportrait/Receivingrecords.vue Bestand weergeven

@@ -192,6 +192,7 @@ export default {
},
methods: {
toinfo(item){
uni.setStorageSync("entrance", 1); //写入缓存
uni.navigateTo({
url: `/pages/center/Piabodata/Customerportrait/Receivedetailabout?customerId=${item.id}`
})


+ 1
- 0
pages/center/consumer/consumerDetail.vue Bestand weergeven

@@ -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){


+ 4
- 0
pages/center/prohibited/index.vue Bestand weergeven

@@ -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');


+ 6
- 0
pages/center/records/index.vue Bestand weergeven

@@ -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({


+ 1
- 0
pages/center/records/recordSearch.vue Bestand weergeven

@@ -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){


+ 87
- 13
pages/index/index.vue Bestand weergeven

@@ -133,7 +133,14 @@


<view class="title">本周工作</view>
<view class="title" style="display: flex;">
<view style="width: 55%;">概览</view>
<view class="cet" style="display: flex;">
<view class="cetview" :class="{ activecllasscet: zhixingcenterindex == 2 }" @click="tabtimeclick(2)">近7天</view>
<view class="cetview" :class="{ activecllasscet: zhixingcenterindex == 6 }" @click="tabtimeclick(6)">近30天</view>
<view class="cetview" :class="{ activecllasscet: zhixingcenterindex == 7 }" @click="tabtimeclick(7)">自定义</view>
</view>
</view>
<view class="real-timebox">
<view class="timebox">
<view class="real" @click="tapjumpreception('3')">
@@ -204,6 +211,7 @@
<u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="lpanlist"
@cancel="cancel" @confirm="confirm"></u-select>
</view>
<u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
</view>
</template>

@@ -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 @@
</script>

<style lang="scss" scoped>
.activecllasscet{
font-size: 28rpx;
font-weight: 400;
color: #008ef2;
}
.cet{
font-size: 28rpx;
font-weight: 400;
color: #333333;
.cetview{
margin-left: 20rpx;
}
}
.cented-box {
padding: 30rpx;
background: #F8F8F8;


+ 1
- 0
pages/learning/Keywordsearch.vue Bestand weergeven

@@ -89,6 +89,7 @@
},
//跳转
toaidoinfo(item,id,index){
uni.setStorageSync("entrance", 2); //写入缓存
item.customerId=this.customerId;
item.id=id;
item.index=index;


+ 4
- 1
pages/mine/ScoringPlaylist.vue Bestand weergeven

@@ -68,7 +68,8 @@
infostust(item){
console.log("zobudao")
let d = JSON.parse(JSON.stringify([item]))
d[0].onebest=""
d[0].onebest="";
console.log(d)
const parames = {
pageNum: 1,
pageSize: 100,
@@ -77,6 +78,8 @@
}
}
this.$u.post("/corpus/findByPage", parames).then(res => {
uni.setStorageSync("entrance", 2); //写入缓存
uni.setStorageSync("searchobj", d[0]); //写入缓存
if(res[0].merge==0){
let newobj = res[0];
uni.navigateTo({


+ 17
- 8
pages/mine/details.vue Bestand weergeven

@@ -1,10 +1,10 @@
<template>
<view class="translation">
<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;" @tap="toKeywordsearch()">
<image style="width: 28rpx;height: 28rpx;margin-left: 30rpx;" src="/static/images/search.png" mode=""></image>
<text style="margin-left: 10rpx;color: #999999;font-size: 24rpx;">请输入关键字</text>
</view>
</view> -->
<view class="top" style="margin-top: 30rpx;">
<view class="title">
<view class="call_record_time">{{date}}</view>
@@ -269,9 +269,7 @@
},
// 在组件实例被从页面节点树移除时执行
destroyed: function() {
if (this.innerAudioContext) {
this.innerAudioContext.destroy();
}
this.innerAudioContext.destroy();
},
// 销毁实例
onUnload: function() {
@@ -434,7 +432,10 @@
this.timeStr = this.getTime(res[0].recordDuration)
this.date = res[0].receptionTime
this.innerAudioContext.src = this.recordPath;
this.changePlayState()
// if(uni.getStorageSync('entrance')==2){
// this.changePlayState()
// }
this.luyinList = res;
this.getCorpusAnalysis()
}
@@ -446,7 +447,11 @@
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();
// }
},
//下一页
ltolower() {
@@ -1024,7 +1029,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()


+ 11
- 4
pages/mine/details2.vue Bestand weergeven

@@ -1031,7 +1031,11 @@
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();
}
},
//下一页
ltolower() {
@@ -1533,8 +1537,6 @@
}
})
this.newluyinList=jsonInfo;
this.dialogList.push(jsonInfo[this.textindex]);
var itc=parseInt(info.bg/1000)
@@ -1616,7 +1618,12 @@
//录音实例
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()


+ 2
- 2
utils/http.js Bestand weergeven

@@ -1,7 +1,7 @@

// 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.160:8080/autoSR/api'; // 长龙
const baseUrl = 'http://192.168.31.133:8080/autoSR/api'; // 佳豪
// const baseUrl = 'http://192.168.31.133: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'; // 数智正式


Laden…
Annuleren
Opslaan