Authored by 张文文

fix

... ... @@ -10,20 +10,22 @@
<img class="lazy" src="{{image2 coverImage w=240 h=240 q=80 mode=2}}" alt="" />
</div>
<div class="item-detail">
<div class="desc-wrapper" onclick="onItemClick({{stringify this}})">
<div class="item-name">{{findGood.productName}}</div>
<div class="item-desc">{{content}}</div>
</div>
<p class="like-option-btn {{#if findGood.isFavorite}}fav{{/if}}" onclick="onFavItemClick({{stringify this}}, this)">
<span class="fav-icon"></span>
<span class="fav-text">
{{#if findGood.favoriteNum}}
{{findGood.favoriteNum}}人喜欢
{{else}}
喜欢
{{/if}}
</span>
</p>
<div class="desc-wrapper" onclick="onItemClick({{stringify this}})">
<div class="item-name">{{findGood.productName}}</div>
<div class="item-desc">{{content}}</div>
</div>
<div class="like-option">
<p class="like-option-btn {{#if findGood.isFavorite}}fav{{/if}}" onclick="onFavItemClick({{stringify this}}, this)">
<span class="fav-icon"></span>
<span class="fav-text">
{{#if findGood.favoriteNum}}
{{findGood.favoriteNum}}人喜欢
{{else}}
喜欢
{{/if}}
</span>
</p>
</div>
</div>
</div>
</div>
... ...
{
"name": "yohobuywap-node-activity",
"version": "6.9.15-28",
"version": "6.9.15-29",
"private": true,
"description": "A New Yohobuy Project With Express",
"repository": {
... ...
... ... @@ -116,23 +116,21 @@ body {
overflow: hidden;
text-decoration: none;
color: #000;
position: relative;
&:before {
content: "";
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: 1;
}
.item-detail {
flex: 1;
margin-left: 34.13px;
display: flex;
flex-direction: column;
position: relative;
&:before {
content: "";
position: absolute;
width: 100%;
height: 100%;
z-index: -1;
}
.desc-wrapper {
margin-top: 8.5px;
... ... @@ -164,12 +162,15 @@ body {
}
}
.like-option-btn {
display: flex;
.like-option {
position: absolute;
top: 130px;
align-items: center;
-webkit-tap-highlight-color: transparent;
.like-option-btn {
display: flex;
align-items: center;
-webkit-tap-highlight-color: transparent;
}
.fav-text {
margin-top: 3px;
... ...