|
@@ -18,7 +18,7 @@ import {
|
|
|
} from '../../../core/libs/requests'
|
|
|
import { handleShareClick, handleUpvoteClick } from '../../../core/libs/actions'
|
|
|
import CommentItem from '../components/comment-item.vue'
|
|
|
-import { useUserStore } from '../../../store'
|
|
|
+import { useDictStore, useUserStore } from '../../../store'
|
|
|
import { storeToRefs } from 'pinia'
|
|
|
import { isImageOrVideo, requestToast } from '../../../core/utils/common'
|
|
|
import dayjs from 'dayjs'
|
|
@@ -32,11 +32,15 @@ import mpHtml from 'mp-html/dist/uni-app/components/mp-html/mp-html.vue'
|
|
|
import WdInput from 'wot-design-uni/components/wd-input/wd-input.vue'
|
|
|
import { getRect, addUnit } from 'wot-design-uni/components/common/util'
|
|
|
import Card from '@/components/card.vue'
|
|
|
+import { get } from 'radash'
|
|
|
+import { DictType } from '@/core/libs/models'
|
|
|
|
|
|
const { features } = usePermissions()
|
|
|
const userStore = useUserStore()
|
|
|
const { userInfo } = storeToRefs(userStore)
|
|
|
const router = useRouter()
|
|
|
+const dictStore = useDictStore()
|
|
|
+const { getOptionLabel } = dictStore
|
|
|
const id = ref()
|
|
|
const isShared = ref(false)
|
|
|
const commeentRef = ref<InstanceType<typeof WdInput>>()
|
|
@@ -214,10 +218,12 @@ onShareAppMessage(async ({ from, target }) => {
|
|
|
设计案例:{{ data?.caseName }}
|
|
|
</div>
|
|
|
<div class="mt-4 flex items-center justify-between text-black/40 text-sm">
|
|
|
- <div class="font-normal font-['PingFang_SC']">类别:{{ data.spaceType }}</div>
|
|
|
+ <div class="font-normal font-['PingFang_SC']">
|
|
|
+ 类别:{{ getOptionLabel(DictType.circleSpaceType, data?.spaceType) }}
|
|
|
+ </div>
|
|
|
|
|
|
|
<div class="text-black/40 text-sm font-normal font-['PingFang_SC']">
|
|
|
- 风格:{{ data.designStyle }}
|
|
|
+ 风格:{{ getOptionLabel(DictType.memberDesignStyle, data.designStyle) }}
|
|
|
</div>
|
|
|
|
|
|
|
<div class="text-black/40 text-sm font-normal font-['PingFang_SC']">
|