完善分享功能 console.log(item, '==2222222=')

This commit is contained in:
cbb
2026-01-28 17:54:45 +08:00
parent 5d0700ee70
commit 990f2df972
12 changed files with 1368 additions and 743 deletions

View File

@@ -10,6 +10,8 @@
const groupId = ref('')
/** 评论数量 */
const commentNum = ref(0)
/** 分享弹窗 */
const shareDialog = ref(false)
const getData = async productId => {
const res = await getProductDetail(productId)
viewData.value = res.data
@@ -69,13 +71,14 @@
class="left-icon"
></image>
</template>
<!-- <template #right>
<template #right>
<image
src="/static/images/public/share-icon.png"
mode="heightFix"
class="right-icon"
@click="shareDialog = true"
></image>
</template> -->
</template>
</nav-bar>
<!-- 顶部图片 -->
<view class="top-img">
@@ -158,6 +161,14 @@
<bottom-view>
<cb-button @click="onConfirm">拼单购买</cb-button>
</bottom-view>
<!-- 分享弹窗 -->
<share-popup
v-model:show="shareDialog"
:id="productId"
:text="viewData.productName"
:cover="viewData.mainImage"
></share-popup>
</view>
</template>

View File

@@ -61,7 +61,6 @@
:default-page-size="formData.pageSize"
safe-area-inset-bottom
use-safe-area-placeholder
:show-loading-more-no-more-view="false"
:paging-style="{ 'background-color': '#f9f9f9' }"
@query="getListData"
>