diff --git a/api/article.js b/api/article.js index 6e2f6af..8e832fb 100644 --- a/api/article.js +++ b/api/article.js @@ -39,5 +39,17 @@ export function getArticleDetail(type) { }); } +/** + * 分页获取文章列表(楼层装修用) + * @param params { pageNumber, pageSize, categoryId? } + */ +export function getArticleList(params) { + return http.request({ + url: `/other/article`, + method: Method.GET, + params, + }); +} + diff --git a/pages/product/shopPage.vue b/pages/product/shopPage.vue index e3407b0..281bfdb 100644 --- a/pages/product/shopPage.vue +++ b/pages/product/shopPage.vue @@ -193,6 +193,8 @@ + + @@ -234,6 +236,8 @@ import lineLayout from '@/pages/tabbar/home/template/tpl_line.vue' import richText from '@/pages/tabbar/home/template/tpl_rich_text.vue' import integral from '@/pages/tabbar/home/template/tpl_integral.vue' import coupon from '@/pages/tabbar/home/template/tpl_coupon.vue' +import articleList from '@/pages/tabbar/home/template/tpl_article.vue' +import shopList from '@/pages/tabbar/home/template/tpl_shop.vue' import goodsTemplate from '@/components/m-goods-list/list.vue' import { getStoreBaseInfo, getStoreCategory } from '@/api/store.js' import { diff --git a/pages/tabbar/home/index.vue b/pages/tabbar/home/index.vue index 5997d10..444168d 100644 --- a/pages/tabbar/home/index.vue +++ b/pages/tabbar/home/index.vue @@ -48,6 +48,8 @@ + + @@ -88,6 +90,8 @@ import lineLayout from '@/pages/tabbar/home/template/tpl_line.vue' import richText from '@/pages/tabbar/home/template/tpl_rich_text.vue' import integral from '@/pages/tabbar/home/template/tpl_integral.vue' import coupon from '@/pages/tabbar/home/template/tpl_coupon.vue' +import articleList from '@/pages/tabbar/home/template/tpl_article.vue' +import shopList from '@/pages/tabbar/home/template/tpl_shop.vue' import { getFloorData } from '@/api/home' const HOME_LAYOUT_PADDING_RPX = 16 diff --git a/pages/tabbar/home/template/tpl_article.vue b/pages/tabbar/home/template/tpl_article.vue new file mode 100644 index 0000000..a38000d --- /dev/null +++ b/pages/tabbar/home/template/tpl_article.vue @@ -0,0 +1,89 @@ + + + + + diff --git a/pages/tabbar/home/template/tpl_shop.vue b/pages/tabbar/home/template/tpl_shop.vue new file mode 100644 index 0000000..af0f0e6 --- /dev/null +++ b/pages/tabbar/home/template/tpl_shop.vue @@ -0,0 +1,82 @@ + + + + + diff --git a/pages/tabbar/special/special.vue b/pages/tabbar/special/special.vue index 8816d30..de1a588 100644 --- a/pages/tabbar/special/special.vue +++ b/pages/tabbar/special/special.vue @@ -48,6 +48,8 @@ + + @@ -80,6 +82,8 @@ import lineLayout from '@/pages/tabbar/home/template/tpl_line' import richText from '@/pages/tabbar/home/template/tpl_rich_text' import integral from '@/pages/tabbar/home/template/tpl_integral' import coupon from '@/pages/tabbar/home/template/tpl_coupon' +import articleList from '@/pages/tabbar/home/template/tpl_article' +import shopList from '@/pages/tabbar/home/template/tpl_shop' import { toSpecial, getSpecial } from '@/api/home' import permision from '@/js_sdk/wa-permission/permission.js' import config from '@/config/config'