improveImmediately.vue 67 KB

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