From 3ab62e1cb14d3514a0a7bca743b9f7d294492c6a Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Wed, 26 Oct 2022 23:52:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8F=91=E9=80=81=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../viewMarketSendContent.html | 37 ++++ .../viewMarketSendContent.js | 28 +++ public/pages/admin/marketLog/marketLog.html | 161 ++++++++++++++++++ public/pages/admin/marketLog/marketLog.js | 90 ++++++++++ 4 files changed, 316 insertions(+) create mode 100644 public/components/admin/viewMarketSendContent/viewMarketSendContent.html create mode 100644 public/components/admin/viewMarketSendContent/viewMarketSendContent.js create mode 100644 public/pages/admin/marketLog/marketLog.html create mode 100644 public/pages/admin/marketLog/marketLog.js diff --git a/public/components/admin/viewMarketSendContent/viewMarketSendContent.html b/public/components/admin/viewMarketSendContent/viewMarketSendContent.html new file mode 100644 index 000000000..49fe64f6a --- /dev/null +++ b/public/components/admin/viewMarketSendContent/viewMarketSendContent.html @@ -0,0 +1,37 @@ + \ No newline at end of file diff --git a/public/components/admin/viewMarketSendContent/viewMarketSendContent.js b/public/components/admin/viewMarketSendContent/viewMarketSendContent.js new file mode 100644 index 000000000..3730698df --- /dev/null +++ b/public/components/admin/viewMarketSendContent/viewMarketSendContent.js @@ -0,0 +1,28 @@ +(function (vc) { + + vc.extends({ + propTypes: { + callBackListener: vc.propTypes.string, //父组件名称 + callBackFunction: vc.propTypes.string //父组件监听方法 + }, + data: { + viewMarketSendContentInfo: { + sendContent: '', + + } + }, + _initMethod: function () { + + }, + _initEvent: function () { + vc.on('viewMarketSendContent', 'openModal', function (_param) { + $('#viewMarketSendContentModel').modal('show'); + $that.viewMarketSendContentInfo = _param; + }); + }, + methods: { + + } + }); + +})(window.vc); diff --git a/public/pages/admin/marketLog/marketLog.html b/public/pages/admin/marketLog/marketLog.html new file mode 100644 index 000000000..146a0f9f0 --- /dev/null +++ b/public/pages/admin/marketLog/marketLog.html @@ -0,0 +1,161 @@ +
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
{{marketLog.logId}}{{marketLog.ruleName}}{{marketLog.communityName}}{{marketLog.personName}}{{marketLog.personTel}}{{marketLog.openId}}{{marketLog.sendWayName}}{{marketLog.businessTypeName}}{{marketLog.remark}} +
+ +
+
+
    +
    + + +
    +
    +
    +
    + +
    \ No newline at end of file diff --git a/public/pages/admin/marketLog/marketLog.js b/public/pages/admin/marketLog/marketLog.js new file mode 100644 index 000000000..8e42f5060 --- /dev/null +++ b/public/pages/admin/marketLog/marketLog.js @@ -0,0 +1,90 @@ +/** + 入驻小区 +**/ +(function (vc) { + var DEFAULT_PAGE = 1; + var DEFAULT_ROWS = 10; + vc.extends({ + data: { + marketLogInfo: { + logs: [], + total: 0, + records: 1, + moreCondition: false, + venueId: '', + conditions: { + communityName: '', + sendWay: '', + businessType: '', + personNameLike:'', + startTime:'', + endTime:'' + } + } + }, + _initMethod: function () { + vc.component._listMarketLogs(DEFAULT_PAGE, DEFAULT_ROWS); + + vc.initDate('logStartTime', function(_value) { + $that.marketLogInfo.conditions.startTime = _value; + }); + + vc.initDate('logEndTime', function(_value) { + $that.marketLogInfo.conditions.endTime = _value; + }); + + }, + _initEvent: function () { + + vc.on('marketLog', 'listMarketLog', function (_param) { + vc.component._listMarketLogs(DEFAULT_PAGE, DEFAULT_ROWS); + }); + vc.on('pagination', 'page_event', function (_currentPage) { + vc.component._listMarketLogs(_currentPage, DEFAULT_ROWS); + }); + }, + methods: { + _listMarketLogs: function (_page, _rows) { + + vc.component.marketLogInfo.conditions.page = _page; + vc.component.marketLogInfo.conditions.row = _rows; + let param = { + params: vc.component.marketLogInfo.conditions + }; + + //发送get请求 + vc.http.apiGet('/marketRule.listMarketLog', + param, + function (json, res) { + var _marketLogInfo = JSON.parse(json); + vc.component.marketLogInfo.total = _marketLogInfo.total; + vc.component.marketLogInfo.records = _marketLogInfo.records; + vc.component.marketLogInfo.logs = _marketLogInfo.data; + vc.emit('pagination', 'init', { + total: vc.component.marketLogInfo.records, + currentPage: _page + }); + }, function (errInfo, error) { + console.log('请求失败处理'); + } + ); + }, + _openViewLogModel: function (_log) { + vc.emit('viewMarketSendContent', 'openModal',_log); + }, + _queryMarketLogMethod: function () { + vc.component._listMarketLogs(DEFAULT_PAGE, DEFAULT_ROWS); + + }, + _moreCondition: function () { + if (vc.component.marketLogInfo.moreCondition) { + vc.component.marketLogInfo.moreCondition = false; + } else { + vc.component.marketLogInfo.moreCondition = true; + } + } + + + } + }); +})(window.vc);