From 7ef82d277f76a6dae055335a606ff8d0fd2f9845 Mon Sep 17 00:00:00 2001 From: 77 <270260644@qq.com> Date: Tue, 8 Oct 2024 20:11:54 +0800 Subject: [PATCH] 11 --- pages.json | 11 + pages/activity/point/list.vue | 76 ++ pages/goods/point.vue | 480 +++++++++++ pages/index/page.vue | 3 +- pages/integration/index.vue | 390 +++++++++ sheep/api/promotion/point.js | 30 + .../components/s-block-item/s-block-item.vue | 2 + .../s-goods-column/s-goods-column-jf.vue | 754 ++++++++++++++++++ .../s-goods-column/s-goods-column.vue | 2 + .../s-groupon-block/s-groupon-block.vue | 41 +- sheep/components/s-menu-grid/s-menu-grid.vue | 4 +- .../s-point-block/s-point-block.vue | 328 ++++++++ .../s-seckill-block/s-seckill-block.vue | 387 +++++---- sheep/ui/su-coupon/su-coupon.vue | 11 +- sheep/util/const.js | 65 ++ 15 files changed, 2419 insertions(+), 165 deletions(-) create mode 100644 pages/activity/point/list.vue create mode 100644 pages/goods/point.vue create mode 100644 pages/integration/index.vue create mode 100644 sheep/api/promotion/point.js create mode 100644 sheep/components/s-goods-column/s-goods-column-jf.vue create mode 100644 sheep/components/s-point-block/s-point-block.vue diff --git a/pages.json b/pages.json index da6207c..fdc3184 100644 --- a/pages.json +++ b/pages.json @@ -190,6 +190,17 @@ "group": "商品" } }, + { + "path": "point", + "style": { + "navigationBarTitleText": "积分商品" + }, + "meta": { + "sync": true, + "title": "积分商品", + "group": "商品" + } + }, { "path": "sales", "style": { diff --git a/pages/activity/point/list.vue b/pages/activity/point/list.vue new file mode 100644 index 0000000..129f988 --- /dev/null +++ b/pages/activity/point/list.vue @@ -0,0 +1,76 @@ + + + diff --git a/pages/goods/point.vue b/pages/goods/point.vue new file mode 100644 index 0000000..b5d44e3 --- /dev/null +++ b/pages/goods/point.vue @@ -0,0 +1,480 @@ + + + + + + diff --git a/pages/index/page.vue b/pages/index/page.vue index a54586b..b5d8ef3 100644 --- a/pages/index/page.vue +++ b/pages/index/page.vue @@ -3,7 +3,6 @@ { - let id = options.id; + let id = options.id // #ifdef MP // 小程序预览自定义页面 diff --git a/pages/integration/index.vue b/pages/integration/index.vue new file mode 100644 index 0000000..0b1920c --- /dev/null +++ b/pages/integration/index.vue @@ -0,0 +1,390 @@ + + + + + \ No newline at end of file diff --git a/sheep/api/promotion/point.js b/sheep/api/promotion/point.js new file mode 100644 index 0000000..d4e17b8 --- /dev/null +++ b/sheep/api/promotion/point.js @@ -0,0 +1,30 @@ +import request from '@/sheep/request'; + +const PointApi = { + // 获得积分商城活动分页 + getPointActivityPage: (params) => { + return request({ url: 'promotion/point-activity/page', method: 'GET', params }); + }, + + // 获得积分商城活动列表,基于活动编号数组 + getPointActivityListByIds: (ids) => { + return request({ + url: '/promotion/point-activity/list-by-ids', + method: 'GET', + params: { + ids, + }, + }); + }, + + // 获得积分商城活动明细 + getPointActivity: (id) => { + return request({ + url: 'promotion/point-activity/get-detail', + method: 'GET', + params: { id }, + }); + }, +}; + +export default PointApi; diff --git a/sheep/components/s-block-item/s-block-item.vue b/sheep/components/s-block-item/s-block-item.vue index 16562a9..2541b38 100644 --- a/sheep/components/s-block-item/s-block-item.vue +++ b/sheep/components/s-block-item/s-block-item.vue @@ -40,6 +40,8 @@ + + diff --git a/sheep/components/s-goods-column/s-goods-column-jf.vue b/sheep/components/s-goods-column/s-goods-column-jf.vue new file mode 100644 index 0000000..90d002d --- /dev/null +++ b/sheep/components/s-goods-column/s-goods-column-jf.vue @@ -0,0 +1,754 @@ + + + + + + diff --git a/sheep/components/s-goods-column/s-goods-column.vue b/sheep/components/s-goods-column/s-goods-column.vue index 3781f4b..a9e12da 100644 --- a/sheep/components/s-goods-column/s-goods-column.vue +++ b/sheep/components/s-goods-column/s-goods-column.vue @@ -485,6 +485,7 @@ .tag-icon { width: 72rpx; height: 44rpx; + border-radius:8px; } } .seckill-tag { @@ -587,6 +588,7 @@ // width: 228rpx; width: 100%; height: 208rpx; + border-radius:8px; } .sm-goods-content { padding: 20rpx 16rpx; diff --git a/sheep/components/s-groupon-block/s-groupon-block.vue b/sheep/components/s-groupon-block/s-groupon-block.vue index c176403..35b8a71 100644 --- a/sheep/components/s-groupon-block/s-groupon-block.vue +++ b/sheep/components/s-groupon-block/s-groupon-block.vue @@ -7,12 +7,16 @@