improveImmediately.vue 67 KB

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