You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

628 lines
22 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div class="editPersonalInfo xl:tw-max-w-[1246px] xl:tw-mx-auto">
  3. <div class="xl:tw-flex xl:tw-justify-between xl:tw-items-start">
  4. <userSidebar :userData="userData" :firstName="firstName" :lastName="lastName" class="tw-hidden xl:tw-block">
  5. </userSidebar>
  6. <div class="tw-bg-white xl:tw-p-[30px] xl:tw-rounded-[20px] xl:tw-min-w-[900px] xl:tw-max-w-[900px]">
  7. <div class="tw-text-[20px] tw-font-bold tw-text-base-primary tw-mb-[20px] md:t24 md:tw-mb-[30px]">
  8. <two-dots class="tw-mr-[30px]"></two-dots>{{ $t("userProfile.editPersonalInfo") }}
  9. </div>
  10. <!-- alert -->
  11. <div v-if="successUpdate" class="tw-flex tw-w-full tw-right-auto tw-left-auto">
  12. <div type="success"
  13. class="tw-absolute tw-top-0 tw-right-0 tw-left-0 tw-mx-auto tw-flex tw-flex-row tw-w-fit tw-items-center tw-bg-success-background tw-rounded-[12px] tw-px-[12px] tw-py-[10px]">
  14. <img src="~/assets/svg/alert_success.svg" class="tw-w-[16px] tw-mr-[10px] md:tw-w-[20px]" alt="" />
  15. <div class="tw-hidden md:tw-block tw-text-success-default tw-font-bold tw-text-[16px] md:tw-mr-[16px]">
  16. Awesome!
  17. </div>
  18. <div class="tw-text-[12px] tw-text-success-default tw-mr-[9px] md:tw-text-[16px] md:tw-mr-[16px]">
  19. Successfully updated.
  20. </div>
  21. <img src="~/assets/svg/alert_close.svg" @click="successUpdate = !successUpdate" />
  22. </div>
  23. </div>
  24. <div v-if="fileTooBig" class="tw-flex tw-w-full tw-right-auto tw-left-auto">
  25. <div type="error"
  26. class="tw-absolute tw-top-0 tw-right-0 tw-left-0 tw-mx-auto tw-flex tw-flex-row tw-w-fit tw-items-center tw-bg-error-background tw-rounded-[16px] tw-px-[12px] tw-py-[10px] tw-text-[12px]">
  27. <img src="~/assets/svg/alert_notice.svg" class="tw-w-[16px] tw-mr-[10px] md:tw-w-[20px]" alt="" />
  28. <div class="tw-hidden md:tw-block tw-text-error-default tw-mr-[25px] tw-text-[16px]">
  29. Oops!
  30. </div>
  31. <div class="tw-text-error-default tw-mr-[8px] md:tw-text-[16px] md:tw-mr-[16px]">
  32. Please upload an image under 2MB.
  33. </div>
  34. <img src="~/assets/svg/alert_close_red.svg" @click="fileTooBig = !fileTooBig" alt="" />
  35. </div>
  36. </div>
  37. <!-- user picture -->
  38. <div class="tw-flex tw-items-center tw-mb-[30px]">
  39. <div>
  40. <img v-if="userData.MemberPicture" :src="userData.MemberPicture"
  41. class="tw-border tw-border-solid tw-border-neutral-300 tw-h-[64px] tw-w-[64px] tw-rounded-[50px] tw-mr-[15px] md:tw-h-[90px] md:tw-w-[90px] md:tw-mr-[30px]"
  42. alt="" />
  43. <div v-else
  44. class="tw-flex tw-justify-center tw-items-center tw-bg-primary-1 tw-text-white tw-text-[32px] tw-h-[64px] tw-w-[64px] tw-rounded-[50px] tw-mr-[15px] md:tw-h-[90px] md:tw-w-[90px] md:tw-mr-[30px]">
  45. {{ lastName.split("")[0] || "" }}
  46. </div>
  47. </div>
  48. <div>
  49. <button
  50. class="tw-border tw-border-solid tw-border-primary-1 tw-text-[14px] tw-text-primary-1 tw-px-[16px] tw-py-[9px] tw-rounded-[12px] md:tw-text-[16px]"
  51. @click="handleUploadEvent">
  52. {{ $t("userProfile.uploadPicture") }}
  53. </button>
  54. <input type="file" class="d-none" ref="uploader" @change="getNewPicture($event)" />
  55. <!-- <input type="file" class="d-none" ref="uploader" @change="userPictureUpload" /> -->
  56. </div>
  57. </div>
  58. <!-- form -->
  59. <form
  60. class="tw-grid tw-grid-cols-1 tw-gap-y-[20px] tw-mb-[58px] md:tw-grid-cols-2 md:tw-gap-x-[60px] md:tw-mb-[50px]">
  61. <!-- tilte -->
  62. <div class="element md:tw-col-span-2 md:tw-max-w-[394px]">
  63. <div class="tw-text-[14px] tw-text-base-primary tw-mb-[10px]">
  64. {{ $t("userProfile.Title") }}
  65. </div>
  66. <elementSelectWithIndex :select="{
  67. id: 'Title',
  68. label: 'Title',
  69. required: false,
  70. }" :yearList="genderOptions" :default="userData.Title" :value="genderOptions[0]" :validation="validation.Title"
  71. @change="userData.Title = $event"></elementSelectWithIndex>
  72. </div>
  73. <!-- firstName -->
  74. <div class="element">
  75. <elementInput :input="{
  76. id: 'FirstName',
  77. label: 'First Name',
  78. required: true,
  79. type: 'text',
  80. }" :default="userData.FirstName" :validation="validation.FirstName"
  81. @change="userData.FirstName = $event"></elementInput>
  82. </div>
  83. <!-- lastName -->
  84. <div class="element">
  85. <elementInput :input="{
  86. id: 'LastName',
  87. label: 'Last Name',
  88. required: true,
  89. type: 'text',
  90. }" :default="userData.LastName" :validation="validation.LastName" @change="userData.LastName = $event">
  91. </elementInput>
  92. </div>
  93. <!-- email -->
  94. <div class="element">
  95. <elementInput :input="{
  96. id: 'Email',
  97. label: 'userProfile.personalMail',
  98. required: true,
  99. type: 'email',
  100. }" :default="userData.Email" :validation="validation.Email" @change="userData.Email = $event">
  101. </elementInput>
  102. </div>
  103. <!-- Phone -->
  104. <div>
  105. <div class="tw-text-[14px] tw-text-base-primary tw-mb-[10px]">
  106. {{ $t("userProfile.phone") }}
  107. </div>
  108. <div class="tw-grid tw-grid-cols-[120px_auto] tw-gap-[5px]">
  109. <elementCountryCodeSelect :select="{
  110. required: true,
  111. }" :userCodeSelect="codeSelect" :validation="validation.codeSelect" @returnCode = "getReturnCode"></elementCountryCodeSelect>
  112. <!-- <vue-country-code class="d-none" v-model="countryCode" enabldCountryCode :enabledFlags="false"
  113. @onSelect="showCode"></vue-country-code> -->
  114. <vue-phone-number-input v-model="userData.Phone" :validation="validation.PhoneNo" color="#E5e5e5" error-color="#ef5a5a"
  115. valid-color="#e5e5e5"
  116. :error="error" :border-radius="5"
  117. no-flags :no-country-selector="true" no-example @update="getPhoneData" :translations="translateOption">
  118. </vue-phone-number-input>
  119. </div>
  120. </div>
  121. <!-- Birthday -->
  122. <div class="md:tw-col-span-2 xl:tw-col-span-1">
  123. <div class="tw-text-[14px] tw-text-base-primary tw-mb-[10px]">
  124. {{ $t("userProfile.birthday")
  125. }}<span class="tw-text-error-default">*</span>
  126. </div>
  127. <div class="tw-grid tw-grid-cols-3 tw-gap-[20px]">
  128. <div class="element">
  129. <elementSelectWithIndex :select="{
  130. id: 'yearSelect',
  131. required: true,
  132. }" :yearList="yearOptions" :default="yearSelect" :validation="validation.yearSelect"
  133. @change="yearSelect = $event"></elementSelectWithIndex>
  134. </div>
  135. <div class="element">
  136. <elementSelectWithIndex :select="{
  137. id: 'monthSelect',
  138. required: false,
  139. }" :yearList="monthOptions" :default="monthSelect" :validation="validation.monthSelect"
  140. @change="monthSelect = $event"></elementSelectWithIndex>
  141. </div>
  142. <div class="element">
  143. <elementSelectWithIndex :select="{
  144. id: 'daySelect',
  145. required: false,
  146. }" :yearList="dayOptions" :default="daySelect" :validation="validation.daySelect"
  147. @change="daySelect = $event"></elementSelectWithIndex>
  148. </div>
  149. </div>
  150. </div>
  151. <!-- Country -->
  152. <div class="element md:tw-col-span-2 xl:tw-col-span-1">
  153. <elementSelect :select="{
  154. id: 'Country',
  155. label: 'userProfile.countryAndRegion',
  156. required: true,
  157. }" :selectList="countryOptions" :default="userData.CountryID" :validation="validation.CountryID"
  158. @change="userData.CountryID = $event"></elementSelect>
  159. </div>
  160. <!-- language -->
  161. <v-spacer class="tw-items-center md:tw-flex md:tw-justify-start md:tw-mt-[20px] md:tw-flex-nowrap">
  162. <div class="tw-inline-block tw-mb-[20px] md:tw-whitespace-nowrap md:tw-mb-0">
  163. {{ $t("userProfile.preferLanguage") }}
  164. </div>
  165. <v-spacer class="tw-flex md:tw-w-fit md:tw-ml-[30px]">
  166. <v-checkbox v-model="languageSelect.en" class="mt-0" hide-details :label="$t('English')"></v-checkbox>
  167. <v-checkbox v-model="languageSelect.zhtw" class="ms-10 mt-0" hide-details :label="$t('Chinese')">
  168. </v-checkbox>
  169. </v-spacer>
  170. </v-spacer>
  171. </form>
  172. <!-- button -->
  173. <div>
  174. <button
  175. class="tw-text-[18px] tw-bg-primary-1 tw-text-white tw-py-[12px] tw-w-full tw-rounded-[16px] tw-mb-[10px] md:tw-w-fit md:tw-px-[16px] md:tw-mr-[20px]"
  176. @click="patchUserData()">
  177. {{ $t("userProfile.saveButton") }}
  178. </button>
  179. <button
  180. class="tw-text-[18px] tw-bg-white tw-text-primary-1 tw-py-[12px] tw-w-full tw-rounded-[16px] md:tw-w-fit md:tw-px-[16px] xl:tw-hidden">
  181. {{ $t("Cancel") }}
  182. </button>
  183. </div>
  184. </div>
  185. </div>
  186. <CropImageDialog :isCropImageDialogActive="isCropImageDialogActive" :cropImagePreview="cropImagePreview"
  187. @close-crop-dialog="closeCropDialog" @upload-image-success="userPictureUpload"></CropImageDialog>
  188. <loading :isLoading="isPageLoading"></loading>
  189. </div>
  190. </template>
  191. <script>
  192. import elementSelect from "@/components/newComponent/form/ElementSelect.vue";
  193. import elementInput from "@/components/newComponent/form/ElementInput.vue";
  194. import SavedExhibitions from "../../components/user/savedExhibitions.vue";
  195. import SavedExhibitionsDialog from "../../components/user/savedExhibitionsDialog.vue";
  196. import CropImageDialog from "../../components/user/cropImageDialog.vue";
  197. import TwoDots from "@/components/TwoDots";
  198. import userSidebar from "@/components/user/userSidebar.vue";
  199. import elementSelectWithIndex from "@/components/newComponent/form/ElementSelectWithIndex.vue";
  200. import elementCountryCodeSelect from "@/components/newComponent/form/ElementCountryCodeSelect.vue";
  201. import loading from "@/components/newComponent/loading/loading.vue";
  202. import is from "is_js";
  203. export default {
  204. name: "editPersonalInfo",
  205. layout: "profile",
  206. components: {
  207. elementSelect,
  208. elementInput,
  209. SavedExhibitions,
  210. SavedExhibitionsDialog,
  211. CropImageDialog,
  212. TwoDots,
  213. userSidebar,
  214. elementSelectWithIndex,
  215. is,
  216. elementCountryCodeSelect,
  217. loading,
  218. },
  219. data() {
  220. return {
  221. countryList: [],
  222. genderOptions: ["Mr.", "Ms."],
  223. successUpdate: false,
  224. fileTooBig: false,
  225. firstName: "",
  226. lastName: "",
  227. countryCode: "",
  228. userData: {},
  229. userCompanyId: [],
  230. propUserCompany: {},
  231. yearOptions: [],
  232. monthOptions: [],
  233. dayOptions: [],
  234. countryOptions: [],
  235. countrySortOptions: [],
  236. yearSelect: "",
  237. monthSelect: "",
  238. daySelect: "",
  239. languageSelect: {
  240. en: "",
  241. zhtw: "",
  242. },
  243. isCropImageDialogActive: false,
  244. cropImagePreview: "",
  245. dateMenu: false,
  246. translateOption: {
  247. countrySelectorLabel: this.$t("country code"),
  248. phoneNumberLabel: this.$t("phone number"),
  249. },
  250. rules: {
  251. require: (value) => !!value || this.$t("Required."),
  252. email: (v) =>
  253. /^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$/.test(
  254. v
  255. ) || this.$t("Invalid email"),
  256. checkPassword: (v) =>
  257. (/(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])/.test(v) &&
  258. v.length >= 8 &&
  259. v.length <= 20) ||
  260. this.$t(
  261. "Passwords must be 8-20 characters with at least 1 number, 1 lower case letter and 1 upper case letter"
  262. ),
  263. },
  264. personalInfoValid: false,
  265. phoneValid: false,
  266. isNavActive: true,
  267. // width: 0,
  268. validation: {
  269. Title: true,
  270. FirstName: true,
  271. LastName: true,
  272. Email: true,
  273. yearSelect: true,
  274. monthSelect: true,
  275. daySelect: true,
  276. CountryID: true,
  277. codeSelect: true,
  278. PhoneNo: true,
  279. },
  280. errors: null,
  281. userPic: {},
  282. payload:[],
  283. dialCode:"",
  284. test:[],
  285. codeSelect: "",
  286. error: false,
  287. isPageLoading: false,
  288. value: "0",
  289. };
  290. },
  291. created() {
  292. this.isPageLoading = true;
  293. this.fetchCountry();
  294. this.$store.dispatch("updatePicture");
  295. this.fetchUserData();
  296. this.isPageLoading = false;
  297. },
  298. mounted() {
  299. this.yearOptions = Array.from(new Array(103), (val, index) =>
  300. (index + 1920).toString()
  301. );
  302. console.log(this.yearOptions);
  303. this.monthOptions = Array.from(new Array(13), (val, index) => {
  304. if (index < 10 && index > 0) {
  305. return "0" + index.toString();
  306. }
  307. if (index >= 10) {
  308. return index.toString();
  309. }
  310. });
  311. this.dayOptions = Array.from(new Array(32), (val, index) => {
  312. if (index < 10 && index > 0) {
  313. return "0" + index.toString();
  314. }
  315. if (index >= 10) {
  316. return index.toString();
  317. }
  318. });
  319. this.$nextTick(() => {
  320. window.addEventListener("resize", this.onResize);
  321. });
  322. },
  323. methods: {
  324. getReturnCode(code){
  325. this.userData.PhoneCode = code;
  326. },
  327. getPhoneData(phoneData) {
  328. this.countryCode = phoneData.countryCode;
  329. //this.userData.PhoneCode = phoneData.countryCallingCode;
  330. this.phoneValid = phoneData.isValid;
  331. },
  332. showCode(object) {
  333. this.userData.PhoneCode = object.dialCode;
  334. ; },
  335. patchUserData() {
  336. // if (this.width < 1366) {
  337. // this.isEditInfoDialogActive = !this.isEditInfoDialogActive;
  338. // }
  339. this.validators();
  340. if(this.validators()){
  341. if(this.$vuetify.breakpoint.name !== "xs"){
  342. this.userData.BirthDate = this.yearSelect + "-" + this.monthSelect + "-" + this.daySelect;
  343. if(this.userData.BirthDate.length < 10){
  344. this.userData.BirthDate = null;
  345. }
  346. }
  347. if(this.languageSelect.en == true){
  348. this.userData.LanguageID = "en-US";
  349. }else if(this.languageSelect.zhtw == true){
  350. this.userData.LanguageID = "zh-TW";
  351. }else{
  352. this.userData.LanguageID = "null";
  353. }
  354. const patchData = JSON.parse(JSON.stringify(this.userData));
  355. // delete patchData.LoginLog;
  356. //delete patchData.UserCompany;
  357. // delete patchData.UserSocialRelation;
  358. // delete patchData.UserExhibition;
  359. this.$axios
  360. .post(
  361. `/trending/api/Members/Member`, patchData
  362. )
  363. .then((response) => {
  364. //console.log(JSON.stringify(response));
  365. if (response.status == 200) {
  366. this.$notify({
  367. type: "success",
  368. text: "更新成功",
  369. });
  370. }
  371. this.fetchUserData();
  372. this.$auth.$storage.setUniversal("userPicture", patchData.MemberPicture);
  373. // this.$auth.$storage.setUniversal(
  374. // "userLastName",
  375. // patchData.LastName
  376. // );
  377. this.$store.dispatch("updatePicture");
  378. })
  379. .catch((error) => {
  380. console.log(error);
  381. });
  382. }
  383. },
  384. fetchUserData() {
  385. this.$axios
  386. .get(
  387. `/trending/api/Members/Info`
  388. )
  389. .then((response) => {
  390. console.log(response);
  391. if(response && response.data && response.data.DATA && response.data.DATA.rel){
  392. let data = response.data.DATA.rel
  393. if(data){
  394. this.userData = data;
  395. if(this.userData.CountryID == null){
  396. this.userData.CountryID = "0";
  397. }
  398. if(this.userData.Title == null){
  399. this.userData.Title = "0";
  400. }
  401. if(this.userData.PhoneCode == null){
  402. this.userData.PhoneCode = "0";
  403. }
  404. if(this.userData.BirthDate == null){
  405. this.yearSelect = "0";
  406. this.monthSelect = "0";
  407. this.daySelect = "0";
  408. }
  409. this.firstName = this.userData.FirstName;
  410. this.lastName = this.userData.LastName;
  411. //this.userData.Phone ? (this.phoneValid = true): (this.phoneValid = false);
  412. this.codeSelect = this.userData.PhoneCode;
  413. if(this.userData.LanguageID == "en-US"){
  414. this.languageSelect.en = true;
  415. }else if(this.userData.LanguageID == "zh-TW"){
  416. this.languageSelect.zhtw = true;
  417. }else{
  418. this.languageSelect.en = "";
  419. this.languageSelect.zhtw = "";
  420. }
  421. if (
  422. this.userData.BirthDate && typeof this.userData.BirthDate === "object"
  423. ){
  424. this.yearSelect = "";
  425. this.monthSelect = "";
  426. this.daySelect = "";
  427. }else{
  428. const space = this.userData.BirthDate.split("T");
  429. const date = space[0].split("-");
  430. this.yearSelect = date[0];
  431. this.monthSelect = date[1];
  432. this.daySelect = date[2];
  433. }
  434. }
  435. }
  436. })
  437. .catch((error) => {
  438. console.log(error);
  439. });
  440. },
  441. handleUploadEvent() {
  442. window.addEventListener("focus", () => { }, { once: true });
  443. this.$refs.uploader.click();
  444. },
  445. getNewPicture(e) {
  446. this.payload = new FormData();
  447. this.payload.append("file", e.target.files[0]);
  448. const path = URL.createObjectURL(e.target.files[0]);
  449. this.cropImagePreview = path ;
  450. this.isCropImageDialogActive = !this.isCropImageDialogActive;
  451. },
  452. userPictureUpload(e) {
  453. //const fileSize = (e.target.files[0].size / 1024 / 1024).toFixed(1);
  454. this.$axios
  455. .post(
  456. `/trending/api/Members/UploadAvatar`, this.payload
  457. )
  458. .then((response) => {
  459. //console.log(JSON.stringify(response))
  460. if(response && response.data){
  461. this.isCropImageDialogActive = !this.isCropImageDialogActive;
  462. this.fetchUserData();
  463. this.$notify({
  464. type: "success",
  465. text: "更新成功",
  466. });
  467. }
  468. })
  469. .catch((error) => {
  470. console.log(error);
  471. });
  472. },
  473. fetchCountry() {
  474. this.$axios
  475. .get(`/trending/api/location/countries?RegionID&Lang=${this.$i18n.localeProperties["langQuery"]}`)
  476. .then((response) => {
  477. //console.log(JSON.stringify(response));
  478. if(response && response.data && response.data.DATA && response.data.DATA.rel){
  479. let data = response.data.DATA.rel
  480. if(data){
  481. this.countryList = data;
  482. //console.log(this.countryList);
  483. this.countryOptions = this.countryList.map((item) => {
  484. return {
  485. id: item.CountryID,
  486. name: item.CountryName,
  487. };
  488. });
  489. }
  490. }
  491. })
  492. .catch((error) => {
  493. console.log(error);
  494. });
  495. },
  496. closeCropDialog() {
  497. this.isCropImageDialogActive = !this.isCropImageDialogActive;
  498. },
  499. handleImageUpdate() {
  500. this.fetchUserData();
  501. //this.patchUserData();
  502. this.closeCropDialog();
  503. },
  504. validators() {
  505. if (is.empty(this.userData.FirstName)) {
  506. this.validation.FirstName = false;
  507. } else {
  508. this.validation.FirstName = true;
  509. }
  510. if (is.empty(this.userData.LastName)) {
  511. this.validation.LastName = false;
  512. } else {
  513. this.validation.LastName = true;
  514. }
  515. if (is.empty(this.userData.Email) || is.not.email(this.userData.Email)) {
  516. this.validation.Email = false;
  517. } else {
  518. this.validation.Email = true;
  519. }
  520. if (is.empty(this.yearSelect)) {
  521. this.validation.yearSelect = false;
  522. } else {
  523. this.validation.yearSelect = true;
  524. }
  525. if (is.empty(this.monthSelect)) {
  526. this.validation.monthSelect = false;
  527. } else {
  528. this.validation.monthSelect = true;
  529. }
  530. if (is.empty(this.daySelect)) {
  531. this.validation.daySelect = false;
  532. } else {
  533. this.validation.daySelect = true;
  534. }
  535. if (is.null(this.userData.CountryID) || this.userData.CountryID == 0) {
  536. this.validation.CountryID = false;
  537. } else {
  538. this.validation.CountryID = true;
  539. }
  540. if(this.userData.PhoneCode == "999"){
  541. this.validation.codeSelect = false;
  542. }else{
  543. this.validation.codeSelect = true;
  544. }
  545. if (this.userData.Phone == null
  546. ) {
  547. this.validation.PhoneNo = false;
  548. this.error = true;
  549. } else {
  550. this.validation.PhoneNo = true;
  551. this.error = false;
  552. }
  553. this.errors = Object.entries(this.validation).filter(
  554. (e) => e[1] == false
  555. );
  556. if (this.errors.length > 0) {
  557. return false;
  558. } else {
  559. return true;
  560. }
  561. },
  562. },
  563. };
  564. </script>
  565. <style scoped lang="scss" scoped>
  566. select {
  567. background-image: url("~/assets/svg/dropdownarrow.svg");
  568. width: auto;
  569. height: auto;
  570. background-position: right 12px center;
  571. background-repeat: no-repeat;
  572. }
  573. .success-alert {
  574. position: absolute;
  575. left: 13%;
  576. z-index: 10;
  577. top: -3%;
  578. }
  579. .success-alert-dialog {
  580. position: absolute;
  581. left: 13%;
  582. z-index: 10;
  583. top: 3%;
  584. }
  585. :deep() {
  586. .input-tel__input {
  587. height: 44px;
  588. border: 1px solid #e5e5e5;
  589. }
  590. }
  591. </style>