Commit d96eff5e authored by 张娇(东信)'s avatar 张娇(东信)

详情页id

parent 572c51ae
...@@ -166,6 +166,8 @@ ...@@ -166,6 +166,8 @@
<script setup> <script setup>
import { ref } from 'vue'; import { ref } from 'vue';
import { useRoute } from 'vue-router';
import { onShow } from '@dcloudio/uni-app'; import { onShow } from '@dcloudio/uni-app';
import { import {
getProdDetail, getProdDetail,
...@@ -177,6 +179,7 @@ import { ...@@ -177,6 +179,7 @@ import {
receiveCoupon, receiveCoupon,
} from '@/api/packageDetail'; } from '@/api/packageDetail';
import fab from '../../../components/fab/fab.vue'; import fab from '../../../components/fab/fab.vue';
const router = useRoute();
const imgUrl = import.meta.env.VITE_APP_IMG_URL; const imgUrl = import.meta.env.VITE_APP_IMG_URL;
// 图片 // 图片
const swiperList = ref([ const swiperList = ref([
...@@ -215,7 +218,7 @@ function handleClick(e) { ...@@ -215,7 +218,7 @@ function handleClick(e) {
} }
function jumpPjPgae() { function jumpPjPgae() {
xma.navigateTo({ xma.navigateTo({
url: `/pages/assistingAgriculture/detail/comment?shopId=${dataDetails.value.prod.shopId}&prodId=${dataDetails.value.prodPresale.prodId}`, url: `/pages/assistingAgriculture/detail/comment?shopId=${dataDetails.value.prod.shopId}&prodId=${router.query.prodId}`,
}); });
} }
function onChange(e) { function onChange(e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment