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

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

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