diff --git a/api/article/index.js b/api/article/index.js index a5411f7..9e92141 100644 --- a/api/article/index.js +++ b/api/article/index.js @@ -3,7 +3,12 @@ import request from '@/utils/request' // api地址 const api = { list: 'article/list', - detail: 'article/detail' + detail: 'article/detail', + del: 'article/del' +} +// 文章列表 +export function del(param, option) { + return request.post(api.del, param, option) } // 文章列表 diff --git a/api/goods/index.js b/api/goods/index.js index f00b463..e780286 100644 --- a/api/goods/index.js +++ b/api/goods/index.js @@ -1,7 +1,8 @@ import request from '@/utils/request' // api地址 -const api = { +const api = { + browseHistory: 'cart/list', list: 'goods/list', detail: 'goods/detail', basic: 'goods/basic', @@ -10,6 +11,11 @@ const api = { recommended: 'goods/recommended', poster: 'goods/poster' } + +// 商品浏览记录 +export const browseHistory = (param, option) => { + return request.get(api.browseHistory, param, option) +} // 商品列表 export const list = (param, option) => { diff --git a/api/newFun.js b/api/newFun.js new file mode 100644 index 0000000..4754d3f --- /dev/null +++ b/api/newFun.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' + +// api地址 +const api = { + list: 'shop/list', + detail: 'shop/detail' +} + +// 自提门店列表 +export const inviteList = (param) => { + return request.get(api.list, param) +} + +// 门店详情 +export const detail = (shopId) => { + return request.get(api.detail, { shopId }) +} diff --git a/pages/goods/list.vue b/pages/goods/list.vue index e92208e..0450efd 100644 --- a/pages/goods/list.vue +++ b/pages/goods/list.vue @@ -129,7 +129,7 @@ @@ -283,6 +258,7 @@ white-space: nowrap; line-height: 70rpx; padding-left: 80rpx; + text-align: left; box-sizing: border-box; &-on{ color: #FF624F; diff --git a/pages/news/article/detail.vue b/pages/news/article/detail.vue index a752a91..5357fdd 100644 --- a/pages/news/article/detail.vue +++ b/pages/news/article/detail.vue @@ -1,20 +1,60 @@ diff --git a/pages/news/article/index.vue b/pages/news/article/index.vue index 5a4bd49..8c5bf12 100644 --- a/pages/news/article/index.vue +++ b/pages/news/article/index.vue @@ -1,41 +1,43 @@ -