评论商品接口有问题

This commit is contained in:
bobobobo
2026-01-16 00:12:33 +08:00
parent d2ba0df2b5
commit 5cd2732562
164 changed files with 14318 additions and 197 deletions

View File

@@ -22,7 +22,10 @@
const onShare = () => {
// productId
navigateTo('/pages/shop-together/share')
navigateTo('/pages/shop-together/share', {
id: viewData.value.id,
productId: viewData.value.productId
})
}
onLoad(e => {
@@ -39,10 +42,12 @@
<view class="state-box">发起人</view>
<view class="left-box">
<image
src="https://wx1.sinaimg.cn/mw690/92eeb099gy1i29hl0ne80j21jk2bcash.jpg"
mode="scaleToFill"
v-if="topUser?.avatar"
:src="topUser?.avatar"
mode="aspectFill"
class="avatar"
></image>
<uni-icons v-else type="contact-filled" size="64"></uni-icons>
<view class="name-box">
<text>{{ topUser.userName }}</text>
<text>ID:{{ topUser.userId }}</text>
@@ -68,7 +73,12 @@
class="left-img"
></image>
<view class="right-content">
<text class="product-name">{{ viewData.productName }}</text>
<view>
<text class="product-name">{{ viewData.productName }}</text>
<text v-if="viewData.activityType" class="num-box">
{{ viewData.activityType }} 人拼团
</text>
</view>
<view class="line-box">
<view class="rmb-box">
<text></text>

View File

@@ -39,7 +39,12 @@
class="left-img"
></image>
<view class="right-content">
<text class="product-name">{{ item.productName }}</text>
<view>
<text class="product-name">{{ item.productName }}</text>
<text v-if="item.activityType" class="num-box">
{{ item.activityType }}人拼团
</text>
</view>
<view class="line-box">
<view class="rmb-box">
<text></text>

View File

@@ -1,15 +1,39 @@
<script setup></script>
<script setup>
import { onLoad } from '@dcloudio/uni-app'
import { ref } from 'vue'
import { useUI } from '../../utils/use-ui'
const { showToast } = useUI()
const groupId = ref('')
const productId = ref('')
const qrcodeRef = ref(null)
onLoad(e => {
groupId.value = e.id
productId.value = e.productId
// /pages/mall/detail
})
</script>
<template>
<view class="share-box">
<nav-bar title="拼单" targetColor="transparent"></nav-bar>
<view class="code-box">
<view class="code-content">
<view class="code">二维码</view>
<view class="btn-box">
<text>分享二维码</text>
<text>保存到本地</text>
<view class="code">
<l-qrcode
ref="qrcodeRef"
:value="`/pages/mall/detail?productId=${productId}&groupId=${groupId}`"
size="160"
/>
</view>
<!-- <view class="btn-box">
<text>分享二维码</text>
<text @click="onCode">保存到本地</text>
</view> -->
</view>
</view>
</view>
@@ -26,7 +50,7 @@
background-repeat: no-repeat;
.code-box {
padding-top: 20vh;
padding-top: 24vh;
display: flex;
justify-content: center;
@@ -40,15 +64,17 @@
justify-content: center;
align-items: center;
.code {
display: flex;
justify-content: center;
align-items: center;
width: 332rpx;
height: 332rpx;
background: rgb(202, 118, 118);
}
.btn-box {
margin-top: 60rpx;
width: 332rpx;
display: flex;
justify-content: space-between;
justify-content: center;
font-weight: bold;
font-size: 28rpx;
color: #ffffff;