From 54785c57564d291f849c0eb3de9eedcb167d932c Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: Mon, 18 Nov 2024 20:56:23 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/frame/roleStaff/roleStaff.html | 24 +---
.../admin/integralDetail/integralDetail.html | 130 ++++++++++++++++++
.../admin/integralDetail/integralDetail.js | 79 +++++++++++
.../admin/userIntegral/userIntegral.html | 102 ++++++++++++++
.../pages/admin/userIntegral/userIntegral.js | 84 +++++++++++
5 files changed, 401 insertions(+), 18 deletions(-)
create mode 100644 public/pages/admin/integralDetail/integralDetail.html
create mode 100644 public/pages/admin/integralDetail/integralDetail.js
create mode 100644 public/pages/admin/userIntegral/userIntegral.html
create mode 100644 public/pages/admin/userIntegral/userIntegral.js
diff --git a/public/components/frame/roleStaff/roleStaff.html b/public/components/frame/roleStaff/roleStaff.html
index 1ae4abb66..db152e16c 100644
--- a/public/components/frame/roleStaff/roleStaff.html
+++ b/public/components/frame/roleStaff/roleStaff.html
@@ -26,34 +26,22 @@
|
-
-
-
+
|
-
-
-
+
|
-
-
-
+
|
-
-
-
+
|
-
-
-
+
|
-
-
-
+
|
diff --git a/public/pages/admin/integralDetail/integralDetail.html b/public/pages/admin/integralDetail/integralDetail.html
new file mode 100644
index 000000000..251824f29
--- /dev/null
+++ b/public/pages/admin/integralDetail/integralDetail.html
@@ -0,0 +1,130 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/pages/admin/integralDetail/integralDetail.js b/public/pages/admin/integralDetail/integralDetail.js
new file mode 100644
index 000000000..468ef84fa
--- /dev/null
+++ b/public/pages/admin/integralDetail/integralDetail.js
@@ -0,0 +1,79 @@
+/**
+ 入驻小区
+**/
+(function (vc) {
+ var DEFAULT_PAGE = 1;
+ var DEFAULT_ROWS = 10;
+ vc.extends({
+ data: {
+ integralDetailInfo: {
+ integralDetails: [],
+ total: 0,
+ records: 1,
+ moreCondition: false,
+ detailId: '',
+ conditions: {
+ integralId: '',
+ detailType: '',
+ relIntegralId: '',
+ amount: '',
+ objType: '',
+ orderId: '',
+ mallApiCode:'queryIntegralDetailBmoImpl'
+ }
+ }
+ },
+ _initMethod: function () {
+ $that._listIntegralDetails(DEFAULT_PAGE, DEFAULT_ROWS);
+ },
+ _initEvent: function () {
+
+ vc.on('integralDetail', 'listIntegralDetail', function (_param) {
+ $that._listIntegralDetails(DEFAULT_PAGE, DEFAULT_ROWS);
+ });
+ vc.on('pagination', 'page_event', function (_currentPage) {
+ $that._listIntegralDetails(_currentPage, DEFAULT_ROWS);
+ });
+ },
+ methods: {
+ _listIntegralDetails: function (_page, _rows) {
+
+ $that.integralDetailInfo.conditions.page = _page;
+ $that.integralDetailInfo.conditions.row = _rows;
+ let param = {
+ params: $that.integralDetailInfo.conditions
+ };
+
+ //发送get请求
+ vc.http.apiGet('/mall.getAdminMallOpenApi',
+ param,
+ function (json, res) {
+ let _json = JSON.parse(json);
+ $that.integralDetailInfo.total = _json.total;
+ $that.integralDetailInfo.records = _json.records;
+ $that.integralDetailInfo.integralDetails = _json.data;
+ vc.emit('pagination', 'init', {
+ total: $that.integralDetailInfo.records,
+ currentPage: _page
+ });
+ }, function (errInfo, error) {
+ console.log('请求失败处理');
+ }
+ );
+ },
+ _queryIntegralDetailMethod: function () {
+ $that._listIntegralDetails(DEFAULT_PAGE, DEFAULT_ROWS);
+
+ },
+ _moreCondition: function () {
+ if ($that.integralDetailInfo.moreCondition) {
+ $that.integralDetailInfo.moreCondition = false;
+ } else {
+ $that.integralDetailInfo.moreCondition = true;
+ }
+ }
+
+
+ }
+ });
+})(window.vc);
diff --git a/public/pages/admin/userIntegral/userIntegral.html b/public/pages/admin/userIntegral/userIntegral.html
new file mode 100644
index 000000000..a06dca1f7
--- /dev/null
+++ b/public/pages/admin/userIntegral/userIntegral.html
@@ -0,0 +1,102 @@
+
\ No newline at end of file
diff --git a/public/pages/admin/userIntegral/userIntegral.js b/public/pages/admin/userIntegral/userIntegral.js
new file mode 100644
index 000000000..b461c5d92
--- /dev/null
+++ b/public/pages/admin/userIntegral/userIntegral.js
@@ -0,0 +1,84 @@
+/**
+ 入驻小区
+**/
+(function (vc) {
+ var DEFAULT_PAGE = 1;
+ var DEFAULT_ROWS = 10;
+ vc.extends({
+ data: {
+ userIntegralInfo: {
+ integrals: [],
+ total: 0,
+ records: 1,
+ moreCondition: false,
+ integralId: '',
+ conditions: {
+ integralName: '',
+ objType: '6006',
+ objId: '',
+ amount: '',
+ mallApiCode:'queryIntegralBmoImpl'
+ }
+ }
+ },
+ _initMethod: function () {
+ $that._listIntegrals(DEFAULT_PAGE, DEFAULT_ROWS);
+ },
+ _initEvent: function () {
+
+ vc.on('userIntegral', 'listIntegral', function (_param) {
+ $that._listIntegrals(DEFAULT_PAGE, DEFAULT_ROWS);
+ });
+ vc.on('pagination', 'page_event', function (_currentPage) {
+ $that._listIntegrals(_currentPage, DEFAULT_ROWS);
+ });
+ },
+ methods: {
+ _listIntegrals: function (_page, _rows) {
+ $that.userIntegralInfo.conditions.page = _page;
+ $that.userIntegralInfo.conditions.row = _rows;
+ let param = {
+ params: $that.userIntegralInfo.conditions
+ };
+ //发送get请求
+ vc.http.apiGet('/mall.getAdminMallOpenApi',
+ param,
+ function (json, res) {
+ let _json = JSON.parse(json);
+ $that.userIntegralInfo.total = _json.total;
+ $that.userIntegralInfo.records = _json.records;
+ $that.userIntegralInfo.integrals = _json.data;
+ vc.emit('pagination', 'init', {
+ total: $that.userIntegralInfo.records,
+ currentPage: _page
+ });
+ }, function (errInfo, error) {
+ console.log('请求失败处理');
+ }
+ );
+ },
+ _queryIntegralMethod: function () {
+ $that._listIntegrals(DEFAULT_PAGE, DEFAULT_ROWS);
+ },
+ _moreCondition: function () {
+ if ($that.userIntegralInfo.moreCondition) {
+ $that.userIntegralInfo.moreCondition = false;
+ } else {
+ $that.userIntegralInfo.moreCondition = true;
+ }
+ },
+ _toMerchantModal: function() {
+ let _objType = $that.userIntegralInfo.conditions.objType;
+ if(_objType == '7007'){
+ vc.jumpToMall('/#/pages/admin/userIntegral?tab=用户积分')
+ }else{
+ vc.jumpToMall('/#/pages/admin/storeIntegral?tab=商家积分')
+ }
+ },
+ _switchIntegralObjType:function(_objType){
+ $that.userIntegralInfo.conditions.objType = _objType;
+ $that._listIntegrals(DEFAULT_PAGE, DEFAULT_ROWS);
+ }
+ }
+ });
+})(window.vc);