feat(detail页): 新增鸿蒙小程序端购物车和关注按钮

补充鸿蒙小程序平台的专属操作按钮,包括购物车入口和收藏关注按钮,对齐其他平台的功能展示
This commit is contained in:
2026-07-23 11:04:54 +08:00
parent 70a01bfd2b
commit f51b601ecb

View File

@@ -457,7 +457,7 @@
/> />
<block v-else> <block v-else>
<ns-goods-action-icon :text="$lang('goods.detail.home')" icon="icon-shouye1" @click="goHome" /> <ns-goods-action-icon :text="$lang('goods.detail.home')" icon="icon-shouye1" @click="goHome" />
<!-- #ifdef MP-WEIXIN --> <!-- #ifdef MP-WEIXIN -->
<ns-goods-action-icon <ns-goods-action-icon
:text="$lang('goods.detail.cart')" :text="$lang('goods.detail.cart')"
@@ -465,9 +465,19 @@
icon="icon-gouwuche2" icon="icon-gouwuche2"
:corner-mark="cartNumber > 0 ? cartNumber + '' : ''" :corner-mark="cartNumber > 0 ? cartNumber + '' : ''"
@click="goCart" @click="goCart"
/> />
<ns-goods-action-icon :text="$lang('goods.detail.kefu')" icon="icox icox-kefu" :send-data="contactData" :chatParam="chatRoomParams" /> <ns-goods-action-icon :text="$lang('goods.detail.kefu')" icon="icox icox-kefu" :send-data="contactData" :chatParam="chatRoomParams" />
<!-- #endif --> <!-- #endif -->
<!-- #ifdef MP-HARMONY -->
<ns-goods-action-icon
:text="$lang('goods.detail.cart')"
:cornerMarkBg="themeStyle.goods_cart_num_corner"
icon="icon-gouwuche2"
:corner-mark="cartNumber > 0 ? cartNumber + '' : ''"
@click="goCart"
/>
<ns-goods-action-icon :text="$lang('goods.detail.follow')" :icon="whetherCollection == 1 ? 'icon-likefill color-base-text' : 'icon-guanzhu'" @click="editCollection" />
<!-- #endif -->
<!-- #ifdef H5 --> <!-- #ifdef H5 -->
<ns-goods-action-icon :text="$lang('goods.detail.follow')" :icon="whetherCollection == 1 ? 'icon-likefill color-base-text' : 'icon-guanzhu'" @click="editCollection" /> <ns-goods-action-icon :text="$lang('goods.detail.follow')" :icon="whetherCollection == 1 ? 'icon-likefill color-base-text' : 'icon-guanzhu'" @click="editCollection" />
<!-- #endif --> <!-- #endif -->