Browse Source

下拉刷新

test
jyt 2 years ago
parent
commit
eada6e1b4a
13 changed files with 109 additions and 12 deletions
  1. +24
    -12
      pages.json
  2. +6
    -0
      pages/center/Piabodata/Employeesstatistics.vue
  3. +6
    -0
      pages/center/Piabodata/Groupcontrast.vue
  4. +6
    -0
      pages/center/Piabodata/StaffAnalysis.vue
  5. +6
    -0
      pages/center/Piabodata/Theteamcompared.vue
  6. +6
    -0
      pages/center/Piabodata/TrendAnalysis.vue
  7. +6
    -0
      pages/center/Piabodata/Userinsightinto.vue
  8. +17
    -0
      pages/center/Piabodata/index.vue
  9. +6
    -0
      pages/center/prohibited/index.vue
  10. +6
    -0
      pages/center/records/index.vue
  11. +7
    -0
      pages/index/customer.vue
  12. +7
    -0
      pages/mine/consultanonduty/index.vue
  13. +6
    -0
      pages/mine/equipment/index.vue

+ 24
- 12
pages.json View File

@@ -34,7 +34,8 @@
"style": {
"navigationBarTitleText": "接待",
"navigationBarBackgroundColor": "#2671E2",
"navigationBarTextStyle": "white"
"navigationBarTextStyle": "white",
"enablePullDownRefresh":true
}
}, {
"path": "pages/index/learning",
@@ -192,7 +193,8 @@
"style": {
"navigationBarTitleText": "值班顾问",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black"
"navigationBarTextStyle": "black",
"enablePullDownRefresh":true
}
},
{
@@ -200,7 +202,8 @@
"style": {
"navigationBarTitleText": "设备管理",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black"
"navigationBarTextStyle": "black",
"enablePullDownRefresh": true
}
}
,{
@@ -306,7 +309,8 @@
"style": {
"navigationBarTitleText": "销讲数据",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black"
"navigationBarTextStyle": "black",
"enablePullDownRefresh":true
}
},
{
@@ -314,7 +318,8 @@
"style": {
"navigationBarTitleText": "集团对比",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black"
"navigationBarTextStyle": "black",
"enablePullDownRefresh":true
}
},
{
@@ -322,7 +327,8 @@
"style": {
"navigationBarTitleText": "团队对比",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black"
"navigationBarTextStyle": "black",
"enablePullDownRefresh":true
}
},
{
@@ -346,7 +352,8 @@
"style": {
"navigationBarTitleText": "客户画像",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black"
"navigationBarTextStyle": "black",
"enablePullDownRefresh":true
}
},
{
@@ -354,7 +361,8 @@
"style": {
"navigationBarTitleText": "趋势分析",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black"
"navigationBarTextStyle": "black",
"enablePullDownRefresh":true
}
},
{
@@ -362,7 +370,8 @@
"style": {
"navigationBarTitleText": "员工分析",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black"
"navigationBarTextStyle": "black",
"enablePullDownRefresh":true
}
},

@@ -395,7 +404,8 @@
"style": {
"navigationBarTitleText": "顾问排名",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black"
"navigationBarTextStyle": "black",
"enablePullDownRefresh":true
}
},

