diff --git a/api/owner/owner.js b/api/owner/owner.js
index 65b5b4f..4fbd5f8 100644
--- a/api/owner/owner.js
+++ b/api/owner/owner.js
@@ -82,4 +82,23 @@ export function saveRoomOwner(_that,_data){
}
})
});
+}
+
+export function deleteOwner(_that,_data) {
+ return new Promise(function(reslove,reject){
+ _that.context.post({
+ url: url.deleteOwner,
+ data:_data,
+ success: function(res) {
+ reslove(res.data);
+ },
+ fail: function(e) {
+ wx.showToast({
+ title: "服务器异常了",
+ icon: 'none',
+ duration: 2000
+ })
+ }
+ })
+ });
}
\ No newline at end of file
diff --git a/constant/url.js b/constant/url.js
index 8b27dfc..bccf12d 100644
--- a/constant/url.js
+++ b/constant/url.js
@@ -194,6 +194,7 @@ export default {
queryOwners: baseUrl+"app/owner.queryOwners",
queryOwnerAndMembers: baseUrl+"app/owner.queryOwnerAndMembers",
saveRoomOwner: baseUrl+"app/owner.saveRoomOwner",
+ deleteOwner: baseUrl + "app/owner.deleteOwner",
queryOwnerAccount: baseUrl+"app/account/queryOwnerAccount",
useIntegral: baseUrl+"app/integral.useIntegral",
diff --git a/pages/owner/addOwner.vue b/pages/owner/addOwner.vue
index 07e0327..f0b7880 100644
--- a/pages/owner/addOwner.vue
+++ b/pages/owner/addOwner.vue
@@ -3,11 +3,11 @@
基本信息
姓名
-
+
身份证
-
+
性别
@@ -21,13 +21,13 @@
人员类型
- {{typeCds[typeCdIndex].name}}
+ {{typeCdIndex == -1 ?'请选择':typeCds[typeCdIndex].name}}
房屋
-
+
家庭住址
@@ -37,7 +37,7 @@
联系信息
手机号
-
+
相关图片
@@ -47,7 +47,7 @@
-
+
@@ -92,8 +92,8 @@
name: '其他'
}
],
- typeCdIndex: 0,
- ownerTypeCd: "1002",
+ typeCdIndex: -1,
+ ownerTypeCd: "",
idCard: "",
address: "",
roomName: "",
@@ -165,35 +165,6 @@
}
uni.navigateBack()
})
- // context.request({
- // url: constant.url.saveOwner,
- // header: context.getHeaders(),
- // method: "POST",
- // data: obj,
- // success: function(res) {
- // if (res.statusCode == 200 && res.data.code == 0) {
- // uni.hideLoading();
- // uni.navigateBack();
- // return;
- // }
-
- // uni.hideLoading();
- // uni.showToast({
- // title: res.data.msg,
- // icon: 'none',
- // duration: 2000
- // });
- // },
- // fail: function(e) {
- // uni.hideLoading();
- // uni.showToast({
- // title: "服务器异常了",
- // icon: 'none',
- // duration: 2000
- // })
- // }
- // });
-
},
_changeTypeCd: function(e) {
this.typeCdIndex = e.detail.value;
diff --git a/pages/owner/owner.vue b/pages/owner/owner.vue
index c0f470d..f4eaa26 100644
--- a/pages/owner/owner.vue
+++ b/pages/owner/owner.vue
@@ -21,10 +21,10 @@
:key="index">
- {{item.name}}
+ {{item.name}}({{item.ownerTypeName}})
- {{item.ownerTypeName}}
+
@@ -56,12 +56,30 @@
+
+
+
+
+ 温馨提示
+
+
+
+
+
+ 您确认删除该成员?
+
+
+ 取消
+ 确认
+
+
+