improveImmediately.vue 64 KB

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