diff --git a/api/room/roomApi.js b/api/room/roomApi.js index e4eec25..6b59193 100755 --- a/api/room/roomApi.js +++ b/api/room/roomApi.js @@ -25,11 +25,12 @@ import { */ export function getRooms() { return new Promise((resolve, reject) => { - if(!_owner.ownerId){ - reject('未包含业主信息'); - } + getCurOwner() .then(function(_owner) { + if(!_owner.ownerId){ + reject('未包含业主信息'); + } request({ url: url.queryRoomsByOwner, method: "GET", diff --git a/components/vc-recommend/vc-recommend.vue b/components/vc-recommend/vc-recommend.vue index 74b75f4..b2ed231 100644 --- a/components/vc-recommend/vc-recommend.vue +++ b/components/vc-recommend/vc-recommend.vue @@ -76,7 +76,7 @@ } this.products=[]; - this.pagefrom =1; + this.pagefrom =0; queryMainCategory(_data) .then((products) => { @@ -93,7 +93,7 @@ let _that = this; _that.communityId = getMallCommunityId(); let _data = { - page: this.pagefrom, + page: this.pagefrom+1, row: this.pagesize, communityId: _that.communityId, mainCategoryId: _that.curCategoryId diff --git a/pages/machine/faceRecognition.vue b/pages/machine/faceRecognition.vue index 7c0c6cb..fec7dfa 100644 --- a/pages/machine/faceRecognition.vue +++ b/pages/machine/faceRecognition.vue @@ -78,6 +78,7 @@ padding:10upx; image{ height: 380upx; + width: 100%; } .face-desc{ font-size: 32upx;