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 3aee943..10e29d1 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 baa5de9..8680643 100644 --- a/pages.json +++ b/pages.json @@ -28,11 +28,11 @@ "path": "pages/equity/index", "name": "equity", "style": { - "navigationBarTitleText": "通证商城", + "navigationBarTitleText": "通证商城 购你所想", "navigationBarTextStyle": "white", "app-plus":{ "titleNView": { - "backgroundImage": "linear-gradient(to right, #7c52fc, #976dff)", + "backgroundColor": "#7c52fc", "buttons": [{ "text": "\ue603", "fontSrc":"/static/iconfont.ttf", @@ -333,13 +333,13 @@ "path": "pages/goods/addClassify", "name": "goodsaddClassify", "style": { - "navigationBarTitleText": "发布商品类目" + "navigationBarTitleText": "发布权证类目" } },{ "path": "pages/goods/details", "name": "goodsDetails", "style": { - "navigationBarTitleText": "商品详情", + "navigationBarTitleText": "权证详情", "navigationBarTextStyle":"white", "titleNView": { "backgroundImage": "linear-gradient(to right, #7c52fc, #976dff)", diff --git a/pages/equity/index.vue b/pages/equity/index.vue index 89a5659..13444d3 100644 --- a/pages/equity/index.vue +++ b/pages/equity/index.vue @@ -22,28 +22,35 @@ 查看全部 - - - - - 每日推荐小易精选 推荐好物 - - - - - - - {{position.one.specal_tags.is_allow_values}} - {{position.one.name}} + + + + 每日推荐链商精选 推荐好物 - ¥{{position.one.original_price}} - {{position.one.specal_tags.is_self}} - - - - {{item.name}} - ¥{{item.original_price}} + + + + + {{position.one.specal_tags.is_allow_values}} + {{position.one.name}} + + ¥{{position.one.original_price}} + + 贡献值:{{position.one.price.pv}} + + + {{position.one.specal_tags.is_self}} + + + + + {{item.name}} + + 贡献值:{{item.price.pv}} + + ¥{{item.original_price}} + @@ -340,7 +347,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 a6a7c43..ff42ffd 100644 --- a/pages/equity/search.vue +++ b/pages/equity/search.vue @@ -1,17 +1,30 @@