|
|
@ -32,12 +32,12 @@ |
|
|
|
</view> |
|
|
|
<view class="contentRight"> |
|
|
|
<view class="favorites-box cur-poi" @click="collectToggle"> |
|
|
|
<image v-if="ifCollect === 0" class="store-icon" |
|
|
|
src="http://36.138.125.206:8081/ceres-local-file/static/images/iconShoucang.png"> |
|
|
|
<image v-if="ifCollect === 0" class="shop-collect-img" |
|
|
|
src="http://36.138.125.206:8081/ceres-local-file/image/collect_normal.png"> |
|
|
|
</image> |
|
|
|
<image v-else class="store-icon" |
|
|
|
src="http://36.138.125.206:8081/ceres-local-file/static/images/shoucangActive.png"></image> |
|
|
|
<text class="text">{{ifCollect === 0? $t('common.collect') : $t('common.cancel')}}</text> |
|
|
|
<image v-else class="shop-collect-img" |
|
|
|
src="http://36.138.125.206:8081/ceres-local-file/image/collect_active.png"></image> |
|
|
|
<!-- <text class="text">{{ifCollect === 0? $t('common.collect') : $t('common.cancel')}}</text>--> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -121,8 +121,8 @@ |
|
|
|
@click="goodsItemTap(cItem.productId,cItem.skuId)"> |
|
|
|
<image :src="cItem.image" class="product-img default-img" |
|
|
|
onerror="this.src='url(http://36.138.125.206:8081/ceres-local-file/image/default.png) no-repeat center';this.οnerrοr=null"></image> |
|
|
|
<image v-if="cItem.ifCollect === 1" class="collect-img" src="http://36.138.125.206:8081/ceres-local-file/image/shop_prod_collect_actvie.png" @click.stop="onCollect(cItem, 0)"/> |
|
|
|
<image v-else class="collect-img" src="http://36.138.125.206:8081/ceres-local-file/image/shop_prod_collect_normal.png" @click.stop="onCollect(cItem, 1)"/> |
|
|
|
<image v-if="cItem.ifCollect === 1" class="collect-img" src="http://36.138.125.206:8081/ceres-local-file/image/prod_collect_active.png" @click.stop="onCollect(cItem, 0)"/> |
|
|
|
<image v-else class="collect-img" src="http://36.138.125.206:8081/ceres-local-file/image/prod_collect_normal.png" @click.stop="onCollect(cItem, 1)"/> |
|
|
|
<image class="cart-add-img" src="http://36.138.125.206:8081/ceres-local-file/image/shop_prod_addcart.png"/> |
|
|
|
<view class="product-bottom-box"> |
|
|
|
<view class="product-name">{{cItem.productName}}</view> |
|
|
@ -713,13 +713,13 @@ |
|
|
|
} |
|
|
|
|
|
|
|
.contentRight { |
|
|
|
flex: 3; |
|
|
|
flex: 1; |
|
|
|
|
|
|
|
.favorites-box { |
|
|
|
display: flex; |
|
|
|
width: 160rpx; |
|
|
|
height: 60rpx; |
|
|
|
background: #F54639; |
|
|
|
//width: 160rpx; |
|
|
|
//height: 60rpx; |
|
|
|
//background: #F54639; |
|
|
|
opacity: 1; |
|
|
|
border-radius: 46rpx; |
|
|
|
align-items: center; |
|
|
@ -731,6 +731,11 @@ |
|
|
|
margin-right: 8rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.shop-collect-img{ |
|
|
|
width: 70rpx; |
|
|
|
height: 70rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.text { |
|
|
|
font-size: 24rpx; |
|
|
|
color: #fff; |
|
|
@ -1162,6 +1167,11 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.collect-img{ |
|
|
|
width: 70rpx; |
|
|
|
height: 70rpx; |
|
|
|
} |
|
|
|
|
|
|
|
// #endif |
|
|
|
</style> |
|
|
|
|
|
|
|