improveImmediately.vue 63 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879
  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.item1') }}</span>
  512. </p>
  513. <p class="des">
  514. <span>{{ t('ImproveImmediately.item2') }}</span>
  515. </p>
  516. <p class="des">
  517. <span>{{ t('ImproveImmediately.item3') }}</span>
  518. </p>
  519. <p class="des">
  520. <span>{{ t('ImproveImmediately.item4') }}</span>
  521. </p>
  522. </view>
  523. </view>
  524. <!-- 步骤控制按钮 -->
  525. <view>
  526. <template v-if="currentStep === 4">
  527. <view class="btns">
  528. <view class="cwg-button two-btn">
  529. <button class="btn btn-danger" type="primary" block @click="cancle">
  530. {{ t('Btn.Cancel') }}
  531. </button>
  532. <button block class="btn btn-danger" type="primary" @click="goStep(3)">
  533. {{ t('Btn.Last') }}
  534. </button>
  535. <button type="primary" class="btn btn-danger" block :loading="loadingStates.submit" @click="Submit">
  536. {{ t('Btn.Submit') }}
  537. </button>
  538. </view>
  539. </view>
  540. </template>
  541. <template v-else-if="currentStep === 3">
  542. <view class="btns">
  543. <view class="cwg-button two-btn">
  544. <button class="btn btn-danger" type="primary" block @click="cancle">
  545. {{ t('Btn.Cancel') }}
  546. </button>
  547. <button block class="btn prev-btn btn-danger" type="primary" @click="goStep(2)">
  548. {{ t('Btn.Last') }}
  549. </button>
  550. <button class="btn btn-danger" type="primary" block :loading="loadingStates.next" @click="goStep(4)">
  551. {{ t('Btn.Next') }}
  552. </button>
  553. </view>
  554. </view>
  555. </template>
  556. <template v-else-if="currentStep === 2">
  557. <view class="btns">
  558. <view class="cwg-button two-btn">
  559. <button class="btn btn-danger" type="primary" block @click="cancle">
  560. {{ t('Btn.Cancel') }}
  561. </button>
  562. <button block class="btn prev-btn btn-danger" type="primary" @click="goStep(1)">
  563. {{ t('Btn.Last') }}
  564. </button>
  565. <button class="btn btn-danger" type="primary" block :loading="loadingStates.next" @click="goStep(3)">
  566. {{ t('Btn.Next') }}
  567. </button>
  568. </view>
  569. </view>
  570. </template>
  571. <template v-else-if="currentStep === 1">
  572. <view class="btns">
  573. <view class="cwg-button two-btn">
  574. <button class="btn btn-danger" type="primary" block @click="cancle">
  575. {{ t('Btn.Cancel') }}
  576. </button>
  577. <button class="btn btn-danger" type="primary" block :loading="loadingStates.next" @click="goStep(2)">
  578. {{ t('Btn.Next') }}
  579. </button>
  580. </view>
  581. </view>
  582. </template>
  583. </view>
  584. </uni-forms>
  585. </view>
  586. <view class="form-tab"></view>
  587. </cwg-page-wrapper>
  588. <!--离开弹出框-->
  589. <uni-popup ref="dialogCheck" type="center" background-color="#fff" borderRadius="8px 8px 8px 8px">
  590. <view class="dia-content" v-if="dialogCheck1">
  591. <view class="icon">
  592. <i class="iconfont iconjingshi"></i>
  593. </view>
  594. <view class="des1">{{ t('ImproveImmediately.Content.Leave1') }}</view>
  595. <view class="des2">{{ t('ImproveImmediately.Content.Leave2') }}</view>
  596. <view class="dialog-footer">
  597. <view class="btn-content">
  598. <button class="cancel-btn" @click="closeDia">
  599. {{ t('Btn.TemporarilyNot') }}
  600. </button>
  601. <button class="confirm-btn primary" @click="save">
  602. {{ t('Btn.Save') }}
  603. </button>
  604. </view>
  605. </view>
  606. </view>
  607. <view class="dia-content" v-if="!dialogCheck1">
  608. <view class="icon">
  609. <cwg-icon :size="60" name="verified" :color="'#4a6cf7'" />
  610. </view>
  611. <view class="des1">{{ t('ApplicationDialog.Des1') }}</view>
  612. <QrCode v-if="text1" :text="text1"></QrCode>
  613. <view class="dialog-footer">
  614. <view class="btn-content">
  615. <button class="cancel-btn" @click="closeDia">
  616. {{ t('Btn.Cancel') }}
  617. </button>
  618. <button class="confirm-btn primary" @click="toHome">
  619. {{ t('Btn.Home') }}
  620. </button>
  621. </view>
  622. </view>
  623. </view>
  624. </uni-popup>
  625. <cwg-global-popup/>
  626. </template>
  627. <script setup lang="ts">
  628. import { ref, onMounted, onUnmounted, watch, computed } from 'vue'
  629. import { useI18n } from 'vue-i18n'
  630. import { onLoad } from '@dcloudio/uni-app'
  631. import { personalApi } from '@/service/personal'
  632. import Config from '@/config/index'
  633. import QrCode from '@/components/QRCode.vue'
  634. import { userToken } from '@/composables/config'
  635. import useRouter from '@/hooks/useRouter'
  636. import { Patterns, Validators } from '@/utils/validators'
  637. import { pinyin } from 'pinyin-pro'
  638. import config from '@/config/index'
  639. import icon_doc from '@/static/icons/crm-document.svg'
  640. import icon_refresh from '@/static/icons/crm-refresh.svg'
  641. import icon_mobile from '@/static/icons/icon_mobile.svg'
  642. import icon_arrowR from '@/static/icons/icon_arrowR.svg'
  643. import { useWindowWidth } from '@/composables/useWindowWidth'
  644. import { usePopup } from '@/hooks/usePopup'
  645. import useUserStore from '@/stores/use-user-store'
  646. const { confirm , toast } = usePopup()
  647. const router = useRouter()
  648. const { t, locale } = useI18n()
  649. const currentStep = ref<number>(3)
  650. const formRef = ref()
  651. const dialogCheck = ref(null)
  652. const dialogCheck1 = ref(false)
  653. const text1 = ref('')
  654. const qrCodeStatus = ref(false)
  655. const addressTipPopup = ref()
  656. const windowWidth = useWindowWidth(300)
  657. const isMobile = computed(() => windowWidth.value <= 991)
  658. const userStore = useUserStore()
  659. // 新增的响应式数据
  660. const divActiveHelf = ref(false)
  661. const divActiveAll = ref(false)
  662. const websock = ref(null)
  663. const isPC = ref(true)
  664. const fileListID1 = ref({ againPath: '', id: null, path: '', status: null, type: null })
  665. const fileListID2 = ref({ againPath: '', id: null, path: '', status: null, type: null })
  666. const fileListAdd1 = ref({ againPath: '', id: null, path: '', status: null, type: null })
  667. const fileListAdd2 = ref({ againPath: '', id: null, path: '', status: null, type: null })
  668. const fileListOthers = ref([])
  669. const actionID1 = ref('')
  670. const actionID2 = ref('')
  671. const actionAdd1 = ref('')
  672. const actionAdd2 = ref('')
  673. const actionOtherAdd = ref('')
  674. const flag = ref(false)
  675. const pictLoading = ref(false)
  676. const pictLoadingImg = ref(false)
  677. const isApprove = ref(false)
  678. const metaInfo = ref({})
  679. const HostWs = ref(Config.HostWs)
  680. const cities = ref([])
  681. const states = ref([])
  682. const countries = ref([])
  683. const uploadImage = ref(0)
  684. const updateUrl = config.Host80
  685. const mobile = ref('')
  686. const notCountry = [
  687. 'AF',
  688. 'AI',
  689. 'AG',
  690. 'BS',
  691. 'BY',
  692. 'BZ',
  693. 'BA',
  694. 'BI',
  695. 'CF',
  696. 'CD',
  697. 'CU',
  698. 'ET',
  699. 'FJ',
  700. 'PS',
  701. 'GN',
  702. 'GW',
  703. 'HT',
  704. 'IR',
  705. 'IQ',
  706. 'LB',
  707. 'LY',
  708. 'ML',
  709. 'MM',
  710. 'NI',
  711. 'KP',
  712. 'PW',
  713. 'RU',
  714. 'SO',
  715. 'SS',
  716. 'SD',
  717. 'SY',
  718. 'UA',
  719. 'US',
  720. 'VE',
  721. 'YE',
  722. 'ZW',
  723. ]
  724. const imageStyle = ref({
  725. width: 200,
  726. height: 150,
  727. border: {
  728. radius: '5px',
  729. },
  730. })
  731. // 验证函数
  732. function validateName(a: any, b?: any, c?: any) {
  733. const reg = /^[A-Z\s]+$/i
  734. if (typeof c === 'function') {
  735. const value = b
  736. const callback = c
  737. const val = String(value ?? '').trim()
  738. if (!val) return callback(new Error(t('card.vaildate.v4')))
  739. if (!reg.test(val)) return callback(new Error(t('card.vaildate.v38')))
  740. if (val.length < 2 || val.length > 23) return callback(new Error(t('card.vaildate.v39')))
  741. const firstName = String(formData.value?.firstName ?? '').trim()
  742. const lastName = String(formData.value?.lastName ?? '').trim()
  743. if (`${firstName} ${lastName}`.length > 23) return callback(new Error(t('card.vaildate.v40')))
  744. return callback()
  745. }
  746. const val = String(a ?? '').trim()
  747. if (!val) return t('card.vaildate.v4')
  748. if (!reg.test(val)) return t('card.vaildate.v38')
  749. if (val.length < 2 || val.length > 23) return t('card.vaildate.v39')
  750. const firstName = String(formData.value?.firstName ?? '').trim()
  751. const lastName = String(formData.value?.lastName ?? '').trim()
  752. if (`${firstName} ${lastName}`.length > 23) return t('card.vaildate.v40')
  753. return true
  754. }
  755. function validateBirthday(a: any, b?: any, c?: any) {
  756. if (typeof c === 'function') {
  757. const value = b
  758. const callback = c
  759. const val = value
  760. if (!val) return callback(new Error(t('card.vaildate.v5')))
  761. const today = new Date()
  762. const birthDate = new Date(val)
  763. let age = today.getFullYear() - birthDate.getFullYear()
  764. const month = today.getMonth() - birthDate.getMonth()
  765. if (month < 0 || (month === 0 && today.getDate() < birthDate.getDate())) age--
  766. if (age < 18) return callback(new Error(t('card.New.n3')))
  767. return callback()
  768. }
  769. const val = a
  770. if (!val) return t('card.vaildate.v5')
  771. const today = new Date()
  772. const birthDate = new Date(val)
  773. let age = today.getFullYear() - birthDate.getFullYear()
  774. const month = today.getMonth() - birthDate.getMonth()
  775. if (month < 0 || (month === 0 && today.getDate() < birthDate.getDate())) age--
  776. return age < 18 ? t('card.New.n3') : true
  777. }
  778. function validateAddress(a: any, b?: any, c?: any) {
  779. if (typeof c === 'function') {
  780. const value = b
  781. const callback = c
  782. const val = String(value ?? '').trim()
  783. if (!val) return callback(new Error(t('card.vaildate.v27')))
  784. if (val.length < 2 || val.length > 40) return callback(new Error(t('card.New.n1')))
  785. if (!Patterns.address.test(val)) return callback(new Error(t('card.New.n1')))
  786. return callback()
  787. }
  788. const val = String(a ?? '').trim()
  789. if (!val) return t('card.vaildate.v27')
  790. if (val.length < 2 || val.length > 40) return t('card.New.n1')
  791. return Patterns.address.test(val) ? true : t('card.New.n1')
  792. }
  793. const rules = computed(()=>({
  794. customType: [Validators.required(t('card.vaildate.v1'))],
  795. firstName: [Validators.required(t('card.vaildate.v3')), Validators.custom(validateName)],
  796. lastName: [Validators.required(t('card.vaildate.v4')), Validators.custom(validateName)],
  797. nationality: [Validators.required(t('card.vaildate.v6'), 'change')],
  798. IdentityType: [Validators.required(t('card.vaildate.v1'))],
  799. identity: [Validators.required(t('card.vaildate.v4'))],
  800. gender: [Validators.required(t('card.vaildate.v9'), 'change')],
  801. birth: [
  802. Validators.required(t('card.vaildate.v5'), 'change'),
  803. Validators.custom(validateBirthday, 'change'),
  804. ],
  805. country: [Validators.required(t('card.vaildate.v1'))],
  806. state: [Validators.required(t('card.vaildate.v1'))],
  807. city: [Validators.required(t('card.vaildate.v1'))],
  808. addressLines1: [Validators.required(t('card.vaildate.v27')), Validators.custom(validateAddress)],
  809. zipCode: [
  810. Validators.required(t('card.vaildate.v8')),
  811. Validators.pattern(Patterns.postcode, t('card.New.n2')),
  812. ],
  813. level: [Validators.required(t('card.vaildate.v1'))],
  814. employmentStatus: [Validators.required(t('card.vaildate.v1'))],
  815. tradingObjectives: [Validators.required(t('card.vaildate.v1'))],
  816. sourceFunding: [Validators.required(t('card.vaildate.v1'))],
  817. grossAnnualIncome: [Validators.required(t('card.vaildate.v1'))],
  818. totalNewWorth: [Validators.required(t('card.vaildate.v1'))],
  819. cardType: [Validators.required(t('card.vaildate.v1'))],
  820. idFrontUrl: [Validators.required(t('card.vaildate.v1'))],
  821. idBackUrl: [Validators.required(t('card.vaildate.v1'))],
  822. addressProofUrl: [Validators.required(t('card.vaildate.v1'))],
  823. }))
  824. onLoad((options) => {
  825. currentStep.value = parseInt(options?.currentStep || '1', 10)
  826. })
  827. function goStep(step: number) {
  828. console.log(step, 'step')
  829. if (step == 2){
  830. if (!formData.value?.identity){
  831. toast(t('vaildate.IDCard.empty'))
  832. return
  833. }
  834. }
  835. if (step == 4) {
  836. if (currentUploadCard.value == 1) {
  837. if (!formData.value.cardType) {
  838. toast( t('vaildate.CardType.empty'))
  839. return
  840. }
  841. if (!fileListID1.value.path || !fileListID2.value.path) {
  842. toast( t('vaildate.IDPhoto.empty'))
  843. return
  844. }
  845. }
  846. }
  847. currentStep.value = step
  848. }
  849. // 选项数据
  850. const customerTypeOptions = computed(()=>[
  851. { value: 1, text: t('ImproveImmediately.Label.CustomerType1') },
  852. { value: 2, text: t('ImproveImmediately.Label.CustomerType2') },
  853. ])
  854. const identityTypes = computed(()=>[
  855. { text: t('ImproveImmediately.Label.IDCard'), value: 2 },
  856. { text: t('ImproveImmediately.Label.Passport'), value: 3 },
  857. ])
  858. const genderOptions = computed(()=>[
  859. { value: 1, text: t('PersonalManagement.Label.Men') },
  860. { value: 2, text: t('PersonalManagement.Label.Women') },
  861. ])
  862. const radioList = computed(()=>[
  863. { value: 1, text: t('ImproveImmediately.Label.Yes') },
  864. { value: 0, text: t('ImproveImmediately.Label.No') },
  865. ])
  866. const educationOptions = computed(()=>[
  867. { value: 1, text: t('ImproveImmediately.Label.Education1') },
  868. { value: 2, text: t('ImproveImmediately.Label.Education2') },
  869. { value: 3, text: t('ImproveImmediately.Label.Education3') },
  870. { value: 4, text: t('ImproveImmediately.Label.Education4') },
  871. { value: 5, text: t('ImproveImmediately.Label.Education5') },
  872. ])
  873. const employmentOptions =computed(()=> [
  874. { value: 1, text: t('ImproveImmediately.Label.OnJob1') },
  875. { value: 2, text: t('ImproveImmediately.Label.OnJob2') },
  876. { value: 3, text: t('ImproveImmediately.Label.OnJob3') },
  877. { value: 4, text: t('ImproveImmediately.Label.OnJob4') },
  878. { value: 5, text: t('ImproveImmediately.Label.OnJob5') },
  879. ])
  880. const transactionPurposeOptions =computed(()=> [
  881. { value: 1, text: t('ImproveImmediately.Label.purposeTransaction1') },
  882. { value: 2, text: t('ImproveImmediately.Label.purposeTransaction2') },
  883. { value: 3, text: t('ImproveImmediately.Label.purposeTransaction3') },
  884. { value: 4, text: t('ImproveImmediately.Label.purposeTransaction4') },
  885. ])
  886. const fundSourceOptions = computed(()=>[
  887. { value: 1, text: t('ImproveImmediately.Label.SourceFunds1') },
  888. { value: 2, text: t('ImproveImmediately.Label.SourceFunds2') },
  889. { value: 3, text: t('ImproveImmediately.Label.SourceFunds3') },
  890. { value: 4, text: t('ImproveImmediately.Label.SourceFunds4') },
  891. { value: 5, text: t('ImproveImmediately.Label.SourceFunds5') },
  892. { value: 6, text: t('ImproveImmediately.Label.SourceFunds6') },
  893. ])
  894. const annualIncomeOptions = computed(()=>[
  895. { value: 1, text: t('ImproveImmediately.Label.TotalAnnualRevenue1') },
  896. { value: 2, text: t('ImproveImmediately.Label.TotalAnnualRevenue2') },
  897. { value: 3, text: t('ImproveImmediately.Label.TotalAnnualRevenue3') },
  898. { value: 4, text: t('ImproveImmediately.Label.TotalAnnualRevenue4') },
  899. { value: 5, text: t('ImproveImmediately.Label.TotalAnnualRevenue5') },
  900. ])
  901. const netWorthOptions = computed(()=>[
  902. { value: 1, text: t('ImproveImmediately.Label.TotalNetAssets1') },
  903. { value: 2, text: t('ImproveImmediately.Label.TotalNetAssets2') },
  904. { value: 3, text: t('ImproveImmediately.Label.TotalNetAssets3') },
  905. { value: 4, text: t('ImproveImmediately.Label.TotalNetAssets4') },
  906. { value: 5, text: t('ImproveImmediately.Label.TotalNetAssets5') },
  907. ])
  908. const cardTypeOptions = [
  909. { value: 'ID_CARD', text: 'ID Card' },
  910. { value: 'PASSPORT', text: 'Passport' },
  911. { value: 'DRIVERS', text: 'Driver\'s License' },
  912. { value: 'RESIDENCE_PERMIT', text: 'Residence Permit' },
  913. ]
  914. // 表单数据
  915. const formData = ref({
  916. customType: 1,
  917. companyName: undefined,
  918. lastName: undefined,
  919. firstName: undefined,
  920. middle: undefined,
  921. nationality: undefined,
  922. IdentityType: 2,
  923. identity: undefined,
  924. nameEn: undefined,
  925. gender: undefined,
  926. birth: undefined,
  927. country: undefined,
  928. state: undefined,
  929. city: undefined,
  930. addressLines1: undefined,
  931. addressLines2: undefined,
  932. zipCode: undefined,
  933. level: undefined,
  934. employmentStatus: undefined,
  935. tradingObjectives: undefined,
  936. sourceFunding: undefined,
  937. grossAnnualIncome: undefined,
  938. totalNewWorth: undefined,
  939. experienceTradingDerivative: 0,
  940. experienceTradingForex: 0,
  941. derivativeProducts: 0,
  942. experienceQualification: 0,
  943. cardType: undefined,
  944. idFrontUrl: undefined,
  945. idBackUrl: undefined,
  946. addressProofUrl: undefined,
  947. otherFiles: undefined,
  948. addressLines: [],
  949. })
  950. // 选项数据
  951. const countryOptions = ref<Array<{ text: string; value: string }>>([])
  952. const stateOptions = ref<Array<{ text: string; value: string }>>([])
  953. const cityOptions = ref<Array<{ text: string; value: string }>>([])
  954. // 加载状态
  955. const loadingStates = ref({
  956. next: false,
  957. submit: false,
  958. })
  959. // 计算属性
  960. const identityLabel = computed(() => {
  961. if (formData.value.IdentityType === 2) return t('ImproveImmediately.Label.IDCard')
  962. if (formData.value.IdentityType === 3) return t('ImproveImmediately.Label.Passport')
  963. return t('ImproveImmediately.Label.IdentityID')
  964. })
  965. // 计算属性:当前选中国籍的 uploadCard 值
  966. const currentUploadCard = computed(() => {
  967. if (!formData.value.nationality || !countries.value.length) {
  968. return 0
  969. }
  970. const selectedCountry = countries.value.find(
  971. (item: any) => item.code === formData.value.nationality,
  972. )
  973. return selectedCountry ? (selectedCountry.uploadCard || 0) : 0
  974. })
  975. // 计算属性:当前选中国籍的 uploadAddress 值
  976. const currentUploadAddress = computed(() => {
  977. if (!formData.value.nationality || !countries.value.length) {
  978. return 0
  979. }
  980. const selectedCountry = countries.value.find(
  981. (item: any) => item.code === formData.value.nationality,
  982. )
  983. return selectedCountry ? (selectedCountry.uploadAddress || 0) : 0
  984. })
  985. // 方法
  986. function changeCountry(value: any) {
  987. // 处理国家选择变化
  988. // 清空省份/城市选择//
  989. formData.value.state = ''
  990. formData.value.city = ''
  991. stateOptions.value = []
  992. cityOptions.value = []
  993. states.value = []
  994. cities.value = []
  995. let item = {}
  996. countries.value.forEach(element => {
  997. if (element.code == value) {
  998. item = element
  999. return
  1000. }
  1001. })
  1002. getStateList(item.id)
  1003. }
  1004. function handleFileUpdate(value, type) {
  1005. console.log(value, type, 'uplaod')
  1006. if (type == 10) {
  1007. uni.showToast({ title: t('card.New1.d5'), icon: 'none' })
  1008. getCustomFileList();
  1009. }
  1010. }
  1011. const showFile = (file) => {
  1012. // console.log(file)
  1013. window.open(updateUrl + (file.againPath || file.path), '_blank')
  1014. }
  1015. async function fileOtherDelete(id) {
  1016. const result = await confirm({
  1017. title: t('Msg.SystemPrompt'),
  1018. content: t('Msg.Delete'),
  1019. confirmText: t('Btn.Confirm'),
  1020. cancelText: t('Btn.Cancel'),
  1021. })
  1022. if (result){
  1023. try {
  1024. // 确认删除
  1025. let data = await personalApi.customFileDelete({ ids: [id] })
  1026. if (data.code == 200) {
  1027. uni.showToast(t('Msg.DeleteSuccess'))
  1028. getCustomFileList()
  1029. }
  1030. }catch (e) {
  1031. uni.showToast(e.msg)
  1032. }
  1033. }
  1034. }
  1035. function changeState(val) {
  1036. formData.value.city = ''
  1037. cityOptions.value = []
  1038. let item = {}
  1039. states.value.forEach((element) => {
  1040. if (element.name == val || element.enName == val) {
  1041. item = element
  1042. return
  1043. }
  1044. })
  1045. getCityList(item.id)
  1046. }
  1047. function handleChange(value: any) {
  1048. formData.value = { ...formData.value, [value.key]: value.value }
  1049. console.log(value)
  1050. if (value.key === 'country') {
  1051. formData.value.state = ''
  1052. formData.value.city = ''
  1053. stateOptions.value = []
  1054. cityOptions.value = []
  1055. if (value.value) {
  1056. getStateList(value.value)
  1057. }
  1058. } else if (value.key === 'state') {
  1059. formData.value.city = ''
  1060. cityOptions.value = []
  1061. if (value.value) {
  1062. getCityList(value.value)
  1063. }
  1064. }
  1065. }
  1066. function openAddressTip() {
  1067. // 打开地址提示弹窗
  1068. addressTipPopup.value.open()
  1069. }
  1070. function isPdf(url, image) {
  1071. let res = !!url
  1072. if (image) {
  1073. return res && url.substr(-3, 3) == 'pdf' &&
  1074. url.substr(-3, 3) == 'PDF'
  1075. }
  1076. return res && (url.substr(-3, 3) == 'pdf' ||
  1077. url.substr(-3, 3) == 'PDF')
  1078. }
  1079. function cancle() {
  1080. if (!isApprove.value) {
  1081. dialogCheck.value.open()
  1082. dialogCheck1.value = true
  1083. } else {
  1084. router.push({ path: '/pages/customer/dashboard' })
  1085. }
  1086. }
  1087. function closeDia() {
  1088. dialogCheck.value.close()
  1089. }
  1090. function toHome() {
  1091. dialogCheck.value.close()
  1092. router.push({ path: '/pages/customer/dashboard' })
  1093. }
  1094. async function save() {
  1095. await updateInfo(1)
  1096. }
  1097. async function Submit() {
  1098. loadingStates.value.submit = true
  1099. try {
  1100. formData.value.addressLines = []
  1101. if (formData.value.addressLines1) {
  1102. formData.value.addressLines.push(formData.value.addressLines1)
  1103. }
  1104. if (formData.value.addressLines2) {
  1105. formData.value.addressLines.push(formData.value.addressLines2)
  1106. }
  1107. if (!formData.value.addressLines1 && !formData.value.addressLines2) {
  1108. formData.value.addressLines = []
  1109. }
  1110. if (formData.value.customType != 2) {
  1111. formData.value.companyName = ''
  1112. }
  1113. let res = await personalApi.CustomUpdateInfo({
  1114. ...formData.value,
  1115. })
  1116. if (res.code == Config.Code.StatusOK) {
  1117. await getCustomFileList()
  1118. await customApply()
  1119. } else {
  1120. uni.showToast({ title: res.msg, icon: 'none' })
  1121. }
  1122. } catch (error: any) {
  1123. uni.showToast({ title: error.msg || t('Msg.SystemError'), icon: 'none' })
  1124. } finally {
  1125. loadingStates.value.submit = false
  1126. }
  1127. }
  1128. async function updateInfo(save: number) {
  1129. try {
  1130. formData.value.addressLines = []
  1131. if (formData.value.addressLines1) {
  1132. formData.value.addressLines.push(formData.value.addressLines1)
  1133. }
  1134. if (formData.value.addressLines2) {
  1135. formData.value.addressLines.push(formData.value.addressLines2)
  1136. }
  1137. if (!formData.value.addressLines1 && !formData.value.addressLines2) {
  1138. formData.value.addressLines = []
  1139. }
  1140. let res = await personalApi.CustomUpdateInfo({
  1141. ...formData.value,
  1142. })
  1143. if (res.code == Config.Code.StatusOK) {
  1144. if (save) {
  1145. dialogCheck.value.close()
  1146. router.push({ path: '/pages/customer/index' })
  1147. }
  1148. } else {
  1149. uni.showToast({ title: res.msg, icon: 'none' })
  1150. }
  1151. } catch (error: any) {
  1152. uni.showToast({ title: error.msg || t('Msg.SystemError'), icon: 'none' })
  1153. }
  1154. }
  1155. async function customApply() {
  1156. try {
  1157. let res = await personalApi.customApplyReal({})
  1158. if (res.code == Config.Code.StatusOK) {
  1159. isApprove.value = true
  1160. await getLoginInfo(true)
  1161. dialogCheck.value.open()
  1162. dialogCheck1.value = false
  1163. } else {
  1164. uni.showToast({ title: res.msg, icon: 'none' })
  1165. }
  1166. } catch (error: any) {
  1167. uni.showToast({ title: error.msg, icon: 'none' })
  1168. }
  1169. }
  1170. async function getCountryList() {
  1171. try {
  1172. let res = await personalApi.Country({})
  1173. if (res.code == Config.Code.StatusOK) {
  1174. countryOptions.value = res.data.map((item: any) => ({
  1175. text: item.enName,
  1176. value: item.code,
  1177. disable: notCountry.indexOf(item.code) !== -1,
  1178. }))
  1179. countries.value = res.data
  1180. const country = formData.value.country
  1181. if (country) {
  1182. countries.value.forEach((item) => {
  1183. if (item.code == country) {
  1184. getStateList(item.id)
  1185. }
  1186. })
  1187. }
  1188. }
  1189. } catch (error: any) {
  1190. uni.showToast({ title: error.msg, icon: 'none' })
  1191. }
  1192. }
  1193. async function getStateList(pid: string) {
  1194. try {
  1195. let res = await personalApi.Country({ pid })
  1196. if (res.code == Config.Code.StatusOK) {
  1197. // console.log(locale)
  1198. stateOptions.value = res.data.map((item: any) => ({
  1199. text: locale.value === 'en' ? item.enName : item.name,
  1200. value: locale.value === 'en' ? item.enName : item.name,
  1201. }))
  1202. states.value = res.data
  1203. const state = formData.value.state
  1204. console.log(state)
  1205. if (state) {
  1206. states.value.forEach((item) => {
  1207. if (
  1208. item.name == state ||
  1209. item.enName == state
  1210. ) {
  1211. getCityList(item.id)
  1212. }
  1213. })
  1214. }
  1215. }
  1216. } catch (error: any) {
  1217. console.log(error)
  1218. }
  1219. }
  1220. async function getCityList(pid: string) {
  1221. try {
  1222. let res = await personalApi.Country({ pid })
  1223. if (res.code == Config.Code.StatusOK) {
  1224. cityOptions.value = res.data.map((item: any) => ({
  1225. text: locale.value === 'en' ? item.enName : item.name,
  1226. value: locale.value === 'en' ? item.enName : item.name,
  1227. }))
  1228. cities.value = res.data
  1229. }
  1230. } catch (error: any) {
  1231. }
  1232. }
  1233. async function getLoginInfo(type=false) {
  1234. try {
  1235. let res = await personalApi.CustomLoginInfo()
  1236. if (res.code == Config.Code.StatusOK) {
  1237. formData.value = res.data.customInfo
  1238. if (type) userStore.saveUserInfo(res.data)
  1239. if (formData.value.addressLines != null && formData.value.addressLines.length) {
  1240. formData.value.addressLines1 = formData.value.addressLines[0]
  1241. formData.value.addressLines2 = formData.value.addressLines[1]
  1242. }
  1243. formData.value.customType = formData.value.customType ? formData.value.customType : 1
  1244. formData.value.IdentityType = 2
  1245. await getCountryList()
  1246. } else {
  1247. uni.showToast({ title: t('Msg.SystemError'), icon: 'none' })
  1248. }
  1249. } catch (error: any) {
  1250. }
  1251. }
  1252. // 获取二维码
  1253. async function getMobileInfo() {
  1254. try {
  1255. let res = await personalApi.CustomFileMobileFiles({}, { responseType: 'arraybuffer' })
  1256. // console.log(res);
  1257. mobile.value = 'data:image/png;base64,' + uni.arrayBufferToBase64(res)
  1258. } catch (error: any) {
  1259. // uni.showToast({ title: error.message , icon: 'none' })
  1260. }
  1261. }
  1262. // 获取上传文件信息
  1263. async function getCustomFileList() {
  1264. try {
  1265. let res = await personalApi.CustomFileList()
  1266. if (res.code == Config.Code.StatusOK) {
  1267. let myData = res.data
  1268. fileListOthers.value = []
  1269. myData.forEach((item: any) => {
  1270. if (item.type == 1) {
  1271. fileListID1.value = item
  1272. } else if (item.type == 2) {
  1273. fileListID2.value = item
  1274. } else if (item.type == 3) {
  1275. fileListAdd1.value = item
  1276. } else if (item.type == 4) {
  1277. fileListAdd2.value = item
  1278. } else if (item.type == 10) {
  1279. fileListOthers.value.push(item)
  1280. }
  1281. })
  1282. actionType()
  1283. } else {
  1284. uni.showToast({ title: res.msg, icon: 'none' })
  1285. flag.value = false
  1286. }
  1287. } catch (error: any) {
  1288. uni.showToast({ title: error.msg || t('Msg.SystemError'), icon: 'none' })
  1289. }
  1290. }
  1291. // 请求头
  1292. function actionType() {
  1293. if (fileListID1.value.id) {
  1294. actionID1.value = Config.Host80 + '/custom/file/upload/1/' + fileListID1.value.id
  1295. } else {
  1296. actionID1.value = Config.Host80 + '/custom/file/upload/1'
  1297. }
  1298. if (fileListID2.value.id) {
  1299. actionID2.value = Config.Host80 + '/custom/file/upload/2/' + fileListID2.value.id
  1300. } else {
  1301. actionID2.value = Config.Host80 + '/custom/file/upload/2'
  1302. }
  1303. if (fileListAdd1.value.id) {
  1304. actionAdd1.value = Config.Host80 + '/custom/file/upload/3/' + fileListAdd1.value.id
  1305. } else {
  1306. actionAdd1.value = Config.Host80 + '/custom/file/upload/3'
  1307. }
  1308. if (fileListAdd2.value.id) {
  1309. actionAdd2.value = Config.Host80 + '/custom/file/upload/4/' + fileListAdd2.value.id
  1310. } else {
  1311. actionAdd2.value = Config.Host80 + '/custom/file/upload/4'
  1312. }
  1313. actionOtherAdd.value = Config.Host80 + '/custom/file/upload/10'
  1314. }
  1315. function updateFile(myData) {
  1316. if (myData.type == 1) {
  1317. fileListID1.value = myData
  1318. } else if (myData.type == 2) {
  1319. fileListID2.value = myData
  1320. } else if (myData.type == 3) {
  1321. fileListAdd1.value = myData
  1322. } else if (myData.type == 4) {
  1323. fileListAdd2.value = myData
  1324. } else if (myData.type == 10) {
  1325. if (!fileListOthers.value.length) {
  1326. fileListOthers.value.push(myData)
  1327. } else {
  1328. let flag = true
  1329. fileListOthers.value.forEach((item: any) => {
  1330. if (item.id == myData.id) {
  1331. item = myData
  1332. flag = false
  1333. }
  1334. })
  1335. if (flag) {
  1336. fileListOthers.value.push(myData)
  1337. }
  1338. }
  1339. }
  1340. actionType()
  1341. }
  1342. // 判断是否为PC端
  1343. function IsPC() {
  1344. let userAgentInfo = navigator.userAgent
  1345. let Agents = ['Android', 'iPhone', 'SymbianOS', 'Windows Phone', 'iPad', 'iPod']
  1346. let flag = true
  1347. for (let v = 0; v < Agents.length; v++) {
  1348. if (userAgentInfo.indexOf(Agents[v]) > 0) {
  1349. flag = false
  1350. break
  1351. }
  1352. }
  1353. return flag
  1354. }
  1355. // div大小改变重载
  1356. function divInit() {
  1357. // 由于elementResizeDetectorMaker在UniApp中可能不可用,这里简化处理
  1358. const width = window.innerWidth
  1359. if (width <= 1100 && width > 800) {
  1360. divActiveHelf.value = true
  1361. divActiveAll.value = false
  1362. } else if (width <= 800) {
  1363. divActiveAll.value = true
  1364. divActiveHelf.value = false
  1365. } else if (1100 < width) {
  1366. divActiveAll.value = false
  1367. divActiveHelf.value = false
  1368. }
  1369. }
  1370. // 监听表单字段变化
  1371. watch(
  1372. () => formData.value.firstName,
  1373. () => {
  1374. if (localStorage.getItem('lang') == 'cn' && formData.value.firstName && formData.value.lastName) {
  1375. formData.value.nameEn = pinyin(`${formData.value.firstName} ${formData.value.lastName}`)
  1376. pinyin
  1377. }
  1378. },
  1379. )
  1380. watch(
  1381. () => formData.value.lastName,
  1382. () => {
  1383. if (localStorage.getItem('lang') == 'cn' && formData.value.firstName && formData.value.lastName) {
  1384. formData.value.nameEn = pinyin(`${formData.value.firstName} ${formData.value.lastName}`
  1385. )
  1386. }
  1387. },
  1388. )
  1389. watch(locale,()=>{
  1390. formRef.value?.clearValidate()
  1391. })
  1392. // 生命周期
  1393. onMounted(async () => {
  1394. // dialogCheck.value.open()
  1395. divInit()
  1396. await getLoginInfo()
  1397. await getMobileInfo()
  1398. await getCustomFileList()
  1399. isPC.value = IsPC()
  1400. uni.$on('updateImproveFile', (data) => {
  1401. updateFile(data)
  1402. })
  1403. })
  1404. // 组件销毁时
  1405. onUnmounted(() => {
  1406. uni.$off('updateImproveFile')
  1407. })
  1408. </script>
  1409. <style scoped lang="scss">
  1410. @import "@/uni.scss";
  1411. .btn{
  1412. margin: 0;
  1413. width: 100%;
  1414. }
  1415. .form-tab {
  1416. height: px2rpx(100);
  1417. }
  1418. .form-section {
  1419. margin: px2rpx(8) 0;
  1420. }
  1421. .section-title {
  1422. color: var(--bs-emphasis-color);
  1423. font-family: Roboto;
  1424. font-size: px2rpx(22);
  1425. font-weight: 500;
  1426. margin: px2rpx(10) 0;
  1427. }
  1428. :deep(.file-picker__box) {
  1429. width: px2rpx(200) !important;
  1430. height: px2rpx(150) !important;
  1431. }
  1432. :deep(.uni-file-picker) {
  1433. width: 100%;
  1434. height: 100%;
  1435. }
  1436. .avatar-uploader {
  1437. border: 1px dashed;
  1438. width: px2rpx(200);
  1439. height: px2rpx(150);
  1440. display: flex;
  1441. flex-direction: column;
  1442. align-items: center;
  1443. justify-content: center;
  1444. /*float: left;*/
  1445. //overflow: hidden;
  1446. }
  1447. .file-item {
  1448. border: 1px dashed;
  1449. border-radius: px2rpx(5);
  1450. width: px2rpx(200);
  1451. height: px2rpx(150);
  1452. display: flex;
  1453. justify-content: center;
  1454. align-items: center;
  1455. .icon {
  1456. width: px2rpx(24);
  1457. height: px2rpx(24);
  1458. }
  1459. }
  1460. .avatar {
  1461. width: 100%;
  1462. height: 100%;
  1463. }
  1464. .custom-upload-btn {
  1465. width: px2rpx(200);
  1466. height: px2rpx(150);
  1467. display: flex;
  1468. flex-direction: column;
  1469. align-items: center;
  1470. justify-content: center;
  1471. .plus {
  1472. font-size: px2rpx(24);
  1473. color: #9ca3af;
  1474. }
  1475. }
  1476. .refresh {
  1477. width: 100%;
  1478. height: px2rpx(150);
  1479. display: flex;
  1480. justify-content: center;
  1481. align-items: center;
  1482. image {
  1483. width: px2rpx(28);
  1484. height: px2rpx(28);
  1485. }
  1486. }
  1487. .fileOther {
  1488. :deep(.upload-wrapper .uni-file-picker) {
  1489. display: flex;
  1490. align-items: center;
  1491. justify-content: center;
  1492. }
  1493. :deep(.uni-file-picker__lists) {
  1494. display: none !important;
  1495. }
  1496. }
  1497. .fileList {
  1498. width: 100%;
  1499. box-sizing: border-box;
  1500. display: flex;
  1501. flex-direction: column;
  1502. justify-content: center;
  1503. align-items: center;
  1504. }
  1505. #files {
  1506. :deep(.uni-file-picker__lists) {
  1507. display: none !important;
  1508. }
  1509. :deep(.upload-wrapper .uni-file-picker) {
  1510. display: flex;
  1511. align-items: center;
  1512. justify-content: center;
  1513. }
  1514. .list_upload {
  1515. width: px2rpx(150);
  1516. height: px2rpx(60);
  1517. }
  1518. .file-item {
  1519. //border: none;
  1520. box-sizing: border-box;
  1521. width: px2rpx(150);
  1522. height: px2rpx(60);
  1523. border-radius: 0;
  1524. }
  1525. margin-top: px2rpx(20);
  1526. max-width: px2rpx(600);
  1527. border: 1px dashed;
  1528. display: flex;
  1529. .options {
  1530. display: flex;
  1531. flex: 1;
  1532. padding: 8px;
  1533. box-sizing: border-box;
  1534. justify-content: center;
  1535. align-content: center;
  1536. align-items: center;
  1537. @media screen and (max-width: 990px) {
  1538. flex-direction: column;
  1539. align-items: flex-start;
  1540. }
  1541. uni-button {
  1542. min-width: px2rpx(80);
  1543. max-height: px2rpx(35);
  1544. padding: 0;
  1545. line-height: px2rpx(35);
  1546. margin-bottom: px2rpx(5);
  1547. span,
  1548. a {
  1549. display: inline-block;
  1550. height: 100%;
  1551. width: 100%;
  1552. color: var(--color-black);
  1553. }
  1554. }
  1555. }
  1556. }
  1557. .con-box {
  1558. background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
  1559. border-radius: 2px;
  1560. padding: 20px;
  1561. .box {
  1562. width: 100%;
  1563. // height: 190px;
  1564. box-sizing: border-box;
  1565. display: flex;
  1566. justify-content: center;
  1567. align-items: center;
  1568. .mobile {
  1569. width: px2rpx(50);
  1570. height: px2rpx(50);
  1571. margin-right: px2rpx(10);
  1572. }
  1573. .arrow {
  1574. width: px2rpx(30);
  1575. height: px2rpx(30);
  1576. margin-right: px2rpx(10);
  1577. }
  1578. .img_mobile {
  1579. width: 120px;
  1580. height: 120px;
  1581. margin: 10px;
  1582. border: 5px solid;
  1583. background-color: var(--color-gray);
  1584. }
  1585. .icon_refresh {
  1586. width: px2rpx(30);
  1587. height: px2rpx(30);
  1588. margin-right: px2rpx(10);
  1589. }
  1590. }
  1591. }
  1592. .experience {
  1593. display: flex;
  1594. margin: px2rpx(10) 0;
  1595. align-items: center;
  1596. }
  1597. .Trad-experience {
  1598. flex: 1;
  1599. color: var(--bs-emphasis-color);
  1600. font-size: px2rpx(16);
  1601. }
  1602. .Trad-choose {
  1603. display: flex;
  1604. }
  1605. .descending {
  1606. margin: px2rpx(20) 0;
  1607. padding: px2rpx(20);
  1608. background-color: #f5f5f5;
  1609. border-radius: px2rpx(8);
  1610. }
  1611. .title {
  1612. font-weight: 500;
  1613. margin-bottom: px2rpx(10);
  1614. }
  1615. .des {
  1616. margin: px2rpx(5) 0;
  1617. font-size: px2rpx(14);
  1618. color: var(--bs-heading-color);
  1619. }
  1620. .dian1 {
  1621. font-size: px2rpx(20);
  1622. margin-right: px2rpx(5);
  1623. }
  1624. .dian {
  1625. margin-right: px2rpx(10);
  1626. }
  1627. .btns {
  1628. margin-top: px2rpx(30);
  1629. }
  1630. .cwg-button {
  1631. display: flex;
  1632. flex-direction: column;
  1633. gap: px2rpx(15);
  1634. &.two-btn {
  1635. flex-direction: row;
  1636. justify-content: space-between;
  1637. u-button {
  1638. flex: 1;
  1639. margin: 0 px2rpx(10);
  1640. &:first-child {
  1641. margin-left: 0;
  1642. }
  1643. &:last-child {
  1644. margin-right: 0;
  1645. }
  1646. }
  1647. }
  1648. }
  1649. .btn-primary {
  1650. height: px2rpx(80);
  1651. font-size: px2rpx(18);
  1652. }
  1653. .prev-btn {
  1654. //border-color: #4a6cf7;
  1655. //color: #4a6cf7;
  1656. }
  1657. .address-tip {
  1658. width: px2rpx(140);
  1659. //height: px2rpx(60);
  1660. font-size: px2rpx(14);
  1661. word-break:break-all;
  1662. white-space:wrap;
  1663. word-wrap:break-word;
  1664. }
  1665. .crm-title-box {
  1666. display: flex;
  1667. align-items: center;
  1668. margin: px2rpx(20) 0;
  1669. background-color: var(--table-th-color) ;
  1670. color: #333;
  1671. .tit {
  1672. font-size: px2rpx(18);
  1673. font-weight: 500;
  1674. color: var(--bs-emphasis-color);
  1675. }
  1676. .icon-tip {
  1677. margin-left: px2rpx(10);
  1678. font-size: px2rpx(16);
  1679. color: var(--bs-emphasis-color);
  1680. cursor: pointer;
  1681. }
  1682. }
  1683. .popup-content {
  1684. padding: px2rpx(20);
  1685. text-align: center;
  1686. }
  1687. .dia-content {
  1688. padding: px2rpx(30);
  1689. text-align: center;
  1690. .icon {
  1691. margin-bottom: px2rpx(20);
  1692. i {
  1693. font-size: px2rpx(60);
  1694. color: #4a6cf7;
  1695. }
  1696. }
  1697. .des1 {
  1698. font-size: px2rpx(18);
  1699. font-weight: 500;
  1700. margin-bottom: px2rpx(10);
  1701. }
  1702. .des2 {
  1703. font-size: px2rpx(14);
  1704. color: var(--bs-heading-color);
  1705. margin-bottom: px2rpx(30);
  1706. }
  1707. .dialog-footer {
  1708. display: flex;
  1709. justify-content: space-between;
  1710. margin-top: px2rpx(30);
  1711. uni-button {
  1712. flex: 1;
  1713. margin: 0 px2rpx(10);
  1714. &:first-child {
  1715. margin-left: 0;
  1716. }
  1717. &:last-child {
  1718. margin-right: 0;
  1719. }
  1720. }
  1721. }
  1722. }
  1723. .cwg-upload {
  1724. display: flex;
  1725. flex-direction: column;
  1726. align-items: center;
  1727. justify-content: center;
  1728. padding: px2rpx(40);
  1729. border: 1px dashed #ddd;
  1730. border-radius: px2rpx(8);
  1731. cursor: pointer;
  1732. cwg-icon {
  1733. font-size: px2rpx(40);
  1734. margin-bottom: px2rpx(10);
  1735. color: var(--bs-heading-color);
  1736. }
  1737. .name {
  1738. font-size: px2rpx(16);
  1739. margin-bottom: px2rpx(5);
  1740. }
  1741. .back {
  1742. font-size: px2rpx(12);
  1743. color: var(--bs-heading-color);
  1744. }
  1745. }
  1746. </style>