improveImmediately.vue 67 KB

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