improveImmediately.vue 62 KB

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