diff --git a/common/common.js b/common/common.js index 0dadeae..96b5789 100644 --- a/common/common.js +++ b/common/common.js @@ -4,6 +4,7 @@ * @Description: content */ import Vue from 'vue' +import config from '@/common/config.js' // 防止处理多次点击 function noMultipleClicks(methods, info) { @@ -49,6 +50,10 @@ export default { if (!obj) { return '' } + let goods_info = config.getGoodTypeFind(obj.type); + if(goods_info!=null){ + return goods_info.name; + } const types = { 1: '一番赏', diff --git a/components/detail-list-item/detail-list-item.vue b/components/detail-list-item/detail-list-item.vue index 50a9484..451a775 100644 --- a/components/detail-list-item/detail-list-item.vue +++ b/components/detail-list-item/detail-list-item.vue @@ -10,10 +10,10 @@ {{ item.surplus_stock }}/{{ item.stock }} - 预售 - x{{ + + x{{ item.doubling }} + 售罄 @@ -203,6 +203,57 @@ export default { border-radius: 25rpx; } + .presale-tag { + position: absolute; + right: 15rpx; + top: 15rpx; + z-index: 5; + font-weight: 400; + font-size: 24rpx; + color: #333; + border-radius: 30rpx; + background-image: url($iconurl + "yushou.png"); + background-size: 100% 100%; + height: 32rpx; + width: 68rpx; + } + + .baoxiang-tag { + position: absolute; + left: 15rpx; + top: 15rpx; + z-index: 5; + font-weight: 400; + font-size: 24rpx; + color: #333; + border-radius: 30rpx; + background-image: url($iconurl + "baoxiang.png"); + background-size: 100% 100%; + height: 32rpx; + width: 68rpx; + } + + .multiple-tag { + position: absolute; + z-index: 5; + display: flex; + justify-content: center; + align-items: center; + font-weight: 400; + // background-color: ; + //背景渐变 + background: linear-gradient(to right, #8D5104, #3C0300); + color: #ffffff; + width: 48rpx; + height: 32rpx; + border-radius: 25rpx; + bottom:15rpx; + left: 15rpx; + font-size:24rpx; + line-height: 32rpx; + } + + // 保留兼容旧版本 .yu-tag { position: absolute; right: 10rpx; diff --git a/pages/infinite/bonus_house_details.vue b/pages/infinite/bonus_house_details.vue index ec2cdc4..2ee39cc 100644 --- a/pages/infinite/bonus_house_details.vue +++ b/pages/infinite/bonus_house_details.vue @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/pages/shouye/index.vue b/pages/shouye/index.vue index 58f9561..83e6267 100644 --- a/pages/shouye/index.vue +++ b/pages/shouye/index.vue @@ -99,7 +99,7 @@ - {{ item.type_text }} diff --git a/uni.scss b/uni.scss index ff56a18..1f2bb90 100644 --- a/uni.scss +++ b/uni.scss @@ -14,7 +14,8 @@ // @import 'uview-ui/theme.scss'; /* 颜色变量 */ -$imgurl:'https://mh.shhuanmeng.com/static/web/static/'; +$imgurl:'https://image.zfunbox.cn/static/web/static/'; +$iconurl:'https://image.zfunbox.cn/icon/'; //https://mh.shhuanmeng.com/static/web/static/common/box.png /* 行为相关颜色 */ $uni-color-primary: #007aff;