@@ -404,7 +414,8 @@
"style": {
"navigationBarTitleText": "接待记录",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black"
"navigationBarTextStyle": "black",
"enablePullDownRefresh": true
}
},
{
@@ -420,7 +431,8 @@
"style": {
"navigationBarTitleText": "违禁记录",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black"
"navigationBarTextStyle": "black",
"enablePullDownRefresh": true
}
},
{


+ 6
- 0
pages/center/Piabodata/Employeesstatistics.vue View File

@@ -201,6 +201,12 @@
this.houseId = uni.getStorageSync('buildingID').id;
this.init()
},
onPullDownRefresh(){
this.init()
setTimeout(function () {
uni.stopPullDownRefresh();
}, 1000);
},
methods: {
init(){
this.newlisttabinfo1={


+ 6
- 0
pages/center/Piabodata/Groupcontrast.vue View File

@@ -298,6 +298,12 @@
this.getSectionList()
},
onPullDownRefresh(){
this.getSectionList()
setTimeout(function () {
uni.stopPullDownRefresh();
}, 1000);
},
methods: {
// 获取部门列表


+ 6
- 0
pages/center/Piabodata/StaffAnalysis.vue View File

@@ -243,6 +243,12 @@
// 请求接口获取所有置业顾问员工的列表
this.getStaffList()
},
onPullDownRefresh(){
this.getStaffList()
setTimeout(function () {
uni.stopPullDownRefresh();
}, 1000);
},
methods: {
//是否对比
checkboxChange(){


+ 6
- 0
pages/center/Piabodata/Theteamcompared.vue View File

@@ -370,6 +370,12 @@
this.getSectionList()

},
onPullDownRefresh(){
this.getSectionList()
setTimeout(function () {
uni.stopPullDownRefresh();
}, 1000);
},
methods: {
//是否对比
checkboxChange() {


+ 6
- 0
pages/center/Piabodata/TrendAnalysis.vue View File

@@ -334,6 +334,12 @@
this.pamect.houseId = uni.getStorageSync('buildingID').id;
this.init()
},
onPullDownRefresh(){
this.init()
setTimeout(function () {
uni.stopPullDownRefresh();
}, 1000);
},
watch: {
Showhiddenunits(newValue, oldValue) {
this.showCanvas = !newValue


+ 6
- 0
pages/center/Piabodata/Userinsightinto.vue View File

@@ -113,6 +113,12 @@
this.buildingID=uni.getStorageSync('buildingID').id;
this.gitinit()
},
onPullDownRefresh(){
this.gitinit()
setTimeout(function () {
uni.stopPullDownRefresh();
}, 1000);
},
methods: {
anclick(i){
console.log(i)


+ 17
- 0
pages/center/Piabodata/index.vue View File

@@ -362,6 +362,23 @@
// 获取维度
this.getindexZxl()
},
onPullDownRefresh(){
// 获取员工
this.getStaffList()
// 获取团队
this.getSectionList()
// 获取团队是否显示权限
// 获取简报
this.getReport()
// 获取接待趋势
this.getRtrent()
// 获取维度
this.getindexZxl()
setTimeout(function () {
uni.stopPullDownRefresh();
}, 1000);
},
methods: {




+ 6
- 0
pages/center/prohibited/index.vue View File

@@ -150,6 +150,12 @@
this.isnorefresh = '';
}
},
onPullDownRefresh(){
this.getMyCustom()
setTimeout(function () {
uni.stopPullDownRefresh();
}, 1000);
},
onReachBottom() {
if (this.totalRecord == this.nextPage) {
uni.showToast({


+ 6
- 0
pages/center/records/index.vue View File

@@ -324,6 +324,12 @@
this.isnorefresh = '';
}
},
onPullDownRefresh(){
this.getMyCustom()
setTimeout(function () {
uni.stopPullDownRefresh();
}, 1000);
},
onReachBottom() {
if (this.totalRecord == this.nextPage) {
uni.showToast({


+ 7
- 0
pages/index/customer.vue View File

@@ -215,6 +215,13 @@
this.init()
this.queryHaveDept()
},
onPullDownRefresh(){
this.init()
setTimeout(function () {
uni.stopPullDownRefresh();
}, 1000);
},
methods: {
reshCustom() {
this.init()


+ 7
- 0
pages/mine/consultanonduty/index.vue View File

@@ -66,6 +66,13 @@
this.changeAgentListShow()
this.changePausedAgentListShow()
},
onPullDownRefresh(){
this.changeAgentListShow()
this.changePausedAgentListShow()
setTimeout(function () {
uni.stopPullDownRefresh();
}, 1000);
},
computed: {
activeAgentList() {
return this.activeTotal == 1 ? this.agentList : this.pausedAgentList


+ 6
- 0
pages/mine/equipment/index.vue View File

@@ -122,6 +122,12 @@
this.pageNum +=1;
this.init()
},
onPullDownRefresh(){
this.init()
setTimeout(function () {
uni.stopPullDownRefresh();
}, 1000);
},
onLoad(options) {
if(options.active){
this.activeClass=options.active


Loading…
Cancel
Save