From 67c9a8aac1b3f22422db5b32def8430985bb875b Mon Sep 17 00:00:00 2001 From: lancer <1905818361@qq.com> Date: Thu, 26 Aug 2021 20:39:10 +0800 Subject: [PATCH] init --- components/kx-datetime/kx-datetime.vue | 536 +++++++++++++++++++ components/uni-popup/uni-popup.vue | 263 +++++++++ components/uni-transition/uni-transition.vue | 279 ++++++++++ pages/center/Piabodata/Groupcontrast.vue | 46 +- pages/center/Piabodata/TrendAnalysis.vue | 18 +- pages/center/Piabodata/index.vue | 20 +- pages/center/consumer/consumerDetail.vue | 2 +- pages/center/consumer/remind.vue | 145 ++++- 8 files changed, 1288 insertions(+), 21 deletions(-) create mode 100644 components/kx-datetime/kx-datetime.vue create mode 100644 components/uni-popup/uni-popup.vue create mode 100644 components/uni-transition/uni-transition.vue diff --git a/components/kx-datetime/kx-datetime.vue b/components/kx-datetime/kx-datetime.vue new file mode 100644 index 0000000..6993ecb --- /dev/null +++ b/components/kx-datetime/kx-datetime.vue @@ -0,0 +1,536 @@ + + + + + diff --git a/components/uni-popup/uni-popup.vue b/components/uni-popup/uni-popup.vue new file mode 100644 index 0000000..a0e0214 --- /dev/null +++ b/components/uni-popup/uni-popup.vue @@ -0,0 +1,263 @@ + + + + diff --git a/components/uni-transition/uni-transition.vue b/components/uni-transition/uni-transition.vue new file mode 100644 index 0000000..908a939 --- /dev/null +++ b/components/uni-transition/uni-transition.vue @@ -0,0 +1,279 @@ + + + + + diff --git a/pages/center/Piabodata/Groupcontrast.vue b/pages/center/Piabodata/Groupcontrast.vue index b247760..803c715 100644 --- a/pages/center/Piabodata/Groupcontrast.vue +++ b/pages/center/Piabodata/Groupcontrast.vue @@ -135,11 +135,16 @@ - 销讲能力(TOP10) - + 销讲能力 + + + {{staff.label}} + + + + @@ -218,12 +225,14 @@ export default { data() { return { - activeTotal: 2, + activeTotal: 4, activeTotal2: 0, bocindex:0, totalTimeShow: false, // 楼盘id houseId:'', + staffShow:false, + staffList:[], lastStartDate:'', lastEndDate :'', newTeam1:'', @@ -234,6 +243,10 @@ newAvg3:'', newTeam4:'', newAvg4:'', + staff:{ + value:'', + label:'' + }, newlisttabinfo1:[ {name:'接待量',zxl:'10'}, {name:'平均执行率',zxl:'50'}, @@ -274,14 +287,39 @@ // 获取销奖能力 that.getPowerList() }) - this.getdata() + this.getSectionList() + }, methods: { + // 获取部门列表 + getSectionList(){ + this.$u.post('/user/getHouseByToken',) + .then(res=>{ + // console.log(res) + this.staffList=[] + res.map((item,index)=>{ + let obj={} + obj.value=item.id + obj.label=item.propertyName + this.staffList.push(obj) + }) + this.houseId=this.staffList[0].value + this.staff=this.staffList[0] + this.getdata() + // console.log(this.staffList,this.staffList,this.houseId) + }) + + }, //指标执行率分析tab tapspagek2(index) { this.bocindex = index; }, + staffSelectCallback(e){ + this.staff=e[0] + this.houseId=e[0].value + this.getPowerList() + }, getdata(){ // 请求接口获取接待量 this.receptionCountList('1','/cusLvStatistics/groupComparisonReception') diff --git a/pages/center/Piabodata/TrendAnalysis.vue b/pages/center/Piabodata/TrendAnalysis.vue index 56c31c4..e7e182f 100644 --- a/pages/center/Piabodata/TrendAnalysis.vue +++ b/pages/center/Piabodata/TrendAnalysis.vue @@ -172,10 +172,10 @@ - - - - + + + + {{item1==0?'--':item1+'%'}} @@ -1134,9 +1134,9 @@ // flex-shrink: 0; } .trd{ - flex-shrink: 0; - width: 200rpx; - + flex-shrink: 0; + min-width: 300rpx; + // border-bottom: 1px solid #ccc; } .th { height: 64rpx; @@ -1323,4 +1323,8 @@ color: #666666; margin-top: 10rpx; } + .grid:nth-child(1){ + border-right:none ; + border-bottom:none ; + } diff --git a/pages/center/Piabodata/index.vue b/pages/center/Piabodata/index.vue index b3a7f6c..7d04e62 100644 --- a/pages/center/Piabodata/index.vue +++ b/pages/center/Piabodata/index.vue @@ -50,7 +50,7 @@ - + 简报 @@ -103,10 +103,10 @@ --> - + 来访(人) --> - + 来访(人) diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue index 4db71a4..e43a98a 100644 --- a/pages/center/consumer/consumerDetail.vue +++ b/pages/center/consumer/consumerDetail.vue @@ -335,7 +335,7 @@ // 去添加提醒 goRemind(){ uni.navigateTo({ - url:'/pages/center/consumer/remind' + url:`/pages/center/consumer/remind?str=${this.customerInfo.name+'/'+this.customerInfo.phone}&customerId=${this.customerId}` }) }, //评分点击 diff --git a/pages/center/consumer/remind.vue b/pages/center/consumer/remind.vue index 66663f0..0d936f8 100644 --- a/pages/center/consumer/remind.vue +++ b/pages/center/consumer/remind.vue @@ -6,7 +6,8 @@ 客户信息 - 李先生/12385945986 + + {{str}} @@ -14,7 +15,8 @@ 提醒时间 - 请选择提醒时间(必填) + + @@ -24,18 +26,140 @@ + + 添加提醒 + @@ -85,4 +209,17 @@ padding: 30rpx; margin-bottom: 20rpx; } + .btn{ + position: fixed; + width: 690rpx; + height: 88rpx; + background: #2671E2; + border-radius: 8px; + line-height: 88rpx; + text-align: center; + color: #FFFFFF; + bottom: 108rpx; + left: 30rpx; + } +