1

parent e3c1be13
...@@ -142,11 +142,8 @@ onLoad((option) => { ...@@ -142,11 +142,8 @@ onLoad((option) => {
pics.value = pic; pics.value = pic;
query(parentId); query(parentId);
prodSpecialFn(); prodSpecialFn();
});
onMounted(() => {
getLocationFn().then((res) => { getLocationFn().then((res) => {
const { lat, lon } = res; getMerchantList();
getMerchantList(lat, lon);
}); });
}); });
// distance参数来源 // distance参数来源
...@@ -313,6 +310,8 @@ function getLocationFn() { ...@@ -313,6 +310,8 @@ function getLocationFn() {
type: 'wgs84', type: 'wgs84',
isHighAccuracy: true, isHighAccuracy: true,
success: function (res) { success: function (res) {
params.value.lat = res.latitude;
params.value.lon = res.longitude;
// 经纬度 // 经纬度
resolve({ lat: res.latitude, lon: res.longitude }); resolve({ lat: res.latitude, lon: res.longitude });
}, },
......
...@@ -615,6 +615,10 @@ const giveTheThumbs = (item, index) => { ...@@ -615,6 +615,10 @@ const giveTheThumbs = (item, index) => {
* 查看全部评论 * 查看全部评论
*/ */
const viewAll = () => { const viewAll = () => {
xma.showLoading({
title: '加载中...',
mask: false,
});
getEvaluationPage({ getEvaluationPage({
current: 1, current: 1,
size: commentTotal.value, size: commentTotal.value,
...@@ -624,6 +628,7 @@ const viewAll = () => { ...@@ -624,6 +628,7 @@ const viewAll = () => {
commentList.value = res.data.records.map((item) => { commentList.value = res.data.records.map((item) => {
item.avatar = addImgUrlPrefix(imgUrl, item.avatar); item.avatar = addImgUrlPrefix(imgUrl, item.avatar);
item.images = addImgUrlPrefixToImages(imgUrl, item.images); item.images = addImgUrlPrefixToImages(imgUrl, item.images);
xma.hideLoading();
return item; return item;
}); });
} }
......
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