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
26f2a982
Commit
26f2a982
authored
Aug 06, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f5b79bb6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
21 deletions
+5
-21
Rating.vue
src/Components/Rating/Rating.vue
+3
-3
shop.vue
src/pages/shop/shop.vue
+2
-18
No files found.
src/Components/Rating/Rating.vue
View file @
26f2a982
<
template
>
<
template
>
<div
class=
"rating"
>
<div
class=
"rating"
>
<div
v-for=
"index in maxStars"
:key=
"index"
class=
"star"
:style=
"
{ fontSize:
fontS
ize }">
<div
v-for=
"index in maxStars"
:key=
"index"
class=
"star"
:style=
"
{ fontSize:
s
ize }">
<div
<div
class=
"filled"
class=
"filled"
:style=
"
{
:style=
"
{
...
@@ -29,9 +29,9 @@ export default {
...
@@ -29,9 +29,9 @@ export default {
},
},
color
:
{
color
:
{
type
:
String
,
type
:
String
,
default
:
'#
D44118
'
,
default
:
'#
FA5151
'
,
},
},
fontS
ize
:
{
s
ize
:
{
type
:
String
,
type
:
String
,
default
:
'30rpx'
,
default
:
'30rpx'
,
},
},
...
...
src/pages/shop/shop.vue
View file @
26f2a982
...
@@ -45,15 +45,7 @@
...
@@ -45,15 +45,7 @@
<text
class=
"tj"
>
推荐
</text>
<text
class=
"tj"
>
推荐
</text>
</view>
</view>
<view
class=
"score-icon"
>
<view
class=
"score-icon"
>
<!--
<wd-rate
<myRate
:score=
"shopInfo.grade"
/>
color=
"#fff"
readonly
v-model=
"shopInfo.grade"
size=
"22rpx"
space=
"8rpx"
:active-color=
"['#FA5151']"
/>
-->
<myRate
:score=
"grade"
/>
</view>
</view>
</view>
</view>
<view
class=
"shop-business-hours"
>
<view
class=
"shop-business-hours"
>
...
@@ -180,14 +172,7 @@
...
@@ -180,14 +172,7 @@
<text>
{{
item
.
nickName
}}
</text>
<text>
{{
item
.
nickName
}}
</text>
<view
class=
"u-pf"
>
<view
class=
"u-pf"
>
<text>
{{
item
.
descriptionMatches
}}
分
</text>
<text>
{{
item
.
descriptionMatches
}}
分
</text>
<wd-rate
<myRate
color=
"#FA5151"
:score=
"item.descriptionMatches"
/>
color=
"#fff"
readonly
v-model=
"item.descriptionMatches"
size=
"18rpx"
space=
"8rpx"
:active-color=
"['#FA5151']"
/>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -316,7 +301,6 @@ import {
...
@@ -316,7 +301,6 @@ import {
}
from
'@/utils/common'
;
}
from
'@/utils/common'
;
import
myRate
from
'@/Components/Rating/Rating.vue'
;
import
myRate
from
'@/Components/Rating/Rating.vue'
;
const
imgUrl
=
import
.
meta
.
env
.
VITE_APP_IMG_URL
;
const
imgUrl
=
import
.
meta
.
env
.
VITE_APP_IMG_URL
;
const
grade
=
ref
(
1.8
);
const
current
=
ref
(
0
);
const
current
=
ref
(
0
);
const
old
=
reactive
({
scrollTop
:
0
});
const
old
=
reactive
({
scrollTop
:
0
});
const
activeId
=
ref
(
1
);
const
activeId
=
ref
(
1
);
...
...
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