|
|
|
@ -156,7 +156,7 @@ |
|
|
|
|
onReachScroll: function(t) { |
|
|
|
|
if(this.loadType){ |
|
|
|
|
this.page++; |
|
|
|
|
this.getUserMsg(); |
|
|
|
|
this.getUserMsgs(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
interrupt(e) { |
|
|
|
@ -201,7 +201,7 @@ |
|
|
|
|
getUserMsg:function(){ |
|
|
|
|
var that = this; |
|
|
|
|
var data = { |
|
|
|
|
"pageno":that.page, |
|
|
|
|
"pageno":"1", |
|
|
|
|
"pageSize":"10", |
|
|
|
|
"unionid":uni.getStorageSync("unionid"), |
|
|
|
|
// "unionid":"unionIdewrqrfb", |
|
|
|
@ -229,11 +229,49 @@ |
|
|
|
|
arr.push(item) |
|
|
|
|
} |
|
|
|
|
that.controlList = arr |
|
|
|
|
that.$forceUpdate() |
|
|
|
|
}else{ |
|
|
|
|
that.loadType = false; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
getUserMsgs:function(){ |
|
|
|
|
var that = this; |
|
|
|
|
var data = { |
|
|
|
|
"pageno":that.page, |
|
|
|
|
"pageSize":"10", |
|
|
|
|
"unionid":uni.getStorageSync("unionid"), |
|
|
|
|
// "unionid":"unionIdewrqrfb", |
|
|
|
|
"userkey": that.$param.userkey |
|
|
|
|
} |
|
|
|
|
this.$Request.post(this.$config.selectControlListFormFilter,data).then(res => { |
|
|
|
|
var flag = that.$util.isSuccess(res); |
|
|
|
|
if(!flag){ |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
var data = res.data; |
|
|
|
|
let arr = [] |
|
|
|
|
if(data != null && data.length > 0){ |
|
|
|
|
for(var i = 0;i < data.length;i++){ |
|
|
|
|
var item = { |
|
|
|
|
"guid":data[i].guid, |
|
|
|
|
"creason":data[i].creason, |
|
|
|
|
"address":data[i].address, |
|
|
|
|
"createtime":that.timestampToTime(data[i].createtime), |
|
|
|
|
"ctype":data[i].ctype, |
|
|
|
|
"imgList":data[i].imgList, |
|
|
|
|
"showHideType":"zhed_gao", |
|
|
|
|
"upDownType":"down_touj" |
|
|
|
|
} |
|
|
|
|
that.controlList.push(item) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
that.loadType = false; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
goAddSug:function(){ |
|
|
|
|
if (!uni.getStorageSync('unionid')||uni.getStorageSync('unionid')==''||uni.getStorageSync('unionid')==null) { |
|
|
|
|
uni.showToast({ |
|
|
|
|