sl-express/project-wl-kuaidiyuan-uniapp-vue3/pages/my/commponents/Evaluate.vue

46 lines
1.2 KiB
Vue
Raw Normal View History

2023-09-04 16:40:17 +08:00
<template>
<view class="boxBg headTop">
<view class="headItem">
<view class="item">
<text>我的评价</text>
<view class="star">
<uni-rate
:readonly="true"
allow-half
:value="4.5"
active-color="#EF4F3F"
color="#F4F4F4"
/>
<text>{{ 4.5 }}</text>
</view>
</view>
<view class="item">
<text>排班时间</text>
<text
v-if="
(!baseData.startTime || baseData.startTime === '') &&
(!baseData.endTime || baseData.endTime === '')
"
></text
>
<text v-else
>{{ overTimeFormat(baseData.startTime) }}-{{
overTimeFormat(baseData.endTime)
}}</text
>
</view>
</view>
</view>
</template>
<script setup>
// 时间处理
import { overTimeFormat } from "@/utils/index.js";
// 获取父组件数据
const props = defineProps({
baseData: {
type: Object,
default: () => ({}),
},
});
</script>
<style src="./../index.scss" lang="scss" scoped></style>