diff --git a/apis/interfaces/coupon.js b/apis/interfaces/coupon.js index 2520e5a..460f2d6 100644 --- a/apis/interfaces/coupon.js +++ b/apis/interfaces/coupon.js @@ -33,7 +33,7 @@ const getCouponsInfoById = (id) => { // 根据企业id获取企业首页的轮播图列表 const couponsByCompanyId = (data) => { return request({ - url: 'coupons', + url: 'coupons/all', method: 'get', data: data }) diff --git a/pages.json b/pages.json index a1212ac..b79aa90 100644 --- a/pages.json +++ b/pages.json @@ -375,6 +375,16 @@ "navigationBarTitleText": "优惠券" } }, { + "path": "pages/coupons/couponList", + "name": "Coupons", + "style": { + "enablePullDownRefresh": true, + "navigationBarTextStyle": "white", + "navigationStyle": "custom", + "backgroundColor": "#e93340" + } + }, + { "path": "pages/coupons/management", "name": "CouponsMag", "style": { diff --git a/pages/coupons/couponList.vue b/pages/coupons/couponList.vue new file mode 100644 index 0000000..c81551b --- /dev/null +++ b/pages/coupons/couponList.vue @@ -0,0 +1,854 @@ + + + + + diff --git a/pages/equity/index.vue b/pages/equity/index.vue index 0fd4374..e50f716 100644 --- a/pages/equity/index.vue +++ b/pages/equity/index.vue @@ -142,7 +142,7 @@ 限时抢购海量商家优惠券 - 查看更多 + 查看更多