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
227368d3
Commit
227368d3
authored
Aug 07, 2024
by
陈宗胤(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页修改
parent
f679ea6a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
7 deletions
+27
-7
FoodDetails.vue
src/Components/index/FoodDetails.vue
+7
-4
index.vue
src/pages/index/index.vue
+3
-3
tool.js
src/utils/tool.js
+17
-0
No files found.
src/Components/index/FoodDetails.vue
View file @
227368d3
...
...
@@ -9,11 +9,11 @@
<text
class=
"three-text"
>
销量
{{
item
.
monthSoldNum
}}
</text>
<text
class=
"four-text"
>
1.2km
</text>
</view>
<view
class=
"threeBox"
>
<image
class=
"img2"
:src=
"item.evaluationVos[0]
?
.avatar"
mode=
"aspectFill"
/>
<text
class=
"one-text"
>
“
{{
item
.
evaluationVos
[
0
]
?
.
evaluation
}}
”
</text>
<view
class=
"threeBox"
v-if=
"item.evaluationVos.length === 0"
>
<image
class=
"img2"
:src=
"item.evaluationVos[0].avatar"
mode=
"aspectFill"
/>
<text
class=
"one-text"
>
“
{{
item
.
evaluationVos
[
0
].
evaluation
}}
”
</text>
</view>
<view
class=
"labelBox"
>
<view
class=
"labelBox"
v-if=
"item.labels"
>
<view
v-for=
"(item, index) in item.labels"
:key=
"index"
>
{{
item
}}
</view>
</view>
<view
class=
"groupPurchasePrice"
v-for=
"(item, index) in item.simpleProds"
:key=
"index"
>
...
...
@@ -171,6 +171,9 @@ const toShop = (id) => {
margin-left
:
4rpx
;
font-size
:
22rpx
;
color
:
#3d3d3d
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
}
}
...
...
src/pages/index/index.vue
View file @
227368d3
...
...
@@ -61,7 +61,7 @@
@
change=
"onChange"
customClass=
"guiyang"
height=
"68"
imageMode=
"
scaleTo
Fill"
imageMode=
"
aspect
Fill"
></wd-swiper>
<!-- 附近人气美食 -->
<view
class=
"nearby"
>
...
...
@@ -632,13 +632,13 @@ page {
}
.nearby
{
width
:
710rpx
;
height
:
380rpx
;
max-
height
:
380rpx
;
border-radius
:
16rpx
;
background
:
#ffffff
;
margin
:
0
auto
;
box-sizing
:
border-box
;
overflow
:
hidden
;
padding
-top
:
20rpx
;
padding
:
20rpx
0
;
.nearby-top
{
display
:
flex
;
justify-content
:
space-between
;
...
...
src/utils/tool.js
View file @
227368d3
...
...
@@ -16,3 +16,20 @@ export function timeConversion(diffInMilliseconds) {
return
`
${
days
}
天
${
hours
}
小时
${
minutes
}
分钟`
;
}
}
export
function
getLocation
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
xma
.
getLocation
({
type
:
'wgs84'
,
isHighAccuracy
:
true
,
success
:
function
(
res
)
{
// 经纬度
console
.
log
(
'res.latitude, res.longitude'
,
res
.
latitude
,
res
.
longitude
);
resolve
({
lat
:
res
.
latitude
,
lon
:
res
.
longitude
});
},
fail
:
function
(
err
)
{
return
err
;
},
});
});
}
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