完善分享功能 console.log(item, '==2222222=')
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user