PersonalInfoTab.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
  1. <template>
  2. <view class="personal-info-tab">
  3. <view class="user-form">
  4. <uni-row class="demo-uni-row">
  5. <!-- <uni-col :xs="24" :sm="24" :md="24" :lg="6" :xl="6">-->
  6. <!-- <view class="avatar-section">-->
  7. <!-- <cwg-input v-model:value="formData.idBackUrl" type="upload" fkey="idBackUrl"-->
  8. <!-- rulesKey="idBackUrl" :is-upload-d="true" accept="image/png, image/jpeg, image/jpg"-->
  9. <!-- :readonly="isReadonly" :disabled="isReadonly" @change="handleChange">-->
  10. <!-- <view class="cwg-upload">-->
  11. <!-- </view>-->
  12. <!-- </cwg-input>-->
  13. <!-- <view class="text name">{{ formData.firstName }} {{ formData.lastName }}</view>-->
  14. <!-- <view class="text cid">CID:{{ formData.cId }}</view>-->
  15. <!-- <view class="btn-primary" @click="handleEditProfile">-->
  16. <!-- <cwg-icon name="crm-photo-film" :size="16" color="#fff" />-->
  17. <!-- 上传头像-->
  18. <!-- </view>-->
  19. <!-- </view>-->
  20. <!-- </uni-col>-->
  21. <uni-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
  22. <uni-forms ref="baseForm" :model="formData" labelWidth="200" label-position="top" :rules="rules"
  23. class="base-info-form">
  24. <uni-row class="demo-uni-row uni-row1">
  25. <!-- cid -->
  26. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  27. <uni-forms-item :label="t('PersonalManagement.Label.UserCID')">
  28. <uni-easyinput :disabled="isInfo" :clearable="false" v-model:value="formData.cId" />
  29. </uni-forms-item>
  30. </uni-col>
  31. <!-- 客户类型 -->
  32. <uni-col v-if="formData.customType" :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  33. <uni-forms-item :label="t('ImproveImmediately.Label.CustomerType')">
  34. <cwg-combox :disabled="isInfo" :clearable="false" v-model:value="formData.customType"
  35. :options="customTypeOptions" :placeholder="t('placeholder.choose')" />
  36. </uni-forms-item>
  37. </uni-col>
  38. <!-- 公司名称 -->
  39. <uni-col v-if="formData.companyName" :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  40. <uni-forms-item :label="t('ImproveImmediately.Label.CompanyName')">
  41. <uni-easyinput :disabled="isInfo" :clearable="false" v-model="formData.companyName"
  42. :placeholder="t('placeholder.input')" />
  43. </uni-forms-item>
  44. </uni-col>
  45. <!-- 性别 -->
  46. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  47. <uni-forms-item :label="t('ImproveImmediately.Label.Gender')">
  48. <cwg-combox :disabled="isInfo" :clearable="false" v-model:value="formData.gender"
  49. :options="sexOptions"
  50. :placeholder="t('placeholder.choose')" />
  51. </uni-forms-item>
  52. </uni-col>
  53. <!-- 国家 -->
  54. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8" v-if="countryOptions.length">
  55. <uni-forms-item :label="t('ImproveImmediately.Label.Nationality')">
  56. <cwg-combox :disabled="isInfo" :clearable="false" :filterable="true"
  57. v-model:value="formData.nationality" :options="countryOptions"
  58. :placeholder="t('placeholder.choose')" @change="changeCountry" />
  59. </uni-forms-item>
  60. </uni-col>
  61. <!-- 姓 -->
  62. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  63. <uni-forms-item :label="formData.customType == 2
  64. ? t('ImproveImmediately.Label.CorporationLastName')
  65. : t('ImproveImmediately.Label.LastName')">
  66. <uni-easyinput :disabled="isInfo" :clearable="false" v-model="formData.lastName"
  67. :placeholder="t('placeholder.input')" />
  68. </uni-forms-item>
  69. </uni-col>
  70. <!-- 名 -->
  71. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  72. <uni-forms-item :label="formData.customType == 2
  73. ? t('ImproveImmediately.Label.CorporationName')
  74. : t('ImproveImmediately.Label.Name')">
  75. <uni-easyinput :disabled="isInfo" :clearable="false" v-model="formData.firstName"
  76. :placeholder="t('placeholder.input')" />
  77. </uni-forms-item>
  78. </uni-col>
  79. <!-- 法人中间名 -->
  80. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8" v-if="formData.lang == 'en'">
  81. <uni-forms-item :label="formData.customType == 2
  82. ? t('ImproveImmediately.Label.CorporationMName')
  83. : t('placeholder.middle')">
  84. <uni-easyinput :disabled="isInfo" :clearable="false" v-model="formData.middle"
  85. :placeholder="t('placeholder.Not')" />
  86. </uni-forms-item>
  87. </uni-col>
  88. <!-- 拼音 -->
  89. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8" v-if="formData.lang == 'cn'">
  90. <uni-forms-item :label="t('ImproveImmediately.Label.NamePinYin')">
  91. <uni-easyinput :disabled="isInfo" :clearable="false" v-model="formData.nameEn"
  92. :placeholder="t('placeholder.input')" />
  93. </uni-forms-item>
  94. </uni-col>
  95. <!-- 手机号 -->
  96. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  97. <uni-forms-item :label="t('PersonalManagement.Label.Phone')">
  98. <view style="display: flex; gap: 8px; width: 100%;">
  99. <view style="flex: 0 0 100px;">
  100. <uni-easyinput :disabled="isInfo" :clearable="false" v-model="formData.areaCode" :placeholder="t('placeholder.areaCode')" />
  101. </view>
  102. <view style="flex: 1;">
  103. <uni-easyinput :disabled="isInfo" :clearable="false" v-model="formData.phone" :placeholder="t('placeholder.input')" />
  104. </view>
  105. </view>
  106. </uni-forms-item>
  107. </uni-col>
  108. <!-- 邮箱 -->
  109. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  110. <uni-forms-item :label="t('PersonalManagement.Label.Email')">
  111. <uni-easyinput :disabled="isInfo" :clearable="false" v-model="formData.email"
  112. :placeholder="t('placeholder.input')" />
  113. </uni-forms-item>
  114. </uni-col>
  115. <!-- 证件号 -->
  116. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  117. <uni-forms-item :label="t('ImproveImmediately.Label.IdentityID')">
  118. <uni-easyinput :disabled="isInfo" :clearable="false" v-model="formData.identity" :placeholder="t('placeholder.input')" />
  119. </uni-forms-item>
  120. </uni-col>
  121. <!-- 生日 -->
  122. <!-- <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">-->
  123. <!-- <uni-forms-item :label="t('ImproveImmediately.Label.Birthday')">-->
  124. <!-- <uni-datetime-picker :disabled="isInfo" :clear-icon="false" type="date" return-type="timestamp"-->
  125. <!-- v-model="formData.birth" :placeholder="t('placeholder.choose')" />-->
  126. <!-- </uni-forms-item>-->
  127. <!-- </uni-col>-->
  128. <!-- 国家/地区 -->
  129. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8" v-if="countryOptions.length">
  130. <uni-forms-item :label="t('ImproveImmediately.Label.CountryRegionOfResidence')">
  131. <cwg-combox :disabled="isInfo" :clearable="false" :filterable="true" v-model:value="formData.country"
  132. :options="countryOptions" :placeholder="t('placeholder.choose')" />
  133. </uni-forms-item>
  134. </uni-col>
  135. <!-- 省份/州 -->
  136. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8"
  137. v-if="stateOptions.length">
  138. <uni-forms-item :label="t('ImproveImmediately.Label.ProvinceRegion')">
  139. <cwg-combox :disabled="isInfo" :clearable="false" :filterable="true" v-model:value="formData.state"
  140. :options="stateOptions" :placeholder="t('placeholder.choose')"
  141. @change="onStateChange" />
  142. </uni-forms-item>
  143. </uni-col>
  144. <!-- 城市 -->
  145. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8"
  146. v-if="cityOptions.length">
  147. <uni-forms-item :label="t('ImproveImmediately.Label.City')">
  148. <cwg-combox :disabled="isInfo" :clearable="false" :filterable="true" v-model:value="formData.city"
  149. :options="cityOptions" :placeholder="t('placeholder.choose')" />
  150. </uni-forms-item>
  151. </uni-col>
  152. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  153. <uni-forms-item :label="t('ImproveImmediately.Label.DetailedAddress')">
  154. <uni-easyinput :disabled="isInfo" :clearable="false" v-model="formData.addressLines1"
  155. :placeholder="t('placeholder.input')" />
  156. </uni-forms-item>
  157. </uni-col>
  158. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  159. <uni-forms-item :label="t('ImproveImmediately.Label.ZipCode')">
  160. <uni-easyinput :disabled="isInfo" :clearable="false" v-model="formData.zipCode"
  161. :placeholder="t('placeholder.input')" />
  162. </uni-forms-item>
  163. </uni-col>
  164. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  165. <uni-forms-item :label="t('ImproveImmediately.Label.DetailedAddressStandby')">
  166. <uni-easyinput :disabled="isInfo" :clearable="false" v-model="formData.addressLines2"
  167. :placeholder="t('placeholder.input')" />
  168. </uni-forms-item>
  169. </uni-col>
  170. </uni-row>
  171. </uni-forms>
  172. </uni-col>
  173. </uni-row>
  174. </view>
  175. </view>
  176. </template>
  177. <script setup lang="ts">
  178. import { ref, computed, onMounted } from 'vue'
  179. import { useI18n } from 'vue-i18n'
  180. import { personalApi } from '@/service/personal'
  181. import { Patterns, Validators } from '@/utils/validators'
  182. const { t, locale } = useI18n()
  183. interface PersonalInfo {
  184. merchantOrderNo?: string;
  185. cardTypeId?: string;
  186. areaCode?: string;
  187. mobile?: string;
  188. email?: string;
  189. firstName?: string;
  190. lastName?: string;
  191. middle?: string;
  192. birthday?: string;
  193. nationality?: string;
  194. country?: string;
  195. state?: string;
  196. city?: string;
  197. town?: string;
  198. address?: string;
  199. postCode?: string;
  200. gender?: number;
  201. occupation?: string;
  202. annualSalary?: string;
  203. accountPurpose?: string;
  204. expectedMonthlyVolume?: string;
  205. idType?: number;
  206. idNumber?: string;
  207. identity?: string;
  208. ssn?: string;
  209. issueDate?: string;
  210. idNoExpiryDate?: string;
  211. idFrontUrl?: string;
  212. idBackUrl?: string;
  213. idHoldUrl?: string;
  214. ipAddress?: string;
  215. cId?: string;
  216. customId?: string;
  217. customType?: number;
  218. companyName?: string;
  219. nameEn?: string;
  220. birth?: string;
  221. addressLines1?: string;
  222. addressLines2?: string;
  223. zipCode?: string;
  224. photoStatus?: string;
  225. kycStatus?: string;
  226. }
  227. const props = defineProps<{
  228. modelValue: PersonalInfo;
  229. isReadonly?: boolean;
  230. }>()
  231. const emit = defineEmits<{
  232. 'update:modelValue': [value: PersonalInfo];
  233. 'cancel': [];
  234. 'next': [];
  235. }>()
  236. const formData = computed({
  237. get: () => props.modelValue,
  238. set: (val) => emit('update:modelValue', val),
  239. })
  240. const baseForm = ref<any>(null)
  241. const sexOptions = ref([
  242. { text: t('PersonalManagement.Label.Men'), value: 1 },
  243. { text: t('PersonalManagement.Label.Women'), value: 2 },
  244. ])
  245. const customTypeOptions = ref([
  246. { text: t('ImproveImmediately.Label.CustomerType1'), value: 1 },
  247. { text: t('ImproveImmediately.Label.CustomerType2'), value: 2 },
  248. ])
  249. const idTypeOptions = ref([
  250. { text: t('ImproveImmediately.Label.IDCard'), value: 2 },
  251. { text: t('ImproveImmediately.Label.Passport'), value: 3 },
  252. ])
  253. // 验证函数
  254. function validateName(a: any, b?: any, c?: any) {
  255. const reg = /^[A-Z\s]+$/i
  256. if (typeof c === 'function') {
  257. const value = b
  258. const callback = c
  259. const val = String(value ?? '').trim()
  260. if (!val) return callback(new Error(t('card.vaildate.v4')))
  261. if (!reg.test(val)) return callback(new Error(t('card.vaildate.v38')))
  262. if (val.length < 2 || val.length > 23) return callback(new Error(t('card.vaildate.v39')))
  263. const firstName = String(formData.value?.firstName ?? '').trim()
  264. const lastName = String(formData.value?.lastName ?? '').trim()
  265. if (`${firstName} ${lastName}`.length > 23) return callback(new Error(t('card.vaildate.v40')))
  266. return callback()
  267. }
  268. const val = String(a ?? '').trim()
  269. if (!val) return t('card.vaildate.v4')
  270. if (!reg.test(val)) return t('card.vaildate.v38')
  271. if (val.length < 2 || val.length > 23) return t('card.vaildate.v39')
  272. const firstName = String(formData.value?.firstName ?? '').trim()
  273. const lastName = String(formData.value?.lastName ?? '').trim()
  274. if (`${firstName} ${lastName}`.length > 23) return t('card.vaildate.v40')
  275. return true
  276. }
  277. function validateBirthday(a: any, b?: any, c?: any) {
  278. if (typeof c === 'function') {
  279. const value = b
  280. const callback = c
  281. const val = value
  282. if (!val) return callback(new Error(t('card.vaildate.v5')))
  283. const today = new Date()
  284. const birthDate = new Date(val)
  285. let age = today.getFullYear() - birthDate.getFullYear()
  286. const month = today.getMonth() - birthDate.getMonth()
  287. if (month < 0 || (month === 0 && today.getDate() < birthDate.getDate())) age--
  288. if (age < 18) return callback(new Error(t('card.New.n3')))
  289. return callback()
  290. }
  291. const val = a
  292. if (!val) return t('card.vaildate.v5')
  293. const today = new Date()
  294. const birthDate = new Date(val)
  295. let age = today.getFullYear() - birthDate.getFullYear()
  296. const month = today.getMonth() - birthDate.getMonth()
  297. if (month < 0 || (month === 0 && today.getDate() < birthDate.getDate())) age--
  298. return age < 18 ? t('card.New.n3') : true
  299. }
  300. function validateAddress(a: any, b?: any, c?: any) {
  301. if (typeof c === 'function') {
  302. const value = b
  303. const callback = c
  304. const val = String(value ?? '').trim()
  305. if (!val) return callback(new Error(t('card.vaildate.v27')))
  306. if (val.length < 2 || val.length > 40) return callback(new Error(t('card.New.n1')))
  307. if (!Patterns.address.test(val)) return callback(new Error(t('card.New.n1')))
  308. return callback()
  309. }
  310. const val = String(a ?? '').trim()
  311. if (!val) return t('card.vaildate.v27')
  312. if (val.length < 2 || val.length > 40) return t('card.New.n1')
  313. return Patterns.address.test(val) ? true : t('card.New.n1')
  314. }
  315. const rules = {
  316. areaCode: [Validators.required(t('card.vaildate.v1'))],
  317. mobile: [
  318. Validators.required(t('card.vaildate.v2')),
  319. Validators.pattern(Patterns.mobile, t('card.vaildate.v44')),
  320. ],
  321. email: [
  322. Validators.required(t('card.vaildate.v28')),
  323. Validators.pattern(Patterns.email, t('card.vaildate.v28')),
  324. ],
  325. firstName: [Validators.required(t('card.vaildate.v3')), Validators.custom(validateName)],
  326. lastName: [Validators.required(t('card.vaildate.v4')), Validators.custom(validateName)],
  327. birthday: [
  328. Validators.required(t('card.vaildate.v5'), 'change'),
  329. Validators.custom(validateBirthday, 'change'),
  330. ],
  331. nationality: [Validators.required(t('card.vaildate.v6'), 'change')],
  332. town: [Validators.required(t('card.vaildate.v7'), 'change')],
  333. address: [Validators.required(t('card.vaildate.v27')), Validators.custom(validateAddress)],
  334. gender: [Validators.required(t('card.vaildate.v9'), 'change')],
  335. postCode: [
  336. Validators.required(t('card.vaildate.v8')),
  337. Validators.pattern(Patterns.postcode, t('card.New.n2')),
  338. ],
  339. }
  340. // 国家省份城市数据
  341. const countryList = ref<Array<any>>([])
  342. const stateList = ref<Array<any>>([])
  343. const cityList = ref<Array<any>>([])
  344. const phoneCodes = ref<Array<{ text: string; value: string }>>([])
  345. const isInfo = ref<boolean>(true)
  346. const isZh = computed(() => ['cn', 'zh', 'zhHant'].includes(locale.value))
  347. const isCountryCN = computed(() => ['CN', 'CNX', 'CNA', 'CNT'].includes(formData.value.country || ''))
  348. const getLangName = (item: any) => (isZh.value ? item.name : item.enName)
  349. const createOptions = (list: any[], valueKey = 'code') => {
  350. return list.map((item) => ({
  351. text: getLangName(item),
  352. value: valueKey === 'name' ? getLangName(item) : item[valueKey],
  353. id: item.id,
  354. }))
  355. }
  356. const countryOptions = computed(() => createOptions(countryList.value, 'code'))
  357. const stateOptions = computed(() => createOptions(stateList.value, 'name'))
  358. const cityOptions = computed(() => createOptions(cityList.value, 'name'))
  359. const getCountry = async () => {
  360. const res = await personalApi.Country({})
  361. if (res.code === 200) {
  362. countryList.value = res.data
  363. phoneCodes.value = res.data.map((item: any) => ({
  364. text: `+ ${item.callingCode}`,
  365. value: item.callingCode,
  366. }))
  367. if (formData.value.country) {
  368. const country = countryList.value.find((i) => i.code === formData.value.country)
  369. if (country) {
  370. await getState(country.id)
  371. }
  372. }
  373. }
  374. }
  375. const fetchRegion = async (pid?: number) => {
  376. const res = await personalApi.Country({ pid })
  377. if (res.code !== 200) {
  378. return []
  379. }
  380. return res.data || []
  381. }
  382. const getState = async (pid: number) => {
  383. stateList.value = await fetchRegion(pid)
  384. if (formData.value.state) {
  385. const item = stateList.value.find(
  386. (i) => i.enName === formData.value.state || i.name === formData.value.state,
  387. )
  388. if (item) {
  389. await getCity(item.id)
  390. }
  391. }
  392. }
  393. const getCity = async (pid: number) => {
  394. cityList.value = await fetchRegion(pid)
  395. }
  396. const changeCountry = async (val: any) => {
  397. formData.value.state = ''
  398. formData.value.city = ''
  399. const item = countryOptions.value.find((i: any) => i.value === val)
  400. if (item) {
  401. await getState(item.id)
  402. }
  403. }
  404. const onStateChange = async (val: any) => {
  405. formData.value.city = ''
  406. const item = stateOptions.value.find((i: any) => i.value === val)
  407. if (item) {
  408. await getCity(item.id)
  409. }
  410. }
  411. function handleChange(value: any) {
  412. emit('update:modelValue', { ...formData.value, [value.key]: value.value })
  413. }
  414. const handleEditProfile = () => {
  415. // 头像上传逻辑
  416. }
  417. const handleCancel = () => {
  418. emit('cancel')
  419. }
  420. const handleNext = () => {
  421. emit('next')
  422. }
  423. onMounted(() => {
  424. getCountry()
  425. })
  426. </script>
  427. <style scoped lang="scss">
  428. @import "@/uni.scss";
  429. .personal-info-tab {
  430. .user-form {
  431. margin-top: px2rpx(30);
  432. .demo-uni-row {
  433. margin-bottom: px2rpx(16);
  434. :deep(.form-label) {
  435. margin: 0 !important;
  436. }
  437. :deep(.form-input) {
  438. border: none !important;
  439. }
  440. .avatar-section {
  441. display: flex;
  442. flex-direction: column;
  443. align-items: center;
  444. gap: px2rpx(12);
  445. padding: px2rpx(16);
  446. .cwg-upload {
  447. width: px2rpx(120);
  448. height: px2rpx(120);
  449. border-radius: 50%;
  450. margin: 0 auto;
  451. }
  452. .text {
  453. font-size: px2rpx(20);
  454. font-weight: 700;
  455. color: var(--color-navy-900);
  456. }
  457. .btn-primary {
  458. min-width: px2rpx(120);
  459. background-color: var(--color-navy-900);
  460. color: white;
  461. padding: px2rpx(12);
  462. border: none;
  463. font-size: px2rpx(14);
  464. text-align: center;
  465. cursor: pointer;
  466. display: flex;
  467. align-items: center;
  468. justify-content: center;
  469. gap: px2rpx(8);
  470. &:active {
  471. background-color: var(--color-navy-700);
  472. }
  473. }
  474. .cid {
  475. color: var(--color-error);
  476. font-size: px2rpx(12);
  477. margin-top: px2rpx(4);
  478. }
  479. }
  480. }
  481. }
  482. .btns {
  483. display: flex;
  484. justify-content: flex-end;
  485. gap: 30px;
  486. margin-top: 30px;
  487. .btn-primary {
  488. min-width: px2rpx(120);
  489. background-color: var(--color-navy-900);
  490. color: white;
  491. padding: 12px;
  492. border-radius: 8px;
  493. border: none;
  494. font-size: 14px;
  495. text-align: center;
  496. cursor: pointer;
  497. display: flex;
  498. align-items: center;
  499. justify-content: center;
  500. gap: 8px;
  501. &:active {
  502. background-color: var(--color-navy-700);
  503. }
  504. }
  505. }
  506. }
  507. :deep(.uni-row1) {
  508. .uni-col {
  509. padding: 0 10px !important;
  510. }
  511. .base-info-form > span {
  512. display: contents;
  513. }
  514. .uni-forms-item {
  515. min-height: px2rpx(79);
  516. margin-bottom: px2rpx(10);
  517. }
  518. .uni-select,
  519. .uni-combox,
  520. .uni-easyinput__content,
  521. .uni-date-editor--x {
  522. border: none !important;
  523. background-color: var(--color-zinc-100) !important;
  524. }
  525. .uni-date-x {
  526. border: none !important;
  527. background-color: rgba(195, 195, 195, 0) !important;
  528. }
  529. }
  530. </style>