1

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