diff --git a/api/owner/ownerApi.js b/api/owner/ownerApi.js
index 2973217..7fa96cc 100755
--- a/api/owner/ownerApi.js
+++ b/api/owner/ownerApi.js
@@ -133,6 +133,8 @@ export function getUserAddress(_data) {
})
}
+
+
/**
* add by wuxw
* @param {Object} _data 保存 用户地址
@@ -280,3 +282,25 @@ export function hasOwner() {
throw new Error('业主不存在');
}
}
+
+export function loadLoginOwner(_data) {
+ return new Promise((resolve, reject) => {
+ let moreRooms = [];
+ request({
+ url: url.queryCurrentOwner,
+ method: "GET",
+ data: _data, //动态数据
+ success: function(res) {
+ let _data = res.data;
+ if (_data.code == 0) {
+ resolve(_data.data);
+ return;
+ }
+ reject(_data.msg);
+ },
+ fail: function(e) {
+ reject(e);
+ }
+ });
+ })
+}
\ No newline at end of file
diff --git a/components/index/index-menu.vue b/components/index/index-menu.vue
index d63de24..f92849a 100644
--- a/components/index/index-menu.vue
+++ b/components/index/index-menu.vue
@@ -134,6 +134,11 @@
src: this.imgUrl + '/h5/images/serve/8.png',
href: '/pages/machine/openDoor'
},
+ // {
+ // name: '人脸识别',
+ // src: this.imgUrl + '/h5/images/serve/8.png',
+ // href: '/pages/machine/faceRecognition'
+ // },
]
},
to: function(v) {
diff --git a/constant/url.js b/constant/url.js
index 8396b88..85ece7c 100755
--- a/constant/url.js
+++ b/constant/url.js
@@ -187,7 +187,7 @@ export default {
listProductSeckill: baseUrl + "app/productSeckill.listProductSeckill",
listProductGroup: baseUrl + "app/productGroup.listProductGroup",
listRegisterProtocol: baseUrl + "app/system.listRegisterProtocol",
-
+ queryCurrentOwner: baseUrl + "app/owner.queryCurrentOwner",
NEED_NOT_LOGIN_PAGE: [
'pages/login/login',
diff --git a/pages.json b/pages.json
index cc39dac..25ce9a7 100755
--- a/pages.json
+++ b/pages.json
@@ -712,6 +712,15 @@
}
}
+ ,{
+ "path" : "pages/machine/faceRecognition",
+ "style" :
+ {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ }
],
"tabBar": {
"color": "#272636",
diff --git a/pages/machine/faceRecognition.vue b/pages/machine/faceRecognition.vue
new file mode 100644
index 0000000..7c0c6cb
--- /dev/null
+++ b/pages/machine/faceRecognition.vue
@@ -0,0 +1,105 @@
+
+
+
+
+
+
+
+ 您尚未进行人脸识别认证,请联系物业公司
+
+
+
+
+
+
+
+ 您已通过人脸识别认证,请放心使用
+
+
+
+
+
+ 您确认拨打,{{property.communityName}}物业客服电话
{{property.sCommunityTel}}
+
+
+
+
+
+
+
+
diff --git a/static/images/hasface.png b/static/images/hasface.png
new file mode 100644
index 0000000..10666d9
Binary files /dev/null and b/static/images/hasface.png differ
diff --git a/static/images/noface.png b/static/images/noface.png
new file mode 100644
index 0000000..db8723a
Binary files /dev/null and b/static/images/noface.png differ