XML 119 R91.htm IDEA: XBRL DOCUMENT
v3.21.4

Lease (Details) - CNY (¥) ¥ in Thousands | 6 Months Ended | 12 Months Ended
--- | --- | ---
Jun. 30, 2021 | Dec. 31, 2020 | Dec. 31, 2019 | Dec. 31, 2018
Lease (Details) [Line Items] |  |  |  |
Lease termination losses (in Yuan Renminbi) |  | ¥ 168,722 |  |
Minimum [Member] |  |  |  |
Lease (Details) [Line Items] |  |  |  |
Real estate leases | 2 years | 2 years |  |
Maximum [Member] |  |  |  |
Lease (Details) [Line Items] |  |  |  |
Real estate leases | 20 years | 20 years |  |

X
- References No definition available. + Details
Name: | uk_LeaseDetailsLineItems
Namespace Prefix: | uk_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Real estate leases term. + References No definition available. + Details
Name: | uk_RealEstateLeasesTerm
Namespace Prefix: | uk_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of gain (loss) on termination of lease before expiration of lease term. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 40 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=123386189&loc=SL77918607-209975 + Details
Name: | us-gaap_GainLossOnTerminationOfLease
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |