improveImmediately.vue 67 KB

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