From 0e44363f679c26e407e12817837424bd57e5f12d Mon Sep 17 00:00:00 2001 From: devil_gong Date: Tue, 15 Oct 2019 18:14:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=8A=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Coupon.php | 24 +++++++++++++++++++ .../weixin/pages/user-coupon/user-coupon.wxss | 1 + 2 files changed, 25 insertions(+) diff --git a/application/api/controller/Coupon.php b/application/api/controller/Coupon.php index 068e08842..3ed5fb4f9 100644 --- a/application/api/controller/Coupon.php +++ b/application/api/controller/Coupon.php @@ -35,6 +35,30 @@ class Coupon extends Common $this->IsLogin(); } + /** + * 优惠劵首页 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2019-10-15 + * @desc description + */ + public function Index() + { + // 优惠劵列表 + $coupon_params = [ + 'where' => [ + 'is_enable' => 1, + 'is_user_receive' => 1, + ], + 'm' => 0, + 'n' => 1000000, + 'is_sure_receive' => 1, + 'user' => $this->user, + ]; + $ret = CallPluginsServiceMethod('coupon', 'CouponService', 'CouponList', $coupon_params); + } + /** * 用户优惠劵列表 * @author Devil diff --git a/public/appmini/old/weixin/pages/user-coupon/user-coupon.wxss b/public/appmini/old/weixin/pages/user-coupon/user-coupon.wxss index be7391d1c..d24b9e17f 100644 --- a/public/appmini/old/weixin/pages/user-coupon/user-coupon.wxss +++ b/public/appmini/old/weixin/pages/user-coupon/user-coupon.wxss @@ -8,6 +8,7 @@ left: 0; top: 0; width: 100%; + z-index: 1; } .nav-tabs .nav-item { text-align: center; -- GitLab