diff --git a/app.js b/app.js
index ff5e160b01c84e605f492f1e12510c45dc758450..d23594c61b8d1ec90300700ad49caebc35c76b96 100644
--- a/app.js
+++ b/app.js
@@ -40,10 +40,10 @@ let opts = {
}
// todo 测试环境 测试使用,生产环境请用nginx带来
-app.use('/callComponent', proxy('http://192.168.100.108:8088', opts));
-app.use('/app', proxy('http://192.168.100.108:8088', opts));
+app.use('/callComponent', proxy('http://127.0.0.1:8008', opts));
+app.use('/app', proxy('http://127.0.0.1:8008', opts));
app.use('/ws', createProxyMiddleware({
- target: 'http://192.168.100.108:8008',
+ target: 'http://127.0.0.1:8008',
changeOrigin: true,
ws: true
}));
diff --git a/public/components/common/editCommunityTels/editCommunityTels.html b/public/components/common/editCommunityTels/editCommunityTels.html
new file mode 100644
index 0000000000000000000000000000000000000000..4b2c166fad7c5789ec616bf80424caf2e7753720
--- /dev/null
+++ b/public/components/common/editCommunityTels/editCommunityTels.html
@@ -0,0 +1,91 @@
+
\ No newline at end of file
diff --git a/public/components/common/editCommunityTels/editCommunityTels.js b/public/components/common/editCommunityTels/editCommunityTels.js
new file mode 100644
index 0000000000000000000000000000000000000000..1350b663fb5bf0abf21b1d6b0f93f124b9d989f6
--- /dev/null
+++ b/public/components/common/editCommunityTels/editCommunityTels.js
@@ -0,0 +1,109 @@
+(function (vc, vm) {
+ vc.extends({
+ data: {
+ communityId:"",
+ communityTels:[],
+ editCommunityTelInfo: {
+ id: '',
+ communityId: '',
+ tel: ''
+ },
+ addCommunityTelModel: false
+ },
+ _initMethod: function () {
+ },
+ _initEvent: function () {
+ vc.on('editCommunityTels', 'editCommunityTelsModel',
+ function (_params) {
+ $('#editCommunityTelsModel').modal('show');
+ vc.component.communityId = _params;
+ vc.component.listCommunityTels()
+ });
+ },
+ methods: {
+ listCommunityTels: function () {
+ let _param = {
+ params: {
+ communityId: vc.component.communityId
+ }
+ };
+ vc.http.apiGet('/communityTel.listCommunityTel', _param,
+ function (json, res) {
+ let _json = JSON.parse(json);
+ vc.component.communityTels = _json.data;
+ },
+ function (errInfo, error) {
+ console.log('请求失败处理');
+ vc.toast(errInfo);
+ });
+ },
+ editCommunityTelValidate: function () {
+ return vc.validate.validate({
+ editCommunityTelInfo: vc.component.editCommunityTelInfo
+ }, {
+ 'editCommunityTelInfo.tel': [
+ {
+ limit: "required",
+ param: "",
+ errInfo: "联系方式不能为空"
+ }
+ ]
+ });
+ },
+ openAddCommunityTelModel: function () {
+ vc.component.addCommunityTelModel = true
+ },
+ closeAddCommunityTelModel: function () {
+ vc.component.editCommunityTelInfo = {
+ id: '',
+ communityId: '',
+ tel: ''
+ }
+ vc.component.addCommunityTelModel = false
+ },
+ deleteCommunityTel: function (communtityTel) {
+ let _param = {
+ params: {
+ id: communtityTel.id
+ }
+ };
+ vc.http.apiGet('/communityTel.deleteCommunityTel', _param,
+ function (json, res) {
+ let _json = JSON.parse(json);
+ if (_json.code == 0) {
+ vc.component.listCommunityTels();
+ return;
+ } else {
+ vc.toast(_json.msg);
+ }
+ },
+ function (errInfo, error) {
+ console.log('请求失败处理');
+ vc.toast(errInfo);
+ });
+ },
+ saveCommunityTelInfo: function () {
+ if (!vc.component.editCommunityTelValidate()) {
+ vc.toast(vc.validate.errInfo);
+ return;
+ }
+ if(vc.component.editCommunityTelInfo.communityId == ''){
+ vc.component.editCommunityTelInfo.communityId = vc.component.communityId
+ }
+ vc.http.apiPost('/communityTel.saveCommunityTel', JSON.stringify(vc.component.editCommunityTelInfo), {
+ emulateJSON: true
+ },
+ function (json, res) {
+ vc.component.listCommunityTels();
+ vc.component.closeAddCommunityTelModel();
+ vc.toast("保存成功");
+ return;
+ },
+ function (errInfo, error) {
+ console.log('请求失败处理');
+ vc.toast(errInfo);
+ });
+ }
+ }
+ });
+})(window.vc, window.vc.component);
\ No newline at end of file
diff --git a/public/components/property/addActivitiesView/addActivitiesView.html b/public/components/property/addActivitiesView/addActivitiesView.html
index 116b6eb30a396918bcb8f10d65ccf06794bbc405..d6a55943f245fb382c23612e2689052f847926a2 100644
--- a/public/components/property/addActivitiesView/addActivitiesView.html
+++ b/public/components/property/addActivitiesView/addActivitiesView.html
@@ -30,6 +30,15 @@
+
+
+
+
@@ -143,4 +147,5 @@
+
diff --git a/public/pages/common/enterCommunity/enterCommunity.js b/public/pages/common/enterCommunity/enterCommunity.js
index 18e7535bd00daeee131536ab1a7653083aec8df0..b1095c3d65d5a9c4a4ddba8830362ac69050fa93 100644
--- a/public/pages/common/enterCommunity/enterCommunity.js
+++ b/public/pages/common/enterCommunity/enterCommunity.js
@@ -46,6 +46,9 @@
_openUpdateCommunityModel: function (_community) {
vc.emit('editCommunityArea', 'openEditCommunityModal', _community);
},
+ _openeEditCommunityTelsModel: function (_community) {
+ vc.emit('editCommunityTels', 'editCommunityTelsModel', _community.communityId);
+ },
_showCommunityStatus(_statusCd) {
if (_statusCd == '1000') {
return "入驻审核";
diff --git a/public/pages/reserve/addReserveDining/addReserveDining.html b/public/pages/reserve/addReserveDining/addReserveDining.html
index 1e4be2de99a1d34c20082414e1c9373ceea60b94..0b6985dc96163e71098f2170f1bebda4daa52ae2 100644
--- a/public/pages/reserve/addReserveDining/addReserveDining.html
+++ b/public/pages/reserve/addReserveDining/addReserveDining.html
@@ -83,6 +83,15 @@
+
+
+
+
+