diff --git a/application/api/controller/Coupon.php b/application/api/controller/Coupon.php index 068e08842f6a8e5bd9cd28f4f4a2b3dc8b456932..3ed5fb4f9bd1b18b8cfa6e740ee1cceb20490889 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 be7391d1c1f2b24230c7fa3608da0cb65281bd85..d24b9e17fa5153e695208b6395263c5ad2bd8559 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;