mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-06-12 10:00:57 +08:00
优化重复问题
This commit is contained in:
parent
98ba8f5fa1
commit
d43e53523b
@ -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) {
|
||||||
@ -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,13 +413,13 @@
|
|||||||
_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
|
||||||
});
|
});
|
||||||
@ -435,7 +437,7 @@
|
|||||||
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