1

parent f5b79bb6
<template> <template>
<div class="rating"> <div class="rating">
<div v-for="index in maxStars" :key="index" class="star" :style="{ fontSize: fontSize }"> <div v-for="index in maxStars" :key="index" class="star" :style="{ fontSize: size }">
<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',
}, },
fontSize: { size: {
type: String, type: String,
default: '30rpx', default: '30rpx',
}, },
......
...@@ -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);
......
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