|
@@ -1,7 +1,6 @@
|
|
|
<template>
|
|
|
<view class="apply-item" @tap="tapItemHandle">
|
|
|
- <view class="apply-item-tag"
|
|
|
- :class="[`apply-item-tag${item.dealStatus??1}`]">{{statusText}}</view>
|
|
|
+ <view class="apply-item-tag" :class="[`apply-item-tag${item.dealStatus??1}`]">{{statusText}}</view>
|
|
|
<view class="flex-row">
|
|
|
<u-image class="apply-item-image1" width="51.2rpx" height="51.2rpx" bgColor="transparent"
|
|
|
src="@/pages/subpack/static/images/app/avatar-mini.png" />
|
|
@@ -29,8 +28,10 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
- import { computed } from 'vue'
|
|
|
-import {
|
|
|
+ import {
|
|
|
+ computed
|
|
|
+ } from 'vue'
|
|
|
+ import {
|
|
|
getDict
|
|
|
} from '@/common/status/index.js'
|
|
|
const emit = defineEmits(['tapItem'])
|
|
@@ -52,10 +53,14 @@ import {
|
|
|
const tapItemHandle = () => {
|
|
|
emit('tapItem', props.item)
|
|
|
}
|
|
|
- const statusText = computed(()=>{
|
|
|
- if(props.item.dealStatus === 'complete') return '已完成';
|
|
|
- let dict = getDict({dictValue: props.item.status, dictType: 'care_apply_status'});
|
|
|
- return dict.dictLabel??'空状态';
|
|
|
+ const statusText = computed(() => {
|
|
|
+ console.log('???', props.item);
|
|
|
+ if (props.item.dealStatus === 'complete') return '已完成';
|
|
|
+ let dict = getDict({
|
|
|
+ dictValue: props.item.status,
|
|
|
+ dictType: 'care_apply_status'
|
|
|
+ });
|
|
|
+ return dict.dictLabel ?? '空状态';
|
|
|
})
|
|
|
</script>
|
|
|
|
|
@@ -84,17 +89,20 @@ import {
|
|
|
border-radius: 0 20rpx 0 20rpx;
|
|
|
font-weight: 500;
|
|
|
}
|
|
|
+
|
|
|
&-tag1,
|
|
|
- &-tagno_start{
|
|
|
+ &-tagno_start {
|
|
|
background: linear-gradient(to right, #EFEFEF 0%, #EFEFEF 100%);
|
|
|
color: #888888;
|
|
|
}
|
|
|
+
|
|
|
&-tag2,
|
|
|
- &-tagin_progress{
|
|
|
+ &-tagin_progress {
|
|
|
background: linear-gradient(to right, #1677FF 0%, #5EA0FB 100%);
|
|
|
}
|
|
|
+
|
|
|
&-tag0,
|
|
|
- &-tagin_disagree{
|
|
|
+ &-tagin_disagree {
|
|
|
background: linear-gradient(to right, #fa3534 0%, #fa6355 100%);
|
|
|
}
|
|
|
|