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;