移除收藏和分享

This commit is contained in:
wangxiaowei
2025-12-12 22:49:13 +08:00
parent 63b6abc5f7
commit 8c2803eebc

View File

@ -108,19 +108,6 @@
-{{ detail.product_max_price }}
</text>
</view>
<!--分享-->
<view class="share-box">
<button @click="showShare">
<image class="share_img" src="/static/icon/fx.png" mode=""></image>
<text class="f26">分享</text>
</button>
</view>
<view class="sc-box">
<button @click="favorite()">
<image :class="is_fav ? '' : 'img_gray'" class="share_img" src="/static/icon/sc.png" mode=""></image>
<text class="f26" :class="is_fav ? 'red' : 'gray3'">收藏</text>
</button>
</view>
</view>
<view>
<text class="old-price mr16">¥{{ detail.product_sku.line_price }}</text>
@ -236,37 +223,13 @@
<text class="f22 gray9" style="height: 50rpx;line-height: 40rpx;">首页</text>
</button>
</view>
<!-- #ifdef MP-WEIXIN -->
<view class="icon-box d-c-c">
<button class="d-c-c d-c bg-white" open-type="contact" session-from="wxapp" show-message-card="true">
<text class="icon iconfont icon-kefu gray9" style="font-size: 36rpx;height: 50rpx;line-height: 60rpx;"></text>
<text class="f22 gray9" style="height: 50rpx;line-height: 40rpx;">客服</text>
</button>
</view>
<!-- #endif -->
<!-- #ifndef MP-WEIXIN -->
<view class="icon-box d-c-c" @click="openMaservice">
<button class="d-c-c d-c bg-white">
<text class="icon iconfont icon-kefu gray9" style="font-size: 36rpx;height: 50rpx;line-height: 60rpx;"></text>
<text class="f22 gray9" style="height: 50rpx;line-height: 40rpx;">客服</text>
</button>
</view>
<!-- #endif -->
<view class="icon-box d-c-c" @click="gotocart">
<button class="pr d-c-c d-c bg-white">
<text class="gray9 icon iconfont icon-gouwuche1" style="font-size: 36rpx;height: 50rpx;line-height: 60rpx;"></text>
<text class="f22 gray9" style="height: 50rpx;line-height: 40rpx;">购物车</text>
<text v-if="cart_total_num > 0" class="cart_num">{{ cart_total_num }}</text>
</button>
</view>
<template>
<template v-if="is_preview == 1">
<button class="add-cart-no" style="border-radius: 40rpx;margin-right: 20rpx;">暂未开始售卖</button>
</template>
<template v-else>
<button v-if="!is_virtual && !ispresale" class="add-cart" @click="openPopup('card')">加入购物车</button>
<button v-else class="add-cart-no">加入购物车</button>
<button class="buy" v-if="!ispresale" @click="openPopup('order')">立即购买</button>
<button class="buy" v-if="!ispresale" @click="openPopup('order')" style="border-radius: 20px;">立即购买</button>
<button class="buy ispresale" v-else @click="openPopup('deposit')">
<template v-if="activeName == 'advance'">
<view class="f28">支付定金</view>