improveImmediately.vue 67 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903
  1. <template>
  2. <cwg-page-wrapper>
  3. <view class="page page-shadow">
  4. <uni-forms ref="formRef" :model="formData" :rules="rules" labelWidth="200" label-position="top"
  5. class="payment-form">
  6. <!-- 第一步:身份证明 -->
  7. <uni-loading v-if="loading"></uni-loading>
  8. <view v-show="!loading&&currentStep === 1" class="form-section">
  9. <uni-row class="demo-uni-row uni-row1" :gutter="20">
  10. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  11. <view class="crm-title-box">
  12. <text class="tit">{{ t('ImproveImmediately.Title.ProofIdentityUpdate') }}</text>
  13. <uni-tooltip :placement="isMobile?'left':'bottom'">
  14. <text class="icon-tip">ⓘ</text>
  15. <template v-slot:content>
  16. <view class="address-tip">
  17. {{ t('ImproveImmediately.Content.popover1') }}
  18. </view>
  19. </template>
  20. </uni-tooltip>
  21. </view>
  22. <uni-forms-item name="cardType" :label="t('ImproveImmediately.Label.CardType')">
  23. <cwg-combox :clearable="false" v-model:value="formData.cardType" :options="cardTypeOptions"
  24. :placeholder="t('placeholder.choose')" />
  25. </uni-forms-item>
  26. <uni-row class="demo-uni-row uni-row1" :gutter="20">
  27. <uni-col :xs="24" :sm="24" :md="10" :lg="10" :xl="10" class="mb-3">
  28. <cwg-file-picker-wrapper v-model="fileListID1.path" :disabled="fileListID1.status == 2" :limit="1"
  29. :delIcon="fileListID1.status != 2"
  30. :fileMediatype="'all'" uploadUrl="/custom/file/upload/1" :baseUrl="updateUrl"
  31. :imageWidth="150"
  32. :imageHeight="150" :showPreviewDelete="false" :canDelete="false"
  33. :uploadError="false"
  34. :showProgress="false" :showError="false"
  35. :image-styles="imageStyle"
  36. @update:modelValue="(val) => handleFileUpdate(val, '1')"
  37. customClass="avatar-uploader">
  38. </cwg-file-picker-wrapper>
  39. <!-- <view v-else>-->
  40. <!-- <view class="file-item">-->
  41. <!-- <image-->
  42. <!-- v-if="!isPdf(fileListID1.path)"-->
  43. <!-- class="avatar"-->
  44. <!-- :src="updateUrl + fileListID1.path"-->
  45. <!-- ></image>-->
  46. <!-- <view v-else>-->
  47. <!-- <image class="icon" :src="icon_doc" />-->
  48. <!-- </view>-->
  49. <!-- </view>-->
  50. <!-- </view>-->
  51. </uni-col>
  52. <uni-col :xs="24" :sm="24" :md="10" :lg="10" :xl="10">
  53. <cwg-file-picker-wrapper v-model="fileListID2.path" :disabled="fileListID2.status == 2" :limit="1"
  54. :delIcon="fileListID2.status != 2"
  55. :fileMediatype="'all'" uploadUrl="/custom/file/upload/2" :baseUrl="updateUrl"
  56. :imageWidth="150"
  57. :imageHeight="150" :showPreviewDelete="false" :canDelete="false"
  58. :uploadError="false"
  59. :showProgress="false" :canChoose="true" :showError="false"
  60. :image-styles="imageStyle"
  61. @update:modelValue="(val) => handleFileUpdate(val, '2')"
  62. customClass="avatar-uploader">
  63. </cwg-file-picker-wrapper>
  64. </uni-col>
  65. <uni-col :xs="24" :sm="24" :md="4" :lg="4" :xl="4">
  66. <view class="refresh">
  67. <image :src="icon_refresh" @click="getCustomFileList" />
  68. </view>
  69. </uni-col>
  70. </uni-row>
  71. </uni-col>
  72. <cwg-match-media :min-width="991">
  73. <uni-col v-if="isPC" :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  74. <view class="crm-title-box">
  75. <text class="tit">{{ t('ImproveImmediately.Title.MobileDeviceUpload') }}</text>
  76. <uni-tooltip :placement="isMobile?'left':'bottom'">
  77. <text class="icon-tip">ⓘ</text>
  78. <template v-slot:content>
  79. <view class="address-tip">
  80. {{ t('ImproveImmediately.Content.popover2') }}
  81. </view>
  82. </template>
  83. </uni-tooltip>
  84. </view>
  85. <view class="con-box">
  86. <view class="box">
  87. <image class="mobile" :src="icon_mobile" />
  88. <image class="arrow" :src="icon_arrowR" />
  89. <image class="img_mobile" style="
  90. display: inline-block;
  91. width: 120px;
  92. height: 120px;
  93. border: 8px solid var(--color-gray);
  94. " :src="mobile">
  95. <div slot="error" class="image-slot">
  96. <i class="el-icon-picture-outline"></i>
  97. </div>
  98. </image>
  99. <image class="icon_refresh" :src="icon_refresh" @click="getMobileInfo" />
  100. </view>
  101. </view>
  102. </uni-col>
  103. </cwg-match-media>
  104. </uni-row>
  105. <view class="descending">
  106. <p class="title">
  107. <span class="dian1">·</span>
  108. <span>{{ t('ImproveImmediately.Title.IdentificationStatement') }}</span>
  109. </p>
  110. <p class="des">
  111. <span class="dian">-</span>
  112. <span>{{ t('ImproveImmediately.Content.ProofIdentity4') }}</span>
  113. </p>
  114. <p class="des">
  115. <span class="dian">-</span>
  116. <span>{{ t('ImproveImmediately.Content.ProofIdentity5') }}</span>
  117. </p>
  118. <p class="des" v-if="['cn', 'zhHant'].indexOf(locale) == -1">
  119. <span class="dian">-</span>
  120. <span>{{ t('ImproveImmediately.Content.ProofIdentity6') }}</span>
  121. </p>
  122. <p class="des">
  123. <span class="dian">·</span>
  124. <span>{{ t('ImproveImmediately.Content.ProofIdentity1') }}</span>
  125. </p>
  126. <p class="des">
  127. <span class="dian">·</span>
  128. <span>{{ t('ImproveImmediately.Content.ProofIdentity2') }}</span>
  129. </p>
  130. <p class="des">
  131. <span class="dian">·</span>
  132. <span>{{ t('ImproveImmediately.Content.ProofIdentity3') }}</span>
  133. </p>
  134. <p class="des" v-if="['cn', 'zhHant'].indexOf(locale) == -1">
  135. <span class="dian">·</span>
  136. <span>{{ t('ImproveImmediately.Content.ProofIdentity7') }}</span>
  137. </p>
  138. <p class="des" v-if="['cn', 'zhHant'].indexOf(locale) == -1">
  139. <span class="dian">·</span>
  140. <span>{{ t('ImproveImmediately.Content.ProofIdentity8') }}</span>
  141. </p>
  142. </view>
  143. </view>
  144. <!-- 第二步:个人信息 -->
  145. <view v-show="!loading&&currentStep === 2" class="form-section">
  146. <h3 class="section-title">{{ t('ImproveImmediately.Title.BasicInformation') }}</h3>
  147. <uni-row class="demo-uni-row uni-row1" :gutter="20">
  148. <!-- 客户类型 -->
  149. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  150. <uni-forms-item :label="t('ImproveImmediately.Label.CustomerType')">
  151. <cwg-combox :clearable="false" v-model:value="formData.customType" :options="customerTypeOptions"
  152. :placeholder="t('placeholder.choose')" />
  153. </uni-forms-item>
  154. </uni-col>
  155. <!-- 公司名称 -->
  156. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8" v-if="formData.customType == 2">
  157. <uni-forms-item :label="t('ImproveImmediately.Label.CompanyName')">
  158. <uni-easyinput :clearable="false" v-model="formData.companyName"
  159. :placeholder="t('placeholder.input')" />
  160. </uni-forms-item>
  161. </uni-col>
  162. <!-- 姓 -->
  163. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  164. <uni-forms-item :label="formData.customType == 2
  165. ? t('ImproveImmediately.Label.CorporationLastName')
  166. : t('ImproveImmediately.Label.LastName')">
  167. <uni-easyinput :clearable="false" v-model="formData.lastName" :placeholder="t('placeholder.input')" />
  168. </uni-forms-item>
  169. </uni-col>
  170. <!-- 名 -->
  171. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  172. <uni-forms-item :label="formData.customType == 2
  173. ? t('ImproveImmediately.Label.CorporationName')
  174. : t('ImproveImmediately.Label.Name')">
  175. <uni-easyinput :clearable="false" v-model="formData.firstName" :placeholder="t('placeholder.input')" />
  176. </uni-forms-item>
  177. </uni-col>
  178. <!-- 法人中间名 -->
  179. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8" v-if="locale == 'en'">
  180. <uni-forms-item name="middle" :label="t('placeholder.middle')">
  181. <uni-easyinput :clearable="false" v-model="formData.middle" :placeholder="t('placeholder.input')" />
  182. </uni-forms-item>
  183. </uni-col>
  184. <!-- 国家 -->
  185. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8" v-if="countryOptions.length > 0">
  186. <uni-forms-item name="nationality" :label="t('ImproveImmediately.Label.Nationality')">
  187. <cwg-combox :clearable="false" :filterable="true" v-model:value="formData.nationality"
  188. :options="countryOptions" :placeholder="t('placeholder.choose')" />
  189. </uni-forms-item>
  190. </uni-col>
  191. <!-- 证件类型 -->
  192. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  193. <uni-forms-item name="IdentityType" :label="identityLabel">
  194. <cwg-combox :clearable="false" v-model:value="formData.IdentityType" :options="identityTypes"
  195. :placeholder="t('placeholder.choose')" />
  196. </uni-forms-item>
  197. </uni-col>
  198. <!-- 证件号 -->
  199. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  200. <uni-forms-item name="identity" :label="t('ImproveImmediately.Label.IdentityID')">
  201. <uni-easyinput :clearable="false" v-model="formData.identity" :placeholder="t('placeholder.input')" />
  202. </uni-forms-item>
  203. </uni-col>
  204. <!-- 拼音 -->
  205. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8" v-if="['cn', 'zhHant'].includes(locale)">
  206. <uni-forms-item name="nameEn" :label="t('ImproveImmediately.Label.NamePinYin')">
  207. <uni-easyinput :clearable="false" v-model="formData.nameEn" :placeholder="t('placeholder.input')" />
  208. </uni-forms-item>
  209. </uni-col>
  210. <!-- 性别 -->
  211. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  212. <uni-forms-item name="gender" :label="t('ImproveImmediately.Label.Gender')">
  213. <cwg-combox :clearable="false" v-model:value="formData.gender" :options="genderOptions"
  214. :placeholder="t('placeholder.choose')" />
  215. </uni-forms-item>
  216. </uni-col>
  217. <!-- 生日 -->
  218. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  219. <uni-forms-item name="birth" :label="t('ImproveImmediately.Label.Birthday')">
  220. <uni-datetime-picker :clear-icon="false" type="date" return-type="timestamp" v-model="formData.birth"
  221. :placeholder="t('placeholder.choose')" />
  222. </uni-forms-item>
  223. </uni-col>
  224. <uni-col :span="24">
  225. <view class="crm-title-box">
  226. <text class="tit">{{ t('ImproveImmediately.Title.AddressInformation') }}</text>
  227. <uni-tooltip :placement="isMobile?'left':'top'">
  228. <text class="icon-tip">ⓘ</text>
  229. <template v-slot:content>
  230. <view class="address-tip">
  231. {{ t('ImproveImmediately.Title.AddressTip') }}
  232. </view>
  233. </template>
  234. </uni-tooltip>
  235. </view>
  236. </uni-col>
  237. <!-- 国家/地区 -->
  238. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8" v-if="countryOptions.length > 0">
  239. <uni-forms-item name="country" :label="t('ImproveImmediately.Label.CountryRegionOfResidence')">
  240. <cwg-combox :clearable="false" :filterable="true" v-model:value="formData.country"
  241. :options="countryOptions" :placeholder="t('placeholder.choose')" @change="changeCountry" />
  242. </uni-forms-item>
  243. </uni-col>
  244. <!-- 省份/州 -->
  245. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8"
  246. v-if="formData.country == 'CN' || formData.country == 'CNX' || formData.country == 'CNA' || formData.country == 'CNT'">
  247. <uni-forms-item name="state" :label="t('ImproveImmediately.Label.ProvinceRegion')">
  248. <cwg-combox :clearable="false" :filterable="true" v-model:value="formData.state" :options="stateOptions"
  249. :placeholder="t('placeholder.choose')" @change="changeState" />
  250. </uni-forms-item>
  251. </uni-col>
  252. <!-- 国外省份/州 -->
  253. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8" v-else>
  254. <uni-forms-item name="state" :label="t('ImproveImmediately.Label.ProvinceRegion')">
  255. <uni-easyinput :clearable="false" v-model="formData.state" :placeholder="t('placeholder.input')" />
  256. </uni-forms-item>
  257. </uni-col>
  258. <!-- 城市 -->
  259. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8"
  260. v-if="formData.country == 'CN' || formData.country == 'CNX' || formData.country == 'CNA' || formData.country == 'CNT'">
  261. <uni-forms-item name="city" :label="t('ImproveImmediately.Label.City')">
  262. <cwg-combox :clearable="false" :filterable="true" v-model:value="formData.city" :options="cityOptions"
  263. :placeholder="t('placeholder.choose')" />
  264. </uni-forms-item>
  265. </uni-col>
  266. <!-- 国外城市 -->
  267. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8" v-else>
  268. <uni-forms-item name="city" :label="t('ImproveImmediately.Label.City')">
  269. <uni-easyinput :clearable="false" v-model="formData.city" :placeholder="t('placeholder.input')" />
  270. </uni-forms-item>
  271. </uni-col>
  272. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  273. <uni-forms-item name="addressLines1" :label="t('ImproveImmediately.Label.DetailedAddress')">
  274. <uni-easyinput :clearable="false" v-model="formData.addressLines1"
  275. :placeholder="t('placeholder.input')" />
  276. </uni-forms-item>
  277. </uni-col>
  278. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  279. <uni-forms-item name="zipCode" :label="t('ImproveImmediately.Label.ZipCode')">
  280. <uni-easyinput :clearable="false" v-model="formData.zipCode" :placeholder="t('placeholder.input')" />
  281. </uni-forms-item>
  282. </uni-col>
  283. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  284. <uni-forms-item name="addressLines2" :label="t('ImproveImmediately.Label.DetailedAddressStandby')">
  285. <uni-easyinput :clearable="false" v-model="formData.addressLines2"
  286. :placeholder="t('placeholder.input')" />
  287. </uni-forms-item>
  288. </uni-col>
  289. </uni-row>
  290. </view>
  291. <!-- 第三步:财务背景 -->
  292. <view v-show="!loading&&currentStep === 3" class="form-section">
  293. <h3 class="section-title">{{ t('ImproveImmediately.Title.FinancialBackground') }}</h3>
  294. <uni-row class="demo-uni-row uni-row1" :gutter="20">
  295. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  296. <uni-forms-item name="level" :label="t('ImproveImmediately.Label.Education')">
  297. <cwg-combox :clearable="false" v-model:value="formData.level" :options="educationOptions"
  298. :placeholder="t('placeholder.choose')" />
  299. </uni-forms-item>
  300. </uni-col>
  301. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  302. <uni-forms-item name="employmentStatus" :label="t('ImproveImmediately.Label.OnJob')">
  303. <cwg-combox :clearable="false" v-model:value="formData.employmentStatus" :options="employmentOptions"
  304. :placeholder="t('placeholder.choose')" />
  305. </uni-forms-item>
  306. </uni-col>
  307. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  308. <uni-forms-item name="tradingObjectives" :label="t('ImproveImmediately.Label.purposeTransaction')">
  309. <cwg-combox :clearable="false" v-model:value="formData.tradingObjectives"
  310. :options="transactionPurposeOptions" :placeholder="t('placeholder.choose')" />
  311. </uni-forms-item>
  312. </uni-col>
  313. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  314. <uni-forms-item name="sourceFunding" :label="t('ImproveImmediately.Label.SourceFunds')">
  315. <cwg-combox :clearable="false" v-model:value="formData.sourceFunding" :options="fundSourceOptions"
  316. :placeholder="t('placeholder.choose')" />
  317. </uni-forms-item>
  318. </uni-col>
  319. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  320. <uni-forms-item name="grossAnnualIncome" :label="t('ImproveImmediately.Label.TotalAnnualRevenue')">
  321. <cwg-combox :clearable="false" v-model:value="formData.grossAnnualIncome" :options="annualIncomeOptions"
  322. :placeholder="t('placeholder.choose')" />
  323. </uni-forms-item>
  324. </uni-col>
  325. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  326. <uni-forms-item name="totalNewWorth" :label="t('ImproveImmediately.Label.TotalNetAssets')">
  327. <cwg-combox :clearable="false" v-model:value="formData.totalNewWorth" :options="netWorthOptions"
  328. :placeholder="t('placeholder.choose')" />
  329. </uni-forms-item>
  330. </uni-col>
  331. </uni-row>
  332. <h3 class="section-title">{{ t('ImproveImmediately.Title.TradingExperience') }}</h3>
  333. <view class="experience">
  334. <text class="Trad-experience">{{ t('ImproveImmediately.Content.TradingExperience1') }}</text>
  335. <view class="Trad-choose">
  336. <uni-data-checkbox v-model="formData.experienceTradingDerivative"
  337. :localdata="radioList"></uni-data-checkbox>
  338. </view>
  339. </view>
  340. <view class="experience">
  341. <text class="Trad-experience">{{ t('ImproveImmediately.Content.TradingExperience2') }}</text>
  342. <view class="Trad-choose">
  343. <uni-data-checkbox v-model="formData.experienceTradingForex" :localdata="radioList"></uni-data-checkbox>
  344. </view>
  345. </view>
  346. <view class="experience">
  347. <text class="Trad-experience">{{ t('ImproveImmediately.Content.TradingExperience3') }}</text>
  348. <view class="Trad-choose">
  349. <uni-data-checkbox v-model="formData.derivativeProducts" :localdata="radioList"></uni-data-checkbox>
  350. </view>
  351. </view>
  352. <view class="experience">
  353. <text class="Trad-experience">{{ t('ImproveImmediately.Content.TradingExperience4') }}</text>
  354. <view class="Trad-choose">
  355. <uni-data-checkbox v-model="formData.experienceQualification" :localdata="radioList"></uni-data-checkbox>
  356. </view>
  357. </view>
  358. </view>
  359. <!-- 第四步:地址证明 -->
  360. <view v-show="!loading&&currentStep === 4" class="form-section">
  361. <!--去掉地址证明-->
  362. <!-- <uni-row class="demo-uni-row uni-row1">
  363. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  364. <view class="crm-title-box">
  365. <text class="tit">{{ t('ImproveImmediately.Title.ProofAddress') }}</text>
  366. <uni-tooltip placement="bottom">
  367. <text class="icon-tip">ⓘ</text>
  368. <template v-slot:content>
  369. <view class="address-tip">
  370. {{ t('ImproveImmediately.Content.ProofAddress5') }}
  371. </view>
  372. </template>
  373. </uni-tooltip>
  374. </view>
  375. <uni-row class="demo-uni-row uni-row1">
  376. <uni-col :xs="24" :sm="24" :md="16" :lg="16" :xl="16">
  377. <cwg-file-picker-wrapper
  378. v-model="fileListAdd1.path"
  379. :editable="fileListAdd1.status != 2"
  380. :limit="1"
  381. :fileMediatype="'all'"
  382. uploadUrl="/custom/file/upload/3"
  383. :baseUrl="updateUrl"
  384. :imageWidth="150"
  385. :imageHeight="150"
  386. :showPreviewDelete="false"
  387. :canDelete="false"
  388. :uploadError="false"
  389. :showProgress="false"
  390. :canChoose="true"
  391. :showError="false"
  392. :show-progress="false"
  393. disablePreview
  394. :image-styles="imageStyle"
  395. @update:modelValue="(val) => handleFileUpdate(val, '1')"
  396. customClass="avatar-uploader"
  397. >
  398. <view class="file-item">
  399. <image
  400. v-if="!isPdf(fileListAdd1.path)"
  401. class="avatar"
  402. :src="updateUrl + fileListAdd1.path"
  403. ></image>
  404. <view v-else>
  405. <image class="icon" :src="icon_doc" />
  406. </view>
  407. </view>
  408. </cwg-file-picker-wrapper>
  409. </uni-col>
  410. <uni-col :xs="24" :sm="24" :md="4" :lg="4" :xl="4">
  411. <view class="refresh">
  412. <image :src="icon_refresh" @click="getCustomFileList" />
  413. </view>
  414. </uni-col>
  415. </uni-row>
  416. </uni-col>
  417. <uni-col v-if="isPC" :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  418. <view class="crm-title-box">
  419. <text class="tit">{{ t('ImproveImmediately.Title.MobileDeviceUpload') }}</text>
  420. <uni-tooltip placement="bottom">
  421. <text class="icon-tip">ⓘ</text>
  422. <template v-slot:content>
  423. <view class="address-tip">
  424. {{ t('ImproveImmediately.Content.popover2') }}
  425. </view>
  426. </template>
  427. </uni-tooltip>
  428. </view>
  429. <view class="con-box">
  430. <view class="box">
  431. <cwg-icon name="icon_mobile" :size="50"/>
  432. &lt;!&ndash; <image class="mobile" :src="icon_mobile" />&ndash;&gt;
  433. <image class="arrow" :src="icon_arrowR" />
  434. <image
  435. class="img_mobile"
  436. style="
  437. display: inline-block;
  438. width: 120px;
  439. height: 120px;
  440. border: 8px solid var(&#45;&#45;color-gray);
  441. "
  442. :src="mobile"
  443. >
  444. <div slot="error" class="image-slot">
  445. <i class="el-icon-picture-outline"></i>
  446. </div>
  447. </image>
  448. <image class="icon_refresh" :src="icon_refresh" @click="getMobileInfo" />
  449. </view>
  450. </view>
  451. </uni-col>
  452. </uni-row>-->
  453. <uni-row class="demo-uni-row uni-row1" :gutter="20">
  454. <uni-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
  455. <view class="crm-title-box">
  456. <text class="tit">{{ t('PersonalManagement.Title.AttachedFile') }}</text>
  457. </view>
  458. <uni-row class="demo-uni-row uni-row1" :gutter="20">
  459. <uni-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
  460. <cwg-file-picker-wrapper :limit="9" :multiple="true" :fileMediatype="'all'"
  461. uploadUrl="/custom/file/upload/10" :baseUrl="updateUrl" :imageWidth="100"
  462. :imageHeight="60" noFileList
  463. :showPreviewDelete="false" :canDelete="false" :uploadError="false"
  464. :showProgress="false"
  465. :image-styles="imageStyle"
  466. @update:modelValue="(val) => handleFileUpdate(val, '10')"
  467. custom-class="fileOther" :showError="false">
  468. <template #add-button="{ handleChoose }">
  469. <button type="primary" class="btn btn-danger waves-effect waves-light btn-upload"
  470. @click="handleChoose">{{ t('Btn.Upload') }}
  471. </button>
  472. </template>
  473. </cwg-file-picker-wrapper>
  474. <view class="fileList">
  475. <view id="files" v-for="(item, index) in fileListOthers" :key="index">
  476. <cwg-file-picker-wrapper customClass="list_upload" v-model="item.path"
  477. :disabled="item.status == 2" :limit="1" :fileMediatype="'all'"
  478. :uploadUrl="'/custom/file/upload/10/' + item.id" :baseUrl="updateUrl"
  479. :uploadError="false"
  480. :showProgress="false" :imageWidth="200" :imageHeight="150"
  481. :showPreviewDelete="true"
  482. :disablePreview="true" :image-styles="imageStyle" :canChoose="true"
  483. @update:modelValue="(val) => handleFileUpdate(val, '1')">
  484. </cwg-file-picker-wrapper>
  485. <view class="options">
  486. <u-button style="margin-right: 20px;" :disabled="item.status == 2" @click.stop="showFile(item)">
  487. <a :href="updateUrl + (item.againPath || item.path)" target="_blank">
  488. {{ t('Btn.item12') }}
  489. </a>
  490. </u-button>
  491. <u-button :disabled="item.status == 2" @click="fileOtherDelete(item.id)">
  492. {{ t('Btn.Delete') }}
  493. </u-button>
  494. </view>
  495. </view>
  496. </view>
  497. </uni-col>
  498. <uni-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
  499. <view class="refresh">
  500. <image :src="icon_refresh" @click="getCustomFileList" />
  501. </view>
  502. </uni-col>
  503. </uni-row>
  504. </uni-col>
  505. </uni-row>
  506. <view class="descending">
  507. <p class="title">
  508. <span>{{ t('ImproveImmediately.item1') }}</span>
  509. </p>
  510. <p class="des">
  511. <span>{{ t('ImproveImmediately.item2') }}</span>
  512. </p>
  513. <p class="des">
  514. <span>{{ t('ImproveImmediately.item3') }}</span>
  515. </p>
  516. <p class="des">
  517. <span>{{ t('ImproveImmediately.item4') }}</span>
  518. </p>
  519. </view>
  520. </view>
  521. <!-- 步骤控制按钮 -->
  522. <view v-if="!loading">
  523. <template v-if="currentStep === 4">
  524. <view class="btns">
  525. <view class="cwg-button two-btn">
  526. <button class="btn btn-danger" type="primary" block @click="cancle">
  527. {{ t('Btn.Cancel') }}
  528. </button>
  529. <button block class="btn btn-danger" type="primary" @click="goStep(3,true)">
  530. {{ t('Btn.Last') }}
  531. </button>
  532. <button type="primary" class="btn btn-danger" block :loading="loadingStates.submit" @click="Submit">
  533. {{ t('Btn.Submit') }}
  534. </button>
  535. </view>
  536. </view>
  537. </template>
  538. <template v-else-if="currentStep === 3">
  539. <view class="btns">
  540. <view class="cwg-button two-btn">
  541. <button class="btn btn-danger" type="primary" block @click="cancle">
  542. {{ t('Btn.Cancel') }}
  543. </button>
  544. <button block class="btn prev-btn btn-danger" type="primary" @click="goStep(2,true)">
  545. {{ t('Btn.Last') }}
  546. </button>
  547. <button class="btn btn-danger" type="primary" block :loading="loadingStates.next" @click="goStep(4)">
  548. {{ t('Btn.Next') }}
  549. </button>
  550. </view>
  551. </view>
  552. </template>
  553. <template v-else-if="currentStep === 2">
  554. <view class="btns">
  555. <view class="cwg-button two-btn">
  556. <button class="btn btn-danger" type="primary" block @click="cancle">
  557. {{ t('Btn.Cancel') }}
  558. </button>
  559. <button block class="btn prev-btn btn-danger" type="primary" @click="goStep(1,true)">
  560. {{ t('Btn.Last') }}
  561. </button>
  562. <button class="btn btn-danger" type="primary" block :loading="loadingStates.next" @click="goStep(3)">
  563. {{ t('Btn.Next') }}
  564. </button>
  565. </view>
  566. </view>
  567. </template>
  568. <template v-else-if="currentStep === 1">
  569. <view class="btns">
  570. <view class="cwg-button two-btn">
  571. <button class="btn btn-danger" type="primary" block @click="cancle">
  572. {{ t('Btn.Cancel') }}
  573. </button>
  574. <button class="btn btn-danger" type="primary" block :loading="loadingStates.next" @click="goStep(2)">
  575. {{ t('Btn.Next') }}
  576. </button>
  577. </view>
  578. </view>
  579. </template>
  580. </view>
  581. </uni-forms>
  582. </view>
  583. <view class="form-tab"></view>
  584. </cwg-page-wrapper>
  585. <!--离开弹出框-->
  586. <uni-popup ref="dialogCheck" type="center" background-color="#fff" borderRadius="8px 8px 8px 8px">
  587. <view class="dia-content" v-if="dialogCheck1">
  588. <view class="icon">
  589. <i class="iconfont iconjingshi"></i>
  590. </view>
  591. <view class="des1">{{ t('ImproveImmediately.Content.Leave1') }}</view>
  592. <view class="des2">{{ t('ImproveImmediately.Content.Leave2') }}</view>
  593. <view class="dialog-footer">
  594. <view class="btn-content">
  595. <button class="cancel-btn" @click="closeDia">
  596. {{ t('Btn.TemporarilyNot') }}
  597. </button>
  598. <button class="confirm-btn primary" @click="save">
  599. {{ t('Btn.Save') }}
  600. </button>
  601. </view>
  602. </view>
  603. </view>
  604. <view class="dia-content" v-if="!dialogCheck1">
  605. <view class="icon">
  606. <cwg-icon :size="60" name="verified" :color="'#4a6cf7'" />
  607. </view>
  608. <view class="des1">{{ t('ApplicationDialog.Des1') }}</view>
  609. <QrCode v-if="text1" :text="text1"></QrCode>
  610. <view class="dialog-footer">
  611. <view class="btn-content">
  612. <button class="cancel-btn" @click="closeDia">
  613. {{ t('Btn.Cancel') }}
  614. </button>
  615. <button class="confirm-btn primary" @click="toHome">
  616. {{ t('Btn.Home') }}
  617. </button>
  618. </view>
  619. </view>
  620. </view>
  621. </uni-popup>
  622. <cwg-global-popup />
  623. </template>
  624. <script setup lang="ts">
  625. import { ref, onMounted, onUnmounted, watch, computed } from 'vue'
  626. import { useI18n } from 'vue-i18n'
  627. import { onLoad } from '@dcloudio/uni-app'
  628. import { personalApi } from '@/service/personal'
  629. import Config from '@/config/index'
  630. import QrCode from '@/components/QRCode.vue'
  631. import { userToken } from '@/composables/config'
  632. import useRouter from '@/hooks/useRouter'
  633. import { Patterns, Validators } from '@/utils/validators'
  634. import { pinyin } from 'pinyin-pro'
  635. import config from '@/config/index'
  636. import icon_doc from '@/static/icons/crm-document.svg'
  637. import icon_refresh from '@/static/icons/crm-refresh.svg'
  638. import icon_mobile from '@/static/icons/icon_mobile.svg'
  639. import icon_arrowR from '@/static/icons/icon_arrowR.svg'
  640. import { useWindowWidth } from '@/composables/useWindowWidth'
  641. import { usePopup } from '@/hooks/usePopup'
  642. import useUserStore from '@/stores/use-user-store'
  643. const { confirm, toast } = usePopup()
  644. const router = useRouter()
  645. const { t, locale } = useI18n()
  646. const currentStep = ref<number>(3)
  647. const loading = ref<boolean>(false)
  648. const formRef = ref()
  649. const dialogCheck = ref(null)
  650. const dialogCheck1 = ref(false)
  651. const text1 = ref('')
  652. const qrCodeStatus = ref(false)
  653. const addressTipPopup = ref()
  654. const windowWidth = useWindowWidth(300)
  655. const isMobile = computed(() => windowWidth.value <= 991)
  656. const userStore = useUserStore()
  657. // 新增的响应式数据
  658. const isPC = ref(true)
  659. const fileListID1 = ref({ againPath: '', id: null, path: '', status: null, type: null })
  660. const fileListID2 = ref({ againPath: '', id: null, path: '', status: null, type: null })
  661. const fileListAdd1 = ref({ againPath: '', id: null, path: '', status: null, type: null })
  662. const fileListAdd2 = ref({ againPath: '', id: null, path: '', status: null, type: null })
  663. const fileListOthers = ref([])
  664. const actionID1 = ref('')
  665. const actionID2 = ref('')
  666. const actionAdd1 = ref('')
  667. const actionAdd2 = ref('')
  668. const actionOtherAdd = ref('')
  669. const flag = ref(false)
  670. const isApprove = ref(false)
  671. const cities = ref([])
  672. const states = ref([])
  673. const countries = ref([])
  674. const updateUrl = config.Host80
  675. const mobile = ref('')
  676. const notCountry = [
  677. 'AF',
  678. 'AI',
  679. 'AG',
  680. 'BS',
  681. 'BY',
  682. 'BZ',
  683. 'BA',
  684. 'BI',
  685. 'CF',
  686. 'CD',
  687. 'CU',
  688. 'ET',
  689. 'FJ',
  690. 'PS',
  691. 'GN',
  692. 'GW',
  693. 'HT',
  694. 'IR',
  695. 'IQ',
  696. 'LB',
  697. 'LY',
  698. 'ML',
  699. 'MM',
  700. 'NI',
  701. 'KP',
  702. 'PW',
  703. 'RU',
  704. 'SO',
  705. 'SS',
  706. 'SD',
  707. 'SY',
  708. 'UA',
  709. 'US',
  710. 'VE',
  711. 'YE',
  712. 'ZW',
  713. ]
  714. const imageStyle = ref({
  715. width: 200,
  716. height: 150,
  717. border: {
  718. radius: '5px',
  719. },
  720. })
  721. // 验证函数
  722. function validateName(a: any, b?: any, c?: any) {
  723. const reg = /^[A-Z\s]+$/i
  724. if (typeof c === 'function') {
  725. const value = b
  726. const callback = c
  727. const val = String(value ?? '').trim()
  728. if (!val) return callback(new Error(t('card.vaildate.v4')))
  729. if (!reg.test(val)) return callback(new Error(t('card.vaildate.v38')))
  730. if (val.length < 2 || val.length > 23) return callback(new Error(t('card.vaildate.v39')))
  731. const firstName = String(formData.value?.firstName ?? '').trim()
  732. const lastName = String(formData.value?.lastName ?? '').trim()
  733. if (`${firstName} ${lastName}`.length > 23) return callback(new Error(t('card.vaildate.v40')))
  734. return callback()
  735. }
  736. const val = String(a ?? '').trim()
  737. if (!val) return t('card.vaildate.v4')
  738. if (!reg.test(val)) return t('card.vaildate.v38')
  739. if (val.length < 2 || val.length > 23) return t('card.vaildate.v39')
  740. const firstName = String(formData.value?.firstName ?? '').trim()
  741. const lastName = String(formData.value?.lastName ?? '').trim()
  742. if (`${firstName} ${lastName}`.length > 23) return t('card.vaildate.v40')
  743. return true
  744. }
  745. function validateBirthday(a: any, b?: any, c?: any) {
  746. if (typeof c === 'function') {
  747. const value = b
  748. const callback = c
  749. const val = value
  750. if (!val) return callback(new Error(t('card.vaildate.v5')))
  751. const today = new Date()
  752. const birthDate = new Date(val)
  753. let age = today.getFullYear() - birthDate.getFullYear()
  754. const month = today.getMonth() - birthDate.getMonth()
  755. if (month < 0 || (month === 0 && today.getDate() < birthDate.getDate())) age--
  756. if (age < 18) return callback(new Error(t('card.New.n3')))
  757. return callback()
  758. }
  759. const val = a
  760. if (!val) return t('card.vaildate.v5')
  761. const today = new Date()
  762. const birthDate = new Date(val)
  763. let age = today.getFullYear() - birthDate.getFullYear()
  764. const month = today.getMonth() - birthDate.getMonth()
  765. if (month < 0 || (month === 0 && today.getDate() < birthDate.getDate())) age--
  766. return age < 18 ? t('card.New.n3') : true
  767. }
  768. function validateAddress(a: any, b?: any, c?: any) {
  769. if (typeof c === 'function') {
  770. const value = b
  771. const callback = c
  772. const val = String(value ?? '').trim()
  773. if (!val) return callback(new Error(t('card.vaildate.v27')))
  774. if (val.length < 2 || val.length > 40) return callback(new Error(t('card.New.n1')))
  775. if (!Patterns.address.test(val)) return callback(new Error(t('card.New.n1')))
  776. return callback()
  777. }
  778. const val = String(a ?? '').trim()
  779. if (!val) return t('card.vaildate.v27')
  780. if (val.length < 2 || val.length > 40) return t('card.New.n1')
  781. return Patterns.address.test(val) ? true : t('card.New.n1')
  782. }
  783. const rules = computed(() => ({
  784. customType: [Validators.required(t('card.vaildate.v1'))],
  785. firstName: [Validators.required(t('card.vaildate.v3')), Validators.custom(validateName)],
  786. lastName: [Validators.required(t('card.vaildate.v4')), Validators.custom(validateName)],
  787. nationality: [Validators.required(t('card.vaildate.v6'), 'change')],
  788. IdentityType: [Validators.required(t('card.vaildate.v1'))],
  789. identity: [Validators.required(t('card.vaildate.v4'))],
  790. gender: [Validators.required(t('card.vaildate.v9'), 'change')],
  791. birth: [
  792. Validators.required(t('card.vaildate.v5'), 'change'),
  793. Validators.custom(validateBirthday, 'change'),
  794. ],
  795. country: [Validators.required(t('card.vaildate.v1'))],
  796. state: [Validators.required(t('card.vaildate.v1'))],
  797. city: [Validators.required(t('card.vaildate.v1'))],
  798. addressLines1: [Validators.required(t('card.vaildate.v27')), Validators.custom(validateAddress)],
  799. zipCode: [
  800. Validators.required(t('card.vaildate.v8')),
  801. Validators.pattern(Patterns.postcode, t('card.New.n2')),
  802. ],
  803. level: [Validators.required(t('card.vaildate.v1'))],
  804. employmentStatus: [Validators.required(t('card.vaildate.v1'))],
  805. tradingObjectives: [Validators.required(t('card.vaildate.v1'))],
  806. sourceFunding: [Validators.required(t('card.vaildate.v1'))],
  807. grossAnnualIncome: [Validators.required(t('card.vaildate.v1'))],
  808. totalNewWorth: [Validators.required(t('card.vaildate.v1'))],
  809. cardType: [Validators.required(t('card.vaildate.v1'))],
  810. idFrontUrl: [Validators.required(t('card.vaildate.v1'))],
  811. idBackUrl: [Validators.required(t('card.vaildate.v1'))],
  812. addressProofUrl: [Validators.required(t('card.vaildate.v1'))],
  813. }))
  814. onLoad((options) => {
  815. currentStep.value = parseInt(options?.currentStep || '1', 10)
  816. })
  817. async function goStep(step: number, isBack = false) {
  818. console.log(step, 'step')
  819. loadingStates.value.next = true
  820. // 返回不需要校验
  821. if (!isBack) {
  822. if (step == 3) {
  823. if (!formData.value?.identity) {
  824. toast(t('vaildate.IDCard.empty'))
  825. loadingStates.value.next = false
  826. return
  827. }
  828. }
  829. if (step == 2) {
  830. if (currentUploadCard.value == 1) {
  831. if (!formData.value.cardType) {
  832. toast(t('vaildate.CardType.empty'))
  833. loadingStates.value.next = false
  834. return
  835. }
  836. if (!fileListID1.value.path || !fileListID2.value.path) {
  837. toast(t('vaildate.IDPhoto.empty'))
  838. loadingStates.value.next = false
  839. return
  840. }
  841. }
  842. // 当前接口没有审核通过的请求接口,
  843. const { status, applyRealStatus } = userStore.userInfo.customInfo
  844. if (!(status == 2 || applyRealStatus == 1 || applyRealStatus == 2)) {
  845. await getOcrInfo()
  846. }
  847. }
  848. }
  849. loadingStates.value.next = false
  850. currentStep.value = step
  851. }
  852. const getOcrInfo = async () => {
  853. try {
  854. let res = await personalApi.ocrResult()
  855. console.log(res)
  856. if (res.data) {
  857. const { idCard = '', gender: gender1 = '男', birthDate = '', address = '', names = ['', ''] } = res.data
  858. console.log(formData.value, '1')
  859. const { identity, gender, birth, addressLines1, lastName, firstName } = formData.value
  860. formData.value = {
  861. ...formData.value,
  862. identity: identity ? identity : idCard,
  863. gender: gender ? gender : (gender1 == '男' ? 1 : 2),
  864. birth: birth ? birth : Date.parse(new Date(birthDate).toString()),
  865. addressLines1: addressLines1 ? addressLines1 : address,
  866. lastName: lastName ? lastName : names[0],
  867. firstName: firstName ? firstName : names[1],
  868. }
  869. console.log(formData.value, '2')
  870. }
  871. } catch (error) {
  872. loadingStates.value.next = false
  873. toast(error.msg)
  874. }
  875. }
  876. // 选项数据
  877. const customerTypeOptions = computed(() => [
  878. { value: 1, text: t('ImproveImmediately.Label.CustomerType1') },
  879. { value: 2, text: t('ImproveImmediately.Label.CustomerType2') },
  880. ])
  881. const identityTypes = computed(() => [
  882. { text: t('ImproveImmediately.Label.IDCard'), value: 2 },
  883. { text: t('ImproveImmediately.Label.Passport'), value: 3 },
  884. ])
  885. const genderOptions = computed(() => [
  886. { value: 1, text: t('PersonalManagement.Label.Men') },
  887. { value: 2, text: t('PersonalManagement.Label.Women') },
  888. ])
  889. const radioList = computed(() => [
  890. { value: 1, text: t('ImproveImmediately.Label.Yes') },
  891. { value: 0, text: t('ImproveImmediately.Label.No') },
  892. ])
  893. const educationOptions = computed(() => [
  894. { value: 1, text: t('ImproveImmediately.Label.Education1') },
  895. { value: 2, text: t('ImproveImmediately.Label.Education2') },
  896. { value: 3, text: t('ImproveImmediately.Label.Education3') },
  897. { value: 4, text: t('ImproveImmediately.Label.Education4') },
  898. { value: 5, text: t('ImproveImmediately.Label.Education5') },
  899. ])
  900. const employmentOptions = computed(() => [
  901. { value: 1, text: t('ImproveImmediately.Label.OnJob1') },
  902. { value: 2, text: t('ImproveImmediately.Label.OnJob2') },
  903. { value: 3, text: t('ImproveImmediately.Label.OnJob3') },
  904. { value: 4, text: t('ImproveImmediately.Label.OnJob4') },
  905. { value: 5, text: t('ImproveImmediately.Label.OnJob5') },
  906. ])
  907. const transactionPurposeOptions = computed(() => [
  908. { value: 1, text: t('ImproveImmediately.Label.purposeTransaction1') },
  909. { value: 2, text: t('ImproveImmediately.Label.purposeTransaction2') },
  910. { value: 3, text: t('ImproveImmediately.Label.purposeTransaction3') },
  911. { value: 4, text: t('ImproveImmediately.Label.purposeTransaction4') },
  912. ])
  913. const fundSourceOptions = computed(() => [
  914. { value: 1, text: t('ImproveImmediately.Label.SourceFunds1') },
  915. { value: 2, text: t('ImproveImmediately.Label.SourceFunds2') },
  916. { value: 3, text: t('ImproveImmediately.Label.SourceFunds3') },
  917. { value: 4, text: t('ImproveImmediately.Label.SourceFunds4') },
  918. { value: 5, text: t('ImproveImmediately.Label.SourceFunds5') },
  919. { value: 6, text: t('ImproveImmediately.Label.SourceFunds6') },
  920. ])
  921. const annualIncomeOptions = computed(() => [
  922. { value: 1, text: t('ImproveImmediately.Label.TotalAnnualRevenue1') },
  923. { value: 2, text: t('ImproveImmediately.Label.TotalAnnualRevenue2') },
  924. { value: 3, text: t('ImproveImmediately.Label.TotalAnnualRevenue3') },
  925. { value: 4, text: t('ImproveImmediately.Label.TotalAnnualRevenue4') },
  926. { value: 5, text: t('ImproveImmediately.Label.TotalAnnualRevenue5') },
  927. ])
  928. const netWorthOptions = computed(() => [
  929. { value: 1, text: t('ImproveImmediately.Label.TotalNetAssets1') },
  930. { value: 2, text: t('ImproveImmediately.Label.TotalNetAssets2') },
  931. { value: 3, text: t('ImproveImmediately.Label.TotalNetAssets3') },
  932. { value: 4, text: t('ImproveImmediately.Label.TotalNetAssets4') },
  933. { value: 5, text: t('ImproveImmediately.Label.TotalNetAssets5') },
  934. ])
  935. const cardTypeOptions = [
  936. { value: 'ID_CARD', text: 'ID Card' },
  937. { value: 'PASSPORT', text: 'Passport' },
  938. { value: 'DRIVERS', text: 'Driver\'s License' },
  939. { value: 'RESIDENCE_PERMIT', text: 'Residence Permit' },
  940. ]
  941. // 表单数据
  942. const formData = ref({
  943. customType: 1,
  944. companyName: undefined,
  945. lastName: undefined,
  946. firstName: undefined,
  947. middle: undefined,
  948. nationality: undefined,
  949. IdentityType: 2,
  950. identity: undefined,
  951. nameEn: undefined,
  952. gender: undefined,
  953. birth: undefined,
  954. country: undefined,
  955. state: undefined,
  956. city: undefined,
  957. addressLines1: undefined,
  958. addressLines2: undefined,
  959. zipCode: undefined,
  960. level: undefined,
  961. employmentStatus: undefined,
  962. tradingObjectives: undefined,
  963. sourceFunding: undefined,
  964. grossAnnualIncome: undefined,
  965. totalNewWorth: undefined,
  966. experienceTradingDerivative: 0,
  967. experienceTradingForex: 0,
  968. derivativeProducts: 0,
  969. experienceQualification: 0,
  970. cardType: undefined,
  971. idFrontUrl: undefined,
  972. idBackUrl: undefined,
  973. addressProofUrl: undefined,
  974. otherFiles: undefined,
  975. addressLines: [],
  976. })
  977. // 选项数据
  978. const countryOptions = ref<Array<{ text: string; value: string }>>([])
  979. const stateOptions = ref<Array<{ text: string; value: string }>>([])
  980. const cityOptions = ref<Array<{ text: string; value: string }>>([])
  981. // 加载状态
  982. const loadingStates = ref({
  983. next: false,
  984. submit: false,
  985. })
  986. // 计算属性
  987. const identityLabel = computed(() => {
  988. if (formData.value.IdentityType === 2) return t('ImproveImmediately.Label.IDCard')
  989. if (formData.value.IdentityType === 3) return t('ImproveImmediately.Label.Passport')
  990. return t('ImproveImmediately.Label.IdentityID')
  991. })
  992. // 计算属性:当前选中国籍的 uploadCard 值
  993. const currentUploadCard = computed(() => {
  994. if (!formData.value.nationality || !countries.value.length) {
  995. return 0
  996. }
  997. const selectedCountry = countries.value.find(
  998. (item: any) => item.code === formData.value.nationality,
  999. )
  1000. return selectedCountry ? (selectedCountry.uploadCard || 0) : 0
  1001. })
  1002. // 计算属性:当前选中国籍的 uploadAddress 值
  1003. const currentUploadAddress = computed(() => {
  1004. if (!formData.value.nationality || !countries.value.length) {
  1005. return 0
  1006. }
  1007. const selectedCountry = countries.value.find(
  1008. (item: any) => item.code === formData.value.nationality,
  1009. )
  1010. return selectedCountry ? (selectedCountry.uploadAddress || 0) : 0
  1011. })
  1012. // 方法
  1013. function changeCountry(value: any) {
  1014. // 处理国家选择变化
  1015. // 清空省份/城市选择//
  1016. formData.value.state = ''
  1017. formData.value.city = ''
  1018. stateOptions.value = []
  1019. cityOptions.value = []
  1020. states.value = []
  1021. cities.value = []
  1022. let item = {}
  1023. countries.value.forEach(element => {
  1024. if (element.code == value) {
  1025. item = element
  1026. return
  1027. }
  1028. })
  1029. getStateList(item.id)
  1030. }
  1031. function handleFileUpdate(value, type) {
  1032. console.log(value, type, 'uplaod')
  1033. if (type == 10) {
  1034. // uni.showToast({ title: t('card.New1.d5'), icon: 'none' })
  1035. getCustomFileList()
  1036. }
  1037. }
  1038. function handleOcr(value, type) {
  1039. console.log(value, type, 'uplaod')
  1040. }
  1041. const showFile = (file) => {
  1042. // console.log(file)
  1043. window.open(updateUrl + (file.againPath || file.path), '_blank')
  1044. }
  1045. async function fileOtherDelete(id) {
  1046. const result = await confirm({
  1047. title: t('Msg.SystemPrompt'),
  1048. content: t('Msg.Delete'),
  1049. confirmText: t('Btn.Confirm'),
  1050. cancelText: t('Btn.Cancel'),
  1051. })
  1052. if (result) {
  1053. try {
  1054. // 确认删除
  1055. let data = await personalApi.customFileDelete({ ids: [id] })
  1056. if (data.code == 200) {
  1057. uni.showToast(t('Msg.DeleteSuccess'))
  1058. getCustomFileList()
  1059. }
  1060. } catch (e) {
  1061. uni.showToast(e.msg)
  1062. }
  1063. }
  1064. }
  1065. function changeState(val) {
  1066. formData.value.city = ''
  1067. cityOptions.value = []
  1068. let item = {}
  1069. states.value.forEach((element) => {
  1070. if (element.name == val || element.enName == val) {
  1071. item = element
  1072. return
  1073. }
  1074. })
  1075. getCityList(item.id)
  1076. }
  1077. function handleChange(value: any) {
  1078. formData.value = { ...formData.value, [value.key]: value.value }
  1079. console.log(value)
  1080. if (value.key === 'country') {
  1081. formData.value.state = ''
  1082. formData.value.city = ''
  1083. stateOptions.value = []
  1084. cityOptions.value = []
  1085. if (value.value) {
  1086. getStateList(value.value)
  1087. }
  1088. } else if (value.key === 'state') {
  1089. formData.value.city = ''
  1090. cityOptions.value = []
  1091. if (value.value) {
  1092. getCityList(value.value)
  1093. }
  1094. }
  1095. }
  1096. function openAddressTip() {
  1097. // 打开地址提示弹窗
  1098. addressTipPopup.value.open()
  1099. }
  1100. function isPdf(url, image) {
  1101. let res = !!url
  1102. if (image) {
  1103. return res && url.substr(-3, 3) == 'pdf' &&
  1104. url.substr(-3, 3) == 'PDF'
  1105. }
  1106. return res && (url.substr(-3, 3) == 'pdf' ||
  1107. url.substr(-3, 3) == 'PDF')
  1108. }
  1109. function cancle() {
  1110. if (!isApprove.value) {
  1111. dialogCheck.value.open()
  1112. dialogCheck1.value = true
  1113. } else {
  1114. router.push({ path: '/pages/customer/dashboard' })
  1115. }
  1116. }
  1117. function closeDia() {
  1118. dialogCheck.value.close()
  1119. }
  1120. function toHome() {
  1121. dialogCheck.value.close()
  1122. router.push({ path: '/pages/customer/dashboard' })
  1123. }
  1124. async function save() {
  1125. await updateInfo(1)
  1126. }
  1127. async function Submit() {
  1128. loadingStates.value.submit = true
  1129. try {
  1130. formData.value.addressLines = []
  1131. if (formData.value.addressLines1) {
  1132. formData.value.addressLines.push(formData.value.addressLines1)
  1133. }
  1134. if (formData.value.addressLines2) {
  1135. formData.value.addressLines.push(formData.value.addressLines2)
  1136. }
  1137. if (!formData.value.addressLines1 && !formData.value.addressLines2) {
  1138. formData.value.addressLines = []
  1139. }
  1140. if (formData.value.customType != 2) {
  1141. formData.value.companyName = ''
  1142. }
  1143. let res = await personalApi.CustomUpdateInfo({
  1144. ...formData.value,
  1145. })
  1146. if (res.code == Config.Code.StatusOK) {
  1147. await getCustomFileList()
  1148. await customApply()
  1149. } else {
  1150. uni.showToast({ title: res.msg, icon: 'none' })
  1151. }
  1152. } catch (error: any) {
  1153. uni.showToast({ title: error.msg || t('Msg.SystemError'), icon: 'none' })
  1154. } finally {
  1155. loadingStates.value.submit = false
  1156. }
  1157. }
  1158. async function updateInfo(save: number) {
  1159. try {
  1160. formData.value.addressLines = []
  1161. if (formData.value.addressLines1) {
  1162. formData.value.addressLines.push(formData.value.addressLines1)
  1163. }
  1164. if (formData.value.addressLines2) {
  1165. formData.value.addressLines.push(formData.value.addressLines2)
  1166. }
  1167. if (!formData.value.addressLines1 && !formData.value.addressLines2) {
  1168. formData.value.addressLines = []
  1169. }
  1170. let res = await personalApi.CustomUpdateInfo({
  1171. ...formData.value,
  1172. })
  1173. if (res.code == Config.Code.StatusOK) {
  1174. if (save) {
  1175. dialogCheck.value.close()
  1176. router.push({ path: '/pages/customer/index' })
  1177. }
  1178. } else {
  1179. uni.showToast({ title: res.msg, icon: 'none' })
  1180. }
  1181. } catch (error: any) {
  1182. uni.showToast({ title: error.msg || t('Msg.SystemError'), icon: 'none' })
  1183. }
  1184. }
  1185. async function customApply() {
  1186. try {
  1187. let res = await personalApi.customApplyReal({})
  1188. if (res.code == Config.Code.StatusOK) {
  1189. isApprove.value = true
  1190. await getLoginInfo(true)
  1191. dialogCheck.value.open()
  1192. dialogCheck1.value = false
  1193. } else {
  1194. uni.showToast({ title: res.msg, icon: 'none' })
  1195. }
  1196. } catch (error: any) {
  1197. uni.showToast({ title: error.msg, icon: 'none' })
  1198. }
  1199. }
  1200. async function getCountryList() {
  1201. try {
  1202. let res = await personalApi.Country({})
  1203. if (res.code == Config.Code.StatusOK) {
  1204. countryOptions.value = res.data.map((item: any) => ({
  1205. text: item.enName,
  1206. value: item.code,
  1207. disable: notCountry.indexOf(item.code) !== -1,
  1208. }))
  1209. countries.value = res.data
  1210. const country = formData.value.country
  1211. if (country) {
  1212. countries.value.forEach((item) => {
  1213. if (item.code == country) {
  1214. getStateList(item.id)
  1215. }
  1216. })
  1217. }
  1218. }
  1219. } catch (error: any) {
  1220. uni.showToast({ title: error.msg, icon: 'none' })
  1221. }
  1222. }
  1223. async function getStateList(pid: string) {
  1224. try {
  1225. let res = await personalApi.Country({ pid })
  1226. if (res.code == Config.Code.StatusOK) {
  1227. // console.log(locale)
  1228. stateOptions.value = res.data.map((item: any) => ({
  1229. text: locale.value === 'en' ? item.enName : item.name,
  1230. value: locale.value === 'en' ? item.enName : item.name,
  1231. }))
  1232. states.value = res.data
  1233. const state = formData.value.state
  1234. console.log(state)
  1235. if (state) {
  1236. states.value.forEach((item) => {
  1237. if (
  1238. item.name == state ||
  1239. item.enName == state
  1240. ) {
  1241. getCityList(item.id)
  1242. }
  1243. })
  1244. }
  1245. }
  1246. } catch (error: any) {
  1247. console.log(error)
  1248. }
  1249. }
  1250. async function getCityList(pid: string) {
  1251. try {
  1252. let res = await personalApi.Country({ pid })
  1253. if (res.code == Config.Code.StatusOK) {
  1254. cityOptions.value = res.data.map((item: any) => ({
  1255. text: locale.value === 'en' ? item.enName : item.name,
  1256. value: locale.value === 'en' ? item.enName : item.name,
  1257. }))
  1258. cities.value = res.data
  1259. }
  1260. } catch (error: any) {
  1261. }
  1262. }
  1263. async function getLoginInfo(type = false) {
  1264. try {
  1265. let res = await personalApi.CustomLoginInfo()
  1266. if (res.code == Config.Code.StatusOK) {
  1267. formData.value = res.data.customInfo
  1268. if (type) userStore.saveUserInfo(res.data)
  1269. if (formData.value.addressLines != null && formData.value.addressLines.length) {
  1270. formData.value.addressLines1 = formData.value.addressLines[0]
  1271. formData.value.addressLines2 = formData.value.addressLines[1]
  1272. }
  1273. formData.value.customType = formData.value.customType ? formData.value.customType : 1
  1274. formData.value.IdentityType = 2
  1275. await getCountryList()
  1276. } else {
  1277. uni.showToast({ title: t('Msg.SystemError'), icon: 'none' })
  1278. }
  1279. } catch (error: any) {
  1280. }
  1281. }
  1282. // 获取二维码
  1283. async function getMobileInfo() {
  1284. try {
  1285. let res = await personalApi.CustomFileMobileFiles({}, { responseType: 'arraybuffer' })
  1286. // console.log(res);
  1287. mobile.value = 'data:image/png;base64,' + uni.arrayBufferToBase64(res)
  1288. } catch (error: any) {
  1289. // uni.showToast({ title: error.message , icon: 'none' })
  1290. }
  1291. }
  1292. // 获取上传文件信息
  1293. async function getCustomFileList() {
  1294. try {
  1295. let res = await personalApi.CustomFileList()
  1296. if (res.code == Config.Code.StatusOK) {
  1297. let myData = res.data
  1298. fileListOthers.value = []
  1299. myData.forEach((item: any) => {
  1300. if (item.type == 1) {
  1301. fileListID1.value = item
  1302. } else if (item.type == 2) {
  1303. fileListID2.value = item
  1304. } else if (item.type == 3) {
  1305. fileListAdd1.value = item
  1306. } else if (item.type == 4) {
  1307. fileListAdd2.value = item
  1308. } else if (item.type == 10) {
  1309. fileListOthers.value.push(item)
  1310. }
  1311. })
  1312. actionType()
  1313. } else {
  1314. uni.showToast({ title: res.msg, icon: 'none' })
  1315. flag.value = false
  1316. }
  1317. } catch (error: any) {
  1318. uni.showToast({ title: error.msg || t('Msg.SystemError'), icon: 'none' })
  1319. }
  1320. }
  1321. // 请求头
  1322. function actionType() {
  1323. if (fileListID1.value.id) {
  1324. actionID1.value = Config.Host80 + '/custom/file/upload/1/' + fileListID1.value.id
  1325. } else {
  1326. actionID1.value = Config.Host80 + '/custom/file/upload/1'
  1327. }
  1328. if (fileListID2.value.id) {
  1329. actionID2.value = Config.Host80 + '/custom/file/upload/2/' + fileListID2.value.id
  1330. } else {
  1331. actionID2.value = Config.Host80 + '/custom/file/upload/2'
  1332. }
  1333. if (fileListAdd1.value.id) {
  1334. actionAdd1.value = Config.Host80 + '/custom/file/upload/3/' + fileListAdd1.value.id
  1335. } else {
  1336. actionAdd1.value = Config.Host80 + '/custom/file/upload/3'
  1337. }
  1338. if (fileListAdd2.value.id) {
  1339. actionAdd2.value = Config.Host80 + '/custom/file/upload/4/' + fileListAdd2.value.id
  1340. } else {
  1341. actionAdd2.value = Config.Host80 + '/custom/file/upload/4'
  1342. }
  1343. actionOtherAdd.value = Config.Host80 + '/custom/file/upload/10'
  1344. }
  1345. function updateFile(myData) {
  1346. if (myData.type == 1) {
  1347. fileListID1.value = myData
  1348. } else if (myData.type == 2) {
  1349. fileListID2.value = myData
  1350. } else if (myData.type == 3) {
  1351. fileListAdd1.value = myData
  1352. } else if (myData.type == 4) {
  1353. fileListAdd2.value = myData
  1354. } else if (myData.type == 10) {
  1355. if (!fileListOthers.value.length) {
  1356. fileListOthers.value.push(myData)
  1357. } else {
  1358. let flag = true
  1359. fileListOthers.value.forEach((item: any) => {
  1360. if (item.id == myData.id) {
  1361. item = myData
  1362. flag = false
  1363. }
  1364. })
  1365. if (flag) {
  1366. fileListOthers.value.push(myData)
  1367. }
  1368. }
  1369. }
  1370. actionType()
  1371. }
  1372. // 判断是否为PC端
  1373. function IsPC() {
  1374. let userAgentInfo = navigator.userAgent
  1375. let Agents = ['Android', 'iPhone', 'SymbianOS', 'Windows Phone', 'iPad', 'iPod']
  1376. let flag = true
  1377. for (let v = 0; v < Agents.length; v++) {
  1378. if (userAgentInfo.indexOf(Agents[v]) > 0) {
  1379. flag = false
  1380. break
  1381. }
  1382. }
  1383. return flag
  1384. }
  1385. // 监听表单字段变化
  1386. watch(
  1387. () => formData.value.firstName,
  1388. () => {
  1389. if (localStorage.getItem('lang') == 'cn' && formData.value.firstName && formData.value.lastName) {
  1390. formData.value.nameEn = pinyin(`${formData.value.firstName} ${formData.value.lastName}`)
  1391. pinyin
  1392. }
  1393. },
  1394. )
  1395. watch(
  1396. () => formData.value.lastName,
  1397. () => {
  1398. if (localStorage.getItem('lang') == 'cn' && formData.value.firstName && formData.value.lastName) {
  1399. formData.value.nameEn = pinyin(`${formData.value.firstName} ${formData.value.lastName}`,
  1400. )
  1401. }
  1402. },
  1403. )
  1404. watch(locale, () => {
  1405. formRef.value?.clearValidate()
  1406. })
  1407. // 生命周期
  1408. onMounted(async () => {
  1409. loading.value = true
  1410. // dialogCheck.value.open()
  1411. await getLoginInfo()
  1412. await getMobileInfo()
  1413. await getCustomFileList()
  1414. isPC.value = IsPC()
  1415. uni.$on('updateImproveFile', (data) => {
  1416. updateFile(data)
  1417. })
  1418. loading.value = false
  1419. })
  1420. // 组件销毁时
  1421. onUnmounted(() => {
  1422. uni.$off('updateImproveFile')
  1423. })
  1424. </script>
  1425. <style scoped lang="scss">
  1426. @import "@/uni.scss";
  1427. .btn {
  1428. margin: 0;
  1429. width: 100%;
  1430. }
  1431. .form-tab {
  1432. height: px2rpx(100);
  1433. }
  1434. .form-section {
  1435. margin: px2rpx(8) 0;
  1436. }
  1437. .section-title {
  1438. color: var(--bs-emphasis-color);
  1439. font-family: Roboto;
  1440. font-size: px2rpx(22);
  1441. font-weight: 500;
  1442. margin: px2rpx(10) 0;
  1443. }
  1444. :deep(.file-picker__box) {
  1445. width: px2rpx(200) !important;
  1446. height: px2rpx(150) !important;
  1447. }
  1448. :deep(.uni-file-picker) {
  1449. width: 100%;
  1450. height: 100%;
  1451. }
  1452. .avatar-uploader {
  1453. border: 1px dashed;
  1454. width: px2rpx(200);
  1455. height: px2rpx(150);
  1456. display: flex;
  1457. flex-direction: column;
  1458. align-items: center;
  1459. justify-content: center;
  1460. /*float: left;*/
  1461. //overflow: hidden;
  1462. }
  1463. .file-item {
  1464. border: 1px dashed;
  1465. border-radius: px2rpx(5);
  1466. width: px2rpx(200);
  1467. height: px2rpx(150);
  1468. display: flex;
  1469. justify-content: center;
  1470. align-items: center;
  1471. .icon {
  1472. width: px2rpx(24);
  1473. height: px2rpx(24);
  1474. }
  1475. }
  1476. .avatar {
  1477. width: 100%;
  1478. height: 100%;
  1479. }
  1480. .custom-upload-btn {
  1481. width: px2rpx(200);
  1482. height: px2rpx(150);
  1483. display: flex;
  1484. flex-direction: column;
  1485. align-items: center;
  1486. justify-content: center;
  1487. .plus {
  1488. font-size: px2rpx(24);
  1489. color: #9ca3af;
  1490. }
  1491. }
  1492. .refresh {
  1493. width: 100%;
  1494. height: px2rpx(150);
  1495. display: flex;
  1496. justify-content: center;
  1497. align-items: center;
  1498. image {
  1499. width: px2rpx(28);
  1500. height: px2rpx(28);
  1501. }
  1502. }
  1503. .fileOther {
  1504. :deep(.upload-wrapper .uni-file-picker) {
  1505. display: flex;
  1506. align-items: center;
  1507. justify-content: center;
  1508. }
  1509. :deep(.uni-file-picker__lists) {
  1510. display: none !important;
  1511. }
  1512. }
  1513. .fileList {
  1514. width: 100%;
  1515. box-sizing: border-box;
  1516. display: flex;
  1517. flex-direction: column;
  1518. justify-content: center;
  1519. align-items: center;
  1520. }
  1521. #files {
  1522. :deep(.uni-file-picker__lists) {
  1523. display: none !important;
  1524. }
  1525. :deep(.upload-wrapper .uni-file-picker) {
  1526. display: flex;
  1527. align-items: center;
  1528. justify-content: center;
  1529. }
  1530. .list_upload {
  1531. width: px2rpx(150);
  1532. height: px2rpx(60);
  1533. }
  1534. .file-item {
  1535. //border: none;
  1536. box-sizing: border-box;
  1537. width: px2rpx(150);
  1538. height: px2rpx(60);
  1539. border-radius: 0;
  1540. }
  1541. margin-top: px2rpx(20);
  1542. max-width: px2rpx(600);
  1543. border: 1px dashed;
  1544. display: flex;
  1545. .options {
  1546. display: flex;
  1547. flex: 1;
  1548. padding: 8px;
  1549. box-sizing: border-box;
  1550. justify-content: center;
  1551. align-content: center;
  1552. align-items: center;
  1553. @media screen and (max-width: 990px) {
  1554. flex-direction: column;
  1555. align-items: flex-start;
  1556. }
  1557. uni-button {
  1558. min-width: px2rpx(80);
  1559. max-height: px2rpx(35);
  1560. padding: 0;
  1561. line-height: px2rpx(35);
  1562. margin-bottom: px2rpx(5);
  1563. span,
  1564. a {
  1565. display: inline-block;
  1566. height: 100%;
  1567. width: 100%;
  1568. color: var(--color-black);
  1569. }
  1570. }
  1571. }
  1572. }
  1573. .con-box {
  1574. background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
  1575. border-radius: 2px;
  1576. padding: 20px;
  1577. .box {
  1578. width: 100%;
  1579. // height: 190px;
  1580. box-sizing: border-box;
  1581. display: flex;
  1582. justify-content: center;
  1583. align-items: center;
  1584. .mobile {
  1585. width: px2rpx(50);
  1586. height: px2rpx(50);
  1587. margin-right: px2rpx(10);
  1588. }
  1589. .arrow {
  1590. width: px2rpx(30);
  1591. height: px2rpx(30);
  1592. margin-right: px2rpx(10);
  1593. }
  1594. .img_mobile {
  1595. width: 120px;
  1596. height: 120px;
  1597. margin: 10px;
  1598. border: 5px solid;
  1599. background-color: var(--color-gray);
  1600. }
  1601. .icon_refresh {
  1602. width: px2rpx(30);
  1603. height: px2rpx(30);
  1604. margin-right: px2rpx(10);
  1605. }
  1606. }
  1607. }
  1608. .experience {
  1609. display: flex;
  1610. margin: px2rpx(10) 0;
  1611. align-items: center;
  1612. }
  1613. .Trad-experience {
  1614. flex: 1;
  1615. color: var(--bs-emphasis-color);
  1616. font-size: px2rpx(16);
  1617. }
  1618. .Trad-choose {
  1619. display: flex;
  1620. }
  1621. .descending {
  1622. margin: px2rpx(20) 0;
  1623. padding: px2rpx(20);
  1624. background-color: #f5f5f5;
  1625. border-radius: px2rpx(8);
  1626. }
  1627. .title {
  1628. font-weight: 500;
  1629. margin-bottom: px2rpx(10);
  1630. }
  1631. .des {
  1632. margin: px2rpx(5) 0;
  1633. font-size: px2rpx(14);
  1634. color: var(--bs-heading-color);
  1635. }
  1636. .dian1 {
  1637. font-size: px2rpx(20);
  1638. margin-right: px2rpx(5);
  1639. }
  1640. .dian {
  1641. margin-right: px2rpx(10);
  1642. }
  1643. .btns {
  1644. margin-top: px2rpx(30);
  1645. }
  1646. .cwg-button {
  1647. display: flex;
  1648. flex-direction: column;
  1649. gap: px2rpx(15);
  1650. &.two-btn {
  1651. flex-direction: row;
  1652. justify-content: space-between;
  1653. u-button {
  1654. flex: 1;
  1655. margin: 0 px2rpx(10);
  1656. &:first-child {
  1657. margin-left: 0;
  1658. }
  1659. &:last-child {
  1660. margin-right: 0;
  1661. }
  1662. }
  1663. }
  1664. }
  1665. .btn-primary {
  1666. height: px2rpx(80);
  1667. font-size: px2rpx(18);
  1668. }
  1669. .prev-btn {
  1670. //border-color: #4a6cf7;
  1671. //color: #4a6cf7;
  1672. }
  1673. .address-tip {
  1674. width: px2rpx(140);
  1675. //height: px2rpx(60);
  1676. font-size: px2rpx(14);
  1677. word-break: break-all;
  1678. white-space: wrap;
  1679. word-wrap: break-word;
  1680. }
  1681. .crm-title-box {
  1682. display: flex;
  1683. align-items: center;
  1684. margin: px2rpx(20) 0;
  1685. background-color: var(--table-th-color);
  1686. color: #333;
  1687. .tit {
  1688. font-size: px2rpx(18);
  1689. font-weight: 500;
  1690. color: var(--bs-emphasis-color);
  1691. }
  1692. .icon-tip {
  1693. margin-left: px2rpx(10);
  1694. font-size: px2rpx(16);
  1695. color: var(--bs-emphasis-color);
  1696. cursor: pointer;
  1697. }
  1698. }
  1699. .popup-content {
  1700. padding: px2rpx(20);
  1701. text-align: center;
  1702. }
  1703. .dia-content {
  1704. padding: px2rpx(30);
  1705. text-align: center;
  1706. .icon {
  1707. margin-bottom: px2rpx(20);
  1708. i {
  1709. font-size: px2rpx(60);
  1710. color: #4a6cf7;
  1711. }
  1712. }
  1713. .des1 {
  1714. font-size: px2rpx(18);
  1715. font-weight: 500;
  1716. margin-bottom: px2rpx(10);
  1717. }
  1718. .des2 {
  1719. font-size: px2rpx(14);
  1720. color: var(--bs-heading-color);
  1721. margin-bottom: px2rpx(30);
  1722. }
  1723. .dialog-footer {
  1724. display: flex;
  1725. justify-content: space-between;
  1726. margin-top: px2rpx(30);
  1727. uni-button {
  1728. flex: 1;
  1729. margin: 0 px2rpx(10);
  1730. &:first-child {
  1731. margin-left: 0;
  1732. }
  1733. &:last-child {
  1734. margin-right: 0;
  1735. }
  1736. }
  1737. }
  1738. }
  1739. .cwg-upload {
  1740. display: flex;
  1741. flex-direction: column;
  1742. align-items: center;
  1743. justify-content: center;
  1744. padding: px2rpx(40);
  1745. border: 1px dashed #ddd;
  1746. border-radius: px2rpx(8);
  1747. cursor: pointer;
  1748. cwg-icon {
  1749. font-size: px2rpx(40);
  1750. margin-bottom: px2rpx(10);
  1751. color: var(--bs-heading-color);
  1752. }
  1753. .name {
  1754. font-size: px2rpx(16);
  1755. margin-bottom: px2rpx(5);
  1756. }
  1757. .back {
  1758. font-size: px2rpx(12);
  1759. color: var(--bs-heading-color);
  1760. }
  1761. }
  1762. .btn-upload {
  1763. width: px2rpx(120);
  1764. }
  1765. </style>