From 0da6564341ac4f85177e3aaef4a31e113a640b3d Mon Sep 17 00:00:00 2001 From: devil_gong Date: Mon, 26 Nov 2018 11:09:01 +0800 Subject: [PATCH] user --- alipay/app.js | 3 + alipay/app.json | 7 +- alipay/pages/message/message.acss | 15 ++ alipay/pages/message/message.axml | 17 ++ alipay/pages/message/message.js | 127 ++++++++++++ alipay/pages/message/message.json | 3 + alipay/pages/user-faovr/user-faovr.js | 6 - alipay/pages/user-faovr/user-faovr.json | 2 +- .../user-goods-browse/user-goods-browse.acss | 27 +++ .../user-goods-browse/user-goods-browse.axml | 23 +++ .../user-goods-browse/user-goods-browse.js | 185 ++++++++++++++++++ .../user-goods-browse/user-goods-browse.json | 3 + alipay/pages/user-integral/user-integral.acss | 21 ++ alipay/pages/user-integral/user-integral.axml | 22 +++ alipay/pages/user-integral/user-integral.js | 127 ++++++++++++ alipay/pages/user-integral/user-integral.json | 3 + alipay/pages/user-order/user-order.js | 2 + alipay/pages/user/user.axml | 2 +- .../Controller/MessageController.class.php | 82 +++----- .../UserGoodsBrowseController.class.php | 102 ++++++++++ .../UserIntegralController.class.php | 81 ++++++++ 21 files changed, 795 insertions(+), 65 deletions(-) create mode 100644 alipay/pages/message/message.acss create mode 100644 alipay/pages/message/message.axml create mode 100644 alipay/pages/message/message.js create mode 100644 alipay/pages/message/message.json create mode 100644 alipay/pages/user-goods-browse/user-goods-browse.acss create mode 100644 alipay/pages/user-goods-browse/user-goods-browse.axml create mode 100644 alipay/pages/user-goods-browse/user-goods-browse.js create mode 100644 alipay/pages/user-goods-browse/user-goods-browse.json create mode 100644 alipay/pages/user-integral/user-integral.acss create mode 100644 alipay/pages/user-integral/user-integral.axml create mode 100644 alipay/pages/user-integral/user-integral.js create mode 100644 alipay/pages/user-integral/user-integral.json create mode 100644 service/Application/Api/Controller/UserGoodsBrowseController.class.php create mode 100644 service/Application/Api/Controller/UserIntegralController.class.php diff --git a/alipay/app.js b/alipay/app.js index 63e19ff24..df1aada65 100755 --- a/alipay/app.js +++ b/alipay/app.js @@ -43,6 +43,9 @@ App({ "user": "用户中心", "goods_category": "分类", "cart": "购物车", + "message": "消息", + "user_integral": "我的积分", + "user_goods_browse": "我的足迹", }, // 请求地址 diff --git a/alipay/app.json b/alipay/app.json index c851a018e..ca7bec590 100755 --- a/alipay/app.json +++ b/alipay/app.json @@ -7,12 +7,10 @@ "pages/web-view/web-view", "pages/login/login", "pages/paytips/paytips", - "pages/goods-search/goods-search", "pages/goods-detail/goods-detail", "pages/goods-attribute/goods-attribute", "pages/buy/buy", - "pages/user-address/user-address", "pages/user-address-save/user-address-save", "pages/user-order/user-order", @@ -20,7 +18,10 @@ "pages/user-faovr/user-faovr", "pages/user-answer-list/user-answer-list", "pages/answer-list/answer-list", - "pages/answer-form/answer-form" + "pages/answer-form/answer-form", + "pages/message/message", + "pages/user-integral/user-integral", + "pages/user-goods-browse/user-goods-browse" ], "window": { "defaultTitle": "ShopXO电商系统", diff --git a/alipay/pages/message/message.acss b/alipay/pages/message/message.acss new file mode 100644 index 000000000..d3d4b2e4f --- /dev/null +++ b/alipay/pages/message/message.acss @@ -0,0 +1,15 @@ +.data-card { + padding: 30rpx 20rpx; + font-size: 24rpx; + color: #a6a6a6; +} +.data-card .data-box { + margin-bottom: 20rpx; +} +.data-card .data-title { + font-size: 28rpx; + color: #4a4a4a; +} +.data-card .data-detail { + line-height: 36rpx; +} \ No newline at end of file diff --git a/alipay/pages/message/message.axml b/alipay/pages/message/message.axml new file mode 100644 index 000000000..78f82528c --- /dev/null +++ b/alipay/pages/message/message.axml @@ -0,0 +1,17 @@ + + + + + {{item.title}} + {{item.add_time_time}} + + {{item.detail}} + + + + + + + + + \ No newline at end of file diff --git a/alipay/pages/message/message.js b/alipay/pages/message/message.js new file mode 100644 index 000000000..288b51666 --- /dev/null +++ b/alipay/pages/message/message.js @@ -0,0 +1,127 @@ +const app = getApp(); +Page({ + data: { + data_list: [], + data_page_total: 0, + data_page: 1, + data_list_loding_status: 1, + data_bottom_line_status: false + }, + + onShow() { + my.setNavigationBar({ title: app.data.common_pages_title.message }); + this.init(); + }, + + init() { + var user = app.GetUserInfo(this, "init"); + if (user != false) { + // 用户未绑定用户则转到登录页面 + if ((user.mobile || null) == null) { + my.redirectTo({ + url: "/pages/login/login?event_callback=init" + }); + return false; + } else { + // 获取数据 + this.get_data_list(); + } + } + }, + + get_data_list(is_mandatory) { + // 分页是否还有数据 + if ((is_mandatory || 0) == 0) { + if (this.data.data_bottom_line_status == true) { + return false; + } + } else { + this.setData({ data_bottom_line_status: false }); + } + + // 加载loding + my.showLoading({ content: "加载中..." }); + this.setData({ + data_list_loding_status: 1 + }); + + // 获取数据 + my.httpRequest({ + url: app.get_request_url("Index", "Message"), + method: "POST", + data: { + page: this.data.data_page + }, + dataType: "json", + success: res => { + my.hideLoading(); + my.stopPullDownRefresh(); + + if (res.data.code == 0) { + if (res.data.data.data.length > 0) { + if (this.data.data_page <= 1) { + var temp_data_list = res.data.data.data; + } else { + var temp_data_list = this.data.data_list; + var temp_data = res.data.data.data; + for (var i in temp_data) { + temp_data_list.push(temp_data[i]); + } + } + this.setData({ + data_list: temp_data_list, + data_total: res.data.data.total, + data_page_total: res.data.data.page_total, + data_list_loding_status: 3, + data_page: this.data.data_page + 1 + }); + + // 是否还有数据 + if ( + this.data.data_page > 1 && + this.data.data_page > this.data.data_page_total + ) { + this.setData({ data_bottom_line_status: true }); + } + } else { + this.setData({ + data_list_loding_status: 0 + }); + } + } else { + this.setData({ + data_list_loding_status: 0 + }); + + my.showToast({ + type: "fail", + content: res.data.msg + }); + } + }, + fail: () => { + my.hideLoading(); + my.stopPullDownRefresh(); + + this.setData({ + data_list_loding_status: 2 + }); + my.showToast({ + type: "fail", + content: "服务器请求出错" + }); + } + }); + }, + + // 下拉刷新 + onPullDownRefresh() { + this.setData({ data_page: 1 }); + this.get_data_list(1); + }, + + // 滚动加载 + scroll_lower(e) { + this.get_data_list(); + } +}); diff --git a/alipay/pages/message/message.json b/alipay/pages/message/message.json new file mode 100644 index 000000000..ed3a57db1 --- /dev/null +++ b/alipay/pages/message/message.json @@ -0,0 +1,3 @@ +{ + "pullRefresh": true +} \ No newline at end of file diff --git a/alipay/pages/user-faovr/user-faovr.js b/alipay/pages/user-faovr/user-faovr.js index 1e9e47b85..8a0ba0571 100755 --- a/alipay/pages/user-faovr/user-faovr.js +++ b/alipay/pages/user-faovr/user-faovr.js @@ -1,5 +1,4 @@ const app = getApp(); - Page({ data: { data_list: [], @@ -7,11 +6,6 @@ Page({ data_page: 1, data_list_loding_status: 1, data_bottom_line_status: false, - params: null, - }, - - onLoad(params) { - this.setData({params: params}); }, onShow() { diff --git a/alipay/pages/user-faovr/user-faovr.json b/alipay/pages/user-faovr/user-faovr.json index c96031fd7..ed3a57db1 100755 --- a/alipay/pages/user-faovr/user-faovr.json +++ b/alipay/pages/user-faovr/user-faovr.json @@ -1,3 +1,3 @@ { - "pullRefresh": true + "pullRefresh": true } \ No newline at end of file diff --git a/alipay/pages/user-goods-browse/user-goods-browse.acss b/alipay/pages/user-goods-browse/user-goods-browse.acss new file mode 100644 index 000000000..a42637cab --- /dev/null +++ b/alipay/pages/user-goods-browse/user-goods-browse.acss @@ -0,0 +1,27 @@ +.goods-title { + line-height: 36rpx; +} +.goods-item { + padding: 20rpx 10rpx; + position: relative; +} +.goods-title { + margin-bottom: 10rpx; +} +.goods-image { + width: 160rpx; + height: 160rpx; + margin-right: 20rpx; +} +.item-base { + padding: 25rpx 10rpx 20rpx 10rpx; +} + +.submit-cancel { + position: absolute; + right: 10rpx; + bottom: 20rpx; + border: 1px solid #f7c3b3; + color: #f7c3b3; + padding: 0 35rpx; +} \ No newline at end of file diff --git a/alipay/pages/user-goods-browse/user-goods-browse.axml b/alipay/pages/user-goods-browse/user-goods-browse.axml new file mode 100644 index 000000000..58f3508a8 --- /dev/null +++ b/alipay/pages/user-goods-browse/user-goods-browse.axml @@ -0,0 +1,23 @@ + + + + + + + {{item.title}} + + ¥{{item.price}} + ¥{{item.original_price}} + + + + + + + + + + + + + \ No newline at end of file diff --git a/alipay/pages/user-goods-browse/user-goods-browse.js b/alipay/pages/user-goods-browse/user-goods-browse.js new file mode 100644 index 000000000..b2f8eb66b --- /dev/null +++ b/alipay/pages/user-goods-browse/user-goods-browse.js @@ -0,0 +1,185 @@ +const app = getApp(); +Page({ + data: { + data_list: [], + data_page_total: 0, + data_page: 1, + data_list_loding_status: 1, + data_bottom_line_status: false, + }, + + onShow() { + my.setNavigationBar({ title: app.data.common_pages_title.user_goods_browse }); + this.init(); + }, + + init() { + var user = app.GetUserInfo(this, "init"); + if (user != false) { + // 用户未绑定用户则转到登录页面 + if ((user.mobile || null) == null) { + my.redirectTo({ + url: "/pages/login/login?event_callback=init" + }); + return false; + } else { + // 获取数据 + this.get_data_list(); + } + } + }, + + // 获取数据 + get_data_list(is_mandatory) { + // 分页是否还有数据 + if ((is_mandatory || 0) == 0) { + if (this.data.data_bottom_line_status == true) { + return false; + } + } + + // 加载loding + my.showLoading({ content: "加载中..." }); + this.setData({ + data_list_loding_status: 1 + }); + + // 获取数据 + my.httpRequest({ + url: app.get_request_url("Index", "UserGoodsBrowse"), + method: "POST", + data: { + page: this.data.data_page + }, + dataType: "json", + success: res => { + my.hideLoading(); + my.stopPullDownRefresh(); + if (res.data.code == 0) { + if (res.data.data.data.length > 0) { + if (this.data.data_page <= 1) { + var temp_data_list = res.data.data.data; + } else { + var temp_data_list = this.data.data_list; + var temp_data = res.data.data.data; + for (var i in temp_data) { + temp_data_list.push(temp_data[i]); + } + } + this.setData({ + data_list: temp_data_list, + data_total: res.data.data.total, + data_page_total: res.data.data.page_total, + data_list_loding_status: 3, + data_page: this.data.data_page + 1 + }); + + // 是否还有数据 + if (this.data.data_page > 1 && this.data.data_page > this.data.data_page_total) { + this.setData({ data_bottom_line_status: true }); + } else { + this.setData({ data_bottom_line_status: false }); + } + } else { + this.setData({ + data_list_loding_status: 0 + }); + } + } else { + this.setData({ + data_list_loding_status: 0 + }); + + my.showToast({ + type: "fail", + content: res.data.msg + }); + } + }, + fail: () => { + my.hideLoading(); + my.stopPullDownRefresh(); + + this.setData({ + data_list_loding_status: 2 + }); + my.showToast({ + type: "fail", + content: "服务器请求出错" + }); + } + }); + }, + + // 下拉刷新 + onPullDownRefresh() { + this.setData({ + data_page: 1 + }); + this.get_data_list(1); + }, + + // 滚动加载 + scroll_lower(e) { + this.get_data_list(); + }, + + // 删除 + delete_event(e) { + my.confirm({ + title: "温馨提示", + content: "删除后不可恢复?,确定继续吗?", + confirmButtonText: "确认", + cancelButtonText: "不了", + success: result => { + if (result.confirm) { + // 参数 + var id = e.target.dataset.value; + var index = e.target.dataset.index; + + // 加载loding + my.showLoading({ content: "处理中..." }); + + my.httpRequest({ + url: app.get_request_url("Delete", "UserGoodsBrowse"), + method: "POST", + data: { id: id }, + dataType: "json", + success: res => { + my.hideLoading(); + if (res.data.code == 0) { + var temp_data_list = this.data.data_list; + temp_data_list.splice(index, 1); + this.setData({ data_list: temp_data_list }); + if (temp_data_list.length == 0) { + this.setData({ + data_list_loding_status: 0, + data_bottom_line_status: false, + }); + } + + my.showToast({ + type: "success", + content: res.data.msg + }); + } else { + my.showToast({ + type: "fail", + content: res.data.msg + }); + } + }, + fail: () => { + my.hideLoading(); + my.showToast({ + type: "fail", + content: "服务器请求出错" + }); + } + }); + } + } + }); + }, + +}); diff --git a/alipay/pages/user-goods-browse/user-goods-browse.json b/alipay/pages/user-goods-browse/user-goods-browse.json new file mode 100644 index 000000000..ed3a57db1 --- /dev/null +++ b/alipay/pages/user-goods-browse/user-goods-browse.json @@ -0,0 +1,3 @@ +{ + "pullRefresh": true +} \ No newline at end of file diff --git a/alipay/pages/user-integral/user-integral.acss b/alipay/pages/user-integral/user-integral.acss new file mode 100644 index 000000000..2aad7f9de --- /dev/null +++ b/alipay/pages/user-integral/user-integral.acss @@ -0,0 +1,21 @@ +.data-card { + padding: 30rpx 20rpx; + font-size: 24rpx; + color: #a6a6a6; +} +.data-card .data-box { + margin-bottom: 20rpx; +} +.data-card .data-title { + font-size: 28rpx; + color: #4a4a4a; +} +.data-card .data-detail { + line-height: 36rpx; +} +.data-value { + margin-bottom: 10rpx; +} +.data-value text:first-child { + margin-right: 20rpx; +} \ No newline at end of file diff --git a/alipay/pages/user-integral/user-integral.axml b/alipay/pages/user-integral/user-integral.axml new file mode 100644 index 000000000..817578aa5 --- /dev/null +++ b/alipay/pages/user-integral/user-integral.axml @@ -0,0 +1,22 @@ + + + + + + {{item.type_name}} + {{item.add_time_time}} + + + 原始 {{item.original_integral}} + 最新 {{item.new_integral}} + + {{item.msg}} + + + + + + + + + \ No newline at end of file diff --git a/alipay/pages/user-integral/user-integral.js b/alipay/pages/user-integral/user-integral.js new file mode 100644 index 000000000..2a84e3315 --- /dev/null +++ b/alipay/pages/user-integral/user-integral.js @@ -0,0 +1,127 @@ +const app = getApp(); +Page({ + data: { + data_list: [], + data_page_total: 0, + data_page: 1, + data_list_loding_status: 1, + data_bottom_line_status: false + }, + + onShow() { + my.setNavigationBar({ title: app.data.common_pages_title.user_integral }); + this.init(); + }, + + init() { + var user = app.GetUserInfo(this, "init"); + if (user != false) { + // 用户未绑定用户则转到登录页面 + if ((user.mobile || null) == null) { + my.redirectTo({ + url: "/pages/login/login?event_callback=init" + }); + return false; + } else { + // 获取数据 + this.get_data_list(); + } + } + }, + + get_data_list(is_mandatory) { + // 分页是否还有数据 + if ((is_mandatory || 0) == 0) { + if (this.data.data_bottom_line_status == true) { + return false; + } + } else { + this.setData({ data_bottom_line_status: false }); + } + + // 加载loding + my.showLoading({ content: "加载中..." }); + this.setData({ + data_list_loding_status: 1 + }); + + // 获取数据 + my.httpRequest({ + url: app.get_request_url("Index", "UserIntegral"), + method: "POST", + data: { + page: this.data.data_page + }, + dataType: "json", + success: res => { + my.hideLoading(); + my.stopPullDownRefresh(); + + if (res.data.code == 0) { + if (res.data.data.data.length > 0) { + if (this.data.data_page <= 1) { + var temp_data_list = res.data.data.data; + } else { + var temp_data_list = this.data.data_list; + var temp_data = res.data.data.data; + for (var i in temp_data) { + temp_data_list.push(temp_data[i]); + } + } + this.setData({ + data_list: temp_data_list, + data_total: res.data.data.total, + data_page_total: res.data.data.page_total, + data_list_loding_status: 3, + data_page: this.data.data_page + 1 + }); + + // 是否还有数据 + if ( + this.data.data_page > 1 && + this.data.data_page > this.data.data_page_total + ) { + this.setData({ data_bottom_line_status: true }); + } + } else { + this.setData({ + data_list_loding_status: 0 + }); + } + } else { + this.setData({ + data_list_loding_status: 0 + }); + + my.showToast({ + type: "fail", + content: res.data.msg + }); + } + }, + fail: () => { + my.hideLoading(); + my.stopPullDownRefresh(); + + this.setData({ + data_list_loding_status: 2 + }); + my.showToast({ + type: "fail", + content: "服务器请求出错" + }); + } + }); + }, + + // 下拉刷新 + onPullDownRefresh() { + this.setData({ data_page: 1 }); + this.get_data_list(1); + }, + + // 滚动加载 + scroll_lower(e) { + this.get_data_list(); + } +}); diff --git a/alipay/pages/user-integral/user-integral.json b/alipay/pages/user-integral/user-integral.json new file mode 100644 index 000000000..ed3a57db1 --- /dev/null +++ b/alipay/pages/user-integral/user-integral.json @@ -0,0 +1,3 @@ +{ + "pullRefresh": true +} \ No newline at end of file diff --git a/alipay/pages/user-order/user-order.js b/alipay/pages/user-order/user-order.js index 3133524f8..c5e0a581c 100755 --- a/alipay/pages/user-order/user-order.js +++ b/alipay/pages/user-order/user-order.js @@ -149,6 +149,8 @@ Page({ this.setData({ data_list_loding_status: 0, load_status: 1, + data_list: [], + data_bottom_line_status: false, }); } } else { diff --git a/alipay/pages/user/user.axml b/alipay/pages/user/user.axml index ab1737010..7506f83db 100755 --- a/alipay/pages/user/user.axml +++ b/alipay/pages/user/user.axml @@ -54,7 +54,7 @@ 清除缓存 - + 联系客服 {{customer_service_tel}} diff --git a/service/Application/Api/Controller/MessageController.class.php b/service/Application/Api/Controller/MessageController.class.php index fc4de43f1..4ecce7bab 100755 --- a/service/Application/Api/Controller/MessageController.class.php +++ b/service/Application/Api/Controller/MessageController.class.php @@ -1,6 +1,8 @@ Is_Login(); - - // 站点校验 - if(APPLICATION_CLIENT == 'shanghu') - { - $this->Is_Merchant(); - } } /** @@ -48,61 +44,39 @@ class MessageController extends CommonController */ public function Index() { - $m = M('Message'); + // 参数 + $params = $this->data_post; + $params['user'] = $this->user; - // 获取数据 - $number = 15; - $page = intval(I('page', 1)); - $where = $this->GetIndexWhere(); - $total = $m->where($where)->count(); + // 消息更新未已读 + MessageService::MessageRead($params); + + // 分页 + $number = 10; + + // 条件 + $where = MessageService::UserMessgeListWhere($params); + + // 获取总数 + $total = MessageService::MessageTotal($where); $page_total = ceil($total/$number); $start = intval(($page-1)*$number); - $field = 'id,title,detail,is_read,add_time'; - $data = $m->where($where)->field($field)->limit($start, $number)->order('id desc')->select(); + // 获取列表 + $data_params = array( + 'limit_start' => $start, + 'limit_number' => $number, + 'where' => $where, + ); + $data = MessageService::MessageList($data_params); + // 返回数据 $result = [ - 'total' => $total, - 'page_total' => $page_total, - 'data' => $this->SetData($data), + 'total' => $total, + 'page_total' => $page_total, + 'data' => $data['data'], ]; $this->ajaxReturn(L('common_operation_success'), 0, $result); } - - /** - * [SetData 数据设置] - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2018-04-13T23:08:38+0800 - * @param [array] $data [数据] - */ - private function SetData($data) - { - if(!empty($data)) - { - foreach($data as &$v) - { - $v['add_time'] = date('Y-m-d H:i', $v['add_time']); - } - } - return $data; - } - - /** - * [GetIndexWhere 列表条件] - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2018-04-08T15:13:32+0800 - */ - private function GetIndexWhere() - { - $where = array( - 'is_delete_time' => 0, - 'user_id' => $this->user['id'], - ); - return $where; - } } ?> \ No newline at end of file diff --git a/service/Application/Api/Controller/UserGoodsBrowseController.class.php b/service/Application/Api/Controller/UserGoodsBrowseController.class.php new file mode 100644 index 000000000..49e36c2c9 --- /dev/null +++ b/service/Application/Api/Controller/UserGoodsBrowseController.class.php @@ -0,0 +1,102 @@ +error(L('common_unauthorized_access')); + } + + // 登录校验 + $this->Is_Login(); + } + + /** + * 商品浏览列表 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2018-10-09 + * @desc description + */ + public function Index() + { + // 参数 + $params = $this->data_post; + $params['user'] = $this->user; + + // 分页 + $number = 10; + + // 条件 + $where = GoodsService::UserGoodsBrowseListWhere($params); + + // 获取总数 + $total = GoodsService::GoodsBrowseTotal($where); + $page_total = ceil($total/$number); + $start = intval(($page-1)*$number); + + // 获取列表 + $data_params = array( + 'limit_start' => $start, + 'limit_number' => $number, + 'where' => $where, + ); + $data = GoodsService::GoodsBrowseList($data_params); + + // 返回数据 + $result = [ + 'total' => $total, + 'page_total' => $page_total, + 'data' => $data['data'], + ]; + $this->ajaxReturn(L('common_operation_success'), 0, $result); + } + + /** + * 商品浏览删除 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2018-09-14 + * @desc description + */ + public function Delete() + { + // 是否ajax请求 + if(!IS_AJAX) + { + $this->error(L('common_unauthorized_access')); + } + + $params = $this->data_post; + $params['user'] = $this->user; + $ret = GoodsService::GoodsBrowseDelete($params); + $this->ajaxReturn($ret['msg'], $ret['code'], $ret['data']); + } +} +?> \ No newline at end of file diff --git a/service/Application/Api/Controller/UserIntegralController.class.php b/service/Application/Api/Controller/UserIntegralController.class.php new file mode 100644 index 000000000..6c870b9cf --- /dev/null +++ b/service/Application/Api/Controller/UserIntegralController.class.php @@ -0,0 +1,81 @@ +error(L('common_unauthorized_access')); + } + + // 登录校验 + $this->Is_Login(); + } + + /** + * 用户积分列表 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2018-09-28 + * @desc description + */ + public function Index() + { + // 参数 + $params = $this->data_post; + $params['user'] = $this->user; + + // 分页 + $number = 10; + + // 条件 + $where = IntegralService::UserIntegralLogListWhere($params); + + // 获取总数 + $total = IntegralService::UserIntegralLogTotal($where); + $page_total = ceil($total/$number); + $start = intval(($page-1)*$number); + + // 获取列表 + $data_params = array( + 'limit_start' => $start, + 'limit_number' => $number, + 'where' => $where, + ); + $data = IntegralService::UserIntegralLogList($data_params); + + // 返回数据 + $result = [ + 'total' => $total, + 'page_total' => $page_total, + 'data' => $data['data'], + ]; + $this->ajaxReturn(L('common_operation_success'), 0, $result); + } + +} +?> \ No newline at end of file