improveImmediately.vue 66 KB

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