From f038069f5824f1b979e3ef2d249decac906746dc Mon Sep 17 00:00:00 2001 From: timerzz Date: Thu, 21 Nov 2024 15:44:37 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E6=B7=BB=E5=8A=A0=E6=96=B0=E7=9A=84?= =?UTF-8?q?=E5=95=86=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/provider.js | 4 +- .../fetch-article/fetch-article-panel.vue | 124 ++++++++++++++++++ .../provider-article-panel.vue | 4 +- src/views/article/index.vue | 12 +- 4 files changed, 139 insertions(+), 5 deletions(-) create mode 100644 src/componse/fetch-article/fetch-article-panel.vue diff --git a/src/api/provider.js b/src/api/provider.js index c7de50d..ede21d5 100644 --- a/src/api/provider.js +++ b/src/api/provider.js @@ -50,6 +50,6 @@ export const FetchProviderArticleAts = (providerArticle)=>{ return provider.post(`/${providerArticle.providerId}/ats/fetch/${providerArticle.skuID}`) } -export const FetchProviderArticleDetail = (pid)=>{ - return provider.post(`/${providerArticle.providerId}/detail/fetch/${pid}`) +export const FetchProviderArticleDetail = (providerId, pid)=>{ + return provider.post(`/${providerId}/detail/fetch/${pid}`) } \ No newline at end of file diff --git a/src/componse/fetch-article/fetch-article-panel.vue b/src/componse/fetch-article/fetch-article-panel.vue new file mode 100644 index 0000000..7d16c47 --- /dev/null +++ b/src/componse/fetch-article/fetch-article-panel.vue @@ -0,0 +1,124 @@ + + + + \ No newline at end of file diff --git a/src/componse/provider-article/provider-article-panel.vue b/src/componse/provider-article/provider-article-panel.vue index a8d9590..08b1f3b 100644 --- a/src/componse/provider-article/provider-article-panel.vue +++ b/src/componse/provider-article/provider-article-panel.vue @@ -32,12 +32,12 @@ {{provider.cost.calMark}} -
当前到手价:¥ {{provider.cost.finalPrice || '-'}}
+
当前到手价:¥ {{provider.cost.finalPrice.toFixed(2) || '-'}}
拉取价格
-
当前到手价:¥ {{provider.cost.finalPrice || '-'}}
+
当前到手价:¥ {{provider.cost.finalPrice.toFixed(2) || '-'}}
拉取价格
diff --git a/src/views/article/index.vue b/src/views/article/index.vue index e8c1214..39107a7 100644 --- a/src/views/article/index.vue +++ b/src/views/article/index.vue @@ -1,7 +1,9 @@