improveImmediately.vue 66 KB

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