diff --git a/public/components/property/addSmallWeChat/addSmallWeChat.js b/public/components/property/addSmallWeChat/addSmallWeChat.js
index 2bb3b2a57..0bad8e383 100644
--- a/public/components/property/addSmallWeChat/addSmallWeChat.js
+++ b/public/components/property/addSmallWeChat/addSmallWeChat.js
@@ -32,7 +32,9 @@
},
_initEvent: function () {
- vc.on('addSmallWeChat', 'openAddSmallWeChatModal', function () {
+ vc.on('addSmallWeChat', 'openAddSmallWeChatModal', function (type) {
+ console.log(type);
+ vc.component.addSmallWeChatInfo.weChatType = type;
$('#addSmallWeChatModel').modal('show');
});
},
@@ -89,13 +91,6 @@
errInfo: "支付密码不能超过200个字符"
},
],
- 'addSmallWeChatInfo.weChatType': [
- {
- limit: "required",
- param: "",
- errInfo: "配置不能为空"
- }
- ],
'addSmallWeChatInfo.mchId': [
{
limit: "required",
diff --git a/public/components/property/wetChatAttrConfig/wetChatAttrConfig.html b/public/components/property/wetChatAttrConfig/wetChatAttrConfig.html
new file mode 100644
index 000000000..2fe2c0a39
--- /dev/null
+++ b/public/components/property/wetChatAttrConfig/wetChatAttrConfig.html
@@ -0,0 +1,47 @@
+
diff --git a/public/components/property/wetChatAttrConfig/wetChatAttrConfig.js b/public/components/property/wetChatAttrConfig/wetChatAttrConfig.js
new file mode 100644
index 000000000..7a7512b7f
--- /dev/null
+++ b/public/components/property/wetChatAttrConfig/wetChatAttrConfig.js
@@ -0,0 +1,66 @@
+(function (vc) {
+ var DEFAULT_PAGE = 1;
+ var DEFAULT_ROWS = 10;
+ vc.extends({
+ data: {
+ listStoreManageInfo: {
+ listStores: [],
+ storeAttrDtoList:[],
+ total: 0,
+ records: 1,
+ conditions: {
+ name: '',
+ storeTypeCd: '',
+ tel: ''
+ }
+ }
+ },
+ _initMethod: function () {
+ vc.component._listListStores(DEFAULT_PAGE, DEFAULT_ROWS);
+ },
+ _initEvent: function () {
+
+ vc.on('storeInfoManage', 'getStoreInfo', function (_param) {
+ vc.component._listListStores(DEFAULT_PAGE, DEFAULT_ROWS);
+ });
+ },
+ methods: {
+ _listListStores: function (_page, _rows) {
+ vc.component.listStoreManageInfo.conditions.page = _page;
+ vc.component.listStoreManageInfo.conditions.row = _rows;
+ var param = {
+ params: vc.component.listStoreManageInfo.conditions
+ };
+
+ //发送get请求
+ vc.http.get('listStoreManage',
+ 'getStoreInfo',
+ param,
+ function (json, res) {
+ var _listStoreManageInfo = JSON.parse(json);
+ vc.component.listStoreManageInfo.listStores = _listStoreManageInfo.stores;
+ vc.component.listStoreManageInfo.storeAttrDtoList = vc.component.listStoreManageInfo.listStores[0].storeAttrDtoList;
+ vc.emit('pagination', 'init', {
+ total: vc.component.listStoreManageInfo.records,
+ currentPage: _page
+ });
+ }, function (errInfo, error) {
+ console.log('请求失败处理');
+ }
+ );
+ },
+ _queryListStoreMethod: function () {
+ vc.component._listListStores(DEFAULT_PAGE, DEFAULT_ROWS);
+
+ },
+ _openEditStoreInfoModel(_storeInfo){
+ vc.emit('editStoreInfo', 'openEditStoreModal', {_storeInfo});
+ },
+ _openEditStoreAttrModel(_storeAttr){
+ vc.emit('editStoreAttr', 'openEditStoreAttrModal', {_storeAttr});
+ }
+
+
+ }
+ });
+})(window.vc);
diff --git a/public/pages/property/publicWeChatManage/publicWeChatManage.html b/public/pages/property/publicWeChatManage/publicWeChatManage.html
new file mode 100644
index 000000000..da13e356d
--- /dev/null
+++ b/public/pages/property/publicWeChatManage/publicWeChatManage.html
@@ -0,0 +1,116 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/public/pages/property/publicWeChatManage/publicWeChatManage.js b/public/pages/property/publicWeChatManage/publicWeChatManage.js
new file mode 100644
index 000000000..501771c79
--- /dev/null
+++ b/public/pages/property/publicWeChatManage/publicWeChatManage.js
@@ -0,0 +1,93 @@
+/**
+ 微信公众号
+ **/
+(function (vc) {
+ var DEFAULT_PAGE = 1;
+ var DEFAULT_ROWS = 10;
+ vc.extends({
+ data: {
+ smallWeChatManageInfo: {
+ smallWeChats: [],
+ total: 0,
+ records: 1,
+ moreCondition: false,
+ name: '',
+ wetConfig:false,
+ conditions: {
+ name: '',
+ appId: '',
+ weChatType:'1100'
+
+ }
+ }
+ },
+ _initMethod: function () {
+ vc.component._listSmallWeChats(DEFAULT_PAGE, DEFAULT_ROWS);
+ },
+ _initEvent: function () {
+
+ vc.on('smallWeChatManage', 'listSmallWeChat', function (_param) {
+ vc.component._listSmallWeChats(DEFAULT_PAGE, DEFAULT_ROWS);
+ });
+ vc.on('pagination', 'page_event', function (_currentPage) {
+ vc.component._listSmallWeChats(_currentPage, DEFAULT_ROWS);
+ });
+ },
+ methods: {
+ _listSmallWeChats: function (_page, _rows) {
+
+ vc.component.smallWeChatManageInfo.conditions.page = _page;
+ vc.component.smallWeChatManageInfo.conditions.row = _rows;
+ var param = {
+ params: vc.component.smallWeChatManageInfo.conditions
+ };
+
+ //发送get请求
+ vc.http.apiGet('smallWeChat.listSmallWeChats',
+ param,
+ function (json, res) {
+ var _smallWeChatManageInfo = JSON.parse(json);
+ vc.component.smallWeChatManageInfo.total = _smallWeChatManageInfo.total;
+ vc.component.smallWeChatManageInfo.records = _smallWeChatManageInfo.records;
+ vc.component.smallWeChatManageInfo.smallWeChats = _smallWeChatManageInfo.smallWeChats;
+ vc.emit('pagination', 'init', {
+ total: vc.component.smallWeChatManageInfo.records,
+ currentPage: _page
+ });
+ }, function (errInfo, error) {
+ console.log('请求失败处理');
+ }
+ );
+ },
+ _openAddSmallWeChatModal: function (type) {
+ vc.emit('addSmallWeChat', 'openAddSmallWeChatModal', type);
+ },
+ _openEditSmallWeChatModel: function (_smallWeChat) {
+ vc.emit('editSmallWeChat', 'openEditSmallWeChatModal', _smallWeChat);
+ },
+ _openDeleteSmallWeChatModel: function (_smallWeChat) {
+ vc.emit('deleteSmallWeChat', 'openDeleteSmallWeChatModal', _smallWeChat);
+ },
+ _querySmallWeChatMethod: function () {
+ vc.component._listSmallWeChats(DEFAULT_PAGE, DEFAULT_ROWS);
+ },
+ _switchWeChatType:function(type){
+ console.log(type);
+ vc.component.smallWeChatManageInfo.conditions.weChatType = type;
+ vc.component._listSmallWeChats(DEFAULT_PAGE, DEFAULT_ROWS);
+ },
+ _moreCondition: function () {
+ if (vc.component.smallWeChatManageInfo.moreCondition) {
+ vc.component.smallWeChatManageInfo.moreCondition = false;
+ } else {
+ vc.component.smallWeChatManageInfo.moreCondition = true;
+ }
+ },
+ _openWeChatTemplateModel:function (smallWeChat) {
+ vc.component.smallWeChatManageInfo.wetConfig = true;
+ }
+
+
+ }
+ });
+})(window.vc);
diff --git a/public/pages/property/smallWeChatManage/smallWeChatManage.html b/public/pages/property/smallWeChatManage/smallWeChatManage.html
index 833ec6dbf..01d7d3a61 100644
--- a/public/pages/property/smallWeChatManage/smallWeChatManage.html
+++ b/public/pages/property/smallWeChatManage/smallWeChatManage.html
@@ -38,22 +38,10 @@
-
-
-
-
-
diff --git a/public/pages/property/smallWeChatManage/smallWeChatManage.js b/public/pages/property/smallWeChatManage/smallWeChatManage.js
index 2601f5d94..4850d538f 100644
--- a/public/pages/property/smallWeChatManage/smallWeChatManage.js
+++ b/public/pages/property/smallWeChatManage/smallWeChatManage.js
@@ -58,8 +58,8 @@
}
);
},
- _openAddSmallWeChatModal: function () {
- vc.emit('addSmallWeChat', 'openAddSmallWeChatModal', {});
+ _openAddSmallWeChatModal: function (type) {
+ vc.emit('addSmallWeChat', 'openAddSmallWeChatModal', type);
},
_openEditSmallWeChatModel: function (_smallWeChat) {
vc.emit('editSmallWeChat', 'openEditSmallWeChatModal', _smallWeChat);