diff --git a/common/api/shop.js b/common/api/shop.js index bc51f99..325b012 100644 --- a/common/api/shop.js +++ b/common/api/shop.js @@ -1,9 +1,12 @@ export default { init(vm){ return { - postlogn({id,name}){ - return vm.$u.get('url',{id,name}); - } + // 商品推荐 + getGoodsRecommend({page}){ + return vm.$u.post('Goods/getGoodsRecommend', { + page: page + }); + } } } diff --git a/common/api/user.js b/common/api/user.js index 4b6dc40..6c60a7e 100644 --- a/common/api/user.js +++ b/common/api/user.js @@ -1,12 +1,6 @@ export default { init(vm){ return { - phoneRegister({member_mobile, sms_code}) { - return vm.$u.post('auth/phoneRegister', { - member_mobile: member_mobile, - sms_code: sms_code - }); - }, // 启动页 pageList({document_code}) { return vm.$u.post('StartUp/pageList', {}); diff --git a/components/remaining/remaining.vue b/components/remaining/remaining.vue index 858f2a0..799e7f7 100644 --- a/components/remaining/remaining.vue +++ b/components/remaining/remaining.vue @@ -1,6 +1,6 @@ - @@ -23,7 +18,11 @@ export default { name:"list", components:{ item - } + }, + props: { + classifyList: Array, + goodsList: Array, + } }