Commit c1fe0f25 authored by 周俊涛(东信)'s avatar 周俊涛(东信)

解决评论列表测试数据问题

parent 39d21d4a
......@@ -591,14 +591,14 @@ function back() {
function toCommentDetail() {
// TODO: 跳转到评论详情页
xma.navigateTo({
url: '/pages/assistingAgriculture/commentList/index',
url: `/pages/assistingAgriculture/commentList/index?shopId=${shopIds.value}&prodId=${prodIds.value}`,
});
}
// 跳转用户相册
function toAlbum() {
// TODO: 跳转到评论详情页
xma.navigateTo({
url: '/pages/assistingAgriculture/album/index',
url: `/pages/assistingAgriculture/album/index?shopId=${shopIds.value}&prodId=${prodIds.value}`,
});
}
</script>
......
......@@ -60,12 +60,9 @@ const filterList = [
},
];
const photoData = ref([]);
const params = {
prodId: '43828',
shopId: '1818876196597334017',
};
onLoad(() => {
getPhotoFn();
onLoad(({ prodId, shopId }) => {
getPhotoFn({ prodId, shopId });
});
// const scrolltolower = () => {
// console.log('触底加载触底加载触底加载');
......@@ -76,7 +73,7 @@ onLoad(() => {
// }
// show.value = true;
// };
const getPhotoFn = () => {
const getPhotoFn = (params) => {
getPhoto(params).then((res) => {
res.data.forEach((v) => {
if (v.images) {
......
......@@ -89,8 +89,8 @@ const imgUrl = import.meta.env.VITE_APP_IMG_URL;
const tagList = ref([]);
const commentData = ref([]);
const commentParameters = {
shopId: '1818876196597334017',
prodId: '43828',
shopId: '',
prodId: '',
current: 1,
size: 10,
};
......@@ -99,7 +99,9 @@ let total;
const select = ref(-1);
const topData = ref({});
onLoad((options) => {
onLoad(({ prodId, shopId }) => {
commentParameters.prodId = prodId;
commentParameters.shopId = shopId;
getEvalStatisFn();
getCommentListFn();
});
......
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