|
@@ -20,7 +20,7 @@ Component({
|
|
|
bottomNavHeight: 0,
|
|
|
contentHeight: 0,
|
|
|
contentpadding: 0,
|
|
|
- navheight:0,
|
|
|
+ navheight: 0,
|
|
|
|
|
|
cardList: [],
|
|
|
|
|
@@ -28,7 +28,7 @@ Component({
|
|
|
pageSize: 6,
|
|
|
noMoreItems: false,
|
|
|
|
|
|
-
|
|
|
+ ActivityList:[],
|
|
|
},
|
|
|
lifetimes: {
|
|
|
|
|
@@ -45,10 +45,10 @@ Component({
|
|
|
const customHeight = custom.height + 10 + 2 || 0;
|
|
|
const bottomNavHeight = systemInfo.screenHeight - systemInfo.safeArea.bottom || 0;
|
|
|
const contentHeight = (screenHeight - 50 - bottomNavHeight - statusBarHeight - customHeight) * 750 / systemInfo.windowWidth;
|
|
|
- const navheight = (statusBarHeight+customHeight) * 750 / systemInfo.windowWidth;
|
|
|
+ const navheight = (statusBarHeight + customHeight) * 750 / systemInfo.windowWidth;
|
|
|
this.setData({
|
|
|
statusBarHeight,
|
|
|
- screenHeight:(screenHeight-50-bottomNavHeight) * 750 / systemInfo.windowWidth,
|
|
|
+ screenHeight: (screenHeight - 50 - bottomNavHeight) * 750 / systemInfo.windowWidth,
|
|
|
customHeight,
|
|
|
bottomNavHeight,
|
|
|
contentHeight,
|
|
@@ -57,6 +57,7 @@ Component({
|
|
|
|
|
|
|
|
|
this.getcircle()
|
|
|
+ this.getact()
|
|
|
},
|
|
|
|
|
|
},
|
|
@@ -128,8 +129,8 @@ Component({
|
|
|
getcircle2() {
|
|
|
this.setData({
|
|
|
cardList: [],
|
|
|
- loadedItems:0,
|
|
|
- noMoreItems:false
|
|
|
+ loadedItems: 0,
|
|
|
+ noMoreItems: false
|
|
|
})
|
|
|
console.log('运行了');
|
|
|
this.getcircle()
|
|
@@ -142,23 +143,38 @@ Component({
|
|
|
});
|
|
|
},
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
+
|
|
|
+ async getact() {
|
|
|
+ let Activityquery = new Parse.Query('Activity');
|
|
|
+ Activityquery.equalTo('company', company);
|
|
|
+ Activityquery.notEqualTo('isDeleted', true);
|
|
|
+ Activityquery.equalTo('isEnabled', true);
|
|
|
+ Activityquery.ascending('index');
|
|
|
+ Activityquery.limit(4);
|
|
|
+
|
|
|
+ let P = await Activityquery.find();
|
|
|
+ let ActivityList = P.map(item => item.toJSON());
|
|
|
+
|
|
|
+ this.setData({
|
|
|
+ ActivityList,
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
})
|