|
@@ -22,9 +22,9 @@ Component({
|
|
contentpadding: 0, //顶部padding高度
|
|
contentpadding: 0, //顶部padding高度
|
|
|
|
|
|
//朋友圈
|
|
//朋友圈
|
|
- cardList:[],
|
|
|
|
|
|
+ cardList: [],
|
|
|
|
+
|
|
|
|
|
|
-
|
|
|
|
},
|
|
},
|
|
lifetimes: {
|
|
lifetimes: {
|
|
|
|
|
|
@@ -40,7 +40,7 @@ Component({
|
|
const custom = wx.getMenuButtonBoundingClientRect();
|
|
const custom = wx.getMenuButtonBoundingClientRect();
|
|
const customHeight = custom.height + 10 + 2 || 0;
|
|
const customHeight = custom.height + 10 + 2 || 0;
|
|
const bottomNavHeight = systemInfo.screenHeight - systemInfo.safeArea.bottom || 0;
|
|
const bottomNavHeight = systemInfo.screenHeight - systemInfo.safeArea.bottom || 0;
|
|
- const contentHeight = (screenHeight - 50-bottomNavHeight - statusBarHeight - customHeight) * 750 / systemInfo.windowWidth;
|
|
|
|
|
|
+ const contentHeight = (screenHeight - 50 - bottomNavHeight - statusBarHeight - customHeight) * 750 / systemInfo.windowWidth;
|
|
this.setData({
|
|
this.setData({
|
|
statusBarHeight,
|
|
statusBarHeight,
|
|
screenHeight,
|
|
screenHeight,
|
|
@@ -58,42 +58,49 @@ Component({
|
|
* 组件的方法列表
|
|
* 组件的方法列表
|
|
*/
|
|
*/
|
|
methods: {
|
|
methods: {
|
|
-
|
|
|
|
- //查全部朋友圈
|
|
|
|
- async getcircle() {
|
|
|
|
- const currentUser = Parse.User.current();
|
|
|
|
- let Profilequery2 = new Parse.Query('Profile');
|
|
|
|
- Profilequery2.equalTo('company', company);
|
|
|
|
- Profilequery2.equalTo('user', currentUser.id);
|
|
|
|
- Profilequery2.equalTo('isCheck', true);
|
|
|
|
- Profilequery2.notEqualTo('isDeleted', true)
|
|
|
|
- let P2 = await Profilequery2.find();
|
|
|
|
- let profile1List2 = P2.map(item => item.toJSON());
|
|
|
|
- const department = profile1List2[0].department.objectId
|
|
|
|
- console.log(department);
|
|
|
|
- let queryWhere = {
|
|
|
|
- where: {
|
|
|
|
- profile: {
|
|
|
|
- $inQuery: {
|
|
|
|
- where: {
|
|
|
|
- department: department
|
|
|
|
- },
|
|
|
|
- className: 'Profile',
|
|
|
|
- },
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ //查全部朋友圈
|
|
|
|
+ async getcircle() {
|
|
|
|
+ const currentUser = Parse.User.current();
|
|
|
|
+ let Profilequery2 = new Parse.Query('Profile');
|
|
|
|
+ Profilequery2.equalTo('company', company);
|
|
|
|
+ Profilequery2.equalTo('user', currentUser.id);
|
|
|
|
+ Profilequery2.equalTo('isCheck', true);
|
|
|
|
+ Profilequery2.notEqualTo('isDeleted', true)
|
|
|
|
+ let P2 = await Profilequery2.find();
|
|
|
|
+ let profile1List2 = P2.map(item => item.toJSON());
|
|
|
|
+ const department = profile1List2[0].department.objectId
|
|
|
|
+ console.log(department);
|
|
|
|
+ let queryWhere = {
|
|
|
|
+ where: {
|
|
|
|
+ profile: {
|
|
|
|
+ $inQuery: {
|
|
|
|
+ where: {
|
|
|
|
+ department: department
|
|
|
|
+ },
|
|
|
|
+ className: 'Profile',
|
|
|
|
+ },
|
|
}
|
|
}
|
|
- let Profilequery = Parse.Query.fromJSON('AIMoment', queryWhere);
|
|
|
|
- Profilequery.equalTo('company', company);
|
|
|
|
- Profilequery.equalTo('isVisible', true);
|
|
|
|
- Profilequery.notEqualTo('isDeleted', true)
|
|
|
|
- let P = await Profilequery.find();
|
|
|
|
- let profile1List = P.map(item => item.toJSON());
|
|
|
|
- console.log(profile1List);
|
|
|
|
- this.setData({
|
|
|
|
- cardList:profile1List
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ let Profilequery = Parse.Query.fromJSON('AIMoment', queryWhere);
|
|
|
|
+ Profilequery.equalTo('company', company);
|
|
|
|
+ Profilequery.equalTo('isVisible', true);
|
|
|
|
+ Profilequery.notEqualTo('isDeleted', true)
|
|
|
|
+ let P = await Profilequery.find();
|
|
|
|
+ let profile1List = P.map(item => item.toJSON());
|
|
|
|
+ console.log(profile1List);
|
|
|
|
+ this.setData({
|
|
|
|
+ cardList: profile1List
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ //跳转
|
|
|
|
+ gourl(e) {
|
|
|
|
+ const url = e.currentTarget.dataset.url
|
|
|
|
+ wx.navigateTo({
|
|
|
|
+ url: `${url}`// 目标页面的路径
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|