From 59193b06ee7474d2eecae6046093e00c1be2b735 Mon Sep 17 00:00:00 2001 From: wangxiaohua <1214073490@qq.com> Date: Mon, 30 Aug 2021 18:07:20 +0800 Subject: [PATCH] init --- .../Customerportrait/Receivedetailabout.vue | 9 ++- pages/center/consumer/index.vue | 19 ++++-- pages/center/records/index.vue | 19 ++++-- pages/index/customer.vue | 14 ++--- pages/index/index.vue | 4 +- pages/learning/Thefulltext/index.vue | 18 ++++-- pages/learning/Thefulltext/index2.vue | 14 +++-- pages/learning/Thefulltext/search.vue | 7 ++- pages/mine/details.vue | 63 ++++++++----------- pages/mine/details2.vue | 16 ++++- 10 files changed, 108 insertions(+), 75 deletions(-) diff --git a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue index 42a8ae7..7f50b31 100644 --- a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue +++ b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue @@ -812,7 +812,14 @@ jsonInfo.forEach(item=>{ item.message=JSON.parse(item.onebest) - item.backindex=this.csdFileindex + item.backindex=this.csdFileindex; + if(info.onebest){ + item.message.forEach(che=>{ + if(che.onebest==info.onebest){ + che.onebest=`${che.onebest}`; + } + }) + } }) this.newluyinList=jsonInfo; this.dialogList.push(jsonInfo[this.textindex]); diff --git a/pages/center/consumer/index.vue b/pages/center/consumer/index.vue index a10629e..7c7b575 100644 --- a/pages/center/consumer/index.vue +++ b/pages/center/consumer/index.vue @@ -182,15 +182,22 @@ freeList:[], userInfo:{}, findKeywordsList:[], + isnorefresh:'' } }, + onLoad(options) { + this.isnorefresh=options.refresh; + }, onShow() { - this.buildingID = uni.getStorageSync('buildingID').id; - this.nextPage=1; - this.recordList=[] - this.getMyCustom() - this.getFreeList() - this.getfindKeywordsList() + if(this.isnorefresh=='refresh'){ + this.buildingID = uni.getStorageSync('buildingID').id; + this.nextPage=1; + this.recordList=[] + this.getMyCustom() + this.getFreeList() + this.getfindKeywordsList() + this.isnorefresh=''; + } }, onReachBottom() { if(this.totalRecord==this.nextPage){ diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue index 9263a0f..9e770f9 100644 --- a/pages/center/records/index.vue +++ b/pages/center/records/index.vue @@ -168,15 +168,22 @@ nextPage:1, totalRecord:"", staTime:'', - endtime:'' + endtime:'', + isnorefresh:'', } }, + onLoad(options) { + this.isnorefresh=options.refresh; + }, onShow() { - this.buildingID = uni.getStorageSync('buildingID').id; - this.recordList=[]; - this.nextPage=1; - this.getMyCustom() - this.getFreeList(); + if(this.isnorefresh=='refresh'){ + this.buildingID = uni.getStorageSync('buildingID').id; + this.recordList=[]; + this.nextPage=1; + this.getMyCustom() + this.getFreeList(); + this.isnorefresh=''; + } }, onReachBottom() { if(this.totalRecord==this.nextPage){ diff --git a/pages/index/customer.vue b/pages/index/customer.vue index 6a91beb..2e8149a 100644 --- a/pages/index/customer.vue +++ b/pages/index/customer.vue @@ -98,15 +98,17 @@ customerId: item.id, } } - var item={ + var itemsd={ bg:0, customerId:item.id, + id:'', + onebest:'' } 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"}` + url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(itemsd)}&stateisshow=${"1"}` }) }else{ uni.showToast({ @@ -122,13 +124,7 @@ queryHaveDept() { return new Promise((resolve, reject) => { this.$u.get("/user/queryHaveDept?houseId="+this.buildingID).then(res => { - this.isAdd=res; - - // if(this.isAdd == 0 && (this.dataCode!=6||(dataCode==6&&addAccount==0))){ - - // } - - + this.isAdd=res; resolve(); }) }) diff --git a/pages/index/index.vue b/pages/index/index.vue index b6c9989..ba8e7ce 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -427,7 +427,7 @@ }); } else if (item == '接待记录') { uni.navigateTo({ - url: '/pages/center/records/index' + url: '/pages/center/records/index?refresh='+'refresh' }); } else if (item == '值班顾问') { uni.navigateTo({ @@ -439,7 +439,7 @@ }); } else { uni.navigateTo({ - url: '/pages/center/consumer/index' + url: '/pages/center/consumer/index?refresh='+'refresh' }); } }, diff --git a/pages/learning/Thefulltext/index.vue b/pages/learning/Thefulltext/index.vue index c7788c3..655bab6 100644 --- a/pages/learning/Thefulltext/index.vue +++ b/pages/learning/Thefulltext/index.vue @@ -1,10 +1,10 @@