|
|
@@ -12,8 +12,10 @@
|
|
|
<view v-for="(item, goodsIdx) in list.data" :key="goodsItemRowKey(item, goodsIdx)" class="show-shop_box">
|
|
|
<view class="item-detail" @click="popAddModelFn(item)">
|
|
|
<image class="img" :key="goodsItemRowKey(item, goodsIdx)" :src="item.smallCover" :lazy-load="false" mode="scaleToFill" ></image>
|
|
|
+ <!-- 半透明底:老安卓同上,蒙层(dim)+内层文案 -->
|
|
|
<view class="shop-info_price">
|
|
|
- <view>
|
|
|
+ <view class="shop-info_price_dim" />
|
|
|
+ <view class="shop-info_price_inner">
|
|
|
<text class="goods-card-name" :key="'gn-' + goodsItemRowKey(item, goodsIdx)">{{ item.name }}</text>
|
|
|
<view class="goods-card-meta" >
|
|
|
<text>¥{{parseFloat(item.price)}}</text>
|
|
|
@@ -233,30 +235,45 @@ export default {
|
|
|
}
|
|
|
.shop-info_price {
|
|
|
position: absolute;
|
|
|
- background-color: rgba(0, 0, 0, 0.6);
|
|
|
bottom: 0;
|
|
|
left: 0;
|
|
|
width: 100%;
|
|
|
- font-size: 12upx;
|
|
|
- color: #ffffff;
|
|
|
height: 22upx;
|
|
|
box-sizing: border-box;
|
|
|
z-index: 10;
|
|
|
- & > view {
|
|
|
- & > .goods-card-name {
|
|
|
- display: block;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- white-space: nowrap;
|
|
|
- width: 90%;
|
|
|
- font-size: 9upx;
|
|
|
- }
|
|
|
- & > .goods-card-meta {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- padding-right: 2upx;
|
|
|
- font-size: 7upx;
|
|
|
- }
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+ .shop-info_price_dim {
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ top: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ background-color: #000000;
|
|
|
+ opacity: 0.6;
|
|
|
+ z-index: 0;
|
|
|
+ pointer-events: none;
|
|
|
+ }
|
|
|
+ .shop-info_price_inner {
|
|
|
+ position: relative;
|
|
|
+ z-index: 1;
|
|
|
+ font-size: 12upx;
|
|
|
+ color: #ffffff;
|
|
|
+ height: 100%;
|
|
|
+ box-sizing: border-box;
|
|
|
+ & > .goods-card-name {
|
|
|
+ display: block;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
+ width: 90%;
|
|
|
+ font-size: 9upx;
|
|
|
+ }
|
|
|
+ & > .goods-card-meta {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding-right: 2upx;
|
|
|
+ font-size: 7upx;
|
|
|
}
|
|
|
}
|
|
|
}
|