mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-24 05:46:04 +08:00
优化重复问题
This commit is contained in:
parent
98ba8f5fa1
commit
d43e53523b
@ -178,7 +178,7 @@
|
|||||||
onLoad: function(options) {
|
onLoad: function(options) {
|
||||||
let _that = this;
|
let _that = this;
|
||||||
context.onLoad(options);
|
context.onLoad(options);
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -192,9 +192,11 @@
|
|||||||
onShow: function() {
|
onShow: function() {
|
||||||
var _that = this;
|
var _that = this;
|
||||||
_that.location = wx.getStorageSync('location');
|
_that.location = wx.getStorageSync('location');
|
||||||
if(context.checkLoginStatus()){
|
if (context.checkLoginStatus()) {
|
||||||
_that.judgeBindOwnerFun();
|
_that.judgeBindOwnerFun();
|
||||||
}
|
}
|
||||||
|
_that.notices = [];
|
||||||
|
_that.ad = [];
|
||||||
this._initIndexData();
|
this._initIndexData();
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -202,19 +204,19 @@
|
|||||||
* 页面上拉触底事件的处理函数
|
* 页面上拉触底事件的处理函数
|
||||||
*/
|
*/
|
||||||
onReachBottom: function() {
|
onReachBottom: function() {
|
||||||
if(this.notices.length >= this.page * this.row){
|
if (this.notices.length >= this.page * this.row) {
|
||||||
this.page = this.page +1;
|
this.page = this.page + 1;
|
||||||
this.loadActivitesFun();
|
this.loadActivitesFun();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
_initIndexData:function(){
|
_initIndexData: function() {
|
||||||
let _that = this;
|
let _that = this;
|
||||||
let loginStatus = context.checkLoginStatus();
|
let loginStatus = context.checkLoginStatus();
|
||||||
if(!loginStatus){
|
if (!loginStatus) {
|
||||||
//HC测试小区id
|
//HC测试小区id
|
||||||
_that.communityId = constant.mapping.HC_TEST_COMMUNITY_ID;
|
_that.communityId = constant.mapping.HC_TEST_COMMUNITY_ID;
|
||||||
}else{
|
} else {
|
||||||
context.getOwner(function(_owner) {
|
context.getOwner(function(_owner) {
|
||||||
let _communityId = '';
|
let _communityId = '';
|
||||||
if (_owner == null) {
|
if (_owner == null) {
|
||||||
@ -230,7 +232,7 @@
|
|||||||
},
|
},
|
||||||
judgeBindOwnerFun: function() {
|
judgeBindOwnerFun: function() {
|
||||||
context.getOwner(function(_owner) {
|
context.getOwner(function(_owner) {
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
@ -308,7 +310,7 @@
|
|||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
_advertPhotos.forEach(function(_item) {
|
_advertPhotos.forEach(function(_item) {
|
||||||
_item.url = _urlPath + _item.url + "&time=" + new Date();
|
_item.url = _urlPath + _item.url + "&time=" + new Date();
|
||||||
|
|
||||||
_aPhotos.push(_item);
|
_aPhotos.push(_item);
|
||||||
});
|
});
|
||||||
@ -344,7 +346,7 @@
|
|||||||
callPropertyTel: function() { //拨打电话
|
callPropertyTel: function() { //拨打电话
|
||||||
let _that = this;
|
let _that = this;
|
||||||
let loginStatus = context.checkLoginStatus();
|
let loginStatus = context.checkLoginStatus();
|
||||||
if(!loginStatus){
|
if (!loginStatus) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '../showlogin/showlogin'
|
url: '../showlogin/showlogin'
|
||||||
});
|
});
|
||||||
@ -411,17 +413,17 @@
|
|||||||
_cancleCall: function() {
|
_cancleCall: function() {
|
||||||
this.callPropertyModal = false;
|
this.callPropertyModal = false;
|
||||||
},
|
},
|
||||||
selectActiviti:function(_item){
|
selectActiviti: function(_item) {
|
||||||
this.curTypeCd = _item.typeCd;
|
this.curTypeCd = _item.typeCd;
|
||||||
this.notices = [];
|
this.notices = [];
|
||||||
this.page = 1;
|
this.page = 1;
|
||||||
this.loadActivitesFun();
|
this.loadActivitesFun();
|
||||||
},
|
},
|
||||||
toPage:function(pageUrl){
|
toPage: function(pageUrl) {
|
||||||
context.navigateTo({
|
context.navigateTo({
|
||||||
url: pageUrl
|
url: pageUrl
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
@ -434,8 +436,8 @@
|
|||||||
line-height: 100upx;
|
line-height: 100upx;
|
||||||
background-color: #00AA00;
|
background-color: #00AA00;
|
||||||
}
|
}
|
||||||
|
|
||||||
.margin-top-1{
|
.margin-top-1 {
|
||||||
margin-top: 2upx;
|
margin-top: 2upx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user