Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
groupPurchase-miniapp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭佳妮(贵阳日报)
groupPurchase-miniapp
Commits
840c2c7d
Commit
840c2c7d
authored
Aug 05, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e3c1be13
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
foodClassification.vue
src/pages/index/foodClassification.vue
+3
-4
shop.vue
src/pages/shop/shop.vue
+5
-0
No files found.
src/pages/index/foodClassification.vue
View file @
840c2c7d
...
...
@@ -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
});
},
...
...
src/pages/shop/shop.vue
View file @
840c2c7d
...
...
@@ -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
;
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment