@@ -638,6 +639,9 @@ export default {
this.isShow = false
this.selectTab = 1
},
+ onUnload() {
+ this.$util.addUserBehavior()
+ },
onPullDownRefresh:function(){
if (!this.isReturn){
this.getData(this.option)
diff --git a/pages/map/detail.vue b/pages/map/detail.vue
index 3b26500..8279a08 100644
--- a/pages/map/detail.vue
+++ b/pages/map/detail.vue
@@ -202,6 +202,9 @@ export default {
let seat = uni.getStorageSync('currentService')
this.handleSearch(seat)
},
+ onUnload() {
+ this.$util.addUserBehavior()
+ },
methods:{
// 滚动轮播图
changeSwiper(e){
diff --git a/pages/map/index.vue b/pages/map/index.vue
index 8886d64..4c21c29 100644
--- a/pages/map/index.vue
+++ b/pages/map/index.vue
@@ -142,6 +142,7 @@ export default {
},
onUnload(){
this.isShowMap = false
+ this.$util.addUserBehavior()
},
watch:{
// 监听经纬度
diff --git a/pages/suggestion/suggestion.vue b/pages/suggestion/suggestion.vue
index ada392d..ac0035f 100644
--- a/pages/suggestion/suggestion.vue
+++ b/pages/suggestion/suggestion.vue
@@ -1,11 +1,11 @@
-
+
-
+
{{!pageData.isEnd ? '正在加载,请稍后...':'——— 我是有底线的 ———'}}
@@ -31,16 +31,16 @@
isEnd: false,
isLoading: true
},
-
+
isShow:false,
-
+
pageList:[]
}
},
components: {
ListUnit
},
-
+
computed: {
...mapGetters({
isReloading:'shouldReLoadingList'
@@ -50,13 +50,13 @@
...mapMutations(['shouldReLoadingList']),
getList() {
let _this = this
-
+
_this.$request.$get( 'GetSuggestionList',{
suggestionType: '1000,2000,4000',
pageIndex: this.pageData.pageIndex,
pageSize: this.pageData.pageSize,
}).then(res => {
-
+
if(!res.ResultCode ||res.ResultCode!='100'){
_this.isShow = false
_this.pageList = []
@@ -64,19 +64,19 @@
let list = res.Data.List
if (list.length > 0) {
_this.pageList = this.pageData.pageIndex==1 ? list : [..._this.pageList,...list,]
-
+
}
if (list.length < _this.pageData.pageSize) { // 返回条数小于每页条数
_this.pageData.isEnd = true
}
// _this.$forceUpdate()
-
+
}
uni.hideLoading()
-
+
_this.isShow = true
_this.pageData.isLoading = false
-
+
})
},
loadMore(){
@@ -87,7 +87,7 @@
},
goDetail(item) {
this.$util.toNextRoute('navigateTo', "/pages/suggestion/suggestionDetail?SUGGESTION_ID=" + item.SUGGESTION_ID)
-
+
},
},
onPullDownRefresh() {
@@ -105,16 +105,16 @@
this.loadMore()
},
onLoad() {
-
+
this.pageData.isLoading= true
uni.showLoading({
title:'正在加载'
})
this.getList()
-
-
-
-
+
+
+
+
},
onShow() {
let _this = this
@@ -130,9 +130,8 @@
},
onUnload() {
this.$util.addUserBehavior()
-
}
-
+
}
@@ -143,10 +142,10 @@
overflow: hidden;
height: 100%;
width: 750upx;
-
+
}
.mt20 {
margin-top: 30rpx;
}
-
+
diff --git a/pages/userCenter/userCenter.vue b/pages/userCenter/userCenter.vue
index f1027a0..fbc30a7 100644
--- a/pages/userCenter/userCenter.vue
+++ b/pages/userCenter/userCenter.vue
@@ -333,6 +333,9 @@ import Tabbar from "../../components/tabbar/tabbar.vue";
url:`/pages/commercialBI/noData?type=index`
})
}
+ },
+ onUnload() {
+ this.$util.addUserBehavior()
},
methods:{
...mapActions(['getTodoList']),