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 1/2] 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 @@
+
+
+ {{date?date:placeholder?placeholder:'请选择'}}
+
+
+ 取消
+ 确定
+
+
+
+ {{item}}年
+
+
+ {{item}}月
+
+
+ {{item}}日
+
+
+ {{item}}时
+
+
+ {{item}}分
+
+
+
+
+
+
+
+
+
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;
+ }
+
From b2f3772da4efc83b2a53f1d65f1110a25cab79e0 Mon Sep 17 00:00:00 2001
From: lancer <1905818361@qq.com>
Date: Thu, 26 Aug 2021 21:17:41 +0800
Subject: [PATCH 2/2] init
---
config.js | 4 ++--
pages/center/Piabodata/Groupcontrast.vue | 4 ++--
pages/center/Piabodata/TrendAnalysis.vue | 6 +++---
pages/center/Piabodata/index.vue | 4 ++--
utils/http.js | 4 ++--
5 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/config.js b/config.js
index 72d9e33..be10eb6 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.163:8080/autoSR/api'; // 长龙
-var host = 'http://192.168.31.128:8080/autoSR/api'; // 佳豪
+// var host = 'http://192.168.31.128: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/center/Piabodata/Groupcontrast.vue b/pages/center/Piabodata/Groupcontrast.vue
index 803c715..d68e3d9 100644
--- a/pages/center/Piabodata/Groupcontrast.vue
+++ b/pages/center/Piabodata/Groupcontrast.vue
@@ -112,10 +112,10 @@
-->
-
+
diff --git a/pages/center/Piabodata/TrendAnalysis.vue b/pages/center/Piabodata/TrendAnalysis.vue
index e7e182f..5afd231 100644
--- a/pages/center/Piabodata/TrendAnalysis.vue
+++ b/pages/center/Piabodata/TrendAnalysis.vue
@@ -692,9 +692,9 @@
arr[3] = ['时段二']
// console.log(arr)
data.firstList.map((item, index) => {
- arr[1].push(item.total)
- arr[2].push(data.secondList[index].total)
- arr[3].push(data.thirdList[index].total)
+ arr[2].push(item.total)
+ arr[3].push(data.secondList[index].total)
+ arr[1].push(data.thirdList[index].total)
})
that.tableDate = arr
}
diff --git a/pages/center/Piabodata/index.vue b/pages/center/Piabodata/index.vue
index 7d04e62..15be61d 100644
--- a/pages/center/Piabodata/index.vue
+++ b/pages/center/Piabodata/index.vue
@@ -107,7 +107,7 @@
合计:{{allnum||0}}
均值:{{allavg||0}}
-->
- 来访(人)
+
合计:{{allnum1||0}}
均值:{{allavg1||0}}
-->
- 来访(人)
+