From b1da35a040dc79240da248775e7249d88539a3ac Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 27 Jun 2023 22:19:08 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=96=87=E7=AB=A0=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E3=80=91=201.=20=E5=8A=9F=E8=83=BD=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api.js | 26 ------- api/promotion/article.js | 9 +++ components/shareInfo/index.vue | 12 +-- pages/news_details/index.vue | 133 +++++++++++++++++---------------- 4 files changed, 83 insertions(+), 97 deletions(-) diff --git a/api/api.js b/api/api.js index 26432320..d1fdc19a 100644 --- a/api/api.js +++ b/api/api.js @@ -47,32 +47,6 @@ export function getCoupons(data){ return request.get('coupons',data,{noAuth:true}) } -/** - * 我的优惠券 - * @param int types 0全部 1未使用 2已使用 -*/ -export function getUserCoupons(data){ - return request.get('coupon/list',data) -} - -/** - * 文章列表 - * @param int cid - * -*/ -export function getArticleList(cid,data){ - return request.get('article/list/' + cid, data,{noAuth:true}) -} - -/** - * 文章详情 - * @param int id - * -*/ -export function getArticleDetails(id){ - return request.get('article/info',id,{noAuth:true}); -} - /** * 手机号+验证码登录接口 * @param object data diff --git a/api/promotion/article.js b/api/promotion/article.js index fb43d44b..85d89193 100644 --- a/api/promotion/article.js +++ b/api/promotion/article.js @@ -20,3 +20,12 @@ export function getArticlePage(data) { noAuth: true // TODO 芋艿:后续要做调整 }); } + +// 获得文章 +export function getArticle(id) { + return request.get("app-api/promotion/article/get", { + id + }, { + noAuth: true // TODO 芋艿:后续要做调整 + }); +} diff --git a/components/shareInfo/index.vue b/components/shareInfo/index.vue index 646f1324..24fa817e 100644 --- a/components/shareInfo/index.vue +++ b/components/shareInfo/index.vue @@ -1,19 +1,17 @@ - -