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 @@