From 1df114459caf23564d3d76b6a5d2eebab81bb590 Mon Sep 17 00:00:00 2001 From: zhangdongxue Date: Wed, 3 Nov 2021 18:36:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8=E7=AD=9B?= =?UTF-8?q?=E9=80=89=EF=BC=8C=E8=B4=A1=E7=8C=AE=E5=80=BC=E7=AD=9B=E9=80=89?= =?UTF-8?q?=EF=BC=8C=E8=B4=A1=E7=8C=AE=E5=80=BC=E5=9B=BE=E6=A0=87=EF=BC=8C?= =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=AF=81=E4=B9=A6=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=AE=8C=E5=96=84=EF=BC=8C=E5=95=86=E5=93=81=E6=BA=AF=E6=BA=90?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=96=B0=E5=A2=9E=E6=8E=A5=E5=8F=A3=EF=BC=8C?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=BD=B4=E5=A4=84=E7=90=86=E7=AD=89=E7=BB=86?= =?UTF-8?q?=E8=8A=82=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/interfaces/goods.js | 21 ++++++++- components/goods-list/goods-list.vue | 8 +++- pages.json | 4 +- pages/equity/index.vue | 13 ++++-- pages/equity/search.vue | 64 +++++++++++++++++++++++----- pages/goods/attestation.vue | 48 ++++++++++----------- pages/goods/chain.vue | 12 +++--- pages/goods/details.vue | 7 ++- pages/goods/lists.vue | 53 ++++++++++++++++++++--- pages/goods/tracedTo.vue | 27 +++++++----- 10 files changed, 192 insertions(+), 65 deletions(-) diff --git a/apis/interfaces/goods.js b/apis/interfaces/goods.js index 4f227cb..f6ecbf4 100644 --- a/apis/interfaces/goods.js +++ b/apis/interfaces/goods.js @@ -187,7 +187,22 @@ const managesTracedTo = (id) => { return request({ url: 'mall/goods/' + id + '/trace' }) -} +} +// 商品第一条溯源 +const checkmessage = (id) => { + return request({ + url: 'mall/goods/' + id + '/checkmessage' + }) +} + +// 商品类型 0全1自营2合作 +const shopself = () => { + return request({ + url: 'mall/shopself' + }) +} + + export { managesGoodsIndex, managesGoodsMint, @@ -212,5 +227,7 @@ export { mallBuyGoods, managesChain, managesAttestation, - managesTracedTo + managesTracedTo, + checkmessage, + shopself } diff --git a/components/goods-list/goods-list.vue b/components/goods-list/goods-list.vue index 02ce89a..92d4059 100644 --- a/components/goods-list/goods-list.vue +++ b/components/goods-list/goods-list.vue @@ -24,9 +24,10 @@ {{item.price.price_min}} - + - 月销量{{item.sales}} + + 贡献值:{{item.price.pv}} @@ -167,6 +168,9 @@ line-height: 50rpx; text-align: right; @extend .nowrap; + display: flex; + align-items: center; + justify-content: flex-end; } } } diff --git a/pages.json b/pages.json index eecd0ef..b2302cd 100644 --- a/pages.json +++ b/pages.json @@ -283,13 +283,13 @@ "path": "pages/goods/addClassify", "name": "goodsaddClassify", "style": { - "navigationBarTitleText": "发布商品类目" + "navigationBarTitleText": "发布权证类目" } },{ "path": "pages/goods/details", "name": "goodsDetails", "style": { - "navigationBarTitleText": "商品详情", + "navigationBarTitleText": "权证详情", "navigationBarTextStyle":"white", "titleNView": { "backgroundColor": "#8b64fd", diff --git a/pages/equity/index.vue b/pages/equity/index.vue index e0916c3..c8369ea 100644 --- a/pages/equity/index.vue +++ b/pages/equity/index.vue @@ -120,7 +120,7 @@ - 每日推荐小易精选 推荐好物 + 每日推荐链商精选 推荐好物 @@ -130,13 +130,20 @@ {{position.one.specal_tags.is_allow_values}} {{position.one.name}} - ¥{{position.one.original_price}} + ¥{{position.one.original_price}} + + 贡献值:{{position.one.price.pv}} + + {{position.one.specal_tags.is_self}} {{item.name}} + + 贡献值:{{item.price.pv}} + ¥{{item.original_price}} @@ -596,7 +603,7 @@ .title { font-size: $title-size-lg; @extend .nowrap; - line-height: 60rpx; + line-height: 50rpx; } .price { diff --git a/pages/equity/search.vue b/pages/equity/search.vue index d947926..9fee220 100644 --- a/pages/equity/search.vue +++ b/pages/equity/search.vue @@ -1,21 +1,30 @@